Change bogus PR in ChangeLog (15803->15804)
[official-gcc.git] / gcc / ada / ChangeLog
blobaff56402a55a97c9e96ea83b99cb16983a2259d9
1 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
3         * decl.c (make_packable_type): Retrieve the real name of the type.
4         (maybe_pad_type): Simplify similar code.
6 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8         PR ada/15804
9         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
10         than an identifier is used after "case" in a variant_part.
12         PR ada/17318
13         * par-ch4.adb (Is_Parameterless_Attribute): New map.
14         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
15         attribute name or not depending on the new map.
17         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
18         returning a string or a type will not be called with improper
19         arguments.
21         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
23         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
25         PR ada/32792
26         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
27         Signal an error when attribute argument is a fixed-point value of
28         an unknown type.
30         PR ada/22559
31         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
32         a derived ordinary fixed point type.
34         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
35         RM_Size when a Small clause is found.
37 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
39         PR 34081/C++
40         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
41         Pass 'false' for the new allocate_struct_function parameter.
42         * utils.c (build_function_stub): Likewise.
44 2007-11-25  Richard Guenther  <rguenther@suse.de>
46         utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
47         (gnat_poplevel): Likewise.
49 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
51         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
52         strict alignment, no alignment clause and a known static size, cap
53         the type alignment to the greatest power of 2 factor of the size.
54         (gnat_to_gnu_field): If the field has a component clause, is aliased
55         or of a type with strict alignment, require that its size be equal to
56         that of the type.
57         (validate_size): Use the type size as the minimum size for a type with
58         strict alignment.
60 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
62         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
63         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
64         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
65         Use 'Access instead of 'Unchecked_Access in second and third
66         arguments of pthread_sigmask.
68 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
70         * decl.c (ceil_alignment): New function.
71         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
72         (make_packable_type): Likewise.
74 2007-11-22  Olivier Hainque  <hainque@adacore.com>
76         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
77         to fit in 80 columns.
79 2007-11-21  Aurelien Jarno <aurelien@aurel32.net>
81         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
82         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
84 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
86         PR ada/34098
87         * misc.c (gnat_adjust_rli): Delete.
88         (gnat_init): Do not initialize the translation code here.
89         Do not call set_lang_adjust_rli.
90         * trans.c (init_code_table): Make static.
91         (gnat_init_stmt_group): Delete.
92         (gigi): Initialize the translation code entirely here.
93         Emit debug info for the common types here instead of...
94         * utils.c (gnat_init_decl_processing): ...here.
95         * gigi.h (init_code_table): Delete.
96         (gnat_init_stmt_group): Likewise.
98 2007-11-16  Olivier Hainque  <hainque@adacore.com>
100         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
101         retrieving an allocator return value from a super-aligned address from
102         here to ...
103         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
104         expect a super-aligned address for a fat or thin pointer.
105         
106 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
108         * trans.c (call_to_gnu): Always set the source location on the call
109         expression.  If the function returns-by-target, also set it on the
110         address expression.
112 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
114         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
115         sections of non-supported Interix target.
117         * s-osinte-interix.ads: Removed.
119         * i-cstrin.ads (chars_ptr): Make it a C convention type.
121 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
123         * a-tasatt.adb: Add a comment at the beginning of the package
124         explaining why in general 'Unchecked_Access must be used instead
125         of 'Access.
127         * sem_prag.adb (Process_Convention): Move the test for the
128         entity on which the Convention pragma applies down to also
129         forbid pragma Convention on enumeration literals reached
130         through renamings.
132 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
134         * a-tasatt.adb: Revert previous change for this file as it will
135         generate an error when this package is instantiated from a
136         local context.
138 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
140         * a-tasatt.adb: Type Wrapper should be declared in comment instead
141         of already declared type Node_Access.
142         Use 'Access instead of 'Unchecked_Access when applicable. Local
143         lifetime is the one of the package.
144         (Set_Value): W is allocated on the heap.
146         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
147         applicable.
148         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
149         access type.
150         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
151         access type.
153         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
154         applicable.
155         (elaboration code): Timer_Queue lifetime is the one of the
156         package.
158         * tracebak.c (i386 alternative): Remove useless comparaison
159         which is always false; LOWEST_ADDRESS is 0 and is never greater
160         than an unsigned integer.
162         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
163         embedded check for "Ada_Version >= Ada_05".
165 2007-11-07  Olivier Hainque  <hainque@adacore.com>
167         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
168         craft and expand comment.
170 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
172         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
174 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
176         * misc.c (gnat_handle_option): Replace call to abort with
177         call to gcc_unreachable.
178         (gnat_init): Likewise.
179         (gnat_expand_expr): Likewise.
180         (fp_prec_to_size): Likewise.
181         (fp_size_to_prec): Likewise.
183 2007-10-23  Richard Guenther  <rguenther@suse.de>
185         PR bootstrap/33608
186         * tracebak.c: #undef abort after including system.h.
188 2007-10-20  Danny Smith <dannysmith@users.sourceforge.net>
190         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
191         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
192         for win32 targets.
193         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
195 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
197         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
198         Set the protection status of the guard page based on the value of On.
200         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
202         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
203         (Exit_Task): Pass False to Hide_Yellow_Zone.
205 2007-10-15  Robert Dewar  <dewar@adacore.com>
207         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
208         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
209         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
210         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
211         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
212         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
213         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
214         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
215         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
216         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
217         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
218         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
219         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
220         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
221         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
222         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
223         Minor reformatting.
224         Add Unreferenced and Warnings (Off) pragmas for cases of
225         variables modified calls where they are IN OUT or OUT parameters and
226         the resulting values are not subsequently referenced. In a few cases,
227         we also remove redundant code found by the new warnings.
229         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
230         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
231         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
232         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
233         warning controlled by -gnatw.o that warns on cases of out parameter
234         values being ignored.
236 2007-10-15  Geert Bosch  <bosch@adacore.com>
238         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
240         * expect.c: Initial port to arm-mentor-nucleus.
241         Use kill for __gnat_kill() on VMS.
243 2007-10-15  Emmanuel Briot  <briot@adacore.com>
245         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
246         value.
247         (Xref_Record): Change type for Line, since in the case of a reference to
248         a predefined entity (as happens for array index types), the line is set
249         to 0.
250         Add support for parsing multiple array index types info, or
251         multiple inherited interfaces info. This information cannot be stored
252         in Xref_Entity_Record, which only supports a single instance of Tref_*,
253         and is therefore stored in the list of references instead. It has a
254         special treatement later on in tools that use this information.
256 2007-10-15  Tristan Gingold  <gingold@adacore.com>
258         * debug.adb: Document use of -gnatd.a and -gnatd.I
260         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
262 2007-10-15  Javier Miranda  <miranda@adacore.com>
264         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
265         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
266         care of access to class-wide interface types plus removal of bizarre
267         conversion of tagged object to access type (reported by Gary
268         Dismukes). After this patch there is no need to perform any
269         additional management on these nodes in Expand_Interface_Actuals.
271         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
272         that handles use of 'Access and 'Unchecked_Access applied to
273         actuals covering interface types. Such code is now
274         centralized in Expand_N_Attribute_Reference.
276 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
278         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
279         of tagged types whose ultimate ancestor is a CPP type.
280         (Freeze_Array_Type): For a packed array type, generate an initialization
281         procedure if the type is public, to handle properly a client that
282         specifies Normalize_Scalars.
284 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
286         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
287         inside a generic body, retrieve the full view of the entry family
288         discrete subtype if available.
290 2007-10-15  Thomas Quinot  <quinot@adacore.com>
292         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
293         attempt to generate stubs for hidden primitive operations.
295 2007-10-15  Vincent Celier  <celier@adacore.com>
297         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
298         returning None, used when there is no platform specific body for
299         MLib.Tgt.Specific.
301 2007-10-15  Bob Duff  <duff@adacore.com>
303         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
304         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
305         the generic Heap_Sort_G, in order to avoid trampolines.
307 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
308             Jose Ruiz  <ruiz@adacore.com>
310         * vx_stack_info.c: New file.
312         * i-forbla-unimplemented.ads: New file.
314         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
315         for unsupported configurations; use it on VMS targets instead of the
316         real one.
317         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
318         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
319         used by VxWorks targets to have access to task-specific data and be
320         able to extract the stack boundaries for stack checking.
321         Use system-vms-ia64.ads on ivms.
323         * Make-lang.in: Update dependencies.
325         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
326         (vx_stack_info.c).
328 2007-10-15  Vincent Celier  <celier@adacore.com>
330         * snames.adb, snames.ads: Add new standard name runtime_library_dir
332         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
334         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
336         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
337         the source is unknown.
339         * prj-ext.adb: Spelling error fix
341         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
342         95 reserved word in its name.
343         (Process_Project_Level_Array_Attributes): Process new attribute
344         Runtime_Library_Dir.
346         * prj-part.adb (Parse_Single_Project): Do not check the name of the
347         config project against the user project names.
349         * prj-proc.adb (Expression): In multi-language mode, indexes that do
350         not include a dot are always case insensitive.
351         (Process_Declarative_Items): Ditto
352         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
353         detected.
355         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
356         True, compare both indexes in lower case.
358 2007-10-15  Robert Dewar  <dewar@adacore.com>
360         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
362 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
364         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
365         association for an access component, add an association with null as
366         the expression. Remove testing for array subtypes and the setting in
367         that case of Ctyp to the array component type, which prevented proper
368         inclusion of an association for null-initialized arrays. Collapse
369         condition that tests for array subtypes into just a test of
370         Is_Partially_Initialized_Type (which already covers arrays anyway).
372 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
374         * sem_ch12.adb: Minor code reformatting.
375         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
376         find the parent package which may have been hidden by local
377         declarations.
379 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
381         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
382         flag of derived concurrent types, taking into account the flag setting
383         on the parent subtype and any new set of discriminants.
385 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
387         * sem_ch4.adb: Minor code and comment reformatting.
388         (Analyze_Allocator): When the designated type of an unconstrained
389         allocator is a record with unknown discriminants or an array with
390         unknown range bounds, emit a detailed error message depending on the
391         compilation mode and whether the designated type is limited.
393 2007-10-15  Tristan Gingold  <gingold@adacore.com>
395         * system-vms-ia64.ads: New file.
397         * system-vms_64.ads: Minor comment fix.
399 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
401         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
402         body generated for a function with a controlling result that is a null
403         extension, discard the generated body in favor of the current explicit
404         one.
406 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
408         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
409         examining its original form, to handle properly operator calls that
410         have been rewritten.
412 2007-10-15  Olivier Hainque  <hainque@adacore.com>
414         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
415         instead of a procedure value in each traceback entry.
417         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
418         instead of procedure value to TBK$SYMBOLIZE.
420         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
421         field.
422         (TB_Entry_For): Account for the PV/FP renaming.
424         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
425         add comment.
426         (Null_TB_Entry): Account for change of component name.
427         (PV_For): Rename as FP_For.
429 2007-10-15  Tristan Gingold  <gingold@adacore.com>
431         * trans.c (gnat_to_gnu): Remove the padding structure more often.
432         This optimize assignment to over-aligned record.
434 2007-10-15  Emmanuel Briot  <briot@adacore.com>
436         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
437         interfaces.
439         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
440         type, for dispatching calls.
442 2007-10-15  Vincent Celier  <celier@adacore.com>
443             Robert Dewar  <dewar@adacore.com>
445         * gnat_ugn.texi: Add documentation for switches --version and --help
446         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
447         gnatxref, gnatfind, gnatls, and gnatclean.
448         Document -gnatw.o.
449         Mention attribute Excluded_Source_Dirs
450         Replace obsolescent attribute Locally_Removed_Files with attribute
451         Excluded_Source_Files.
452         Improve documentation of -u (gnatbind)
453         Document how to do reliable stack checking for the environmental task
454         on iVMS.
456         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
457         Document attribute Excluded_Source_Files and indicate that attribute
458         Locally_Removed_Files is obsolescent.
460 2007-10-15  Thomas Quinot  <quinot@adacore.com>
462         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
464         * gen-soccon.c: 
465         Update documentation to note that OpenVMS 8.3 or later must be used
466         to generate g-soccon-vms.ads.
468         * atree.adb: Add ??? comment
470         * exp_util.adb: Minor reformatting.
471         Add ??? comment in Kill_Dead_Code.
473 2007-10-15  Robert Dewar  <dewar@adacore.com>
475         * errout.ads: Comment clarification
477         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
478         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
480         * lib.ads: Comment update
482         * init.c: Minor reformatting.
484         * sem_attr.adb: Minor formatting
486         * osint-b.ads: Minor reformatting
488         * sem_ch9.adb: Implement -gnatd.I switch
490         * g-comlin.adb: (Start): Fix handling of empty command line.
492         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
493         even when -rules follows the -cargs section.
495 2007-10-08  Ollie Wild  <aaw@google.com>
497         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
498         gnat_return_tree.
499         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
500         gnat_return_tree.
501         (gnat_eh_runtime_type): Removed.
502         (gnat_return_tree): New function.
504 2007-10-08  Ben Elliston  <bje@au.ibm.com>
506         PR ada/33454
507         Revert:
508         2007-08-31  Ben Elliston  <bje@au.ibm.com>
510         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
511         when compiling for powerpc64-*-linux.
512         * system-linux-ppc64.ads: New file.
514 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
516         Mapped location support
517         * back_end.adb (Call_Back_End): Pass information about source
518         files instead of units to gigi.
519         * gigi.h (struct File_Info_Type): New.
520         (gigi): Rename and change type of number_units parameter, change
521         type of file_info_ptr parameter.
522         * trans.c (number_files): New global variable.
523         (gigi): Rename and change type of number_units parameter, change
524         type of file_info_ptr parameter.
525         If mapped location support is enabled, create the isomorphic mapping
526         between source files and line maps.
527         (Sloc_to_locus): If mapped location support is enabled, translate
528         source location into mapped location.
529         (annotate_with_node): Rename into set_expr_location_from_node.
530         Call set_expr_location instead of annotate_with_locus.
531         (Pragma_to_gnu): Adjust for above change.
532         (Loop_Statement_to_gnu): Likewise.
533         (call_to_gnu): Likewise.
534         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
535         (gnat_to_gnu): Likewise.
536         (add_stmt_with_node): Likewise.
537         (add_cleanup): Likewise.
538         * utils.c (gnat_init_decl_processing): Do not set input_line.
540 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
542         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
543         (Applicable_Use): Emit a warning when a package tries to use itself.
544         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
545         is already in use or the package where it is declared is in use or is
546         declared in the current package.
547         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
549         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
550         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
551         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
553 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
555         * a-calend-vms.adb, a-calend.adb: 
556         Add a section on leap seconds control along with two entities used to
557         enable and disable leap seconds support. The array Leap_Second_Times is
558         now constant and contains hard time values pre-generated. Remove
559         all elaboration code used to populate the table of leap seconds.
561         * bindgen.adb: 
562         Add entity Leap_Seconds_Support to the list of global run-time variables
563         along with a comment on its usage and values.
564         (Gen_Adainit_Ada): Add code to generate the declaration and import of
565         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
566         or one (enabled) depending on the presence of binder switch "-y".
567         (Gen_Adainit_C): Add code to generate the declaration of external int
568         __gl_leap_seconds_support. Set is value to zero (disabled) or one
569         (enabled) depending on the presence of binder switch "-y".
571         * init.c: Add __gl_leap_seconds_support to the list of global values
572         computed by the binder.
574 2007-09-26  Jerome Guitton  <guitton@adacore.com>
576         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
577         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
578          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
579         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
581         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
583         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
584         function which can be called by the debugger to interrupt the tasks of
585         an Ada application asynchronously, as needed on VxWorks.
586         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
588         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
589         renamed from Stop_All_Tasks. Update comments.
590         (Stop_All_tasks): New function declaration.
592 2007-09-26  Olivier Hainque  <hainque@adacore.com>
594         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
595         #include <utime.h> and #define GCC_RESOURCE_H before
596         #include <sys/wait.h>.
597         Add more protections in __gnat_translate_vms.
599         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
600         #include <sys/wait.h>.
602 2007-09-26  Thomas Quinot  <quinot@adacore.com>
603             Sergey Rybin  <rybin@adacore.com>
605         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
607         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
608         where it belongs.
610         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
612         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
613         where it belongs.
615         * sem_dist.ads: Minor comment fix
617         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
619 2007-09-26  Javier Miranda  <miranda@adacore.com>
620             Eric Botcazou  <ebotcazou@adacore.com>
622         * a-tags.adb: 
623         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
624          indirection added to the HT_Link component of the TSD. This is required
625          to statically allocate the TSD.
627         * a-tags.ads: 
628         Minor reordering of the declarations in the private part. Required to
629         add a level of indirection to the contents of the TSD component HT_Link.
630         This is required to statically allocate the TSD.
632         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
633         Is_Statically_Allocated set from constant objects.
634         Do not make exported constants created by the compiler volatile.
635         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
636         as read-only.
638         * trans.c (Identifier_to_gnu): For constants, unshare initializers
639         before returning them.
641         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
642         public part of the package.
643         (Make_DT): Move HT_Link component out of the TSD record. For this
644         purpose Make_DT now declares a separate object that stores the
645         HT_Link value, and initializes the TSD component with the address
646         of this new object. The addition of this level of indirection is
647         required to statically allocate the TSD because the TSD cannot
648         have variable components.
649         (Expand_Interface_Conversion): Improve the expanded code.
650         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
652         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
653         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
654         if we are building static dispatch tables then we must not generate
655         extra code to register the primitive because the dispatch table will
656         be built at the end of the library package; otherwise we notify that
657         we cannot build the static dispatch table.
659 2007-09-26  Robert Dewar  <dewar@adacore.com>
661         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
662         overlays.
664         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
665         (Analyze_Record_Representation_Clause): Suppress junk warning for
666         missing component clause.
667         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
668         tests for controlled type overlay to composites with controlled
669         components.
670         (Analyze_Record_Representation_Clause): Add reference for component name
672 2007-09-26  Javier Miranda  <miranda@adacore.com>
673             Gary Dismukes  <dismukes@adacore.com>
675         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
676         for thunks associated with interface types.
678         * einfo.ads: Improve documentatation of Is_Internal
679         (Is_Thunk): New attribute applicable to subprograms. True for thunks
680         associated with interface types.
681         Extensive comment fixes regarding flags that appear in all entities. The
682         documentation is now consistent for all such flags (there were a number
683         of errors in the documentation in this regard).
685         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
687         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
688         of these procedures are passed a function call that already has
689         build-in-place actuals (testing new flag
690         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
691         the case where processing continues.
692         (Expand_Call): If the call is generated from a thunk body then we
693         propagate the extra actuals associated with the accessibility
694         level of the access type actuals.
696         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
697         of each extra formal of a protected operation to reference the
698         corresponding extra formal of the subprogram denoted by the
699         operation's Protected_Body_Subprogram.
700         
701         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
702         N_Function_Call nodes.
704 2007-09-26  Robert Dewar  <dewar@adacore.com>
706         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
708         * debug.adb: Add d.s flag.
710 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
712         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
713         debug variable so that it won't be initialized when pragma
714         Initialize_Scalars is in effect.
716 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
718         * freeze.adb (Freeze_Entity): Remove check for preelaborable
719         initialization of a full view. This is moved to
720         Analyze_Package_Specification.
722         * sem_ch7.adb (Analyze_Package_Specification): Add check for
723         preelaborable initialization of a full view in entity loop.
724         (Uninstall_Declarations): If entity is a use-visible compilation unit,
725         its child units are use-visible only if they are visible child units.
727         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
728         whether an expression can be used within a type declaration that
729         requires preelaborable init.
730         (Check_Components): Replace inline code that does partial checking for
731         preelaborable default expressions with call to
732         Is_Preelaborable_Expression.
733         (Has_Preelaborable_Initialization): In the case of a generic actual
734         subtype, (that is, Is_Generic_Actual is True), return the result of
735         applying Has_Preelaborable_Initialization to the generic actual's base
736         type.
738 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
740         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
741         call to Jan_1_Day _Of_Week to optimize its performance.
742         (Is_Leap): Move the routine to the scope of Week_In_Year.
743         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
744         weekday on which January 1 falls of Year - 1 and Year + 1. This function
745         avoids calling Time_Of and Split, thus making it more efficent.
746         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
748         * g-calend.ads (Week_In_Year): Change comment to reflect new
749         implementation.
751 2007-09-26  Emmanuel Briot  <briot@adacore.com>
753         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
754         Command_Line): New types
755         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
756         support for defining how switches can be grouped on a command line (as
757         is the case for -gnatw... for GNAT), and how simple switches can be
758         used as aliases for more complex switches (-gnatwa is same as
759         -gnatwbcef...)
760         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
761         (Start, Current_*): New subprograms
762         Added support for parsing an array of strings in addition to the real
763         command line.
764         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
765          be moved from the body to the private part of the spec.
766         (*): All subprograms now have an extra parameter with default value to
767         specify which parser should be used. For backward compatibility, it
768         defaults to parsing the command line of the application. They were also
769         modified to properly handle cases where each of the argument does not
770         start at index 1 (which is always true for Ada.Command_Line, but not
771         when processing any Argument_List).
772         (Free): New subprogram
773         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
774         Argument): New subprograms
775         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
776         special characters like ':', '=',... are now handled in a single place,
777         which makes the code more extensible eventually.
778         (Getopt, Full_Switch): When the switch was returned as part of the
779         special character '*', make sure it is prepended by the switch character
780         ('-' in general), so that the application knows whether "foo" or "-foo"
781         was specified on the command line.
783 2007-09-26  Florian Villoing  <villoing@adacore.com>
785         * g-dirope.adb (Remove_Dir): In case we are removing directories
786         recursively, make sure that if an exception is raised during the
787         processing, the current working directory is reset to its initial
788         value before propagating the exception.
790 2007-09-26  Vincent Celier  <celier@adacore.com>
792         * gnatbind.adb: If there are several ALI files specified and there is
793         a main program to bind, the first ALI is expected to contain the main
794         subprogram and the names of the binder generated files will be derived
795         from the first ALI file name.
796         (Gnatbind): Fix insertion character in invocation of Error_Msg
798 2007-09-26  Vincent Celier  <celier@adacore.com>
800         * gnatcmd.adb (Check_Files): Do not include sources that have been
801         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
803 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
805         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
806         information about each of its index types, following the type
807         reference for its component type.
809 2007-09-26  Vincent Celier  <celier@adacore.com>
811         * make.adb: (Kill): New procedure (__gnat_kill imported)
812         (Running_Compile, Outstanding_Compiles): Global variables that
813         were previously local to procedure Compile_Sources.
814         (Sigint_Intercepted): Send signal SIGINT to all outstanding
815         compilation processes.
817         (Gnatmake): If project files are used, create the mapping of all the
818         sources, so that the correct paths will be found.
820         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
822 2007-09-26  Vincent Celier  <celier@adacore.com>
824         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
826         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
827         Replace components Compiler_Min_Options and Binder_Min_Options with
828         Compiler_Required_Switches and Binder_Required_Switches in record
829         Language_Config.
830         Remove components Default_Language and Config in Project_Tree_Data,
831         no longer used.
833         * prj-attr.adb: New attributes Required_Switches (<language>) in
834         packages Compiler and Binder.
836         * prj-nmsc.adb: Major rewrite of the processing of configuration
837         attributes for gprbuild. No impact on GNAT tools.
839         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
840         process configuration attributes: this is done in Prj.Nmsc.Check.
841         (Recursive_Process): Make a full copy of packages inherited from project
842         being extended, instead of a shallow copy.
843         (Process_Project_Tree_Phase_1): New procedure
844         (Process_Project_Tree_Phase_1): New procedure
845         (Process): Implementation now uses the two new procedures
847         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
848         from the project config, not the tree config that no longer exists.
850 2007-09-26  Vincent Celier  <celier@adacore.com>
852         * Make-lang.in: Update dependencies..
854 2007-09-26  Vincent Celier  <celier@adacore.com>
856         * osint.adb, osint.ads: Minor reformatting
858         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
860 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
862         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
863         message to cite use of <> in aggregate component associations rather
864         than wrongly indicating use of limited aggregates.
866 2007-09-26  Robert Dewar  <dewar@adacore.com>
868         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
869         Address_Taken.
871 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
873         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
874         ancestor of the derived type, the operations are inherited from the
875         primary dispatch table of the parent.
876         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
877         when the context is an explicit type conversion.
879 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
881         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
882         rule for qualified expressions properly, to detect improper conversions
883         and resolve some cases of overloading.
885 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
887         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
888         proper kind of reference to the primitive operation, for better source
889         navigation.
890         (Valid_Conversion): A tagged conversion is legal if both operands are
891         tagged.
893 2007-09-26  Robert Dewar  <dewar@adacore.com>
895         * sem_warn.adb (Check_References): Catch more cases of unreferenced
896         packages.
898 2007-09-26  Vincent Celier  <celier@adacore.com>
900         * snames.adb, snames.ads: Change Include_Option to Include_Switches
902 2007-09-26  Robert Dewar  <dewar@adacore.com>
904         * s-wchstw.adb: provide messages for run time unit exceptions
906         * a-witeio.adb: Minor reformatting
908         * exp_ch13.adb: Minor reformatting
910 2007-09-26  Sergey Rybin  <rybin@adacore.com>
912         * vms_data.ads: Revise gnatmetric qualifiers.
913         Add qualified for the new gnatbind option '-y'
915         * gnat_ugn.texi: Revise the gnatmetric section.
916         Add entry for new gnatbind option '-y'.
918         * gnat_rm.texi: Minor spelling correction.
919         Document restriction on overlaying controlled types
921 2007-09-26  Vincent Celier  <celier@adacore.com>
923         * makegpr.adb (Link_Executables): Do not fail when the root project has
924         no sources, but is an extending project.
926 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
928         * trans.c: Fix misplaced #define.
930 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
932         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
933         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
935 2007-09-21  Olivier Hainque  <hainque@adacore.com>
937         * utils.c (type_for_nonaliased_component_p): Return false for
938         all AGGREGATE_TYPEs.
940 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
942         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
943         object covered by 13.3(19) volatile.
945 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
947         PR ada/26797
948         PR ada/32407
949         * utils.c (unchecked_convert): Use a subtype as the intermediate type
950         in the special VIEW_CONVERT_EXPR case.
952 2007-09-12  Robert Dewar  <dewar@adacore.com>
954         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
956         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
957         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
958         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
959         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
960         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
961         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
962         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
963         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
964         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
965         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
966         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
967         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
968         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
969         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
970         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
971         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
972         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
973         pragma Compiler_Unit and adds it to relevant library units.
975 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
977         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
978         a box need not correspond to any component.
980 2007-09-12  Robert Dewar  <dewar@adacore.com>
982         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
983         the tasking version of the Ada run time when foreign threads are
984         present and there are no explicit Ada tasks or tasking constructs.
986         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
988 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
990         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
991         the usage of switch -y.
993         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
994         when switch -y is present.
996         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
997         leap seconds in Ada.Calendar and its children.
999 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
1001         * a-extiti.ads (Timer): The discriminant is a "not null access
1002         constant" in the Reference Manual.
1003         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
1005 2007-09-12  Robert Dewar  <dewar@adacore.com>
1007         * a-swuwha.adb: Remove junk RM header
1009 2007-09-12  Vincent Celier  <celier@adacore.com>
1011         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
1012         indicator
1014         * g-bytswa.ads: Minor reformatting
1016 2007-09-12  Thomas Quinot  <quinot@adacore.com>
1018         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
1019         Add new constant Thread_Blocking_IO, always True by default, set False
1020         on a per-runtime basis.
1021         (Need_Netdb_Buffer): New constant.
1023 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
1025         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
1026         Added renames for corresponding functions in System.Partition_Interface.
1028 2007-09-12  Doug Rupp  <rupp@adacore.com>
1030         * Makefile.in: Remove VMS specific System.CRTL packages which are no
1031         longer needed.
1033         * s-crtl-vms64.ads: Removed.
1035 2007-09-12  Olivier Hainque  <hainque@adacore.com>
1037         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
1038         with discriminant constraints, generalize the code for BIT_FIELDs
1039         to PACKED fields of constant size and propagate DECL_PACKED.
1041 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
1043         * decl.c (array_type_has_nonaliased_component): New predicate.
1044         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
1045         set the TYPE_NONALIASED_COMPONENT flag on the type.
1046         <E_Array_Subtype>: Likewise.
1047         * gigi.h (type_for_nonaliased_component_p): Declare.
1048         * utils.c (type_for_nonaliased_component_p): New predicate.
1049         (create_field_decl): Invoke the above predicate to set the
1050         DECL_NONADDRESSABLE_P flag on the field.
1052 2007-09-11  Javier Miranda  <miranda@adacore.com>
1054         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
1055         in library level record type entities if we are generating statically
1056         allocated dispatch tables.
1058         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
1059         importing/exporting the _tag declaration by new code
1060         importing/exporting the dispatch table wrapper. This change allows us
1061         to statically allocate of the TSD.
1062         (Make_DT.Export_DT): New procedure.
1063         (Build_Static_DT): New function.
1064         (Has_DT): New function.
1066         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
1067         True_Constant and Current_Value. Required to statically
1068         allocate the dispatch tables.
1069         (Check_Allocator): Make function iterative instead of recursive.
1070         Also return inner allocator node, when present, so that we do not have
1071         to look for that node again in the caller.
1073 2007-09-11  Jan Hubicka <jh@suse.cz>
1075         * misc.c (gnat_expand_body): Kill.
1076         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
1078 2007-09-10  Robert Dewar  <dewar@adacore.com>
1080         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
1081         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1082         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1083         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
1084         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
1085         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
1086         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
1087         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
1088         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
1089         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
1090         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
1091         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
1092         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
1093         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
1094         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
1095         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
1096         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
1097         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
1098         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
1099         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
1100         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
1101         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
1102         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
1103         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
1104         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
1105         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
1106         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
1107         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
1108         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
1109         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
1110         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
1111         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
1112         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
1113         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
1114         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
1115         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
1116         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
1117         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
1118         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
1119         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
1120         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
1121         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
1122         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
1123         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
1124         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
1125         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
1126         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
1127         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
1128         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
1129         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
1130         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
1131         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
1132         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
1133         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
1134         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
1135         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
1136         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
1137         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
1138         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1139         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
1140         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
1141         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
1142         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
1143         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
1144         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
1145         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
1146         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
1147         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
1148         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
1149         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
1150         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
1151         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
1152         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
1153         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
1154         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
1155         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
1156         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
1157         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
1158         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
1159         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
1160         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
1161         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
1162         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
1164 2007-09-10  Emmanuel Briot  <briot@adacore.com>
1166         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
1167         classes ("[]").
1169 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
1171         * adaint.c (__gnat_translate_vms): new function.
1173 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
1174             Thomas Quinot  <quinot@adacore.com>
1176         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
1177         create an abstract subprogram in the case of 'Input. For 'Output we now
1178         create a real spec/body when the type is abstract, since it can
1179         potentially be called.
1180         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
1181         body for 'Output when the type is abstract (only the creation of the
1182         body for 'Input is excluded when the type is abstract).
1183         (Stream_Operation_OK): Add an additional condition in the return
1184         statement, so that False will be returned for TTS_Stream_Input if the
1185         associated tagged type is an abstract extension. Add comments for
1186         return statement.
1187         (Expand_N_Object_Declaration): For the case of a shared passive
1188         variable, insert init proc call only after the shared variable
1189         procedures have been processed, because the IP call needs to undergo
1190         shared passive variable reference expansion, which requires these
1191         procedures to be available (and elaborated).
1193 2007-09-10  Vincent Celier  <celier@adacore.com>
1195         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
1196         parameter Runtime_Project.
1198 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
1200         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
1201         given a box association, the type of the component is discriminated,
1202         and the value of the discriminant is the discriminant of the enclosing
1203         type, retrieve its value from the aggregate itself, where it must have
1204         been supplied.
1206         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
1207         to remove other spurious ambiguities on arithmetic operations involving
1208         literals and addresses, on systems where Address is a visible integer
1209         type, when the operator is called in functional notation.
1210         (Try_Primitive_Operation): Within an instance, a call in prefixed form
1211         is legal when the types match, even if the operation is currently
1212         hidden.
1214 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
1216         * sem_ch12.adb (Build_Local_Package): A formal package with no
1217         associations is legal if all formals have defaults. It is not
1218         equivalent to a formal declared with a box.
1220 2007-09-10  Sergey Rybin  <rybin@adacore.com>
1222         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
1224 2007-09-10  Sergey Rybin  <rybin@adacore.com>
1226         * gnat_ugn.texi: Add description of the new '-lratio' option
1227         Update 7.3.1 section about availability of the feature.
1229 2007-09-10  Thomas Quinot  <quinot@adacore.com>
1231         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
1232         inserted node.
1234 2007-09-10  Olivier Hainque  <hainque@adacore.com>
1236         * Makefile.in: (mips-irix section): Activate build of libgmem.
1238 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
1240         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
1241         x87 registers.
1243 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
1245         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
1246         a debug renaming declaration specially.
1248 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1250         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
1251         which a constant renaming is treated as a normal object declaration.
1252         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
1253         the N_Indexed_Component case.
1254         <N_Indexed_Component>: Fall through to above case.
1255         <N_Object_Renaming_Declaration>: Return true for all composite types.
1257 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1259         * decl.c (make_packable_type): If the new type has been given BLKmode,
1260         try again to get an integral mode for it.
1262 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
1264         Re-apply accidentally reverted change:
1266         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
1268         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
1269         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
1270         and _Unwind_SWord with _sleb128_t.
1272 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
1274         * trans.c (convert_with_check): Update call to real_2expN.
1276 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
1278         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
1279         * utils.c (end_subprog_body): Likewise.
1281 2007-09-03  Nick Clifton  <nickc@redhat.com>
1283         * Make-lang.in: Change copyright header to refer to version 3 of
1284         the GNU General Public License and to point readers at the
1285         COPYING3 file and the FSF's license web page.
1286         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
1287         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
1288         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
1289         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
1290         Likewise.
1292 2007-08-31  Vincent Celier  <celier@adacore.com>
1294         PR ada/4720
1296         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
1297         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
1298         (Check_Version_And_Help): New procedure in package Switch to process
1299         switches --version and --help.
1300         Use Check_Version_And_Help in GNAT tools
1302         * make.adb:  Ditto.
1303         (Compile_Sources): Make sure that sources that are "excluded" are not
1304         compiled.
1305         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
1306         project file is used.
1307         (Version_Switch): Remove, moved to Switch
1308         (Help_Switch): Remove, moved to Switch
1309         (Display_Version): Remove, moved to Switch
1311         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
1312         package Switch to process switches --version and --help.
1313         (Display_Version): New procedure
1315         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
1317 2007-08-31  Javier Miranda  <miranda@adacore.com>
1319         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
1320         internal tags.
1322 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
1324         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
1325         (Mark_Non_Null): If the node for which we just generated an access check
1326         is a reference to an *in* parameter and the reference appears in the
1327         declarative part of a subprogram body, mark the node as known non null.
1329 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
1331         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
1332         structure of E_Exception to reflect the new flag.
1333         (Is_Raised, Set_Is_Raised): New inlined routines.
1334         Update the usage of available flag to reflect the addition of Is_Raised.
1335         (Is_Raised, Set_Is_Raised): Bodies of new routines.
1336         (Write_Entity_Flags): Write the status of flag Is_Raised.
1337         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
1338         spurious ambiguities when integer literals appear in the context of an
1339         address type that is a visible integer type.
1341         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
1342         exceptions never being raised.
1343         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
1344         explicitly raised.
1346 2007-08-31  Javier Miranda  <miranda@adacore.com>
1348         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
1349         statement when compiling under restriction No_Exceptions_Proparation.
1351 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
1353         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
1354         initialization aggregate for the type, generate itype references for
1355         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
1357 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
1359         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
1360         library-level package renaming, pass the declaration associated with
1361         the renaming's special debug variable to Qualify_Entity_Names to ensure
1362         that its encoded name is properly qualified.
1364         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
1365         occurring in the list of entities to qualify, and do not attempt to
1366         traverse an entity list in that case. Variables associated with
1367 `       library-level package renamings can now occur in the table.
1369         * exp_dbug.ads: Revise documentation of the encoding for renaming
1370         declarations.
1372 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1374         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
1375         access type points to an unconstrained array.
1377 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
1379         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
1380         conversion.
1382         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
1383         simple redundant qualifications. The check is performed whenever the
1384         expression is a non-overloaded identifier.
1385         (Resolve_Type_Conversion): Enchance the redundant type conversion check
1386         to include loop parameters.
1387         (Valid_Conversion): Avoid generation of spurious error message.
1389 2007-08-31  Bob Duff  <duff@adacore.com>
1391         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
1392         concatenations of string literals into a single literal, in order to
1393         avoid very deep recursion in the front end, which was causing stack
1394         overflow.
1396         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
1397         string, and the right operand is a string literal (the case of "" &
1398         "..."), optimize by avoiding copying the right operand -- just use the
1399         value of the right operand directly.
1401         * stringt.adb (Store_String_Chars): Optimize by growing the
1402         String_Chars table all at once, rather than appending characters one by
1403         one.
1404         (Write_String_Table_Entry): If the string to be printed is very long,
1405         just print the first few characters, followed by the length. Otherwise,
1406         doing "pn(n)" in the debugger can take an extremely long time.
1408         * sem_prag.adb (Process_Interface_Name): Replace loop doing
1409         Store_String_Char with Store_String_Chars.
1411 2007-08-31  Vincent Celier  <celier@adacore.com>
1413         * prj-attr.adb: Add new attribute Excluded_Source_Files
1415         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
1416         Locally_Removed_Files.
1418         * snames.ads, snames.adb: New standard name Excluded_Source_Files
1420 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
1422         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
1423         clauses of subunits, ignore limited_with_clauses that are illegal and
1424         have not been fully analyzed.
1426 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
1428         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
1429         flag, for effiency. It is called when analyzing arithmetic operators
1430         and also for actuals in calls that are universal_integers. The flag is
1431         set for the predefined type address, and for any type or subtype
1432         derived from it.
1434         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
1435         Universal_Integer, when the formal is a descendent of address and the
1436         call appears in user code.
1437         (Analyze_Selected_Component): if the prefix is a private extension, the
1438         tag component is visible.
1440         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
1441         entity flag.
1443 2007-08-31  Robert Dewar  <dewar@adacore.com>
1445         * s-fileio.adb (Open): Normalize file name to lower case in non-case
1446         sensitive file name systems to avoid unexpected mismatch in Vista.
1448 2007-08-31  Vincent Celier  <celier@adacore.com>
1450         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
1452 2007-08-31  Vincent Celier  <celier@adacore.com>
1454         * symbols-vms.adb (Initialize): Read symbol files with continuation
1455         lines
1456         (Finalize): If symbol is long, split the line
1458 2007-08-31  Vincent Celier  <celier@adacore.com>
1460         * fmap.ads: Minor comment updates
1462 2007-08-31  GNAT Script  <nobody@adacore.com>
1464         * Make-lang.in: Makefile automatically updated
1466 2007-08-31  Bob Duff  <duff@adacore.com>
1468         * sinfo.ads: Minor comment fix.
1470 2007-08-31  Thomas Quinot  <quinot@adacore.com>
1472         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
1473         with implementation.
1474         Documentation cleanup only.
1476 2007-08-31  Sergey Rybin  <rybin@adacore.com>
1478         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
1479         gnatpp '--separate-stmt-name' option.
1480         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
1481         option.
1483         * gnat_ugn.texi: Add description for the new gnatpp
1484         '--separate-stmt-name' and '--use-on-new-line' options.
1486 2007-08-31  Ben Elliston  <bje@au.ibm.com>
1488         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
1489         when compiling for powerpc64-*-linux.
1490         * system-linux-ppc64.ads: New file.
1492 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
1494         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
1495         NetBSD.
1497 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1499         * misc.c (gnat_type_max_size): Constify.
1501 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
1503         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
1504         associated with Standard_Debug_Renaming_Type, to be used as the type of
1505         the special variables whose names provide debugger encodings for
1506         renaming declarations.
1508         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
1509         (Set_Debug_Renaming_Link): Change to set Node25.
1510         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
1511         (Write_Field25_Name): Add case for E_Variable to output
1512         "Debug_Renaming_Link".
1513         (Write_Field23_Name): Correct the output string for "Limited_View".
1515         * exp_dbug.adb: Add with and use of Tbuild.
1516         (Debug_Renaming_Declaration): Replace creation of an enumeration type
1517         and literal with creation of a variable of type
1518         Standard_Debug_Renaming_Type whose name encodes both the renamed object
1519         and the entity of the renaming declaration.
1520         (Qualify_Entity_Name): Add the delayed qualification of the entity name
1521         part of the name of a variable that has a Debug_Renaming_Link.
1523         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
1524         special type to be associated with variables that provide debugger
1525         encodings for renaming declarations.
1527 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
1528             Ed Schonberg  <schonberg@adacore.com>
1529             Javier Miranda  <miranda@adacore.com>
1531         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
1532         ancestor part given by an aggregate to test for an unchecked conversion,
1533         since this can occur in some cases when the ancestor part is a function
1534         call, and we don't want to fall into the recursive call to this
1535         procedure in that case.
1537         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
1538         stream attributes on limited types to account for user-specified
1539         attributes as well as whether Input (resp. Output) becomes available
1540         due to Read (resp. Write) being available for the type. Change Boolean
1541         variable to the more accurate name
1542         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
1543         double-"not" predicate at beginning of return statement to more
1544         understandable form.
1546         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
1547         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
1548         in a block statement and use that as the first statement of the
1549         expanded return rather than incorrectly using the handled sequence as
1550         the first statement.
1552         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
1553         operation, generate an explicit freeze node for it rather than
1554         generating extra formals, to ensure that gigi has the proper order of
1555         elaboration for anonymous subtypes in the signature of the subprograms.
1556         (Build_In_Place_Formal): Move assertion to beginning of loop.
1557         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
1558         applied to a function call (occurs for some cases of 'Input).
1559         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
1560         applied to a function call (occurs for some cases of 'Input).
1562         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
1563         2005, generate an extended return statement enclosing the result object
1564         and 'Read call.
1566         * freeze.adb (Freeze_Record_Type): Extend the current management of
1567         components that are access type with an allocator as default value: add
1568         missing support to the use of qualified expressions of the
1569         allocator (which also cause freezing of the designated type!)
1570         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
1571         dispatching operation, since extra formals may be needed by calls to
1572         build-in-place functions (such as stream 'Input).
1574         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
1575         formals for 'Constrained and accessibility level in the case of a
1576         predefined dispatching operation.
1578         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
1579         point, no need to find the parent node.
1581 2007-08-16  Javier Miranda  <miranda@adacore.com>
1583         * exp_attr.adb (Attribute_Priority): Add missing support for entries
1584         and entry barriers.
1586 2007-08-16  Javier Miranda  <miranda@adacore.com>
1588         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
1589         is not really required and can introduce regression with the debugger.
1590         The original problem is fixed with the patch written for checks.adb.
1592 2007-08-16  Thomas Quinot  <quinot@adacore.com>
1594         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
1595         Range_Check on Allocated_Table.
1597 2007-08-16  Vincent Celier  <celier@adacore.com>
1599         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
1600         Including_Non_Switch set to False.
1601         (Gnatmake): For the compiler, call Test_If_Relative_Path with
1602         Including_Non_Switch set to False.
1604         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
1605         parameter Including_Non_Switch, defaulted to True. When
1606         Including_Non_Switch is False, options that are not switches and
1607         appear as relative path are not converted to absolute paths.
1609 2007-08-16  Nicolas Roche  <roche@adacore.com>
1611         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
1612         makefiles
1614         * Make-lang.in: Update dependencies
1616 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
1618         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
1619         currently inspected is a selected component, retrieve the entity of
1620         its selector.
1621         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
1622         from the immediate ancestor of Main_Unit_Entity.
1623         (Install_Limited_Withed_Unit): Do not install the limited view of
1624         package P if P is reachable through an ancestor chain from package C
1625         and C also has a with clause for P in its body.
1626         (Has_Limited_With_Clause): New routine.
1627         (Has_With_Clause): New routine.
1629 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
1631         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
1632         generic for an enclosing instance is a global reference, even though
1633         its scope is the enclosing instance.
1635 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
1636             Javier Miranda  <miranda@adacore.com>
1638         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
1639         initialize a limited object.
1640         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
1641         13/2 and 14/2.
1642         Make sure Has_Complex_Representation is inherited by derived type.
1644 2007-08-16  Robert Dewar  <dewar@adacore.com>
1646         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
1647         exception case
1649 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
1651         * sem_disp.adb (Check_Dispatching_Operation): If the operation
1652         implements an operation inherited from a progenitor interface, verify
1653         that they are subtype-conformant.
1655 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
1656             Bob Duff  <duff@adacore.com>
1657             Nicolas Setton  <setton@adacore.com>
1659         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
1660         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
1661         the statement which is being resolved comes from a predefined library
1662         unit, all non-predefined library interpretations are skipped.
1663         (Resolve_Op_Concat): If string concatenation was folded in the parser,
1664         but the "&" is user defined, give an error, because the folding would
1665         be wrong.
1667         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
1668         the parser has folded a long sequence of concatenations of string
1669         literals.
1671         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
1672         and "JMP_BUF" variables as artificial.
1673         (N_String_Literal): Do not use alloca for very long string literals. Use
1674         xmalloc/free instead. Otherwise the stack might overflow.
1676         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
1677         compiler.
1679 2007-08-16  Vincent Celier  <celier@adacore.com>
1681         * vms_conv.adb (Process_Argument): Ensure that project related options
1682         are not put in the -cargs section when using GNAT COMPILE.
1684 2007-08-16  Robert Dewar  <dewar@adacore.com>
1686         * gnat_ugn.texi: Add note on preprocessing (output file not written)
1688 2007-08-16  Thomas Quinot  <quinot@adacore.com>
1690         * a-tags.adb: Minor reformatting.
1692 2007-08-16  Bob Duff  <duff@adacore.com>
1694         * sem_type.ads, sem_ch4.adb: Minor reformatting.
1696 2007-08-14  Thomas Quinot  <quinot@adacore.com>
1698         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
1699         s-osinte-interix.ads, system-interix.ads: Removed.
1701 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
1703         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
1704         calls to Check_Within_Time_Bounds.
1705         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
1706         (Difference): Account for possible rounding of the resulting difference
1708 2007-08-14  Robert Dewar  <dewar@adacore.com>
1710         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
1711         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
1712         s-osinte-solaris.adb, s-osinte-solaris.ads,
1713         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
1715         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
1716         switch -gnatyS. Enable -gnatyS in GNAT style check mode
1718 2007-08-14  Robert Dewar  <dewar@adacore.com>
1719             Ed Schonberg  <schonberg@adacore.com>
1721         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
1722         Suppress unmodified in-out parameter warning in some cases
1723         This patch is a also fairly significant change to the way suppressible
1724         checks are handled.
1726         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
1727         needed for access to concurrent record types generated by the expander.
1728         (Generate_Range_Check): When generating a temporary to capture the
1729         value of a conversion that requires a range check, set the type of the
1730         temporary before rewriting the node, so that the type is always
1731         properly placed for back-end use.
1732         (Apply_Float_Conversion_Check): Handle case where the conversion is
1733         truncating.
1734         (Get_Discriminal): Code reformatting. Climb the scope stack looking
1735         for a protected type in order to examine its discriminants.
1737 2007-08-14  Robert Dewar  <dewar@adacore.com>
1738             Gary Dismukes  <dismukes@adacore.com>
1739             Ed Schonberg  <schonberg@adacore.com>
1740             Thomas Quinot  <quinot@adacore.com>
1742         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
1743         a-stwisu.adb, a-strsup.adb: Fix warnings for range
1744         tests optimized out.
1746         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
1747         (Get_Allocator_Final_List): For the case of an anonymous access type
1748         that has a specified Associated_Final_Chain, do not go up to the
1749         enclosing scope.
1750         (Expand_N_Type_Conversion): Test for the case of renamings of access
1751         parameters when deciding whether to apply a run-time accessibility
1752         check.
1753         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
1754         aggregate code before allocator, and ahead of declaration for
1755         temporary, to prevent access before elaboration when the allocator is
1756         an actual for an access parameter.
1757         (Expand_N_Type_Conversion): On an access type conversion involving an
1758         access parameter, do not apply an accessibility check when the
1759         operand's original node was an attribute other than 'Access. We now
1760         create access conversions for the expansion of 'Unchecked_Access and
1761         'Unrestricted_Access in certain cases and clearly accessibility should
1762         not be checked for those.
1764         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
1765         includes a type conversion of a packed component that has been expanded,
1766         recover the original expression for the object, and use this expression
1767         in the post-call assignment statement, so that the assignment is made
1768         to the object and not to a back-end temporary.
1769         (Freeze_Subprogram): In case of primitives of tagged types not defined
1770         at the library level force generation of code to register the primitive
1771         in the dispatch table. In addition some code reorganization has been
1772         done to leave the implementation clear.
1773         (Expand_Call): When expanding an inherited implicit conversion,
1774         preserve the type of the inherited function after the intrinsic
1775         operation has been expanded.
1777         * exp_ch2.ads, exp_ch2.adb
1778         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
1779         of an entry formal appearing in an assignment statement does not assign
1780         to the formal.
1781         (Expand_Current_Value): Instead of calling a routine to determine
1782         whether the prefix of an attribute reference should be optimized or
1783         not, prevent the optimization of such prefixes all together.
1785         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
1786         component whose prefix is known to be of an access type is an implicit
1787         dereference and does not assign to the prefix.
1789 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
1790             Robert Dewar  <dewar@adacore.com>
1792         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
1793         itype is visited, make an entry into table to link associated node and
1794         new itype.
1795         Add comments and correct harmless error in Build_NCT_Hash_Tables
1796         (Array_Aggr_Subtype): Associate each itype created for an index type to
1797         the corresponding range construct, and not to the aggregate itself. to
1798         maintain a one-to-one correspondence between itype and its associated
1799         node, to prevent errors when complex expression is copied.
1800         Fix mishandling of multiple levels of parens
1802         * sem_aggr.adb: Create a limited view of an incomplete type, to make
1803         treatment of limited views uniform for all visible declarations in a
1804         limited_withed package.
1805         (New_Copy_Tree): If hash table is being used and itype is visited,
1806         make an entry into table to link associated node and new itype.
1807         (Resolve_Record_Aggregate): Do not add an others box association for a
1808         discriminated record component that has only discriminants, when there
1809         is a box association for the component itself.
1811         * par-ch4.adb: Fix mishandling of multiple levels of parens
1813 2007-08-14  Robert Dewar  <dewar@adacore.com>
1815         * comperr.adb: Fix problem with suppressing warning messages from gigi
1817         * erroutc.ads, erroutc.adb, errout.ads, 
1818         errout.adb (Write_Eol): Remove trailing spaces before writing the line
1819         (Write_Eol_Keep_Blanks): New procedure to write a line, including
1820         possible trailing spaces.
1821         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1822         Fix problem with suppressing warning messages from back end
1823         Improve handling of deleted warnings
1825         * gnat1drv.adb: 
1826         Fix problem with suppressing warning messages from back end
1827         Handle setting of Static_Dispatch_Tables flag.
1829         * prepcomp.adb: 
1830         Fix problem with suppressing warning messages from back end
1832         * exp_intr.adb: Improve handling of deleted warnings
1834 2007-08-14  Robert Dewar  <dewar@adacore.com>
1836         * debug.adb: Improve -gnatdI to cover all cases of serialization
1837         Add documentation of dZ, d.t
1839         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
1840         serialization.
1841         (Sprint_Node_Actual): Generate new output associated with implicit
1842         importation and implicit exportation of object declarations.
1844 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
1845             Robert Dewar  <dewar@adacore.com>
1846             Javier Miranda  <miranda@adacore.com>
1847             Gary Dismukes  <dismukes@adacore.com>
1849         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
1850         to make treatment of limited views uniform for all visible declarations
1851         in a limited_withed package.
1852         Improve warnings for in out parameters
1853         (Set_Related_Interaface/Related_Interface): Allow the use of this
1854         attribute with constants.
1855         (Write_Field26_Name): Handle attribute Related_Interface in constants.
1856         Warn on duplicate pragma Preelaborable_Initialialization
1858         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
1859         generation of a freezing node to ensure proper management of null
1860         excluding access types in the backend.
1861         (Create_Extra_Formals): Test base type of the formal when checking for
1862         the need to add an extra accessibility-level formal. Pass the entity E
1863         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
1864         originally being done in a couple of cases), to ensure that the
1865         Extra_Formals list gets set on the entity E when the first entity is
1866         added.
1867         (Conforming_Types): Add missing calls to Base_Type to the code that
1868         handles anonymous access types. This is required to handle the
1869         general case because Process_Formals builds internal subtype entities
1870         to handle null-excluding access types.
1871         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1872         functions that need it, even when not marked Requires_Overriding.
1873         Improve warnings for in out parameters
1874         (Analyze_Function_Return): Warn for disallowed null return
1875         Warn on return from procedure with unset out parameter
1876         Ensure consistent use of # in error messages
1877         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
1878         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
1879         the implicit conversion of the expression done for anonymous access
1880         types. This is required to generate the code of the null excluding
1881         check (if required).
1883         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
1884         A formal parameter is never publicly referenceable outside of its body.
1885         (Check_References): For an unreferenced formal parameter in an accept
1886         statement, use the same warning circuitry as for subprogram formal
1887         parameters.
1888         (Warn_On_Unreferenced_Entity): New subprogram, taken from
1889         Output_Unreferenced_Messages, containing the part of that routine that
1890         is now reused for entry formals as described above.
1891         (Goto_Spec_Entity): New function
1892         (Check_References): Do not give IN OUT warning for dispatching operation
1893         Improve warnings for in out parameters
1894         (Test_Ref): Check that the entity is not undefinite before calling
1895         Scope_Within, in order to avoid infinite loops.
1896         Warn on return from procedure with unset out parameter
1897         Improved warnings for unused variables
1899 2007-08-14  Robert Dewar  <dewar@adacore.com>
1900             Javier Miranda  <miranda@adacore.com>
1901             Gary Dismukes  <dismukes@adacore.com>
1903         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
1904         (Expand_N_Attribute_Reference): Further unify the handling of the
1905         three forms of access attributes, using common code now for all three
1906         cases. Add a test for the case of applying an access attribute to
1907         an explicit dereference when the context is an access-to-interface
1908         type. In that case we need to apply the conversion to the prefix
1909         of the explicit dereference rather than the prefix of the attribute.
1910         (Attribute_Version, UET_Address): Set entity as internal to ensure
1911         proper dg output of implicit importation.
1912         (Expand_Access_To_Type): Removed.
1913         (Expand_N_Attribute_Reference): Merge the code from the three cases
1914         of access attributes, since the processing is largely identical for
1915         these cases. The substantive fix here is to process the case of a
1916         type name prefix (current instance case) before handling the case
1917         of interface prefixes.
1919 2007-08-14  Thomas Quinot  <quinot@adacore.com>
1920             Ed Schonberg  <schonberg@adacore.com>
1921             Javier Miranda  <miranda@adacore.com>
1922             Robert Dewar  <dewar@adacore.com>
1924         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
1925         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
1926         type that is an anonymous access to controlled object, establish
1927         an associated finalization chain to avoid corrupting the global
1928         finalization list when a dynamically allocated object designated
1929         by such a component is deallocated.
1930         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1931         functions that need it, even when not marked Requires_Overriding.
1932         (Initialize_Tag): Replace call to has_discriminants by call to
1933         Is_Variable_Size_Record in the circuitry that handles the
1934         initialization of secondary tags.
1935         (Is_Variable_Size_Record): New implementation.
1936         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
1937         Suppress_Initialization pragma for a derived type.
1938         (Is_Variable_Size_Record): New subprogram.
1939         (Build_Offset_To_Top_Functions): New implementation that simplifies the
1940         initial version of this routine and also fixes problems causing
1941         incomplete initialization of the table of interfaces.
1942         (Build_Init_Procedure): Improve the generation of code to initialize the
1943         the tag components of secondary dispatch tables.
1944         (Init_Secondary_Tags): New implementation that simplifies the previous
1945         version of this routine.
1946         (Make_DT): Add parameter to indicate when type has been frozen by an
1947         object declaration, for diagnostic purposes.
1948         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
1949         diagnose attemps to freeze a subprogram when some untagged type of its
1950         profile is a private type whose full view has not been analyzed yet.
1951         (Freeze_Array_Type): Generate init proc for packed array if either
1952         Initialize or Normalize_Scalars is set.
1953         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
1954         constructing the new profile, copy the null_exclusion indicator for each
1955         parameter, to ensure full conformance of the new body with the spec.
1957         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
1958         Create wrappers for constructor functions that need it, even when not
1959         marked Requires_Overriding.
1960         (Covers): Handle properly designated types of anonymous access types,
1961         whose non-limited views are themselves incomplete types.
1962         (Add_Entry): Use an entity to store the abstract operation which hides
1963         an interpretation.
1964         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
1965         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
1966         initialization aggregate.
1967         (Function_Interp_May_Be_Hidden): Rename to
1968         Function_Interp_Has_Abstract_Op.
1969         (Has_Compatible_Type): Remove machinery that skips interpretations if
1970         they are labeled as potentially hidden by an abstract operator.
1971         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
1972         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
1973         (Write_Overloads): Output the abstract operator if present.
1974         (Add_Entry): Before inserting a new entry into the interpretation table
1975         for a node, determine whether the entry will be disabled by an abstract
1976         operator.
1977         (Binary_Op_Interp_May_Be_Hidden): New routine.
1978         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
1979         aggregate.
1980         (Function_Interp_May_Be_Hidden): New routine.
1981         (Has_Compatible_Type): Do not consider interpretations hidden by
1982         abstract operators when trying to determine whether two types are
1983         compatible.
1984         (Has_Hidden_Interp): New routine.
1985         (Set_May_Be_Hidden_Interp): New routine.
1986         (Write_Overloads): Write the status of flag May_Be_Hidden.
1988 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
1989             Javier Miranda  <miranda@adacore.com>
1991         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
1992         types declared in the declarative part of a nested package body or in
1993         the proper body of a stub.
1994         (Set_All_DT_Position): Add missing check to avoid wrong assignation
1995         of the same dispatch table slot to renamed primitives.
1996         (Make_Select_Specific_Data_Table): Handle private types.
1997         (Tagged_Kind): Handle private types.
1998         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
1999         output of implicit importation and exportation.
2000         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
2001         first formal of the thunk is always associated with the controlling
2002         type. In addition perform the following code cleanup: remove formal
2003         Thunk_Alias which is no longer required, cleanup evaluation of the
2004         the controlling type, and update the documentation.
2005         Replace occurrence of Default_Prim_Op_Count by
2006         Max_Predef_Prims. Addition of compile-time check to verify
2007         that the value of Max_Predef_Prims is correct.
2008         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
2009         (Make_DT): Add parameter to indicate when type has been frozen by an
2010         object declaration, for diagnostic purposes.
2011         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
2012         construction of statically allocated dispatch tables.
2013         (Make_DT): In case of library-level tagged types export the declaration
2014         of the primary tag. Remove generation of tags (now done by Make_Tags).
2015         Additional modifications to handle non-static generation of dispatch
2016         tables. Take care of building tables for asynchronous interface types
2017         (Make_Tags): New subprogram that generates the entities associated with
2018         the primary and secondary tags of Typ and fills the contents of Access_
2019         Disp_Table. In case of library-level tagged types imports the forward
2020         declaration of the primary tag that will be declared later by Make_DT.
2021         (Expand_Interface_Conversion): In case of access types to interfaces
2022         replace an itype declaration by an explicit type declaration to avoid
2023         problems associated with the scope of such itype in transient blocks.
2025 2007-08-14  Robert Dewar  <dewar@adacore.com>
2026             Ed Schonberg  <schonberg@adacore.com>
2027             Javier Miranda  <miranda@adacore.com>
2029         * exp_util.ads, exp_util.adb: 
2030         This patch replaces a number of occurrences of explicit tests for N_Null
2031         with calls to Known_Null. This improves tracking of null values, since
2032         Known_Null also catches null constants, and variables currently known to
2033         be null, so we get better tracking.
2034         (Ensure_Defined): create an itype reference only in the scope of the
2035         itype.
2036         (Side_Effect_Free): A selected component of an access type that
2037         denotes a component with a rep clause must be treated as not
2038         side-effect free, because if it is part of a linked structure its
2039         value may be affected by a renaming.
2040         (Expand_Subtype_From_Expr): For limited objects initialized with build
2041         in place function calls, do nothing; otherwise we prematurely introduce
2042         an N_Reference node in the expression initializing the object, which
2043         breaks the circuitry that detects and adds the additional arguments to
2044         the called function. Bug found working in the new patch for statically
2045         allocated dispatch tables.
2046         (Is_Library_Level_Tagged_Type): New subprogram.
2047         (Remove_Side_Effects): If the expression of an elementary type is an
2048         operator treat as a function call.
2049         (Make_Literal_Range): If the index type of the array is not integer, use
2050         attributes properly to compute the constraint on the resulting aggregate
2051         which is a string.
2053         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
2054         class-wide type whose base type is an incomplete private type, leave
2055         class-wide type unfrozen so that freeze nodes can be generated
2056         properly at a later point.
2057         (Freeze_Entity, array case): Handle case of pragma Pack and component
2058         size attributre clause for same array.
2060 2007-08-14  Vincent Celier  <celier@adacore.com>
2062         * prj.ads, prj.adb: Update Project Manager to new attribute names for
2063         gprbuild.
2064         Allow all valid declarations in configuration project files
2065         (Reset): Initialize all tables and hash tables in the project tree data
2066         Major update of the Project Manager and of the project aware tools,
2067         including gprmake, so that the same sources in the GNAT repository
2068         can be used by gprbuild.
2069         (Slash_Id): Change type to be Path_Name_Type
2070         (Slash): Return a Path_Name_Type instead of a File_Name_Type
2072         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
2073         gprbuild.
2074         Update Project Manager to new attribute names for ghprbuild
2075         Allow all valid declarations in configuration project files
2076         Major update of the Project Manager and of the project aware tools,
2077         including gprmake, so that the same sources in the GNAT repository
2078         can be used by gprbuild.
2080         * prj-com.ads: 
2081         Major update of the Project Manager and of the project aware tools,
2082         including gprmake, so that the same sources in the GNAT repository
2083         can be used by gprbuild.
2085         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
2086         insensitive flag for attributes with optional index.
2087         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
2088         array attribute, put the index in lower case.
2089         Update Project Manager to new attribute names for ghprbuild
2090         Allow all valid declarations in configuration project files
2091         Major update of the Project Manager and of the project aware tools,
2092         including gprmake, so that the same sources in the GNAT repository
2093         can be used by gprbuild.
2095         * prj-env.ads, prj-env.adb: 
2096         Major update of the Project Manager and of the project aware tools,
2097         including gprmake, so that the same sources in the GNAT repository
2098         can be used by gprbuild.
2099         (Get_Reference): Change type of parameter Path to Path_Name_Type
2101         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
2102         removing '-' from the path to start with the first character of the
2103         next directory.
2104         Major update of the Project Manager and of the project aware tools,
2105         including gprmake, so that the same sources in the GNAT repository
2106         can be used by gprbuild.
2107         Major update of the Project Manager and of the project aware tools,
2108         including gprmake, so that the same sources in the GNAT repository
2109         can be used by gprbuild.
2111         * prj-nmsc.ads, prj-nmsc.adb: 
2112         Update Project Manager to new attribute names for ghprbuild
2113         Allow all valid declarations in configuration project files
2114         (Search_Directories): Detect subunits that are specified with an
2115         attribute Body in package Naming. Do not replace a source/unit in the
2116         same project when the order of the source dirs are known. Detect
2117         duplicate sources/units in the same project when the order of the
2118         source dirs are not known.
2119         (Check_Ada_Name): Allow all identifiers that are not reserved words
2120         in Ada 95.
2121         Major update of the Project Manager and of the project aware tools,
2122         including gprmake, so that the same sources in the GNAT repository
2123         can be used by gprbuild.
2124         (Look_For_Sources): If the list of sources is empty, set the object
2125         directory of non extending project to nil.
2126         Change type of path name variables to be Path_Name_Type
2127         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
2128         otherwise creating missing directories will fail.
2130         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
2131         prj-part.ads, prj-part.adb:
2132         Major update of the Project Manager and of the project aware tools,
2133         including gprmake, so that the same sources in the GNAT repository
2134         can be used by gprbuild.
2136         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
2137         insensitive flag for attributes with optional index.
2138         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
2139         array attribute, put the index in lower case.
2140         (Parse_Variable_Reference): Allow the current project name to be used in
2141         the prefix of an attribute reference.
2143         * prj-util.ads, prj-util.adb
2144         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
2145         defaulted to False. When True, always check against indexes in lower
2146         case.
2148         * snames.ads, snames.h, snames.adb: 
2149         Update Project Manager to new attribute names for gprbuild
2150         Allow all valid declarations in configuration project files
2152 2007-08-14  Robert Dewar  <dewar@adacore.com>
2153             Ed Schonberg  <schonberg@adacore.com>
2155         * opt.ads: Warning for non-local exception propagation now off by
2156         default
2157         New switch -gnatI to disable representation clauses
2158         Implement new pragma Implicit_Packing
2160         * usage.adb: 
2161         Warning for non-local exception propagation now off by default
2162         Add warning for unchecked conversion of pointers wi different
2163         conventions.
2164         New switch -gnatI to disable representation clauses
2166         * usage.adb: new switch -gnatyS
2168         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
2169         note that aggregates of anonymous array types are not flagged.
2170         -gnatwc now includes membership tests optimized away
2171         -gnatw.x warnings are now off by default
2172         Added conditional compilation Appendix
2173         Add documentation of -gnatI
2174         Add documentation for new -gnatyS style check
2175         Update documentation about SAL and auto-init on Windows.
2177         * gnat_rm.texi: 
2178         Add documentation for pragma Check_Name and 'Enabled attribute
2179         Document that Eliminate on dispatching operation is ignored
2180         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
2181         Document pragma Main
2182         Document pragma Implicit_Packing
2184         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
2185         different conventions
2186         New switch -gnatI to disable representation clauses
2188         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
2189         recognized, report the invalid characters including "-gnat" instead of
2190         just the first character in the switch.
2191         New switch -gnatI to disable representation clauses
2192         Set Warn_On_Object_Renames_Function true for -gnatg
2194         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
2195         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
2196         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
2197         to switch -aP (add directory to project search dir).
2199         * par-prag.adb: Implement new pragma Implicit_Packing
2201         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
2202         type as having a non-standard representation, to force expansion on
2203         conversion to related types.
2204         (Analyze_Pragma): Warn on misspelled pragma
2205         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
2206         Ensure consistent use of # in error messages
2207         Implement pragma Implicit_Packing
2209 2007-08-14  Olivier Hainque  <hainque@adacore.com>
2210             Eric Botcazou  <ebotcazou@adacore.com>
2212         * targtyps.c (get_target_maximum_default_alignment): New function.
2213         Maximum alignment
2214         that the compiler might choose by default for a type or object.
2215         (get_target_default_allocator_alignment): New function. Alignment known
2216         to be honored by the target default allocator.
2217         (get_target_maximum_allowed_alignment): New function. Maximum alignment
2218         we might accept for any type or object on the target.
2219         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
2221         * gigi.h (get_target_maximum_default_alignment): Declare new function.
2222         (get_target_default_allocator_alignment): Likewise.
2223         (get_target_maximum_allowed_alignment): Likewise.
2225         PR ada/19037
2226         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
2227         result of a function call, first try to use a stabilized reference for
2228         a constant renaming too.
2229         (validate_alignment): Use target_maximum_allowed_alignment instead of
2230         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
2231         (gnat_to_gnu_entity): Use common nodes directly.
2232         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
2233         alignment and size for the object.
2234         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
2235         and N_Procedure_Call_Statement.
2236         (takes_address): Rename to lvalue_required_p, add third parameter
2237         'aliased' and adjust recursive calls.
2238         <N_Indexed_Component>: Update 'aliased' from the array type.
2239         <N_Selected_Component>: New case.
2240         <N_Object_Renaming_Declaration>: New Likewise.
2241         (Identifier_to_gnu): Adjust for above changes.
2242         (maybe_stabilize_reference) <CONST_DECL>: New case.
2244         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
2245         between type variants.
2246         (build_simple_component_ref): Likewise.
2247         (build_call_alloc_dealloc): Use target_default_allocator_alignment
2248         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
2249         aligning type circuitry for allocations from the default storage pool.
2250         (build_allocator): Likewise.
2251         (build_simple_component_ref): Manually fold the reference for a
2252         constructor if the record type contains a template.
2254         * utils.c (value_zerop): Delete.
2255         (gnat_init_decl_processing): Emit debug info for common types.
2256         (rest_of_record_type_compilation): If a union contains a field
2257         with a non-constant qualifier, treat it as variable-sized.
2258         (finish_record_type): Give the stub TYPE_DECL a name.
2259         (rest_of_record_type_compilation): Likewise.
2260         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
2261         types are equivalent array types.
2262         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
2263         even if the type is not passed by reference.
2264         (static_ctors, static_dtors): Delete.
2265         (end_subprog_body): Do not record constructors and destructors.
2266         (build_global_cdtor): Delete.
2267         (gnat_write_global_declarations): Do not call build_global_cdtor.
2269         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
2270         -fRTS=rtp is specified.
2271         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
2272         specified.
2274         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
2275         of the personality function with SJLJ exceptions.
2277         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
2278         the name of the personality function with SJLJ exceptions.
2280 2007-08-14  Robert Dewar  <dewar@adacore.com>
2281             Ed Schonberg  <schonberg@adacore.com>
2283         * par.ads, par.adb: Improve handling of extra right parens.
2284         (Par): Remove flag From_Limited_With_Clause.
2286         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
2287         Improve handling of extra right parens.
2289 2007-08-14  Robert Dewar  <dewar@adacore.com>
2291         * par-tchk.adb (TF_Semicolon): Improve error recovery
2293 2007-08-14  Robert Dewar  <dewar@adacore.com>
2294             Ed Schonberg  <schonberg@adacore.com>
2296         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
2297         enumeration type, mark all literals as referenced.
2298         (Eval_Attribute, case 'Image): If the argument is an enumeration
2299         literal and names are available, constant-fold but mark nevertheless as
2300         non-static.
2301         Clean up function names.
2302         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
2303         comment.
2304         (Requires_Simple_Name_Prefix): Removed.
2306 2007-08-14  Robert Dewar  <dewar@adacore.com>
2307             Ed Schonberg  <schonberg@adacore.com>
2309         * sem_ch11.adb: Improved warnings for unused variables
2311         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
2312         is a synchronized interface, the derived type is limited.
2313         (Analyze_Object_Declaration): Mark the potential coextensions in the
2314         definition and expression of an object declaration node.
2315         (Build_Derived_Type): For the completion of a private type declaration
2316         with a derived type declaration, chain the parent type's representation
2317         items to the last representation item of the derived type (not the
2318         first one) if they are not present already.
2319         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
2320         object declaration of forward references to tags.
2321         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
2322         subprogram types can appear as access discriminants of synchronized
2323         types.
2324         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
2325         given in prefixed form as a selected component.
2326         (Process_Discriminants): If not all discriminants have defaults, place
2327         error message on a default that is present.
2328         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
2329         extend a synchronized tagged type.
2330         Improved warnings for unused variables
2331         (Is_Visible_Component): Fix a visibility hole on a component inherited
2332         by a private extension when parent is itself declared as a private
2333         extension, and the derivation is in a child unit.
2334         (Find_Hidden_Interface): Move spec from the package body.
2336 2007-08-14  Robert Dewar  <dewar@adacore.com>
2337             Ed Schonberg  <schonberg@adacore.com>
2339         * sem_ch5.adb: Improve warnings on redundant assignments
2341         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
2342         parameter
2343         (Is_Synchronized_Tagged_Type): New subprogram that returns true
2344         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
2345         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
2346         is set to False. Improves handling of Known_[Not_]Null.
2347         (Wrong_Type): Special case address arithmetic attempt
2348         (Collect_Abstract_Interfaces): Add new formal to allow collecting
2349         abstract interfaces just using the partial view of private types.
2350         (Has_Abstract_Interfaces): Add new formal to allow checking types
2351         covering interfaces using the partial view of private types.
2352         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
2353         component still needs to be defined in this case, but is never
2354         initialized as VMs are using other dispatching mechanisms.
2355         (Abstract_Interface_List): For a protected type, use base type to get
2356         proper declaration.
2357         Improve warnings on redundant assignments
2358         (Is_Variable): Handle properly an implicit dereference of a prefixed
2359         function call.
2360         (Build_Actual_Subtype): If this is an actual subtype for an
2361         unconstrained formal parameter, use the sloc of the body for the new
2362         declaration, to prevent anomalises in the debugger.
2364 2007-08-14  Robert Dewar  <dewar@adacore.com>
2366         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
2367         dispatching operation
2369 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2370             Gary Dismukes  <dismukes@adacore.com>
2372         * exp_aggr.ads, 
2373         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
2374         expanded aggregate code before allocator, and ahead of declaration for
2375         temporary, to prevent access before elaboration when the allocator is
2376         an actual for an access parameter.
2377         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
2378         the TSD and the table of interfaces.
2379         (Convert_To_Assignments): Augment the test for delaying aggregate
2380         expansion for limited return statements to include the case of extended
2381         returns, to prevent creation of an unwanted transient scope.
2382         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
2383         (Expand_Array_Aggregate): Handle aggregates associated with
2384         statically allocated dispatch tables.
2385         (Expand_Record_Aggregate): Handle aggregates associated with
2386         statically allocated dispatch tables.
2387         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
2388         of anonymous access type.
2390 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2392         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
2393         is a variable that renames a slice, use the variable itself in the
2394         expannsion when the renamed expression itself may be modified between
2395         the declaration of the renaming and the array assignment.
2397 2007-08-14  Jerome Guitton  <guitton@adacore.com>
2399         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
2400         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
2401         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
2402         New functions; dummy implementations.
2404         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
2405         functions, used to implement the multi-tasks mode routines on VxWorks.
2407         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
2408         New functions, thin
2409         binding to the VxWorks routines which have changed between VxWorks 5
2410         and 6.
2411         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
2412         which are not callable from a RTP.
2414         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
2415         implemented for the multi-tasks mode on VxWorks 5 and 6.
2417         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
2419         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
2420         functions.
2422 2007-08-14  Vincent Celier  <celier@adacore.com>
2424         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
2425         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
2426         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
2427         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
2428         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
2429         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
2430         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
2431         procedure.
2432         (Major_Id_Name): New function.
2433         mlib-tgt.ads/mlib.tgt.adb:
2434         (Library_Major_Minor_Id_Supported): New function, default returns True
2435         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
2436         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
2437         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
2438         Implementation of Library_Major_Minor_Id_Supported returns False
2439         clean.adb:
2440         (Clean_Library_Directory): If major/minor ids are supported, clean all
2441         library files.
2442         Major update of the Project Manager and of the project aware tools,
2443         including gprmake, so that the same sources in the GNAT repository
2444         can be used by gprbuild.
2446 2007-08-14  Olivier Hainque  <hainque@adacore.com>
2448         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
2449         (GCC_ZCX_Support): Switch to True.
2450         
2451         * s-intman-solaris.adb (Notify_Exception): Call
2452         Adjust_Context_For_Raise before raising, as expected for signal
2453         handlers in general.
2454         
2455         * s-intman-posix.adb (Notify_Exception): Remove declaration of
2456         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
2457         to other implementation bodies.
2458         
2459         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
2460         be visible by multiple implementation bodies.
2461         
2462         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
2463         only for conditions coming from hardware.
2464         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
2465         adjustments to signal context prior to exception raise from signal
2466         handler.
2467         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
2468         mode.
2469         Solaris section: (__gnat_adjust_context_for_raise): New function.
2470         Implementation of the machine context adjustments to perform prior to
2471         raise from a signal handler. Version for both sparc and x86.
2472         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
2473         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
2474         prior to raising as expected for any handler, before possible nested
2475         faults to make sure all the contexts in a chain have been adjusted by
2476         the time we propagate.
2478 2007-08-14  Pascal Obry  <obry@adacore.com>
2480         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
2481         (SYSTEM_INFO): New record.
2482         (SetThreadIdealProcessor): New imported routine needed for supporting
2483         task_info pragma on Windows.
2485         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
2486         info can be applied to the current host.
2487         (Create_Task): Set the ideal processor if information is present.
2489         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
2490         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
2492 2007-08-14  Olivier Hainque  <hainque@adacore.com>
2494         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
2495         stack size and initial stack pointer value for a given task.
2496         (Enter_Task): Get the stack attributes of the task we are entering and
2497         let the stack checking engine know about them.
2499         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
2500         Let the stack-checking engine know about the initial sp value and stack
2501         size associated with the current task.
2502         (Set_Stack_Info): If a stack base has been notified for the current
2503         task, honor it. Fallback to the previous less accurate method otherwise.
2505         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
2507 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2509         * sem_ch10.adb: Create a limited view of an incomplete type, to make
2510         treatment of limited views uniform for all visible declarations in a
2511         limited_withed package.
2512         Set flag indicating that a subprogram body for a child unit has a
2513         generated spec.
2514         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
2515         separate declaration, remove the unit name from visibility after
2516         compilation, so that environment is clean for subsequent compilations.
2517         (Install_Limited_Context_Clauses): Do not install a
2518         limited_private_with_clause unless the current unit is a body or a
2519         private child unit.
2520         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
2521         in the same fashion.
2522         (Install_Limited_Withed_Unit): Do not install a limited with clause if
2523         it applies to the declaration of the current package body.
2524         (Remove_Private_With_Clauses): If there is a regular with_clause for
2525         the unit, delete Private_With_Clause from context, to prevent improper
2526         hiding when processing subsequent nested packages and instantiations.
2528 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
2530         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
2531         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
2532         representing absolute path names.
2533         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
2535         * cstreams.c (__gnat_full_name for VxWorks): Use
2536         __gnat_is_absolute_path to detect whether we need to add the current
2537         directory to normalize the path.
2539 2007-08-14  Javier Miranda  <miranda@adacore.com>
2541         * a-tags.ads, 
2542         a-tags.adb (Displace): Associate a message with the raised CE
2543         exception.
2544         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
2545         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
2546         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
2547         spec.
2548         (Default_Prim_Op_Count): Removed.
2549         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
2550         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
2551         Remove pragma Inline_Always.
2553         * rtsfind.ads (Default_Prim_Op_Count): Removed
2554         (Max_Predef_Prims): New entity
2555         (RE_Expanded_Name): Removed
2556         (RE_HT_Link): Removed
2557         (RE_Iface_Tag): Remmoved
2558         (RE_Ifaces_Table): Removed
2559         (RE_Interfaces_Array): Removed
2560         (RE_Interface_Data_Element): Removed
2561         (RE_Nb_Ifaces): Removed
2562         (RE_RC_Offset): Removed
2563         (RE_Static_Offset_To_Top): Removed
2565         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
2566         formal.
2567         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
2568         Prim_Op_Count by Max_Predef_Prims.
2570 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2571             Vincent Celier  <celier@adacore.com>
2573         * binde.adb (Elab_All_Links): Remove unnecessary call to
2574         Generic_Separately_Compiled (if a unit satisfies this predicate, there
2575         won't be an associated Afile).
2576         (Elab_All_Links): Fail if a referenced unit cannot be found
2578         * bindgen.adb: 
2579         Fix comments in bindgen regarding consistency checks done in Bcheck:
2580         the checks are made across units within a partition, not across several
2581         partitions.
2582         Fix generation of C binder file for VxWorks.
2584         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
2585         Generic_May_Lack_ALI, more descriptive of the current use of the
2586         predicate, and update documentation.
2588         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
2589         reorganization and documentation update for the case of predefined
2590         library generics (for which we do not reference an Afile).
2592 2007-08-14  Robert Dewar  <dewar@adacore.com>
2594         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
2595         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
2596         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
2597         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
2598         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
2599         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
2600         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
2601         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
2602         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
2603         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
2604         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
2605         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
2606         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
2607         g-altcon.adb: Minor reformatting
2609         ada-tree.h: Delete empty line.
2611         ali.ads: Minor reformatting
2612         Clarification of comments.
2613         Minor spelling correction
2615         * exp_dbug.adb: Add Warnings Off to suppress new warning
2617         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2618         formal
2620         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
2621         value
2623         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
2625         * a-textio.ads: Reorder the standard input/output/error declarations
2626         for consistency.
2628         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
2630         * par-ch2.adb: Recognize RM specially in errout
2631         Change 'R'M to RM in all error messages
2633         * scng.adb: Recognize RM specially in errout
2635         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
2636         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
2638         * s-direio.adb: Add missing routine header box.
2640         * sem_attr.ads: Add ??? comments
2642         * sem_eval.adb: Recognize RM specially in errout
2643         Change 'R'M to RM in all error messages
2645         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
2647         * s-tasinf.ads: Fix minor comment typo.
2649         * a-cihama.adb: Minor comment addition
2651         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2652         formal
2654         * s-tasinf-tru64.ads: Fix minor comment typo.
2656         * itypes.ads: Comment update.
2658         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
2659         anymore.
2661         * argv.c: Added protection against null gnat_argv and gnat_envp.
2663         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
2664         warning message when Tolerate_Consistency_Errors is True.
2666         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
2667         Any_Id, as this subprogram is only applicable to *type* entities (it
2668         sets RM_Size). Instead initialize just Esize and Alignment.
2670 2007-08-14  Bob Duff  <duff@adacore.com>
2672         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
2673         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
2674         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
2675         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
2676         a-coorse.ads (Next): Applied pragma Inline.
2677         Make all Containers packages Remote_Types (unless they are already
2678         Pure).
2679         (Previous): applied pragma Inline
2680         (Elements_Type): is now a record instead of an array
2682 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2684         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
2685         of Set_Item.
2686         (Set_Item): When the new item is an element of the currently allocated
2687         table passed by reference, save a copy on the stack if we're going
2688         to reallocate. Also, in Table.Set_Item, make sure we test the proper
2689         variable to determine whether to call Set_Last.
2691         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
2692         symbols-vms.adb, symbols-processing-vms-alpha.adb,
2693         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
2694         some occurrences of the pattern
2695            T.Increment_Last;
2696            T.Table (T.Last) := Value;
2697         with a cleaner call to
2698            T.Append (Value);
2700 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2701             Gary Dismukes  <dismukes@adacore.com>
2702             Thomas Quinot  <quinot@adacore.com>
2704         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
2705         derived type with interface progenitors use the analyzed formal as the
2706         parent of the actual, to create renamings for all the inherited
2707         operations in Derive_Subprograms.
2708         (Collect_Previous_Instances): new procedure within of
2709         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
2710         unit being loaded, to ensure that the generation of global symbols is
2711         consistent in different compilation modes.
2712         (Is_Tagged_Ancestor): New function testing the ancestor relation that
2713         takes progenitor types into account.
2714         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
2715         traversing over the primitives of the formal and actual types to locate
2716         any abstract subprograms of the actual type that correspond to a
2717         nonabstract subprogram of the formal type's ancestor type(s), and issue
2718         an error if such is found.
2719         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
2720         Instantiate_Package_Body, Instantiate_Subprogram_Body):
2721         Remove bogus guard around calls to Inherit_Context.
2722         (Reset_Entity): If the entity is the selector of a selected component
2723         that denotes a named number, propagate constant-folding to the generic
2724         template only if the named number is global to the generic unit.
2725         (Set_Instance_Env): Only reset the compilation switches when compiling
2726         a predefined or internal unit.
2728 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2730         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
2731         parameter to determine whether operation applies to the prefix.
2732         (Complete_Object_Operation): If actual has an access type and
2733         controlling formal is not an in_parameter, reject the actual if it is
2734         an access_to_constant type.
2735         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
2736         type, the candidate operations are found in the scope of declaration of
2737         the type, because the type has no primitive subprograms.
2738         (Analyze_Selected_Component): If prefix is class-wide, and root type is
2739         a private extension, only examine visible components before trying to
2740         analyze as a prefixed call.
2741         Change Entity_List to Type_To_Use, for better readability.
2742         (Has_Fixed_Op): Use base type when checking whether the type of an
2743         operator has a user-defined multiplication/division
2744         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
2745         user-defined operators are available for fixed-point types.
2747 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2748             Ed Schonberg  <schonberg@adacore.com>
2750         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
2751         formal At_Any_Place indicating, when True, that we want to test for
2752         availability of the stream attribute at any place (as opposed to the
2753         current visibility context only).
2754         (Missing_Read_Write_Attributes): A stream attribute is missing for the
2755         purpose of enforcing E.2.2(8) only if it is not available at any place.
2756         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
2757         when checking the legality of an extension aggregate in a preelaborable
2758         package. Treat the literal null as a valid default expression in a
2759         component declaration for a type with preelaborable initialization.
2760         A limited interface is a legal progenitor for the designated type of a
2761         remote access to class-wide type.
2763 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2764             Ed Schonberg  <schonberg@adacore.com>
2766         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
2767         reference): Use correct entity as denoted entity for the selector of
2768         the rewritten node.
2769         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
2770         setting the Referenced_As_LHS flag for entities that are implicitly
2771         dereferenced.
2772         (Find_Type): If the type is an internally generated incomplete type,
2773         mark the full view as referenced, to prevent spurious warnings.
2774         (Find_Selected_Component, Has_Components): Handle properly non-limited
2775         views that are themselves incomplete types.
2776         Handle interfaces visible through limited-with clauses.
2777         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
2778         subprogram generic actual for which we have generated a renaming.
2779         Warn when the renaming introduces a homonym of
2780         the renamed entity, and the renamed entity is directly visible.
2782 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2783             Hristian Kirtchev  <kirtchev@adacore.com>
2785         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
2786         appear in the subtree to the current allocator if it is not a static
2787         coextension.
2788         (Resolve_Allocator): Perform cleanup if resolution has determined that
2789         the allocator is not a coextension.
2790         (Resolve): Skip an interpretation hidden by an abstract operator only
2791         when the type of the interpretation matches that of the context.
2792         (Resolve): When looping through all possible interpretations of a node,
2793         do not consider those that are hidden by abstract operators.
2794         (Resolve_Actuals): When verifying that an access to class-wide object
2795         is an actual  for a controlling formal, ignore anonymous access to
2796         subprograms whose return type is an access to class_wide type.
2797         (Resolve_Slice): If the prefix of the slice is a selected component
2798         whose type depends on discriminants, build its actual subtype before
2799         applying range checks on the bounds of the slice.
2800         (Valid_Conversion): In an instance or inlined body, compare root types,
2801         to prevent anomalies between private and public views.
2802         (Resolve): Improve error message for ambiguous fixed multiplication
2803         expressions that involve universal_fixed multiplying operations.
2805 2007-08-14  Javier Miranda  <miranda@adacore.com>
2806             Hristian Kirtchev  <kirtchev@adacore.com>
2808         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
2809         location to allow the correct generation of errors in case of
2810         restrictions applied to the expanded code.
2811         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
2812         function if the condition does not reference them.
2813         (Expand_Entry_Body_Declarations): Mark the index constant as having a
2814         valid value.
2816 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2818         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
2819         typecode parameters for a union (in a variant record), remove
2820         extraneous layer of Any wrapping for member label.
2821         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
2822         elabration statements, register the package with the name server
2823         at the beginning, not at the end, of the elaboration statements so
2824         that they can create remote access to subprogram values that designate
2825         remote subprograms from the package.
2827 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
2829         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
2830         values to compute the number of seconds since the Unix Epoc in order to
2831         account for Daylight Savings Time. Perform special processing for dates
2832         that are earlier than the Unix Epoc to obtain a negative number.
2834 2007-08-14  Emmanuel Briot  <briot@adacore.com>
2836         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
2837         switches.
2839 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
2841         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
2842         binder-generated file is not in Ada.
2843         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
2844         recorded in the ALI file.
2845         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
2847 2007-08-14  Vincent Celier  <celier@adacore.com>
2849         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
2850         (Output_Source): Do nothing if parameter is No_Sdep_Id
2852         * make.adb (Gnatmake): Do not rebuild an archive simply because a
2853         shared library it imports has a later time stamp.
2854         (Check): Resolve the symbolic links in the path name of the object
2855         directory.
2856         Check that the ALI file is in the correct object directory
2857         Check if a file name does not correspond to the mapping of units
2858         to file names.
2859         (Display_Version): New procedure
2860         (Initialize): Process switches --version and --help
2861         Use type Path_Name_Type for path name
2863 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
2865         * impunit.adb: Re-organize System.Random_Numbers and
2866         GNAT.Random_Numbers and add to builds.
2868         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
2870         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
2872         * a-assert.ads, a-assert.adb: New files.
2874 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
2876         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
2877         if AAMP_On_Target is True, then the size of the type encompasses two
2878         addresses (a static link and a subprogram address), except in the case
2879         of library-level access types.
2881 2007-08-14  Vincent Celier  <celier@adacore.com>
2883         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
2884         writing the line.
2885         (Write_Eol_Keep_Blanks): New procedure to write a line, including
2886         possible trailing spaces.
2887         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
2889 2007-08-14  Javier Miranda  <miranda@adacore.com>
2891         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
2892         null-excluding access types.
2894 2007-08-14  Javier Miranda  <miranda@adacore.com>
2896         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
2897         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
2898         of private types add missing check on matching interfaces in the
2899         partial and full declarations.
2900         (Analyze_Protected_Type): Code cleanup.
2901         (Analyze_Task_Type): Code cleanup.
2903 2007-08-14  Javier Miranda  <miranda@adacore.com>
2905         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
2906         generated interface thunk.
2908 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2910         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
2911         obsolescent warning on application of 'Class to an incomplete type.
2913         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
2914         prevent obsolescent warning on application of 'Class to an incomplete
2915         type.
2917 2007-08-14  Pascal Obry  <obry@adacore.com>
2919         * s-fileio.adb (Is_Open): Add check for usability of the underlying
2920         file stream.
2922 2007-08-14  Cyrille Comar  <comar@adacore.com>
2924         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
2925         since it is potentially used in cases implying double finalization of
2926         the same object.
2928 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
2930         * s-tasini.adb (Get_Stack_Info): Move this function to
2931         System.Soft_Links.Tasking because it is common to the full and the
2932         restricted run times.
2933         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
2934         in SSL.Tasking.Init_Tasking_Soft_Links.
2936         * s-solita.adb (Get_Stack_Info): Function moved from
2937         System.Tasking.Initialization because it is common to the full and the
2938         restricted run times.
2939         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2941 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
2943         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2944         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2945         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
2946         parameter.
2948         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
2949         guard to 12K.
2951 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
2953         * s-veboop.adb (SU): New named number initialized to
2954         System.Storage_Unit.
2955         (True_Val): The initialization expression is revised to use SU (=
2956         Storage_Unit) rather than assuming 8 for the component size of an
2957         unpacked Boolean array.
2959 2007-08-14  Tristan Gingold  <gingold@adacore.com>
2961         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
2963         * tb-ivms.c: New file.
2965         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
2967 2007-08-14  Geert Bosch  <bosch@adacore.com>
2969         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
2970         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
2971         Add required linker pragmas for automatically linking with the gnalasup
2972         linear algebra support library, and the systems math library.
2973         Rename cdot to cdotu and zdot to zdotu.
2974         Update header comment to describe purpose of package.
2976 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2978         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
2979         an explicitly specified Associated_Final_Chain, use that list.
2980         (Expand_N_Package_Body): Build dispatch tables of library level tagged
2981         types.
2982         (Expand_N_Package_Declaration): Build dispatch tables of library level
2983         tagged types. Minor code cleanup.
2985 2007-08-14  Vincent Celier  <celier@adacore.com>
2987         * gnatchop.adb (Terminate_Program): Remove exception and use
2988         Types.Terminate_Program instead.
2990         * osint.ads, osint.adb (Current_Exit_Status): New global variable
2991         (Find_Program_Name): Added protection against empty name.
2992         (OS_Exit_Through_Exception): New procedure
2994         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
2995         (OS_Exit_Default): New procedure that contains the previous
2996         implementation of procedure OS_Exit.
2997         (Final_Value): Remove obsolete Interix stuff.
2999 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3001         * g-socket.ads: Reorganize example code so that it also works on
3002         Windows XP.
3004 2007-08-14  Tristan Gingold  <gingold@adacore.com>
3006         * g-trasym.ads: AIX now supports symbolic backtraces.
3008 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3010         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
3011         units being loaded to detect circularities. A circularity may be
3012         present even if the current chain of pending units to load starts from
3013         a limited_with_clause.
3015         * lib-load.ads: Change profile of Load_Unit to use a with_clause
3016         rather than a boolean flag, in order to detect circularities in
3017         with_clauses.
3019         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
3020         than propagating the From_Limited_With flag, in order to handle
3021         properly circularities involving with_clauses.
3023 2007-08-14  Nicolas Setton  <setton@adacore.com>
3025         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
3026         warnings.
3028 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
3030         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
3031         to build for libgnala.
3032         libgnat: Add rules to build libgnala.a
3033         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
3034         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
3035         Add s-osinte-vxworks-kernel.adb to the target pairs of the
3036         kernel run-time lib for VxWorks 6, which would provide a different
3037         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
3038         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
3039         running ZCX by default.
3040         Add g-sttsne-locking to LynxOS version.
3041         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
3042         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
3044         * system-darwin-x86.ads: New file.
3046         * Make-lang.in: Delete files before copying onto them, so if they are
3047         read-only, the copy won't fail.
3048         Update dependencies
3050 2007-08-14  Pascal Obry  <obry@adacore.com>
3052         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
3053         naming scheme.
3055 2007-08-14  Vincent Celier  <celier@adacore.com>
3057         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
3058         (Gcc): Initialize Gcc_Name at the first call
3060 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3062         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
3063         with_clauses of the enclosing unit when analyzing the package
3064         specification of a nested instance.
3066 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
3068         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
3069         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
3070         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
3071         layout of N_Allocator.
3073 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3075         * rtsfind.adb (Check_RPC): Add PCS version check.
3077         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
3078         (Gnat_Free_Software): New function.
3080         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
3081         the PCS_Version value from s-parint, used to check that it is consistent
3082         with what exp_dist expects.
3084         * s-parint.ads (PCS_Version): New entity for checking consistency
3085         between exp_dist and PCS.
3087         * gen-soccon.c: (SO_REUSEPORT): New constant.
3089 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
3091         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
3092         variable Sub_Second to Duration in order to accomodate a larger range
3093         of arithmetic operations.
3095 2007-08-14  Bob Duff  <duff@adacore.com>
3097         * g-sttsne-locking.ads: Move comments from spec to body.
3098         * g-sttsne-locking.adb: Move comments from spec to body.
3099         * g-sttsne-vxworks.ads: Removed.
3100         * g-sttsne-vxworks.adb: Removed.
3102 2007-08-11  Ian Lance Taylor  <iant@google.com>
3104         * misc.c (gnat_get_alias_set): Change return type to
3105         alias_set_type.
3107 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3109         * decl.c, utils2.c: Fix whitespace in last change.
3111 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3113         * decl.c (compare_field_bitpos): Constify.
3114         * utils2.c (compare_elmt_bitpos): Likewise.
3116 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
3118         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
3119         anonymous access type.
3120         (pthread_sigmask): Now take an access sigset_t.
3122 2007-07-05  Joel Sherrill <joel.sherrill@oarcorp.com>
3124         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
3125         
3126 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3128         PR tree-optimization/25737
3129         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
3131 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3133         * trans.c (Attribute_to_gnu): When subtracting an
3134         offset from a pointer, use POINTER_PLUS_EXPR with
3135         NEGATE_EXPR instead of MINUS_EXPR.
3136         (gnat_to_gnu): Likewise.
3137         * utils.c (convert): When converting between
3138         thin pointers, use POINTER_PLUS_EXPR and sizetype
3139         for the offset.
3140         * utils2.c (known_alignment): POINTER_PLUS_EXPR
3141         have the same semantics as PLUS_EXPR for alignment.
3142         (build_binary_op): Add support for the semantics of
3143         POINTER_PLUS_EXPR's operands.
3144         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
3146 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
3148         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
3149         of get_signed_or_unsigned_type.
3150         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
3152 2007-06-11  Bob Duff  <duff@adacore.com>
3153             Thomas Quinot  <quinot@adacore.com>
3155         * g-stsifd-sockets.adb (Create): Work around strange behavior of
3156         'bind' on windows that causes 'connect' to fail intermittently, by
3157         retrying the 'bind'.
3158         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3160 2007-06-10  Duncan Sands  <baldrick@free.fr>
3162         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
3163         than to void, for the fields when making a new fat pointer type.
3164         (gnat_substitute_in_type): Now substitute_in_type.
3165         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
3166         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
3167         * utils.c (update_pointer_to): Update fat pointers by updating the
3168         dummy node pointers used for the fields.
3170 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3171             Bob Duff  <duff@adacore.com>
3173         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
3174         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
3175         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
3176         constant Thread_Blocking_IO, always True by default, set False
3177         on a per-runtime basis.
3178         (Need_Netdb_Buffer): New constant.
3180         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
3181         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
3182         files.
3184         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
3185         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
3186         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
3187         child package Task_Safe_NetDB
3188         (Host_Error_Messages): Add stub body.
3189         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3191         * g-soccon-mingw.ads: Add Windows-specific constants.
3192         (Need_Netdb_Buffer): New constant.
3193         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
3194         wrapper and import inet_addr(3) from the standard sockets library
3195         directly instead.
3196         (In_Addr): Add alignment clause.
3197         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3199 2007-06-06  Robert Dewar  <dewar@adacore.com>
3201         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3202         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
3203         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
3204         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
3205         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
3206         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
3207         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
3208         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
3209         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
3210         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
3211         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
3212         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
3213         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
3214         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
3215         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3216         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
3217         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
3218         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
3219         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
3220         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
3221         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
3222         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
3223         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
3224         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
3225         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
3226         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
3227         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
3228         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
3229         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
3230         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
3231         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
3232         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
3233         Unchecked_* by Ada.Unchecked_*
3235 2007-06-06  Robert Dewar  <dewar@adacore.com>
3237         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
3238         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
3239         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
3240         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
3241         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3242         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
3244         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
3245         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
3246         s-tasloc.adb, s-tasloc.ads: New files.
3248 2007-06-06  Bob Duff  <duff@adacore.com>
3250         * g-expect-vms.adb: 
3251         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
3252         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
3253         (Send_Signal, Close): Raise Invalid_Process if the process id is
3254         invalid.
3255         (Pattern_Matcher_Access): Is now a general access type to be able to
3256         use aliased string.
3258 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3259             Arnaud Charlet  <charlet@adacore.com>
3261         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
3262         (SIGEMT is now used instead of SIGTERM on AIX).
3264         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
3265         (Time_Slice_Supported): Set to True.
3266         Use SIGEMT instead of SIGTERM as SIGADAABORT.
3268 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
3270         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
3271         (Time, Time)): Use To_Relative_Time rather than manual calculation to
3272         express the bounds of Duration as Time. Raise Time_Error when the
3273         result is greater or equal to the higher bound of Duration (on the
3274         margin case).
3275         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
3276         Ada_High_And_Leaps.
3277         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
3278         Ada_High_And_Leaps.
3279         ("-" (Time, Time)): Reorder code.
3280         (All_Leap_Seconds): Removed.
3281         (Arithmetic_Operations.Add): Remove sign related kludge.
3282         (Arithmetic_Operations.Difference): Control the leaps seconds processing
3283         with flag Leap_Support.
3284         (Arithmetic_Operations.Subtract): Remove sign related kludge.
3285         (Check_Within_Time_Bounds): New procedure.
3286         (Clock): Control the leap seconds processing with flag Leap_Support.
3287         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
3288         (Formatting_Operations.Split): Control the leap seconds processing with
3289         flag Leap_Support.
3290         (Formatting_Operations.Time_Of): Control the leaps seconds processing
3291         with flag Leap_Support. Adjust the year, month and day (if applicable)
3292         when the value of day seconds designates a new day.
3293         (Split): Use parameter associations for better readability. Integrate
3294         flag Is_Ada_05.
3295         (Time_Of): Use parameter associations for better readability. Integrate
3296         flag Is_Ada_05.
3298         * a-calfor.adb (Split): Use parameter associations for better
3299         readability. Integrate flag Is_Ada_05.
3300         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
3301         better readability. Integrate flag Is_Ada_05.
3303 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3305         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
3306         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
3307         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
3308         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
3309         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
3310         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
3311         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
3312         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
3313         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
3314         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
3315         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
3316         time when entering this routine to detect a backward clock setting
3317         (manual setting or DST adjustment), to avoid waiting for a longer delay
3318         than needed.
3319         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
3320         Remove handling of deferred priority change, and replace by setting the
3321         task priority directly, as required by AI-188.
3322         Update comments.
3323         (Max_Task_Image_Length): New constant.
3324         Replace Warnings (Off) by Unreferenced pragma, cleaner.
3325         (Dynamic_Priority_Support): Removed, no longer needed.
3326         (Poll_Base_Priority_Change): Ditto.
3327         (Set_Ceiling): Add this procedure to change the ceiling priority
3328         associated to a lock. This is a dummy implementation because dynamic
3329         priority ceilings are not supported by the underlying system.
3331         * a-dynpri.adb (Set_Priority): Take into account case where Target is
3332         accepting a RV with its priority boosted.
3333         Remove handling of deferred priority change, and replace by setting the
3334         task priority directly, as required by AI-188.
3336         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
3337         Succeeded = True.
3338         Remove handling of deferred priority change, and replace by setting the
3339         task priority directly, as required by AI-188.
3340         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
3341         of Self_Id earlier.
3343         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
3344         (Poll_Base_Priority_Change): Removed.
3345         Code clean up: use SSL.Current_Target_Exception.
3347         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
3348         to run as this is a potentially dispatching point.
3349         (Call_Synchronous): Use Local_Defer_Abort.
3350         (Callable): Relax assertion.
3351         (Selective_Wait): Relax assertion in case abort is not allowed.
3352         Remove handling of deferred priority change, and replace by setting the
3353         task priority directly, as required by AI-188.
3355         * s-tasuti.adb (Make_Passive): Adjust assertions.
3356         Remove handling of deferred priority change, and replace by setting the
3357         task priority directly, as required by AI-188.
3359 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3361         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
3362         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
3363         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
3364         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
3365         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
3366         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
3367         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
3368         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
3369         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
3370         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
3371         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
3372         This patch changes the largest non-binary modulus from 2**31-1 to
3373         2**32-1.
3374         (Compiler_System_Version): Removed, no longer used.
3375         Clean up system files by removing flags only used on a single target.
3376         Also remove obsolete flags, only used during bootstrap from system.ads
3377         (Address): Add a pragma Preelaborable_Initialization.
3379         * system-aix.ads:  Ditto.
3380         (GCC_ZCX_Support): Set to true.
3381         Update priority range on AIX and map Ada priorities to target
3382         priorities appropriately for different scheduling policies.
3384         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
3386 2007-06-06  Vincent Celier  <celier@adacore.com>
3388         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
3389         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
3391         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
3392         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
3393         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
3394         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
3395         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
3396         MLib.Tgt, containing the default versions of the exported subprograms.
3397         For each platform, create a specific version of the body of new child
3398         package MLib.Tgt.Specific that contains only the body of subprograms
3399         that are different from the default.
3400         (Archive_Builder_Append_Options): New function.
3402 2007-06-06  Matthew Gingell  <gingell@adacore.com>
3404         * s-osinte-aix.adb: Map Ada priorities to target priorities
3405         appropriately for different scheduling policies.
3407 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3409         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
3410         its C counterpart.
3411         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
3412         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
3414 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
3416         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
3417         Noop on VMS, added for interface commonality.
3419 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3420             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3421             Olivier Hainque  <hainque@adacore.com>
3423         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
3424         renamed expression of a full renaming at toplevel.
3425         (gnat_to_gnu_entity, case object): If not defining, do not look inside
3426         the values the constant is initialized to if it is an N_Allocator.
3427         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
3428         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
3429         (make_aligning_type): Accept an extra ROOM argument for storage to be
3430         made available before the aligned field, and an extra BASE_ALIGN
3431         argument for callers to pass the alignment guaranteed to be honored for
3432         the whole aligning object. Avoid call to finish_record_type, which only
3433         interferes with the sizes we want to set.
3434         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
3435         make_aligning_type for super-aligned objects on stack.
3436         (components_to_record): Pass the adjusted size of the type when creating
3437         fields in the qualified union for the variant part.
3438         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
3439         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
3440         packed array type.
3441         (maybe_pad_type): Set TYPE_USER_ALIGN.
3442         (make_aligning_type): Likewise.
3443         ALIGN argument is unsigned int.
3444         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
3445         (gnat_to_gnu_param): Likewise, for parameters.
3446         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
3447         if it is constant and stems from a function call.
3448         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
3449         of the record is specified.  Adjust accordingly.
3450         (adjust_packed): New static function.
3451         (gnat_to_gnu_field): Use it to adjust the packedness setting.
3452         (components_to_record): Likewise.
3453         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
3454         side-effects if the object is deemed constant.
3455         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
3456         type instead of merely finalizing it.  Tidy.
3457         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
3458         <E_Access_Type>: Likewise.
3459         (defer_debug_incomplete_list): Rename to defer_finalize_list.
3460         (defer_debug_level): Delete.
3461         (gnat_to_gnu_entity) <debug_deferred>: Likewise
3462         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
3463         type.
3464         <E_Record_Type>: Do not explicitly defer finalizing the type.
3465         Adjust for write_record_type_debug_info renaming.
3466         <E_Subprogram_Type>: Likewise.
3467         Finalize deferred types right after deferred incomplete types are
3468         expanded.
3469         (rest_of_type_decl_compilation): New global function.
3470         (components_to_record): Rename defer_debug parameter to do_not_finalize.
3471         (components_to_record): Propagate the packedness to the fields of the
3472         qualified union type if there is a variant part.
3473         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
3474         instead of inline code to adjust the XUT field offsets.
3475         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
3476         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
3477         and write the debug info if the type derives from a discriminated one.
3478         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
3479         <E_Array_Subtype>: Likewise.
3480         <E_String_Literal_Subtype>: Likewise.
3481         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
3482         an alignment clause.
3483         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
3484         before giving warning.
3485         (prepend_one_attribute_to): New function, helper to prepend an attribute
3486         to an attribute list.
3487         (gnat_to_gnu_entity) <E_Procedure>: Use it.
3488         (prepend_attributes): Likewise.
3489         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
3490         <E_Array_Type>: Declare the padding type for the element type, if any.
3491         <E_Array_Subtype>: Likewise.
3492         (defer_limited_with): New variable.
3493         (Gigi_Equivalent_Type): New function.
3494         (gnat_to_gnu_entity): Use it at start and use result throughout.
3495         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
3496         Gigi_Equivalent_Type, support Limited_With, allow two levels of
3497         indirection, precompute if unconstrained array to simplify logic, and
3498         use defer_limited_with to defer elaboration of some types from limited
3499         with.
3500         (finalize_from_with_types): New function.
3502 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
3503             Eric Botcazou  <ebotcazou@adacore.com>
3504             Tristan Gingold  <gingold@adacore.com>
3505             Olivier Hainque  <hainque@adacore.com>
3507         * trans.c (Identifier_to_gnu): Change test for deferred constant by
3508         adding guard that the entity is an E_Constant before testing presence
3509         of Full_view (and remove unnecessary test that entity is not a type).
3510         For a CONST_DECL used by reference, manually retrieve
3511         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
3512         (struct language_function): Move from utils.c to here.
3513         (struct parm_attr): New structure.
3514         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
3515         (f_parm_attr_cache): New macro.
3516         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
3517         expressions for the 'First, 'Last and 'Length attributes of the
3518         unconstrained array IN parameters.
3519         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
3520         Allocate the information structure for the function earlier, as well
3521         as the language-specific part.
3522         If the parameter attributes cache has been populated, evaluate the
3523         cached expressions on entry.
3524         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
3525         N_Procedure_Call_Statement and N_Indexed_Component.
3526         (Pragma_to_gnu): Translate inspection_point to an asm statement
3527         containaing a comment and a reference to the object (either its address
3528         for BLKmode or its value).
3529         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
3530         to go to DECL_INITIAL. Together with the size constraint relaxation
3531         in create_var_decl, enlarges the set of situations in which an
3532         identifier may be used as an initializer without implying elaboration
3533         code.
3534         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
3535         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
3536         node.
3537         (maybe_stabilize_reference): Remove lvalues_only parameter.
3538         (gnat_stabilize_reference): Adjust for above change.
3539         (gnat_to_gnu): Do not set location information on the result
3540         if it is a reference.
3541         (add_cleanup): Add gnat_node parameter and set the location of the
3542         cleanup to it.
3543         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
3544         (Exception_Handler_to_gnu_zcx): Likewise.
3545         (gigi): Remove the cgraph node if the elaboration procedure is empty.
3546         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
3547         the former right after the latter.
3548         (start_stmt_group): Make global.
3549         (end_stmt_group): Likewise.
3550         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
3551         vars.
3552         (gnu_program_error_label_stack): Likewise.
3553         (gigi): Initialize them.
3554         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
3555         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
3556         New cases.
3557         (push_exception_label_stack): New function.
3558         (takes_address): New function.
3560         * utils.c (struct language_function): Move to trans.c from here.
3561         (unchecked_convert): Do not wrap up integer constants in
3562         VIEW_CONVERT_EXPRs.
3563         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
3564         the latter for aggregate types, unexpected by later passes, and relax an
3565         arbitrary size constraint on the former.
3566         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
3567         to compare the sizes.
3568         (convert_vms_descriptor): When converting to a fat pointer type, be
3569         prepared for a S descriptor at runtime in spite of a SB specification.
3570         (shift_unc_components_for_thin_pointers): New function.
3571         (write_record_type_debug_info): For variable-sized fields, cap the
3572         alignment of the pointer to the computed alignment.
3573         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
3574         If REP_LEVEL is 2, do not compute the sizes.
3575         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
3576         (build_unc_object_type): Likewise.
3577         (declare_debug_type): New function.
3579         * ada-tree.def: USE_STMT: removed (not emitted anymore).
3581         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
3582         no statement is expandable anymore.
3583         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
3584         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
3585         when the user requested it explicitely.
3586         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
3587         to 0 for Ada.
3588         (get_alias_set): Return alias set 0 for a type if
3589         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
3591         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
3592         (DECL_FUNCTION_STUB): New accessor macro.
3593         (SET_DECL_FUNCTION_STUB): New setter macro.
3595         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
3597         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
3598         declarations.
3600 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
3602         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
3603         Rename to Abort_Task_Interrupt to be able to keep the same interface
3604         as the rest of the targets.
3606         * s-osinte-vxworks.ads s-osinte-vxworks.adb
3607         (To_VxWorks_Priority): Remove explicit "in" mode indicator
3609         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
3610         New files.
3612 2007-06-06  Robert Dewar  <dewar@adacore.com>
3614         * a-chahan.ads: Remove obsolescent pragmas
3616         * a-chlat1.ads: Minor reformatting
3618 2007-06-06  Robert Dewar  <dewar@adacore.com>
3620         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
3621         for Errout
3623         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
3624         implementation
3626         * errout.ads (Finalize): Changed interface
3627         (Output_Messages): New procedure
3628         (Compilation_Errors): New Interface
3630         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
3631         Finalize/Output_Messages interface for Errout
3632         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
3633         Errout.
3635 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3636             Olivier Hainque  <hainque@adacore.com>
3637             Robert Dewar  <dewar@adacore.com>
3639         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
3640         check.
3641         (Raise_Current_Excep): Call Debug_Raise_Exception just before
3642         propagation starts, to let debuggers know about the event in a reliable
3643         fashion.
3644         (Local_Raise): Moved to System.Exceptions
3645         More convenient to have this as a separate unit
3647         * s-except.adb, s-except.ads: New files.
3649         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
3650         Debug_Unhandled_Exception in System.Exceptions where it belongs
3651         together with a couple of other debug helpers.
3652         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
3653         the former Unhandled_Exception.
3655         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
3656         (Warn_No_Exception_Propagation): New procedure
3657         (Warn_If_No_Propagation): Rewritten for new warning generation
3658         (Expand_Exception_Handlers): New warning generation
3659         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
3660         (Add_Exception_Label): Use Special_Exception_Package_Used for test
3661         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
3662         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
3663         even if restriction is set (makes life easier in Check_Returns)
3664         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
3665         checking exception identities.
3666         (Expand_Local_Exception_Handlers): Do not optimize when all others case
3667         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
3668         block for handler (used by Check_Returns)
3669         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
3670         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
3671         remove all exception handlers when optimizing local raise statements.
3672         (Find_Local_Handler): Use Get_Renamed_Entity
3673         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
3674         marked analyzed after expanding exception handlers, do not generate
3675         redundant cleanup actions, because they have been constructed already.
3677 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3679         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
3680         presence of this categorization pragma is mandated by the language.
3681         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
3682         for this type.
3684 2007-06-06  Vincent Celier  <celier@adacore.com>
3685             Robert Dewar  <dewar@adacore.com>
3687         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
3688         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
3689         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
3690         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
3691         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
3692         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
3693         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
3694         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
3695         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
3696         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
3697         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
3698         ali.ads, ali.adb: 
3699         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
3700         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
3701         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
3702         Use variables of types File_Name_Type and Unit_Name_Type in error
3703         messages.
3704         (Get_Name): Add parameter Ignore_Special, and set it reading file name
3705         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
3706         here.
3707         Define flags Flag217-Flag230 with associated subprograms
3708         (Flag_Word5): New record type.
3709         (Flag_Word5_Ptr): New access type.
3710         (To_Flag_Word5): New unchecked conversion.
3711         (To_Flag_Word5_Ptr): Likewise.
3712         (Flag216): New function.
3713         (Set_Flag216): New procedure.
3715 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3717         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
3718         instead of 'Size.
3720         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
3722 2007-06-06  Javier Miranda  <miranda@adacore.com>
3724         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
3725         the package.
3726         (Object_Specific_Data_Array): This is now internal to the package.
3727         (Object_Specific_Data): This is now internal to the package.
3728         (Select_Specific_Data_Element): This is now internal to the package.
3729         (Select_Specific_Data_Array): This is now internal to the package.
3730         (Select_Specific_Data): This is now internal to the package.
3731         (Offset_To_Top_Function_Ptr): This is now public.
3732         (To_Offset_To_Top_Function_Ptr): Removed.
3733         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
3734          local to subprogram Offset_To_Top.
3735         (Predefined_DT): Removed.
3736         (Typeinfo_Ptr): Removed.
3737         (OSD): This function is now internal to this package.
3738         (SSD): This function is now internal to this package.
3739         (DT): New function that displaces the pointer to the table of primitives
3740          to get access to the enclosing wrapper record.
3741         (IW_Membership): Code cleanup.
3742         (Offset_To_Top): Code cleanup.
3743         (Predefined_DT): Removed.
3744         (Register_Interface_Tag): Removed.
3745         (Set_Interface_Table): Removed.
3746         (Set_Offset_Index): Removed.
3747         (Set_Offset_To_Top): Code cleanup.
3748         (Set_OSD): Removed.
3749         (Set_Signature): Removed.
3750         (Set_SSD): Removed.
3751         (Set_Tagged_Kind): Removed.
3752         (Typeinfo_Ptr): Removed.
3753         (TSD): Removed.
3754         (Displace): Add missing check on null actual.
3756         * exp_disp.ads, exp_disp.adb
3757         (Select_Expansion_Utilities): Removed.
3758         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
3759         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
3760         the interface requires a new parameter.
3761         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
3762         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
3763         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
3764         Done to remove package Select_Expansion_Utilities.
3765         (Make_DT): New implementation for statically allocated dispatch tables.
3766         (Make_Secondary_DT): Moved to the scope of Make_DT.
3767         (Register_Primitive): Code cleanup plus incoporate the use of the new
3768         function DT_Address_Attribute.
3769         (Expand_Interface_Thunk): The profile of this subprogram has been
3770         changed to return the Thunk_Id and the corresponding code.
3771         (Fill_DT_Entry): Removed. Its functionality is now provided by
3772         subprogram Register_Primitive.
3773         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
3774         subprogram Register_Primitive.
3775         (Register_Primitive): New subprogram that incorporates the previous
3776         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
3777         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
3778         was only required to call Make_DT_Access_Action, which is now removed.
3779         (Ada_Actions): Removed
3780         (Action_Is_Proc): Removed
3781         (Action_Nb_Arg): Removed
3782         Replace all the calls to Make_DT_Access_Action by direct calls to
3783         Make_Procedure_Call_Statement or Make_Function_Call.
3784         (Set_DTC_Entity_Value): New subprogram.
3785         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
3786         (Expand_Interface_Thunk): Add missing support for primitives that are
3787         functions with a controlling result (case in which there is no need
3788         to generate the thunk).
3790         * exp_atag.ads, exp_atag.adb
3791         (Build_DT): New subprogram that displaces the pointer to reference the
3792         base of the wrapper record.
3793         (Build_Typeinfo_Offset): Removed.
3794         (RTE_Tag_Node): Removed.
3795         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
3796         (Build_Get_RC_Offset): Removed.
3797         (Build_Inherit_Predefined_Prims): Removed.
3798         (Build_Inherit_TSD: Removed.
3799         (Build_New_TSD): Removed.
3800         (Build_Set_External_Tag): Removed.
3801         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
3802         (Build_Set_Prim_Op_Address): Add documentation.
3803         (Build_Set_TSD): Removed.
3805         * rtsfind.ads, rtsfind.adb
3806         (Load_Fail): If load fails and we are not in configurable run-time
3807         mode, then raise Unrecoverable_Error.
3808         (Text_IO_Kludge): Generate an error message if a run-time library is
3809         not available in a given run-time (ie. zfp run-time).
3810         (RTE_Record_Component): Add code to check that the component we search
3811         for is not found in two records in the given run-time package.
3812         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
3813         (RE_DT_Predef_Prims_Offset): New entity
3814         (RE_Static_Offset_To_Top): New entity
3815         (RE_HT_Link): New entity.
3816         (System_Address_Image): Addition of this run-time package.
3817         (RE_Address_Image): New entity.
3818         (RE_Abstract_Interface): Removed.
3819         (RE_Default_Prim_Op_Count): Removed.
3820         (RE_DT_Entry_Size): Removed.
3821         (RE_DT_Min_Prologue_Size): Removed.
3822         (RE_DT_Prologue_Size): Removed.
3823         (RE_Ifaces_Table_Ptr): Removed.
3824         (RE_Interface_Data_Ptr): Removed.
3825         (RE_Type_Specific_Data): Removed.
3826         (RE_Primary_DT): Removed.
3827         (RE_Register_Interface_Tag): Removed.
3828         (RE_Set_Offset_Index): Removed.
3829         (RE_Set_OSD): Removed.
3830         (RE_Set_SSD): Removed.
3831         (RE_Set_Signature): Removed.
3832         (RE_Set_Tagged_Kind): Removed.
3833         (RE_Address_Array): New entity.
3834         (RE_DT): New entity.
3835         (RE_Iface_Tag): New entity.
3836         (RE_Interfaces_Table): New entity.
3837         (RE_No_Dispatch_Table): New entity.
3838         (RE_NDT_Prims_Ptr): New entity.
3839         (RE_NDT_TSD): New entity.
3840         (RE_Num_Prims): New entity.
3841         (RE_Offset_To_Top_Function_Ptr): New entity.
3842         (RE_OSD_Table): New entity.
3843         (RE_OSD_Num_Prims): New entity.
3844         (RE_Predef_Prims): New entity
3845         (RE_Predef_Prims_Table_Ptr): New entity.
3846         (RE_Primary_DT): New entity.
3847         (RE_Signature): New entity.
3848         (RE_SSD): New entity.
3849         (RE_TSD): New entity.
3850         (RE_Type_Specific_Data): New entity.
3851         (RE_Tag_Kind): New entity.
3853 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3855         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
3856         C imported variable.
3857         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
3858         on entry.
3860 2007-06-06  Robert Dewar  <dewar@adacore.com>
3862         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
3863         character
3865 2007-06-06  Vincent Celier  <celier@adacore.com>
3867         * a-tifiio.adb (Put, internal): For negative numbers, check that there
3868         is room for at least one digit and the minus sign.
3869         (Put.Put_Character): Never put a character outside of the range of
3870         string To.
3872 2007-06-06  Olivier Hainque  <hainque@adacore.com>
3873             Eric Botcazou  <ebotcazou@adacore.com>
3875         * utils2.c (build_allocator): Provide the extra arguments to
3876         make_aligning_type for super-aligned objects allocated from the default
3877         pool. Leave enough room for a pointer before the aligning field, and
3878         store the system's allocator return value there.
3879         (build_call_alloc_dealloc): When releasing a super-aligned object,
3880         retrieve the system's allocator return value from where build_allocator
3881         has stored it, just ahead of the adjusted address we are passed.
3882         (build_call_raise): Handle properly the generation of line numbers when
3883         the node is marked No_Location.
3884         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
3885         by using DECL_UID on ties.
3886         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
3887         main variant.
3888         (build_call_raise): Handle converting exception into goto; support new
3889         argument KIND.
3890         (build_component_ref): Add new arg to build_call_raise.
3892 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
3894         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
3895         "." in the case of nnn.xxx when nnn terminates with an underscore.
3896         Parse the remaining "#" or ":" in the case of nnn#.xxx#
3898 2007-06-06  Robert Dewar  <dewar@adacore.com>
3900         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
3902 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3903             Vincent Celier  <celier@adacore.com>
3904             Robert Dewar  <dewar@adacore.com>
3906         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
3907         needed.
3908         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
3909         ((destructor)) for adafinal, even when switch -a is used.
3910         Do not issue pragma Linker_Destructor for adafinal when switch -a is
3911         used.
3912         (Gen_Object_Files_Options): Add formatting of Linker Options, when
3913         Output_Linker_Option_List is set. Suppress this formatting when
3914         Zero_Formatting is set.
3915         Add case for CLI_Target.
3916         (System_Restrictions_Used): New flag, used to avoid generating with of
3917         System_Restrictions and initialization of the data unless there is
3918         some use of System.Restrictions in the partition.
3919         (Check_System_Restrictions_Used): New procedure
3921         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
3922         since we only with this unit in the binder file if it is used elsewhere
3923         in the partition.
3925 2007-06-06  Vincent Celier  <celier@adacore.com>
3927         * bindusg.adb: Add line for @<response file>
3928         Add lines for new switches -R and -Z
3930         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
3931         hierarchy in the list of files of the closure when -R is used
3932         (Gnatbind): Accept arguments starting with '@' to indicate response
3933         files and take the arguments from the response files.
3934         If List_Closure is set, display the referenced files
3936 2007-06-06  Javier Miranda  <miranda@adacore.com>
3937             Robert Dewar  <dewar@adacore.com>
3938             Ed Schonberg  <schonberg@adacore.com>
3940         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3941         which the address-clause is applied to in-mode actuals (allowed by
3942         13.1(22)).
3943         (Apply_Discriminant_Check): Do not generate a check if the type is
3944         constrained by a current instance.
3945         (Activate_Division_Check): New procedure
3946         (Activate_Overflow_Check): New procedure
3947         (Activate_Range_Check): New procedure
3948         Call these new Activate procedures instead of setting flags directly
3949         (Apply_Array_Size_Check): Removed, no longer needed.
3950         Code clean up: remove obsolete code related to GCC 2.
3951         (Get_E_Length): Protect against bomb in case scope is standard
3952         (Selected_Range_Checks): If the node to be checked is a conversion to
3953         an unconstrained array type, and the expression is a slice, use the
3954         bounds of the slice to construct the required constraint checks.
3955         Improve NOT NULL error messages
3956         (Apply_Constraint_Check): If the context is a null-excluding access
3957         type, diagnose properly the literal null.
3959 2007-06-06  Pascal Obry  <obry@adacore.com>
3961         * clean.adb (Clean_Archive): Use untouched casing for the archive name
3962         and the corresponding .deps file.
3963         (Clean_Interface_Copy_Directory): Use untouched casing for the library
3964         src directory. Minor code-clean-up. Use untouched casing for files
3965         read into the library src dir.
3966         (Clean_Library_Directory): Idem.
3967         (Parse_Cmd_Line): Accept new switch -aP
3969 2007-06-06  Javier Miranda  <miranda@adacore.com>
3970             Ed Schonberg  <schonberg@adacore.com>
3971             Robert Dewar  <dewar@adacore.com>
3972             Eric Botcazou  <ebotcazou@adacore.com>
3973             Arnaud Charlet  <charlet@adacore.com>
3975         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
3976         applicable to types that have the With_Type flag set. Returns the
3977         non-limited view of the type, if available, otherwise the type itself.
3978         For class-wide types, there is no direct link in the tree, so we have
3979         to retrieve the class-wide type of the non-limited view of the Etype.
3980         New attributes Static_Initialization and Static_Elaboration_Desired.
3981         Remove the pragma Thread_Body, and the associated flag
3982         Is_Thread_Body in entities, and all related code.
3983         (Suppress_Value_Tracking_On_Call): New flag
3984         E_Exception has Esize and Alignment fields
3985         (Universal_Aliasing): New function.
3986         (Set_Universal_Aliasing): New procedure.
3987         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
3988         (Check_Nested_Access): New procedure.
3989         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
3990         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3991         (Related_Interface): New attribute. Present in dispatch table pointer
3992         components of records. Set to point to the entity of the corresponding
3993         interface type.
3994         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
3995         (Original_Access_Type): Remove, not needed.
3996         (Root_Type): Handle properly subtypes of class-wide-types.
3997         Update comments.
3999         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
4000         class-wide types visible through limited-with clauses.
4001         (Try_Primitive_Operation): When examining all primitive operations of a
4002         tagged type, do not consider subprograms labeled as hidden unless they
4003         belong to a private generic type with a tagged parent.
4004         (Try_Object_Operation): Extensive rewriting, to handle properly various
4005         overloading cases, when several ancestors may have class-wide operations
4006         that are possible candidates, and when the overloaded functions return
4007         array types and have defaulted parameters so that the call may be
4008         interpreted as an indexing.
4009         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
4010         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
4011         successive actuals before analyzing the call itself.
4012         (Try_Primitive_Operation): A primitive operation is compatible with the
4013         prefix if the prefix has a synchronized type and the type of the formal
4014         is its corresponding record, as can be the case when the primitive
4015         operation is declared outside of the body of the type.
4016         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
4017         perform homonym traversal, looking for class-wide operation matches
4018         (formerly done in statements of Try_Class_Wide_Operation). Matches on
4019         access parameters are now restricted to anonymous access types.
4020         (Mark_Allocator): An allocator with a discriminant association parent is
4021         a coextension.
4022         (Try_One_Prefix_Interpretation): If the type of the object is
4023         incomplete, as can be happen when it is a limited view obtained through
4024         a limited_with_clause, the selected component is not part of a prefixed
4025         call.
4026         (Complete_Object_Operation): Diagnose properly an object that is not
4027         aliased when the corresponding controlling formal is an access
4028         parameter.
4029         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
4030         ambiguous calls in prefixed notation, where two primitives differ only
4031         in that the controlling argument of one is an access parameter.
4033         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
4034         whether a function that returns an unconstrained type can be inlined.
4035         (Process_Formals): Diagnose properly the illegal use of an incomplete
4036         type in the profile of an access_to_subprogram declaration.
4037         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
4038         operations are attached to the corresponding record.
4039         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
4040         When processing a primitive of a concurrent type which implements an
4041         interface change the type of all controlling formals to that of the
4042         corresponding record type.
4043         (Check_Synchronized_Overriding): Relax the conditional logic when trying
4044         to determine the tagged type to which a primitive belongs.
4045         (Check_Conventions): Capture condition to ignore a primitive operation
4046         (which is shared between the loop in Check_Conventions and the one in
4047         Check_Convention) in a new local function Skip_Check.
4048         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
4049         confusion with Check_Conventions' own Prim_Op local variable.
4050         (Create_Extra_Formals): Test for a tagged result type rather than a
4051         controlling result when determining whether to add a BIP_Alloc_Form
4052         formal and a BIP_Final_List formal to the function.
4053         (Check_Conformance); For parameters that are anonymous access types,
4054         subtype conformance requires that the not null and the constant
4055         indicators must match
4056         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
4057         to retrieve the appropriate type when processing a concurrent type
4058         declared within a generic. Minor comment reformatting. Change invocation
4059         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
4060         mitive.
4061         (Analyze_Subprogram_Body): If the return type of a function is an
4062         anonymous access to the limited view of a class-wide type, and the
4063         non-limited view of the type is available, update the type of the
4064         function so that code can be generated.
4065         (Process_Formals): In case of access-subtype itype whose designated
4066         type is also an itype (situation that happens now with access to
4067         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
4068         attribute to avoid backend problems.
4069         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
4070         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
4071         anonymous types' designated types are same before testing
4072         Subtypes_Statically_Match.
4073         (Create_Extra_Formals): Test for a named access parameter that is a
4074         controlling formal as an additional condition for adding an
4075         accessibility level formal. This can occur in the subp type created for
4076         dispatching calls in Expand_Dispatching_Call, and allows calling
4077         Create_Extra_Formals from that procedure rather than special-casing the
4078         extra formals there.
4079         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
4080         when the function has a controlling result.
4081         (Check_Returns): Add much more knowledge of the optimization of local
4082         raise statements to gotos, to retain proper warnings in this case.
4083         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
4084         nodes when looking for last statement.
4086         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
4087         class-wide types visible through limited with clauses.
4088         (Add_One_Interp): If the operands are anonymous access types, the
4089         predefined operator on universal_access is immediately visibles
4090         (Find_Unique_Type): Handle anonymous access to subprogram types just as
4091         other anonymous access types.
4092         (Disambiguate): Take into account CIL convention.
4093         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
4095 2007-06-06  Robert Dewar  <dewar@adacore.com>
4097         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
4098         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
4099         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
4100         Fix lower bound of tables.
4101         Add rep clauses.
4103         * nlists.adb: Ditto.
4104         (Prev_Node, Next_Node): Change index type to Int so that it properly
4105         covers the range First_Node_Id - 1 up.
4107 2007-06-06  Javier Miranda  <miranda@adacore.com>
4108             Ed Schonberg  <schonberg@adacore.com>
4109             Bob Duff  <duff@adacore.com>
4110             Hristian Kirtchev  <kirtchev@adacore.com>
4112         * exp_aggr.ads, exp_aggr.adb: 
4113         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
4114         in extension aggregates.
4115         (Flatten): Other conditions being met, an aggregate is static if the
4116         low bound given by component associations is different from the low
4117         bound of the base index type.
4118         (Packed_Array_Aggregate_Handled): If the component type is itself a
4119         packed array or record, the front-end must expand into assignments.
4120         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
4121         Init_Pr, instead of Ancestor_Is_Expression.
4122         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
4123         coextension chain root, either generate a list controller or use the
4124         already existing one.
4125         (Static_Array_Aggregate): New procedure to construct a positional
4126         aggregate that can be handled by the backend, when all bounds and
4127         components are compile-time known constants.
4128         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
4129         types covering interface types into assignments.
4130         (Replace_Type): move to Build_Record_Aggr_Code.
4131         (Expand_Record_Aggr_Code): if the target of the aggregate is an
4132         interface type, convert to the definite type of the aggregate itself,
4133         so that needed components are visible.
4134         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
4135         components and the context is an extended return statement do not
4136         create a transient block for it, to prevent premature finalization
4137         before the return is executed.
4138         (Gen_Assign): Do not generate a call to deep adjust routine if the
4139         component type is itself an array of controlled (sub)-components
4140         initialized with an inner aggregate.
4141         (Component_Check): New name for Static_Check. This name is now more
4142         appropriate, and documentation is added which was missing.
4143         (Component_Check): Add test for bit aligned component value
4144         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
4145         Tagged_Comps, name is more appropriate given added function below.
4146         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
4148 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
4149             Javier Miranda  <miranda@adacore.com>
4150             Robert Dewar  <dewar@adacore.com>
4152         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
4153         Terminated: Add unchecked type conversion from System.Address to
4154         System.Tasking.Task_Id when calling the predefined primitive
4155         _disp_get_task_id.
4156         Disable new Ada 05 accessibility check for JVM.NET targets, which
4157         cannot be implemented in a practical way.
4158         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
4159         the sources always references the tag of the actual object. Therefore,
4160         if 'Tag is applied in the sources to class-wide interface objects we
4161         generate code that displaces "this" to reference the base of the object.
4162         (Expand_N_Attribute_Reference, case Size): Return specified size if
4163         known to front end.
4164         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
4165         has code that displaces the pointer of the object to manage interface
4166         types. However this code must not be executed when the prefix is a
4167         subprogram. This bug caused the wrong expansion of the internally
4168         generated assignment that fills the dispatch table when the primitive
4169         is a function returning a class-wide interface type.
4170         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
4171         Set_Attribute_Name for Name_Unaligned_Valid.
4173 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4174             Gary Dismukes  <dismukes@adacore.com>
4176         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4177         If the initialization is the equivalent aggregate of the initialization
4178         procedure of the type, do not remove it.
4179         (Expand_N_Attribute_Definition_Clause): Exclude access variables
4180         initialized to null from having their expression reset to empty and
4181         note this exception in the comment.
4183 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
4184             Robert Dewar  <dewar@adacore.com>
4185             Ed Schonberg  <schonberg@adacore.com>
4186             Gary Dismukes  <dismukes@adacore.com>
4188         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
4189         Add "with" and "use" clauses for Sem_Attr.
4190         (Expand_Current_Value): Do not replace occurences of attribute
4191         references where the prefix must be a simple name.
4193         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
4194         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
4195         Attribute_Requires_Simple_Name_Prefix.
4196         (Name_Modifies_Prefix): Body of new function.
4197         (Requires_Simple_Name_Prefix): Body of new function.
4198         (Resolve_Attribute, case Access): Improve error message for case of
4199         mismatched conventions.
4200         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
4201         incomplete type.
4202         (Analyze_Attribute, case 'Access): If the type of the prefix is a
4203         constrained subtype for a nominal unconstrained type, use its base type
4204         to check for conformance with the context.
4205         (Resolve_Attribute): Remove test of the access type being associated
4206         with a return statement from condition for performing accessibility
4207         checks on access attributes, since this case is now captured by
4208         Is_Local_Anonymous_Access.
4209         (Analyze_Access_Attribute): Set Address_Taken on entity
4210         (Analyze_Attribute, case Address): Set Address_Taken on entity
4211         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
4212         validating an access attribute whose prefix is a current instance.
4213         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
4214         applied to dispatching operations, if freezing is required then we set
4215         the attribute Has_Delayed_Freeze in the prefix's entity.
4216         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
4217         current scope if access of local subprogram taken
4218         (Analyze_Access_Attribute): Check legality of self-reference even if the
4219         expression comes from source, as when a single component association in
4220         an aggregate has a box association.
4221         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
4222         the prefix if it is a protected operation and the attribute is
4223         Unrestricted_Access.
4224         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
4225         reference to the base type of the context, to force a constraint check
4226         when the context is an access subtype with an explicit constraint.
4227         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
4228         node is rewritten as an interface conversion. leave unanalyzed after
4229         resolution, to ensure that type checking against the context will take
4230         place.
4232 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4233             Javier Miranda  <miranda@adacore.com>
4234             Robert Dewar  <dewar@adacore.com>
4236         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
4237         wrapper when the full view of the controlling type of an inherited
4238         function that dispatches on result implements interfaces.
4239         (Expand_N_Object_Declaration): In cases where the type of the
4240         declaration is anonymous access, create finalization list for it.
4241         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
4242         if the object has no explicit initialization, to match description of
4243         functionality of pragam Persistent_BSS.
4244         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
4245         new function to build static aggregates, to replace initialization call
4246         when static initialization is desired.
4247         (Freeze_Type): Generate a list controller for an access type whenever
4248         its designated type has controlled anonymous access discriminants.
4249         (Build_Equivalent_Aggregate): New procedure to compute a static
4250         aggregate to be used as default initialization for composite types,
4251         instead of a generating a call to the initialization procedure for the
4252         type.
4253         (Build_Initialization_Call): When available, replace a call to the
4254         initialization procedure with a copy of the equivalent static aggregate
4255         for the type.
4256         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
4257         declarations for objects of a class-wide interface type, rather than
4258         just identifiers, to prevent visibility problems.
4259         (Expand_N_Object_Declaration): When expanding the declaration for an
4260         object of a class-wide interface type, preserve the homonym chain of
4261         the original entity before exchanging it with that of the generated
4262         renaming declaration.
4263         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
4264         active, because there is no way to handle the exception.
4265         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
4266         to do a minimum decoration of the Access_Disp_Table list.
4267         (Expand_Record_Controller): Avoid the addition of the controller between
4268         the component containing the tag of a secondary dispatch table and its
4269         adjacent component that stores the offset to the base of the object.
4270         This latter component is only generated when the parent type has
4271         discriminants ---documented in Add_Interface_Tag_Components).
4272         (Apply_Array_Size_Check): Removed, no longer needed.
4273         (Expand_N_Full_Type_Declaration): If the type has anonymous access
4274         components, create a Master_Entity for it only if it contains tasks.
4275         (Build_Init_Procedure): Suppress the tag assignment compiling under
4276         no run-time mode.
4277         (Freeze_Record_Type): Remove code associated with creation of dispatch
4278         table.
4279         (Init_Secondary_Tags): Update type of actuals when generating calls to
4280         Ada.Tags.Set_Offset_To_Top
4281         (Stream_Operation_OK): Disable use of streams compiling under no
4282         run-time mode
4283         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
4284         if Has_Init_Expression set.
4285         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
4286         Register_Primitive, which provides the same functionality.
4287         (Requires_Init_Proc): Return false in case of interface types.
4288         (Add_Secondary_Tables): Use the new attribute Related_Interface to
4289         cleanup the code.
4290         (Predefined_Primitive_Freeze): Do not assume that an internal entity
4291         is always associated with a predefined primitive because the internal
4292         entities associated with interface types are not predefined primitives.
4293         Therefore, the call to Is_Internal is replaced by a call to the
4294         function Is_Predefined_Dispatching_Operation.
4295         (Make_Eq_If): When generating the list of comparisons for the
4296         components of a given variant, omit the controller component that is
4297         present if the variant has controlled components.
4299 2007-06-06  Javier Miranda  <miranda@adacore.com>
4300             Hristian Kirtchev  <kirtchev@adacore.com>
4301             Bob Duff  <duff@adacore.com>
4303         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
4304         handle the creation of finalization lists and calls for nested
4305         coextensions when the root of the chains is part of a return statement.
4306         (Inside_A_Return_Statement): New function inside Complete_Coextension_
4307         Finalization.
4308         (Expand_Record_Equality): Skip components that are interface types.
4309         (Displace_Allocator_Pointer): Add missing support for interface subtypes
4310         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
4311         with Rewrite_Coextension. Change the condition for detecting coextension
4312         root nodes.
4313         (Is_Local_Access_Discriminant): Removed.
4314         (Rewrite_Coextension): New routine which rewrites a static coextension
4315         as a temporary and uses its unrestricted access in the construction of
4316         the outer object.
4317         (Complete_Coextension_Finalization): New routine. Generate finalization
4318         attachment calls to all delayed coextensions.
4319         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
4320         the allocator is not a coextension itself and has delayed coextensions.
4321         If the current allocator is controlled, but also a coextension, delay
4322         the generation of the finalization attachment call.
4323         Rename local variable "Node" to "Nod" in order to avoid confusion with
4324         "Elists.Node".
4325         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
4326         limited types that are not inherently limited. Such an allocator is
4327         illegal, but is generated by the expander for a return statement, to
4328         copy the result onto the secondary stack. This is the only case where a
4329         limited object can be copied. Generate code to displace the pointer
4330         to the object if the qualified expression is a class-wide interface
4331         object. Such displacement was missing and hence the copy of the object
4332         was wrong.
4333         (Apply_Accessibility_Check): Handle allocated objects initialized in
4334         place.
4335         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
4336         and Expand_Allocator_Expression. Allocating class-wide interface objects
4337         this routine displaces the pointer to the allocated object to reference
4338         the component referencing the corresponding secondary dispatch table.
4339         Expand_Allocator_Expression): Add missing support to allocate class-wide
4340         interface objects initialized with a qualified expression.
4341         (Get_Allocator_Final_List): Test for an anonymous access type that is a
4342         function result type, and use the finalization list associated with the
4343         function scope in that case (such an anonymous type should not be
4344         treated like an access parameter's type).
4346 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4347             Gary Dismukes  <dismukes@adacore.com>
4348             Javier Miranda  <miranda@adacore.com>
4350         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
4351         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
4352         required exception handler.
4353         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
4354         properly the case of a function whose return type is a limited
4355         class-wide interface type. Modify the code of the accessibility
4356         check to handle class-wide interface objects. In this case we need to
4357         displace "this" to reference the primary dispatch table to get access
4358         to the TSD of the object (to evaluate its accessibility level).
4359         (Expand_N_Extended_Return_Statement): Test for a tagged result type
4360         rather than a controlling result as one of the conditions for
4361         generating tests of the implicit BIP_Alloc_Form formal. The
4362         initialization assignment is also handled according to whether the
4363         result is tagged instead of controlling.
4364         In the case where the init assignment is inserted in the "then" part of
4365         the allocation conditional, rewrite the target to be a dereference of
4366         the implicit BIP_Object_Access formal.
4367         If the returned value is unconstrained and created on the secondary
4368         stack, mark the enclosing block and function so that the secondary
4369         stack is not reclaimed on return.
4370         Treat returns from functions with controlling results similarly to
4371         returns from functions with unconstrained result subtypes.
4372         If the object returned is unconstrained, and an allocator must be
4373         created for it, analyze the allocator once the block for the extended
4374         return is installed, to ensure that finalizable components
4375         of the expression use the proper finalization list. Guard the call to
4376         Move_Final_List with a check that there is something to finalize.
4377         (Make_Tag_Ctrl_Assignment): Use "old" handling
4378         of controlled type assignment for virtual machines, since new code uses
4379         unsupported features (such as direct access to bytes in memory).
4381 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
4382             Ed Schonberg  <schonberg@adacore.com>
4384         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
4385         accessibility actual, check for the case of an aliased object that has
4386         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
4387         we fall into processing for the attribute rather than the name of the
4388         object.
4389         (Expand_Inline_Call): If an actual is a literal, and the corresponding
4390         formal has its address taken in the body, create a temporary to capture
4391         value.  If the return type is a limited interface, do not treat the
4392         return value as Controlled.
4393         (Is_In_Place_Function):  If the return type is a limited interface,
4394         treat as returning in place. The actual returned object may not always
4395         be limited, but the caller has to assume that it is returned in place.
4396         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
4397         context of an allocator, use the correct finalization chain (that is,
4398         the chain belonging to the access type, rather than the chain belonging
4399         to the current scope).
4400         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
4401         result type rather than a controlling result as a precondition for
4402         adding an allocation form actual to a build-in-place call.
4403         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
4404         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
4405         primitive in the dispatch tables. This work is now done by Make_DT when
4406         the type is frozen.
4407         (Register_Predefined_DT_Entry): Removed.
4408         (Add_Return): If end label is not present, use sloc of last statement
4409         for generated return statement in procedure, for better gdb behavior
4410         on expanded code.
4411         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
4412         object address nodes to ensure proper processing by routines like
4413         Insert_After*.
4414         (Expand_Call): Fix generation of validity check for parameter
4415         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
4416         the allocation form parameter if the result subtype is constrained,
4417         except when the function has a controlling result.
4418         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
4419         rather than Is_Controlled and Has_Controlled_Component, since we want to
4420         include class-wide result types in this treatment. Also test for a
4421         controlling result, since that also requires passing a finalization
4422         list.
4423         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
4424         even when the result subtype is constrained, to handle calls involving
4425         controlling results.
4426         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
4427         is now called even when the result subtype is constrained, to handle
4428         calls involving controlling results.
4429         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
4430         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
4431         now performs the test).
4432         (Make_Build_In_Place_Call_In_Object_Declaration):
4433         Add_Alloc_Form_Actual_* is now called even when the result subtype is
4434         constrained, to handle calls involving controlling results.
4435         (Add_Return): Accomodate rewritten pattern from local raise to goto
4436         transformation, so that we still recognize an transfer statement
4437         and do the right thing here in that case.
4438         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
4439         and end of subprogram code.
4440         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
4441         support for primitives that are functions (without formals) with a
4442         controlling result.
4443         (Inherited_From_Formal): If the actual subtype has not generic parent
4444         type, it is not an actual for a formal derived type, and there is no
4445         operation to inherit from the formal.
4447 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4448             Thomas Quinot  <quinot@adacore.com>
4450         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
4451         inserted cleanup code appropriately for GDB use.
4452         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
4453         exception handler for Deep_Adjust or Deep_Finalize.
4454         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
4455         Raise_From_Controlled_Operation is available, use a call to that
4456         subprogram instead of a plain "raise Program_Error" node to raise
4457         Program_Error if an exception is propagated from an Adjust or Finalize
4458         operation.
4459         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
4460         appears in the optional statement list of a triggering alternative, the
4461         scope actions can be inserted directly there, and not in the list that
4462         includes the asynchronous select itself.
4464 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4465             Robert Dewar  <dewar@adacore.com>
4466             Hristian Kirtchev  <kirtchev@adacore.com>
4468         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
4469         generated exception handler appropriately when debugging generated code.
4470         Deal properly with No_Exception_Propagation restriction mode.
4471         (Expand_N_Abort_Statement): Add an unchecked type conversion from
4472         System.Address to System.Tasking.Task_Id when processing the result of
4473         the predefined primitive _disp_get_task_id.
4474         (Expand_N_Asynchronous_Select): Clarify comment.
4475         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
4476         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
4477         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
4478         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
4479         privals and for generated call to Complete_Entry_Body, for better gdb
4480         behavior.
4481         (Copy_Result_Type): Utility to construct a parameter and result profile
4482         for protected functions whose return type is an anonymous access to
4483         subprogram.
4484         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
4485         call the above.
4486         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
4487         point when the local-raise-to-goto transformation has taken place.
4489 2007-06-06  Javier Miranda  <miranda@adacore.com>
4490             Nicolas Setton  <setton@adacore.com>
4492         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
4493         functionality when the backend is generating code.
4494         Otherwise any serious error
4495         reported by the backend calling the frontend routine Error_Msg
4496         changes the Compilation_Mode to Check_Semantics, disables the
4497         functionality of this routine and causes the generation of
4498         spureous additional errors.
4500         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
4501         debugging information now generated by the compiler for fat-pointer
4502         types.
4503         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
4504         DWARF2/3.
4505         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
4507 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4509         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
4510         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
4511         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
4512         For a remote call to a function with a classwide return type, apply an
4513         E.4(18) check to the returned value.
4514         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
4515         stream attributes of the designated type of an RACW, as they are not
4516         dispatching primitive operations.
4518 2007-06-06  Geert Bosch  <bosch@adacore.com>
4520         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
4521         negative literal
4522         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
4523         positive
4524         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
4525         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
4526         positive
4527         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
4529 2007-06-06  Javier Miranda  <miranda@adacore.com>
4531         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
4532         attribute compiling package Ada.Tags under No_Run_Time_Mode.
4534 2007-06-06  Javier Miranda  <miranda@adacore.com>
4536         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
4537         deallocation of class-wide interface objects.
4538         (Expand_Dispatching_Constructor_Call): Take into account that if the
4539         result of the dispatching constructor is an interface type, the
4540         function returns a class-wide interface type; otherwise the returned
4541         object would be actual. The frontend previously accepted returning
4542         interface types because Expand_Interface_Actuals silently performed
4543         the management of the returned type "as if" it were a class-wide
4544         interface type.
4545         (Expand_Dispatching_Constructor_Call): Replace call to
4546         Make_DT_Access_Action by direct call to Make_Function_Call.
4548 2007-06-06  Robert Dewar  <dewar@adacore.com>
4549             Ed Schonberg  <schonberg@adacore.com>
4551         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
4552         compute masking constant, since we now set Esize properly to the
4553         underlying size.
4554         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
4555         to match the alignment.
4556         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
4557         packed arrays of 8 bits or less.
4559         * freeze.adb (Freeze_Entity): When freezing the formals of a
4560         subprogram, freeze the designated type of a parameter of an access type
4561         only if it is an access parameter.
4562         Increase size of C convention enumeration object
4563         (Freeze_Entity, array type case): Make sure Esize value is properly
4564         adjusted for the alignment if it is known.
4565         (Freeze_Entity, array type case): When checking bit packed arrays for
4566         the size being incorrect, check RM_Size, not Esize.
4567         (Freeze_Record_Type): Check for bad discriminated record convention
4568         (In_Exp_Body): Return true if the body is generated for a subprogram
4569         renaming, either an attribute renaming or a renaming as body.
4570         (Check_Itype): If the designated type of an anonymous access component
4571         is a non-protected subprogram type, indicate that it is frozen, to
4572         prevent out-of-scope freeze node at some subsequent call.
4573         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
4574         only if the subprogram is neither imported nor exported, as well as the
4575         NCA descriptor class if the subprogram is exported.
4577 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4578             Arnaud Charlet  <charlet@adacore.com>
4579             Robert Dewar  <dewar@adacore.com>
4580             Gary Dismukes  <dismukes@adacore.com>
4582         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
4583         default initialization on an imported object, when there is no
4584         initialization call generated for it.
4585         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
4586         restriction
4588         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
4589         Static_Elaboration_Desired.
4590         Remove pragma Thread_Body.
4591         Implement a new pragma No_Body
4592         Removes the Explicit_Overriding pragma
4593         Remove Optional_Overriding pragma
4594         (Prag): Deal with Universal_Aliasing.
4595         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4596         Pragma_CIL_Constructor): New names.
4598         * sem_cat.adb (Validate_Object_Declaration): An initialization that
4599         uses the equivalent aggregate of a type must be treated as an implicit
4600         initialization.
4601         (Get_Categorization): Check a unit for pragma Preelaborate only if it
4602         has none of the other categories.
4603         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
4604         to apply Import to an object renaming declaration.
4606         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
4607         from a C++ class should be declared as limited and that it will be
4608         considererd limited.
4609         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
4610         should be declared as limited and that it will be considererd limited.
4611         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
4612         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
4613         (Analyze_Pragma): Deal with Universal_Aliasing.
4614         (Sig_Flags): Likewise.
4615         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
4616         (Overflow_Checks_Unsuppressed): New flag.
4617         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4618         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
4619         case of JVM or .NET targets, and compiling user code.
4620         Add debugging convenience routine rv
4622 2007-06-06  Robert Dewar  <dewar@adacore.com>
4624         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
4625         are interface type.
4626         (Build_Elementary_Input_Call): For floating-point use right type in the
4627         absence of strange size or stream size clauses.
4628         (Build_Elementary_Write_Call): Same fix
4629         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
4630         set to value that does not match base type size.
4632 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4634         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
4635         object of a limited type can be initialized with a call to a function
4636         that returns in place. If the limited type has unknown discriminants,
4637         and the underlying type is a constrained composite type, build an actual
4638         subtype from the function call, as is done for private types.
4639         (Side_Effect_Free): An expression that is the renaming of an object or
4640         whose prefix is the renaming of a object, is not side-effect free
4641         because it may be assigned through the renaming and its value must be
4642         captured in a temporary.
4643         (Has_Controlled_Coextensions): New routine.
4644         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
4645         as is done for other limited types.
4646         (Non_Limited_Designated_Type): new predicate.
4647         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
4648         objects.
4649         Remove all handling of with_type clauses.
4651         * par-ch10.adb: Remove all handling of with_type clauses.
4653         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
4654         checksum if the main source could not be parsed.
4655         (Loat_Unit): When processing a child unit, determine properly whether
4656         the parent unit is a renaming when the parent is itself a child unit.
4657         Remove handling of with_type clauses.
4659         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
4660         (Set_Is_Static_Coextension): New procedure.
4661         (Has_Local_Raise): New function
4662         (Set_Has_Local_Raise): New procedure
4663         (Renaming_Exception): New field
4664         (Has_Init_Expression): New flag
4665         (Delay_Finalize_Attach): Remove because flag is obsolete.
4666         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
4667         Remove all handling of with_type clauses.
4668         (Exception_Junk): Can now be set in N_Block_Statement
4670 2007-06-06  Vincent Celier  <celier@adacore.com>
4671             Robert Dewar  <dewar@adacore.com>
4673         * frontend.adb (Frontend): Return immediately if the main source could
4674         not be parsed, because of preprocessing errors.
4676         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
4677         (Gnat1drv): Exit with errors if the main source could not be parsed,
4678         because of preprocessing errors.
4679         (Check_Rep_Info): New procedure
4681 2007-06-06  Robert Dewar  <dewar@adacore.com>
4683         * g-hesorg.ads, g-heasor.ads,
4684         g-busorg.ads, g-bubsor.ads: Update documentation
4685         GNAT.Heap/Bubble_Sort_G is now pure
4687 2007-06-06  Robert Dewar  <dewar@adacore.com>
4689         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
4691 2007-06-06  Robert Dewar  <dewar@adacore.com>
4692             Ed Schonberg  <schonberg@adacore.com>
4694         * g-comlin.ads, g-comlin.adb: 
4695         Add new warning for renaming of function return objects
4697         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
4698         (Tree_Read): Use size of object instead of type'object_size, since the
4699         latter is incorrect for packed array types.
4700         (Tree_Write): Same fix
4702         * opt.ads: Add new warning for renaming of function return objects
4703         (Generating_Code): New boolean variable used to indicate that the
4704         frontend as finished its work and has called the backend to process
4705         the tree and generate the object file.
4706         (GCC_Version): Is now private
4707         (Static_Dispatch_Tables): New constant declaration.
4708         (Overflow_Checks_Unsuppressed): New flag.
4709         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4710         (List_Closure): New flag for gnatbind (-R)
4711         Zero_Formatting: New flag for gnatbind (-Z)
4712         (Special_Exception_Package_Used): New flag.
4713         (Warn_On_Unrepped_Components): New flag.
4715         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
4716         unit is a compilation unit, rather than relying on its scope, so that
4717         Standard can be renamed.
4718         (Analyze_Object_Renaming): Add new warning for renaming of function
4719         return objects.
4720         Also reject attempt to rename function return object in Ada 83 mode.
4721         (Attribute_Renaming): In case of tagged types, add the body of the
4722         generated function to the freezing actions of the type.
4723         (Find_Type): A protected type is visible right after the reserved word
4724         "is" is encountered in its type declaration. Set the entity and type
4725         rather than emitting an error message.
4726         (New_Scope): Properly propagate Discard_Names to inner scopes
4727         (Check_Nested_Access): New procedure.
4728         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
4729         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4731         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
4732         Add new warning for renaming of function return objects
4733         (Check_References): Suppress warnings for objects whose type or
4734         base type has Warnings suppressed.
4735         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
4736         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
4738 2007-06-06  Vincent Celier  <celier@adacore.com>
4739             Emmanuel Briot  <briot@adacore.com>
4740             Olivier Hainque  <hainque@adacore.com>
4742         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
4743         absolute value of Header.Block_Size when displaying the freed physical
4744         memory in traces.
4745         (Allocate): Compute Storage_Address using Integer_Address, not
4746         Storage_Offset, because the range of Storage_Offset may not be large
4747         enough.
4748         (Configure): New parameter Low_Level_Traces
4749         (Allocate, Deallocation, Free_Physically): Added low-level traces
4750         (Configure): new parameter Errors_To_Stdout.
4751         (Output_File): new subprogram
4752         (Deallocate, Dereference): Send error messages to the proper stream
4753         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
4754         documented. Previous code would send it to the current output file
4755         defined in GNAT.IO, which might not be stdout
4756         (Is_Valid): Adjust comment to mention that a positive reply means that
4757         Header_Of may be used to retrieve the allocation header associated with
4758         the subprogram Storage address argument. Return False early if this
4759         address argument is misaligned.
4761 2007-06-06  Vincent Celier  <celier@adacore.com>
4763         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
4764         switch -P
4765         (ASIS_Main): New global variable
4766         (Get_Closure): New procedure
4767         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
4768         check, metric or pretty. Call Get_Closure in this case.
4769         (Check_Files): For GNAT LIST, check all sources of all projects when
4770         All_Projects is True.
4771         (GNATCmd): Accept -U for GNAT LIST
4773 2007-06-06  Vincent Celier  <celier@adacore.com>
4775         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
4776         has been specified
4777         Correct error message when invocation of the linker fails
4778         Add explicit size clause for the C imported variables
4779         Object_List_File_Supported and Using_GNU_Linker to emphasize that
4780         we expect char size.
4781         Read target parameters earlier, since this is needed to set
4782         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
4783         targets.
4785 2007-06-06  Vincent Celier  <celier@adacore.com>
4787         * gnatls.adb: 
4788         Add 3 spaces before the default project directory when displaying
4789         the project search path.
4790         Add new command line switch '-l' to display license information.
4792 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
4794         * gmem.c: Add support for timestamps on memory operations.
4796         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
4797         operations (not used currently, just foundation for future
4798         enhancements). Add possibility to perform full dump of gmem.out file.
4799         (Print_Back_Traces): Declare accesses to root arrays constants since
4800         they aren't modified.
4801         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
4803 2007-06-06  Vincent Celier  <celier@adacore.com>
4805         * gnatsym.adb: Update Copyright notice
4806         (Parse_Cmd_Line): Accept new switch -D
4807         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
4808          file.
4810         * prj.ads (Policy): New policy Direct
4811         (Yes_No_Unknown): New enumeration type
4812         (Project_Data): New component Libgnarl_Needed
4814         * prj-nmsc.adb (Check_For_Source): When recording a source file make
4815         use the untouched pathname casing.
4816         (Get_Directories): Ensure that the Display_Exec_Directory is using the
4817         proper casing on non case-sensitive platforms like Windows.
4818         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
4819         on all platforms, as it is not possible to know which one is allowed
4820         before processing the project files.
4821         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
4822         specified when symbol policy is Direct. Check that when there is a
4823         symbol file defined (either by default or with attribute
4824         Library_Symbol_File) it is not the same as the reference symbol file.
4825         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
4826         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
4827         extending projects.
4828         (Record_Ada_Source): Record a source that has been locally removed in an
4829         imported project.
4831         * symbols.ads (Policy): New policy Direct
4833         * symbols-vms.adb (Initialize): Take new policy Direct in case
4834         statement
4836 2007-06-06  Vincent Celier  <celier@adacore.com>
4838         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
4839         Correct obvious bug (return Dir; instead of return Directory;).
4840         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
4842 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4844         * g-pehage.adb (Produce): Open output files in Binary mode, so that
4845         they have UNIX line endings (LF only) even on Windows, and thus pass
4846         all GNAT style checks.
4848 2007-06-06  Emmanuel Briot  <briot@adacore.com>
4850         * g-regpat.adb (Quote): Fix improper quoting of '.'
4852 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4854         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
4855         default, set False on a per-runtime basis.
4856         (Need_Netdb_Buffer): New constant.
4858         * g-socket.ads, g-socket.adb: Import new package
4859         GNAT.Sockets.Thin.Task_Safe_NetDB.
4860         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
4861         binding to obtain proper message.
4862         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
4863         Replace various occurrences of Arry (Arry'First)'Address with the
4864         equivalent Arry'Address (GNAT always follows implementation advice from
4865         13.3(14)).
4866         (Get_Host_By_Address, Get_Host_By_Name,
4867         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
4868         instead, rely on platform-specific task safe netdb operations provided
4869         by g-socthi.
4871         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
4872         parameter Process_Blocking_IO.
4873         (Host_Error_Messages): Add stub body.
4874         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4875         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
4876         Safe_Getservbyport): Move functions into new child package
4877         Task_Safe_NetDB.
4878         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
4879         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
4880         (In_Addr): Add alignment clause.
4882 2007-06-06  Robert Dewar  <dewar@adacore.com>
4884         * g-trasym.ads, g-traceb.ads: Update list of supported targets
4885         Add note about symbolic traceback
4887 2007-06-06  Pascal Obry  <obry@adacore.com>
4889         * hostparm.ads (Normalized_CWD): Use the host directory separator
4890         instead of the hardcoded forward slash which is not the proper
4891         character on Windows for example.
4892         (Java_VM): Removed.
4894 2007-06-06  Vincent Celier  <celier@adacore.com>
4895             Arnaud Charlet  <charlet@adacore.com>
4897         * a-clrefi.adb, a-clrefi.ads: New files
4899         * impunit.adb: Add s-os_lib in the list of user visible units.
4900         (Non_Imp_File_Names_95): Add a-clrefi to this list
4901         Remove obsolete run-time entries.
4902         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
4903          "a-exetim" -- Ada.Execution_Time
4904          "a-extiti" -- Ada.Execution_Time.Timers
4906         * mlib-prj.ads, mlib-prj.adb
4907         (Build_Library): Use untouched object dir and library dir. At the
4908         same time makes sure that the checks are done using the canonical
4909         form. Removes hard-coded directory separator and use the proper host
4910         one instead.
4911         (Process_Project): Do not look in object directory to check if libgnarl
4912         is needed for a library, if there is no object directory.
4913         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
4914         linking.
4915         (Build_Library): When invoking gnatbind, use a response file if the
4916         total size of the arguments is too large.
4918         * Makefile.rtl: (g-sttsne): New object file.
4919         Add entry for a-clrefi, s-utf_32, System.Exceptions
4921         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
4922         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
4923         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
4924         Change g-string to s-string, g-os_lib to s-os_lib
4925         Change all g-utf_32 references to s-utf_32
4927 2007-06-06  Tristan Gingold  <gingold@adacore.com>
4928             Olivier Hainque  <hainque@adacore.com>
4930         * init.c: Do not adjust IP of an imported VMS exception of ia64.
4931         LIB$STOP is called to raise an exception and the IP of the exception
4932         is the instruction right after the call.
4933         (__gnat_adjust_context_for_raise, AIX): Implement.
4934         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
4935          adjust_context_for_raise before Raise_From_Signal_Hanler.
4936         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
4937         siginfo is passed to the handler, necessary to let the zcx propagation
4938         engine unwind past it.
4940 2007-06-06  Olivier Hainque  <hainque@adacore.com>
4942         * initialize.c (__gnat_initialize for vxworks):  Update documentation
4943         on the ZCX support, using different sets of crtstuff objects than with
4944         GCC 3.4.
4946 2007-06-06  Robert Dewar  <dewar@adacore.com>
4948         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
4949         spec from body
4950         (Layout_Type): Fix recomputation of size from alignment.
4952 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4953             Javier Miranda  <miranda@adacore.com>
4955         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
4956         association in an instance.
4957         (Copy_Generic_Node): If the node is a string literal, no need to copy
4958         its descendants.
4959         (Is_Generic_Formal): For a formal subprogram, the declaration is the
4960         grandparent of the entity.
4961         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
4962         to simplify handling of formal interfaces that derive from other formal
4963         interfaces.
4964         (Instantiate_Subprogram_Body): The defining unit name of the body of
4965         the instance should be a defining identifier.
4966         (Install_Formal_Packages): make global to the package, for use in
4967         instantiations of child units.
4968         (Analyze_Package_Instantiation): Do not attempt to set information on an
4969         enclosing master of an entry when expansion is disabled.
4970         (Instantiate_Type): If the actual is a tagged synchronized type and the
4971         generic ancestor is an interface, create a generic actual for the
4972         corresponding record.
4973         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
4974         declaration, to ensure that the interface list is processed correctly.
4975         (Inline_Instance_Body): If enclosing scope is an instance body, remove
4976         its entities from visibiility as well.
4977         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
4978         given with a named association, analyze the expression only, not the
4979         discriminant association itself.
4980         (Reset_Entity): If the analysis of a selected component is transformed
4981         into an expanded name in the prefix of a call with parameters, do not
4982         transform the original node into an expanded name, to prevent visibility
4983         errors in the case of nested generics.
4984         (Check_Private_View): For an array type, check whether the index types
4985         may need exchanging.
4987 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4988             Vincent Celier  <celier@adacore.com>
4990         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
4991         since both are separated.
4992         Add support for imported CIL packages.
4993         Add further special handling of "value_type" for CIL.
4994         Add special handling of pragma Import for CIL.
4996         * make.ads, make.adb: When switch -eS is used, direct all outputs to
4997         standard output instead of standard error, except errors.
4998         (Absolute_Path): Use untouched casing for the parent directory.
4999         (Add_Library_Search_Dir): Use the untouched directory name.
5000         (Add_Source_Search_Dir): Idem.
5001         (Change_To_Object_Directory): Update output to use proper casing.
5002         (Create_Binder_Mapping_File): Use the untouched filename to set
5003         ALI_Name.
5004         (Gnatmake): Use untouched library and executable directory names.
5005         (Insert_Project_Sources): Use untouched filename for spec and body.
5006         (Is_In_Object_Directory): Use untouched object directory.
5007         (Mark_Directory): Idem.
5008         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
5009         contains the non-canonical filename in all cases.
5010         (Change_To_Object_Directory): In verbose mode, display the name of the
5011         object directory we're changing to.
5012         (Compile_Sources): Make sure, when a project file is used, to compile
5013         the body of the unit, when there is one, even when only the spec is
5014         recorded in an ALI file.
5015         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
5016         spec to the body.
5017         (Report_Compilation_Failed): New procedure
5018         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
5019         procedures moved from the spec to the body.
5020         (Extract_Failure): Removed, not used
5021         Replace explicit raises of exception Bind_Failed and Link_Failed with
5022         calls to Make_Failed with the proper message.
5023         Replace explicit raises of exception Compilation_Failed with calls to
5024         procedure Report_Compilation_Failed.
5025         (Initialize): Create mapping files unconditionally when using project
5026         files.
5028         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
5029         Pragma_CIL_Constructor): New names.
5031         * targparm.ads, targparm.adb
5032         (Compiler_System_Version): Removed, no longer used.
5033         (Get_Target_Parameters): Relax checks on system.ads validity. Add
5034         handling of two new system flags: JVM and CLI.
5036 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
5037             Arnaud Charlet  <charlet@adacore.com>
5039         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
5040         time, use the default s-interr body that provides interrupt support
5041         based on signals.
5042         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
5043         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
5044         g-soccon.ads, and s-taprop.adb for the marte run time.
5045         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
5046         timers are supported on marte.
5047         (EH_MECHANISM for marte): Do not use ZCX.
5048         (THREADSLIB for marte): Use -lmarte.
5049         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
5050         Add mlib-tgt-specific.o to gnatmake objects
5051         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
5052         longer of MLib.Tgt.
5053         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
5054         6, either kernel or rtp, use a specialized version of s-osinte.ads.
5056 2007-06-06  Pascal Obry  <obry@adacore.com>
5058         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
5060 2007-06-06  Vincent Celier  <celier@adacore.com>
5062         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
5063         separator, use instead the proper host directory separator.
5064         (Copy_ALI_Files): Make sure that an already existing ALI file in the
5065         ALI copy dir is writable, before doing the copy.
5067         * mlib-utl.ads, mlib-utl.adb: 
5068         (Gcc): If length of command line is too long, put the list of object
5069         files in a response file, if this is supported by the platform.
5070         (Ar): If invocation of the archive builder is allowed to be done in
5071         chunks and building it in one shot would go above an OS dependent
5072         limit on the number of characters on the command line, build the archive
5073         in chunks.
5075 2007-06-06  Vincent Celier  <celier@adacore.com>
5077         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
5078         of specified object file is not equal to base name of source.
5080 2007-06-06  Javier Miranda  <miranda@adacore.com>
5081             Hristian Kirtchev  <kirtchev@adacore.com>
5082             Ed Schonberg  <schonberg@adacore.com>
5084         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
5085         the full type declaration.
5086         (Analyze_Component_Declaration): Add local variable E to capture the
5087         initialization expression of the declaration. Replace the occurences of
5088         Expression (N) with E.
5089         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
5090         limited interface object with a function call.
5091         (Array_Type_Declaration): If the declaration lacks subtype marks for
5092         indices, create a simple index list to prevent cascaded errors.
5093         (Is_Null_Extension): Ignore internal components created for secondary
5094         tags when checking whether a record extension is a null extension.
5095         (Check_Abstract_Interfaces): Add missing support for interface subtypes
5096         and generic formals.
5097         (Derived_Type_Declaration): Add missing support for interface subtypes
5098         and generic formals.
5099         (Analyze_Object_Declaration): If an initialization expression is
5100         present, traverse its subtree and mark all allocators as static
5101         coextensions.
5102         (Add_Interface_Tag_Component): When looking for components that may be
5103         secondary tags, ignore pragmas that can appear within a record
5104         declaration.
5105         (Check_Abstract_Overriding): an inherited function that dispatches on
5106         result does not need to be overriden if the controlling type is a null
5107         extension.
5108         (Mentions_T): Handle properly a 'class attribute in an anonymous access
5109         component declaration, when the prefix is an expanded name.
5110         (Inherit_Component): If the derivation is for a private extension,
5111         inherited components remain visible and their ekind should not be set
5112         to Void.
5113         (Find_Type_Of_Object): In the case of an access definition, always set
5114         Is_Local_Anonymous_Access. We were previously not marking the anonymous
5115         access type of a return object as a local anonymous type.
5116         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
5117         range with character literal bounds.
5118         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
5119         (Access_Subprogram_Declaration): Indicate that the type declaration
5120         depends on an incomplete type only if the incomplete type is declared
5121         in an open scope.
5122         (Analyze_Subtype_Declaration): Handle properly subtypes of
5123         synchronized types that are tagged, and that may appear as generic
5124         actuals.
5125         (Access_Subprogram_Declaration): An anonymous access to subprogram can
5126         appear as an access discriminant in a private type declaration.
5127         (Add_Interface_Tag_Components): Complete decoration of the component
5128         containing the tag of a secondary dispatch table and the component
5129         containing the offset to the base of the object (this latter component
5130         is only generated when the parent type has discriminants --as documented
5131         in this routine).
5132         (Inherit_Components): Use the new decoration of the tag components to
5133         improve the condition that avoids inheriting the components associated
5134         with secondary tags of the parent.
5135         (Build_Discriminanted_Subtype): Indicate to the backend that the
5136         size of record types associated with dispatch tables is known at
5137         compile time.
5138         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
5139         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
5140         to include task, protected, and synchronized interfaces as limited
5141         interfaces.
5142         (Process_Discriminants): Remove the setting of
5143         Is_Local_Anonymous_Access on the type of (anonymous) access
5144         discriminants of nonlimited types.
5145         (Analyze_Interface_Type_Declaration): Complete the decoration of the
5146         class-wide entity it is is already present. This situation occurs if
5147         the limited-view has been previously built.
5148         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
5149         field.
5150         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
5151         Related_Interface.
5153 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5155         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
5156         of the type that specify the position of interface tags when the type
5157         inherits discriminated array components from the parent type.
5158         If a component is initialized with a box, check for the presence of a
5159         default expression in its declaration before using its default
5160         initialization procedure.
5161         (Resolve_Record_Aggregate): If a component is box-initialized, and the
5162         component type has a discriminants, create a partial aggregate for it
5163         by copying the discriminants of the component subtype.
5164         Reject attempt to initialize a discriminant with a box.
5165         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
5166         associated with dispatch tables is known at compile time.
5167         (Get_Value): If an association in a record aggregate has a box
5168         association, and the corresponding record component has a default
5169         expression, always copy the default expression, even when the
5170         association has a single choice, in order to create a proper
5171         association for the expanded aggregate.
5173 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5174             Robert Dewar  <dewar@adacore.com>
5176         * par-ch12.adb (P_Generic_Associations): The source position of an
5177         Others association is that of the others keyword, not that of the token
5178         that follows the box.
5179         (P_Formal_Type_Definition): Handle formal access types that carry a
5180         not null indicator.
5182         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
5183         multiple identifier are present, save Scan_State before scanning the
5184         colon, to ensure that separate trees are constructed for each
5185         declaration.
5186         (P_Identifier_Declarations): For object declaration, set new flag
5187         Has_Init_Expression if initialization expression present.
5188         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
5189         Improve NOT NULL error messages
5191 2007-06-06  Robert Dewar  <dewar@adacore.com>
5193         * par-ch4.adb: (P_Name): Recover from literal used as name
5195 2007-06-06  Vincent Celier  <celier@adacore.com>
5197         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
5198         defaulted to False.
5199         In the "not" case, recursive call with Complemented set to True.
5200         Do not allow "or" or "and" operators when Complemented is True.
5202 2007-06-06  Vincent Celier  <celier@adacore.com>
5204         * prj.adb (Project_Empty): Gives default value for new component
5205         Libgnarl_Needed
5207         * prj-attr.ads: Minor reformatting
5209         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
5210         directory using the untouched casing.
5211         (For_All_Source_Dirs): Idem.
5213         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
5214         directories specified with switches -aP.
5215         (Add_Search_Project_Directory): New procedure
5216         (Initialize_Project_Path): Put the directories in table
5217         Search_Directories in the project search path.
5218         (Initialize_Project_Path): For VMS, transform into canonical form the
5219         project path.
5221 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5223         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
5224         true if configurable run-time or No_Run_Time is set.
5225         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
5226         processing an unit which is not the one being compiled.
5228 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5230         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
5231         Replace UC by Ada.UC
5233         * s-bitops.adb: Get rid of System.Pure_Exceptions.
5234         Replace UC by Ada.UC
5236 2007-06-06  Robert Dewar  <dewar@adacore.com>
5238         * scng.adb: (Check_End_Of_Line): Deal with very long lines
5240 2007-06-06  Robert Dewar  <dewar@adacore.com>
5242         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
5243         Remove no longer used nodes.
5245 2007-06-06  Javier Miranda  <miranda@adacore.com>
5246             Ed Schonberg  <schonberg@adacore.com>
5247             Robert Dewar  <dewar@adacore.com>
5249         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
5250         on obsolescent withed unit in case of limited-withed units.
5251         (Analyze_Compilation_Unit): Add guard to code that removed an
5252         instantiation from visibility, to prevent compiler aborts when
5253         instantiation is abandoned early on.
5254         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
5255         current unit being analyzed, and Distinguish local incomplete types
5256         from limited views of types declared elsewhere.
5257         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
5258         to state that the class-wide entity is shared by the limited-view
5259         and the full-view.
5260         (Analyze_With_Clause): Improve placement of flag for case of
5261         unimplemented unit.
5262         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
5263         manner similar to GNAT.Current_Exception. This is a violation of
5264         restriction (No_Exception_Propagation), and also inhibits the
5265         optimization of local raise to goto.
5266         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
5267         and if so set Most_Recent_Exception_Used flag in Opt, and also check
5268         for violation of restriction No_Exception_Propagation.
5270 2007-06-06  Javier Miranda  <miranda@adacore.com>
5271             Hristian Kirtchev  <kirtchev@adacore.com>
5272             Gary Dismukes  <dismukes@adacore.com>
5274         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
5275         use of entity Exception_Occurrence if it is not available in the
5276         target run-time.
5278         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
5279         concurrent types are declared within an Ada 2005 generic, build their
5280         corresponding record types since they are needed for overriding-related
5281         semantic checks.
5282         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
5283         protected type does not implement a task interface or a nonlimited
5284         interface.
5285         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
5286         type does not implement a protected interface or a nonlimited interface.
5287         (Single_Task_Declaration, Single_Protected_Declaration): use original
5288         entity for variable declaration, to ensure that debugging information
5289         is correcty generated.
5290         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
5291         routines if the expander is not active.
5292         (Analyze_Task_Body): Mark all handlers to stop optimization of local
5293         raise, since special things happen for task exception handlers.
5295         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
5296         concurrent types declared within a generic.
5297         (Check_Dispatching_Operation): Do not emit warning about late interface
5298         operations in the context of an instance.
5299         (Check_Dispatching_Call): Remove restriction against calling a
5300         dispatching operation with a limited controlling result.
5301         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
5302         Register_Interface_DT_Entry by calls to Register_Primitive.
5303         (Check_Dispatching_Formals): Handle properly a function with a
5304         controlling access result.
5306 2007-06-06  Robert Dewar  <dewar@adacore.com>
5307             Arnaud Charlet  <charlet@adacore.com>
5309         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
5310         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
5311         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
5312         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
5313         message when using a VM, since this attribute is not supported.
5314         (Analyze_Record_Representation_Clause): Give unrepped component warnings
5316         * usage.adb: Add new warning for renaming of function return objects
5317         Indicate that -gnatwp and -gnatwP concern front-end inlining
5318         Add line for -gnatyg
5319         Add usage information for -gnatw.c/C
5321 2007-06-06  Robert Dewar  <dewar@adacore.com>
5322             Ed Schonberg  <schonberg@adacore.com>
5324         * sem_ch5.adb
5325         (Find_Var): Do not consider function call in test for infinite loop
5326         warning if warnings set off for function entity.
5327         (One_Bound): Do not create a temporary for a loop bound if it is a
5328         character literal.
5329         (Analyze_Assignment): Traverse the right hand side of an assignment and
5330         mark all allocators as static coextensions.
5331         (Analyze_Assignment): Exempt assignments involving a dispatching call
5332         to a function with a controlling access result from the check requiring
5333         the target to be class-wide.
5335 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5336             Ed Schonberg  <schonberg@adacore.com>
5337             Robert Dewar  <dewar@adacore.com>
5338             Javier Miranda  <miranda@adacore.com>
5340         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
5341         chain of coextensions when an allocator serves as the root of such a
5342         chain.
5343         (Propagate_Coextensions): Remove the test for the root being an
5344         allocator.
5345         (Resolve_Allocator): Add condition to ensure that all future decoration
5346         occurs on an allocator node. Add processing and cleanup for static
5347         coextensions.
5348         (Valid_Conversion): If the operand type is the limited view of a
5349         class-wide type, use the non-limited view is available to determine
5350         legality of operation.
5351         (Ambiguous_Character): move to spec, for use elsewhere.
5352         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
5353         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
5354         character literals.
5355         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
5356         Do_Division_Check flag explicitly.
5357         (Resolve_Actuals): If the actual is of a synchronized type, and the
5358         formal is of the corresponding record type, this is a call to a
5359         primitive operation of the type, that is declared outside of the type;
5360         the actual must be unchecked-converted to the type of the actual
5361         (Resolve_Call): Kill all current values for any subprogram call if
5362         flag Suppress_Value_Tracking_On_Call is set.
5363         (Resolve_Type_Conversion): Generate error message the the operand
5364         or target of interface conversions come from a limited view.
5365         (Check_Infinite_Recursion): Ignore generated calls
5366         (Check_Allocator_Discrim_Accessibility): New procedure for checking
5367         that an expression that constrains an access discriminant in an
5368         allocator does not denote an object with a deeper level than the
5369         allocator's access type.
5370         (Resolve_Allocator): In the case of an allocator initialized by an
5371         aggregate of a discriminated type, check that associations for any
5372         access discriminants satisfy accessibility requirements by calling
5373         Check_Allocator_Discrim_Accessibility.
5374         (Resolve_Equality_Op): Handle comparisons of anonymous access to
5375         subprogram types in the same fashion as other anonymous access types.
5376         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
5377         message that is not a continuation message.
5378         (Resolve_Type_Conversion): Add missing support for conversion to
5379         interface type.
5380         (Resolve_Actuals): Introduce a transient scope around the call if an
5381         actual is a call to a function returning a limited type, because the
5382         resulting value must be finalized after the call.
5383         (Resolve_Actuals): If the call was given in prefix notations, check
5384         whether an implicit 'Access reference or implicit dereference must be
5385         added to make the actual conform to the controlling formal.
5387 2007-06-06  Robert Dewar  <dewar@adacore.com>
5388             Javier Miranda  <miranda@adacore.com>
5390         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
5391         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
5392         overriding of an inherited private subprogram now there is no need to
5393         inherit its dispatching slot and reduce the size of the dispatch table.
5394         Set_All_DT_Position now ensures that the same slot is now assigned to
5395         both entities. This is required to statically build the dispatch table.
5396         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
5397         of calling Set_All_DT_Position to re-evaluate the position of the
5398         entries in the dispatch table. Such reevaluation is not desired if
5399         the tagged type is already frozen.
5401 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5402             Gary Dismukes  <dismukes@adacore.com>
5403             Robert Dewar  <dewar@adacore.com>
5404             Javier Miranda  <miranda@adacore.com>
5406         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
5407         reference acts as an lvalue when the attribute name modifies the prefix
5408         (Is_Coextension_Root): New routine.
5409         (Mark_Static_Coextensions): New routine.
5410         (Type_Access_Level): Revise code for checking the level of the
5411         anonymous access type of a return object.
5412         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
5413         (Matches_Prefixed_View_Profile): Remove the no longer necessary
5414         retrieval of the corresponding controlling record type.
5415         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
5416         concurrent types declared within a generic as well as class wide types.
5417         Emit a mode incompatibility error whenever a protected entry or routine
5418         override an interface routine whose first parameter is not of mode
5419         "out", "in out" or access to variable.
5420         (Overrides_Synchronized_Primitive): Rename to
5421         Find_Overridden_Synchronized_Primitive.
5422         (Collect_Interface_Components): New subprogram that collects all the
5423         components of a tagged record containing tags of secondary dispatch
5424         tables.
5425         (Add_Global_Declaration): New procedure
5426         (Abstract_Interface_List): Handle properly the case of a subtype of a
5427         private extension.
5428         (Type_Access_Level): In the case of a type whose parent scope is a
5429         return statement, call Type_Access_Level recursively on the enclosing
5430         function's result type to determine the level of the return object's
5431         type.
5432         (Build_Elaboration_Entity): Build name of elaboration entity from the
5433         scope chain of the entity, rather than the unit name of the file name.
5434         (Check_Nested_Access): New procedure.
5435         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5436         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5437         (Get_Renamed_Entity): Utility routine for performing common operation
5438         of chasing the Renamed_Entity field of an entity.
5440 2007-06-06  Robert Dewar  <dewar@adacore.com>
5442         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
5443         elaboration model
5444         (Check_A_Call): Add check for entry call which was causing blowup
5446 2007-06-06  Olivier Hainque  <hainque@adacore.com>
5448         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
5449         special code on ia64-vms to handle major incompatibilities between the
5450         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
5451         this routine with a very different set of arguments and expectations on
5452         the return value.
5454 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5456         * socket.c (__gnat_close_signalling_fd): New function.
5457         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
5458         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
5459         New supporting functions for task safe Netdb operations.
5461 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5462             Olivier Hainque  <hainque@adacore.com>
5464         * a-except-2005.ads, a-except-2005.adb
5465         (Raise_From_Controlled_Operation): New procedure in
5466         (private part of) Ada.Exceptions (standard runtime version). Used to
5467         provide informational exception message when Program_Error is raised as
5468         a result of an Adjust or Finalize operation propagating an exception.
5469         (Rmsg_28): Fix description for E.4(18) check.
5470         (Raise_Current_Excep): Call Debug_Raise_Exception just before
5471         propagation starts, to let debuggers know about the event in a reliable
5472         fashion.
5473         Take the address of E and dereference to make sure it is homed on stack
5474         and prevent the stores from being deleted, necessary for proper
5475         debugger behavior on "break exception" hits.
5476         (Local_Raise): Moved to System.Exceptions
5478         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
5479         exception message from the current occurrence and raise Program_Error
5480         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
5482 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
5483             Arnaud Charlet  <charlet@adacore.com>
5485         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
5486         lock, if needed.
5488         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
5489         priority associated to a lock.
5491         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
5492         assertion to take into account case of no abort restriction.
5493         (Initialize_Protection_Entries): Add initialization for the field
5494         New_Ceiling associated to the protected object.
5495         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
5496         needed.
5498         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5499         since this function needs to be set consistently with Update_Exception.
5501         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5502         since this function needs to be set consistently with Update_Exception.
5504         * s-taskin.ads: Update comments on
5505         Interrupt_Server_Blocked_On_Event_Flag.
5506         (Unbind_Handler): Fix handling of server_task wakeup
5507         (Server_Task): Set self's state so that Unbind_Handler can take
5508         appropriate actions.
5509         (Common_ATCB): Now use a constant from System.Parameters to determine
5510         the max size of the Task_Image field.
5512         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
5513         Initialize_Analyzer function.
5514         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
5515         take into account case of no abort restriction.
5516         ([Vulnerable_]Complete_Master): Modify assertion.
5518         * s-tataat.adb (Finalize): Use the nestable versions of
5519         Defer/Undefer_Abort.
5521         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
5523         * s-tpobop.ads: Update comments.
5525         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
5526         of locking the object manually, to avoid inconsistencies between
5527         Lock/Unlock_Entry assertions.
5529         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
5530         terminating
5531         application and System.Parameters.No_Abort is True.
5532         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
5533         (Unbind_Handler): Fix handling of server_task wakeup
5534         (Server_Task): Set self's state so that Unbind_Handler can take
5535         appropriate actions.
5537 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5539         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
5540         declarations instead of an explicit null body, for conciseness.
5542 2007-06-06  Robert Dewar  <dewar@adacore.com>
5544         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
5545         illegal aggregate and the type is still Any_Composite.
5546         (Subtypes_Statically_Match): Fix problem of empty discriminant list
5548 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5550         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
5551         to prevent subsequent expansion.
5553 2007-06-06  Robert Dewar  <dewar@adacore.com>
5555         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
5557 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5558             Robert Dewar  <dewar@adacore.com>
5560         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
5561         exceptions.
5562         (Write_Itype): Handle case of string literal subtype, which
5563         comes up in this context.
5564         (Update_Itype): when debugging expanded code, update sloc of itypes
5565         associated with defining_identifiers and ranges, for gdb use.
5566         (Sprint_Node_Actual): Add static keyword to object or exception
5567         declaration output if Is_Statically_Allocated is True.
5568         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
5569         or task body, so that the tree carries the proper Sloc information for
5570         debugging use.
5571         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
5573 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5575         * s-secsta.adb (Chunk): Ensure this object has a static size known at
5576         compile time, to avoid dynamic memory allocation
5577         (Elaboration code): Only use dynamic memory allocation when needed.
5579 2007-06-06  Quentin Ochem  <ochem@adacore.com>
5581         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
5582         "Overflow_Guard".
5583         (Stack_Analyzer): Added field "Overflow_Guard"
5584         (Task_Result): Added field "Overflow_Guard".
5585         (Index_Str): New constant.
5586         (Task_Name_Str): New constant.
5587         (Actual_Size_Str): New constant.
5588         (Pattern_Array_Element_Size): New constant.
5589         (Get_Usage_Range): New subprogram.
5590         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
5591         Now align the output.
5592         Added comments.
5593         (Initialize): Added value for Overflow_Guard.
5594         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
5595         Update the value of the overflow guard according to the actual
5596         beginning of the pattern array.
5597         (Initialize_Analyzer): Added parameter Overflow_Guard.
5598         Take this parameter into accound when computing the max size.
5599         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
5600         (Report_Result): Removed extra useless procedure.
5601         Updated call to Output_Result.
5602         Moved full computation of the Task_Result here.
5604 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5606         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
5607         Thread_Blocking_IO, always True by default, set False on a per-runtime
5608         basis.
5609         Add Windows-specific constants
5610         Add new constant Need_Netdb_Buffer.
5611         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5612         not, whether to use getXXXbyYYY_r.
5614         * gsocket.h: Add new constant Need_Netdb_Buffer.
5615         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5616         not, whether to use getXXXbyYYY_r.
5618 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5620         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
5621         than their first call.
5622         Add type Dummy_Communication_Block used in the generation of the pre-
5623         defined dispatching primitive _disp_asynchronous_select.
5624         (Storage_Element): Put Pragma Universal_Aliasing on it.
5626 2007-06-06  Vincent Celier  <celier@adacore.com>
5628         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
5629         function.
5631         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
5632         letter if it is not followed by a '/' or a '\'.
5633         (Windows): New Boolean function
5635         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
5636         Ada 2005.
5637         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
5638         drive letter.
5639         (Containing_Directory): Raise Use_Error when the directory is a root
5640         directory.
5641         (Extension): When returning the result, use a conversion to Result_Type,
5642         not a qualification.
5644 2007-06-06  Robert Dewar  <dewar@adacore.com>
5646         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
5647         (Set_Style_Check_Options): Recognize new -gnatyg style switch
5649         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
5650         Warn_On_Non_Local_Exception to False, to turn off warnings for
5651         No_Exception_Propagation in ZFP runtime.
5652         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
5653         back-ends.
5654         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
5656 2007-06-06  Vincent Celier  <celier@adacore.com>
5658         * switch-b.adb (Scan_Binder_Switches): Add processing for new
5659         switches -R and -Z
5661         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
5662         (Scan_Make_Switches): Recognize new switch -aP
5664 2007-06-06  Matthew Gingell  <gingell@adacore.com>
5665             Jose Ruiz  <ruiz@adacore.com>
5667         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
5668         VxWorks task descriptor in the Ada run time, call a C subprogram
5669         (__gnat_get_stack_info) that extracts the required information.
5671         * sysdep.c: Back out temporary lynxos workaround.
5672         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
5673         time the stack information associated to the currently executing task.
5674         Only VxWorks systems require this function.
5676 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5678         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
5679         add the stack bias if the offset is computed from a frame address.
5680         (__gnat_backtrace): Adjust for above change.
5682 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5684         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
5685         PE_Non_Transportable_Actual.
5686         (By_Descriptor_Last): New constant.
5687         (By_Copy_Return): Likewise.
5689 2007-06-06  Vincent Celier  <celier@adacore.com>
5691         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
5692         is.
5694         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
5695         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
5696         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
5697         Add missing comment for /OPTIMIZE=SPACE
5698         Add entry for OPTIMIZE=SPACE
5699         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
5700         Add documentation for new qualifiers corresponding to -gnatw.c/.C
5702 2007-06-06  Vincent Celier  <celier@adacore.com>
5703             Robert Dewar  <dewar@adacore.com>
5705         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
5706         -gnatw.C)
5708         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
5709         Document gnatbind switch -a
5710         (case Constructions): Document that variables declarations are allowed
5711         for previously declared variables.
5712         Fix external lib project example
5713         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
5714         Indicate that "#if not X or Y then" is not allowed in input files to
5715         gnatprep.
5716         Document gnatw.x and gnatw.X warning flags
5717         Mention -Winline switch to activate warnings when back-end inlining is
5718         ineffective.
5719         Add gnatcheck rule descriptions
5720         Describe how to use the GNAT driver to call a tool on a closure.
5721         Describe how to run project-wide checks or metrics.
5722         Document gnatbind's -R option
5723         Updated to account for Ada 2005 support
5725         * gnat_rm.texi (Case Construction): Allow variable declarations for
5726         previously declared variables.
5727         (Representation Clauses and Pragmas): Lift restriction on alignment
5728         clauses for record types.
5729         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
5730         Document No_Exception_Propagation restriction
5731         Document No_Body pragma
5732         Updated to account for Ada 2005 support; corrected some typos
5733         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
5735         * gnat-style.texi: Make it clear that we never use mode IN for
5736         procedures or functions
5738         * ug_words: Add entries for -gnatw.x and -gnatw.X
5739         Add entries for -gnatw.c/.C
5741 2007-06-06  Pascal Obry  <obry@adacore.com>
5742             Vincent Celier  <celier@adacore.com>
5744         * makegpr.adb (Add_Archive_Path): Use untouched object and library
5745         dirs and library name.
5746         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
5747         comments.
5748         (Build_Library): Idem.
5749         (Compile_Individual_Sources): Idem.
5750         (Compile_Link_With_Gnatmake): Idem.
5751         (Compile_Sources): Idem.
5752         (Get_Imported_Directories): Idem.
5753         (Link_Executables): Idem. Same change for the executable dir.
5754         (Check_Compilation_Needed): C_Source_Path new variable containing
5755         the canonical form of Source_Path to check against the source names
5756         in the dependency file.
5757         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
5758         verbose mode, display the name of the object directory we're changing
5759         to.
5760         (Saved_Switches): New name of table X_Switches
5761         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
5762         (Usage): New line for switch -aP
5763         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
5764         testing if a directory should be added to the search path.
5766 2007-06-06  Javier Miranda  <miranda@adacore.com>
5768         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
5769         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
5770         declaration after freezing point of all its associated tagged types;
5771         otherwise such types are frozen too early.
5773 2007-06-06  Robert Dewar  <dewar@adacore.com>
5775         * a-reatim.adb: Documentation addition
5777         * g-cgideb.adb: Minor code reorganization
5779         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
5780         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
5781         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
5783         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
5784         function.  Change name New_Scope to Push_Scope
5785         (Get_Debug_Flag_K): Remove unused obsolete function.
5787         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
5788         Push_Scope.
5790         * makeusg.adb: Update Copyright notice
5791         Add line for switch -aP
5793         * makeusg.adb: Fix wording of some usage messages
5795         * s-assert.adb (Raise_Assert_Failure): Add call to
5796         Debug_Raise_Assert_Failure.
5798         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
5799         (2, Standard'Alignment) for compatibility with AAMP (where alignment
5800         is restricted to 1).
5802         * s-wchjis.adb: Remove use of System.Pure_Exceptions
5804         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
5805         node location to No_Location when we're not debugging the expanded
5806         code.
5808 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
5810         * misc.c (enumerate_modes): Consider log2_b to always be one.
5812 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
5814         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5816 2007-05-02  Pascal Obry  <obry@adacore.com>
5818         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
5819         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
5820         encoding support of Stream_IO.
5821         (Write_Unit): Idem.
5823         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
5824         filename and corresponding encoding to match the OS requirement.
5825         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
5826         routine will fail on specific devices like CON: AUX: ...
5828         PR ada/29856: Add missing braces
5830 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5832         PR ada/31660
5833         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
5835 2007-04-21  Jan Hubicka  <jh@suse.cz>
5837         * misc.c (gnat_expand_body): Don't call target for destructors,
5838         avoid redundant check on syntax errors.
5840 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5842         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
5843         instead of checking GIMPLE_STMT_P in chain_next.
5845 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
5847         PR ada/31576
5848         * system-linux-alpha.ads: Disable constant condition warning for the
5849         Default_Bit_Order variable.
5850         * system-linux-s390.ads: Likewise.
5851         * system-linux-s390x.ads: Likewise.
5852         * system-linux-sparc.ads: Likewise.
5854 2007-04-06  Javier Miranda  <miranda@adacore.com>
5855             Matt Heaney  <heaney@adacore.com>
5856             Robert Dewar  <dewar@adacore.com>
5858         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5859         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
5860         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
5861         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
5862         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
5863         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
5864         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
5865         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
5866         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
5867         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
5868         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
5869         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
5870         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
5871         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
5872         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
5873         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
5874         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
5875         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
5876         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
5877         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
5878         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
5879         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
5880         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
5881         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
5882         s-taprop-tru64.adb, s-taprop-irix.adb,
5883         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
5884         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
5885         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
5886         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
5887         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
5888         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
5889         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
5890         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
5891         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
5892         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
5893         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
5894         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
5895         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
5896         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
5897         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
5898         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
5899         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
5900         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
5901         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
5902         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
5903         access types.
5904         Update documentation.
5905         Minor rewording.
5907 2007-04-06  Robert Dewar  <dewar@adacore.com>
5909         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5910         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5911         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
5912         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5913         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
5914         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5915         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5916         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
5917         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5918         system-hpux-ia64.ads, targparm.adb,
5919         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
5921         * system.ads: Move Functions_Return_By_DSP to obsolete section,
5922         kept for bootstrap purposes only.
5924 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
5926         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5927         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
5928         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
5929         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
5931 2007-04-06  Robert Dewar  <dewar@adacore.com>
5933         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
5934         (Local_Raise): New dummy procedure called when a raise is converted
5935         to a local goto. Used for debugger to detect that the exception
5936         is raised.
5938         * debug.adb: Document new d.g flag (expand local raise statements to
5939         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5941         * exp_sel.adb: Use Make_Implicit_Exception_Handler
5943         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5944         suppress warnings for unused handlers.
5945         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
5946         warnings for raise statements not handled locally.
5947         (Get_RT_Exception_Entity): New function
5948         (Get_Local_Call_Entity): New function
5949         (Find_Local_Handler): New function
5950         (Warn_If_No_Propagation): New procedure
5951         (Expand_At_End_Handler): Call Make_Implicit_Handler
5952         (Expand_Exception_Handlers): Major additions to deal with local handlers
5953         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
5954         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
5955         for local raise
5957         * exp_ch11.ads (Get_RT_Exception_Entity): New function
5958         (Get_Local_Call_Entity): New function
5960         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
5961         of restrictions that the binder will never suggest adding.
5963         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
5964         to No_Elist.
5966         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
5967         be with'ed in the presence of pragma Restriction
5968         (No_Exception_Propagation).
5970         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
5972         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
5973         parameter, then the handler is not a suitable target for a local raise,
5974         and this is a violation of restriction No_Exception_Propagation.
5975         (Analyze_Handled_Statements): Analyze choice parameters in exception
5976         handlers before analyzing statement sequence (needed for proper
5977         detection of local raise statements).
5978         (Analyze_Raise_Statement): Reraise statement is a violation of the
5979         No_Exception_Propagation restriction.
5981         * s-rident.ads: Add new restriction No_Exception_Propagation
5983         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
5984         function, like Make_Exception_Handler but sets Local_Raise_Statements
5985         to No_List.
5986         (Add_Unique_Serial_Number): Deal with case where this is called during
5987         processing of configuration pragmas.
5989 2007-04-06  Thomas Quinot  <quinot@adacore.com>
5990             Pat Rogers  <rogers@adacore.com>
5991             Pascal Obry  <obry@adacore.com>
5993         * g-stsifd-sockets.adb: New file.
5995         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
5996         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
5997         g-socthi-vms.adb: Move signalling
5998         fd management to a nested package, so that they can conveniently be
5999         moved to a subunit that is shared across Windows, VMS, and VxWorks
6000         (Ada implementation) or completed with imported bodies from socket.c
6001         (UNIX case).
6002         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
6003         subprograms.
6004         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
6005         the signalling file descriptor.
6006         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
6007         signalling file descriptor.
6008         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
6009         instead of creating a pair of sockets for signalling here.
6011         * g-socthi.adb: Ditto.
6012         Set the runtime process to ignore SIGPIPEs on platforms that support
6013         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
6015         * g-socthi-mingw.adb: Ditto.
6016         (WS_Version): Use Windows 2.2.
6017         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
6019         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
6020         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
6022         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
6023         added GNAT byte swapping facility
6024         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
6026         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
6028         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
6029         New subprograms.
6030         (__gnat_create_signalling_fds): New subprogram.
6031         Set the runtime process to ignore SIGPIPEs on platforms that support
6032         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
6034 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
6035             Vincent Celier  <celier@adacore.com>
6037         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
6038         New version of Ada.Calendar which supports the new upper bound of Ada
6039         time (2399-12-31 86_399.999999999).
6040         The following modifications have been made to the package:
6041          - New representation of time as count of nanoseconds since the start of
6042            Ada time (1901-1-1 0.0).
6043          - Target independent Split and Time_Of routines which service both
6044            Ada 95 and Ada 2005 code.
6045          - Target independent interface to the Ada 2005 children of Calendar.
6046          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
6047          - Handling of non-leap centenial years.
6048          - Updated clock function.
6049          - Updated arithmetic and comparison operators.
6051         * a-caldel.adb (To_Duration): Add call to target independent routine in
6052         Ada.Calendar to handle the conversion of time to duration.
6054         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
6055         (UTC Offset).
6056         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
6057         set off to 0.
6058         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
6059         targets do not have a natural time zone, GMT is used as a default.
6060         (__gnat_get_task_options): New.
6062         * a-direct.adb (Modification_Time): Add with and use clauses for
6063         Ada.Calendar and Ada.
6064         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
6065         since it is no longer needed.
6066         (Duration_To_Time): Removed.
6067         (OS_Time_To_Long_Integer): Removed.
6068         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
6069         Formatting Time_Of routines which automatically handle time zones,
6070         buffer periods and leap seconds.
6072         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
6073         target independent routines in Ada.Calendar.
6075         * a-calfor.ads, a-calfor.adb: 
6076         Code cleanup and addition of validity checks in various routines.
6077         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
6078         Ada.Calendar.
6080         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
6081         independent routine in Ada.Calendar.
6083 2007-04-06  Olivier Hainque  <hainque@adacore.com>
6085         * adaint.c: 
6086         (convert_addresses): Adjust prototype and dummy definition to expect an
6087          extra file_name argument.
6089         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
6090         filling the now expected file_name argument with the appropriate
6091         argv[0] expansion.
6092         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
6093         (tracebk): Array of void * instead of char *, corresponding to what
6094          convert_addresses expects.
6095         (exename): New static global, to hold the executable file name to be
6096         used in all convert_addresses invocations.
6097         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
6098         change.
6099         (__gnat_gmem_a2l_initialize): Resolve exename.
6100         (__gnat_convert_addresses): Use exename as the convert_addresses
6101         file_name argument.
6103         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
6104         "convert_addresses", now expecting a filename argument. Import the
6105         necessary entities to compute the filename to use and pass it to
6106         convert_addresses.
6108 2007-04-06  Matt Gingell  <gingell@adacore.com>
6110         * system-aix.ads: Back out previous change.
6111         (Functions_Return_By_DSP): Removed
6113 2007-04-06  Pascal Obry  <obry@adacore.com>
6115         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
6116         or the monotonic used by Ada.Real_Time) to compute the sleep duration
6117         on Windows.
6119 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
6121         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
6122         function. Its value changes in different VxWorks versions, and it is
6123         now handled by the function __gnat_get_task_options.
6125         * s-taprop-vxworks.adb (Create_Task): Call the function
6126         __gnat_get_task_options to get the required options for creating a task.
6128 2007-04-06  Pascal Obry  <obry@adacore.com>
6129             Thomas Quinot  <quinot@adacore.com>
6131         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
6132         dealing with filename.
6133         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
6134         filename from a standard string to a wide-string depending on the
6135         encoding value.
6136         (__gnat_freopen): Idem.
6137         (__gnat_current_time): New function (wrapper for time(3) standard C
6138         function).
6140         * g-os_lib.ads (Current_Time): New function. Returns the current
6141         system time as an OS_Time value.
6143         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
6144         (Monotonic_Clock): Same.
6146 2007-04-06  Quentin Ochem  <ochem@adacore.com>
6148         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
6149         not on a natural.
6150         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
6152 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
6154         * a-retide.adb: Add elaboration code to ensure that the tasking run
6155         time is initialized when using delay operations even when no task is
6156         created.
6158 2007-04-06  Javier Miranda  <miranda@adacore.com>
6160         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
6161         component Num_Prim_Ops.
6162         (Set_Num_Prim_Ops): Removed.
6163         Remove all the assertions because all the routines of this
6164         package are inline always.
6165         (Get_Offset_Index): Add support to primary dispatch tables.
6166         Move the documentation about the dispatch table to a-tags.ads
6167         (Set_External_Tag): Removed
6168         (Inherit_TSD): Removed.
6169         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
6170         moved to a-tags.ads
6171         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
6172         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
6173         of the TSD field "Table" because this field has been renamed to
6174         "Ifaces_Table".
6175         (Inherit_CPP_DT): Removed.
6176         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
6177         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
6178         declarations have been moved to a-tags.ads
6179         (Check_Size): Removed.
6180         (Expanded_Name): Updated to get access to the new field of TSD
6181         containing the address of the expanded name.
6182         (Get_Access_Level/Set_Access_Level): Removed.
6183         (Get_Predefined_Prim_Op_Address): Removed.
6184         (Set_Predefined_Prim_Op_Address): Removed.
6185         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
6186         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
6187         (Set_Expanded_Name): Removed.
6188         (Inherit_DT): Removed.
6189         (Inherit_CPP_DT): Removed.
6190         (Set_RC_Offset): Removed.
6191         (Set_TSD): Removed.
6192         (Base_Address): New function that displaces "this" to point to the base
6193         of the object (that is, to point to the primary tag of the object).
6195 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6196             Javier Miranda  <miranda@adacore.com>
6198         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
6199         anonymous access component, do not create a master_id if type already
6200         has one, as may happen if the type is a subcomponent of a packed array
6201         type.
6202         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
6203         Initialize_Tag): Remove code associated with the old CPP pragmas.
6204         CPP_Virtual and CPP_Vtable are no longer supported.
6205         (Build_Offset_To_Top_Internal): Add support for concurrent record types
6206         (Build_Offset_To_Top_Functions): Add support for concurrent record types
6207         (Freeze_Record_Type): Remove call to
6208         Init_Predefined_Interface_Primitives.
6209         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
6210         code required to initialize the tags of the secondary dispatch tables.
6211         This leaves the algoritm more clear.
6212         (Init_Secondary_Tags): Add support for concurrent record types
6213         (Make_Predefined_Primitive_Specs): Code cleanup.
6214         (Predefined_Primitive_Bodies): Code cleanup.
6215         (Build_Master_Renaming): New local subprogram.
6216         (Expand_N_Full_Type_Declaration): Build the master_id associated with
6217         anonymous access to task type components.
6218         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
6219         subtype indication are resolved during analysis, and must not be done
6220         here.
6221         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
6223 2007-04-06  Geert Bosch  <bosch@adacore.com>
6224             Ed Schonberg  <schonberg@adacore.com>
6225             Javier Miranda  <miranda@adacore.com>
6226             Bob Duff  <duff@adacore.com>
6228         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
6229         for conversion of a Float_Type'Truncation to integer.
6231         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
6232         check if a node is an attribute that can be handled directly by the
6233         back end.
6234         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
6235         attributes that can be handled directly by the back end.
6236         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
6237         use new predicate Is_Access_Protected_Subprogram_Type.
6238         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
6239         and Unchecked_Union if it is generated as part of the default  Output
6240         procedure for a type with default discriminants.
6241         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
6242         if we are compiling under restriction No_Dispatching_Calls.
6243         (Constrained): Use Underlying_Type, in case the type is private without
6244         discriminants, but the full type has discriminants.
6245         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
6246         call to Build_Get_Access_Level.
6247         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
6248         interface objects requires a call to the run-time subprogram that
6249         returns the base address of the object.
6250         (Valid_Conversion): Improve error message on illegal attempt to store
6251         an anonymous access to subprogram value into a record component.
6253         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
6254         null".
6255         (Simplify_Type_Conversion): New procedure that performs simplification
6256         of Int_Type (Float_Type'Truncation (X)).
6257         (Resolve_Type_Conversion): Call above procedure after resolving operand
6258         and before performing checks. This replaces the existing ineffective
6259         code in Exp_Ch4.
6260         (Set_String_Literal_Subtype): When creating the internal static lower
6261         bound subtype for a string literal, use a newly created copy of the
6262         subtree representing the lower bound.
6263         (Resolve_Call): Exclude build-in-place function calls from transient
6264         scope treatment. Update comments to describe this exception.
6265         (Resolve_Equality_Op): In case of dispatching call check violation of
6266         restriction No_Dispatching_Calls.
6267         (Resolve_Call): If the call returns an array, the context imposes the
6268         component type of the array, and the function has one non-defaulted
6269         parameter, rewrite the call as the indexing of a call with a single
6270         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
6271         in prefix form.
6272         (Resolve_Actuals): If an actual is an allocator for an access parameter,
6273         the master of the created object is the innermost enclosing statement.
6274         (Remove_Conversions): For a binary operator, check if type of second
6275         formal is numeric, to check if an abstract interpretation is present
6276         in the case of exponentiation as well.
6278 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6279             Bob Duff  <duff@adacore.com>
6281         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
6282         copying a parameter list in a call, set properly the First_Named_Formal
6283         and Next_Named_Formal fields in the new list and in the enclosing call.
6284         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
6285         names, to ease typing in the debugger. Improve comments.
6286         (Watch_Node): New variable, intended to be set in the debugger.
6287         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
6288         called when the watched node is created.
6289         (New_Node_Debugging_Output): Combined version of local procedures
6290         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
6291         with a parameter so that conditional breakpoints like "if Node = 12345"
6292         work.
6293         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
6294         Add Elist1 function
6296 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6297             Ed Schonberg  <schonberg@adacore.com>
6298             Gary Dismukes  <dismukes@adacore.com>
6300         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
6301         required for a conversion between two access-to-unconstrained-array
6302         types.
6303         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
6304         to discriminant constraints on discriminant objects. This rule must
6305         apply as well to discriminants of protected types in private components.
6306         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
6307         object of a null-excluding access type then don't require the
6308         the object declaration to have an expression and don't emit a
6309         run-time check.
6311 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
6312             Eric Botcazou <botcazou@adacore.com>
6314         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
6315         and made constant.
6317         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
6318         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
6319         carry any.
6321         * fe.h (Compiler_Abort): Add third parameter.
6323         * misc.c (internal_error_function): Build third argument from current
6324         input location and pass it to Compiler_Abort.
6326 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
6328         * cstand.adb (Create_Standard): When the target's storage unit size is
6329         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
6330         Standard_String.
6332 2007-04-06  Nicolas Roche  <roche@adacore.com>
6334         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
6335         absolute path can have the following form: device:/a/b. In this case
6336         '/' should be inserted between the path and the filename.
6338 2007-04-06  Olivier Hainque  <hainque@adacore.com>
6339             Eric Botcazou <botcazou@adacore.com>
6341         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
6342         VAR_DECL to a CONST_DECL we make for a public constant when we know the
6343         corresponding definition has created the so made visible variable.
6344         Handle anonymous access to protected subprogram.
6345         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
6346         object with an address clause volatile.  Re-enable original fix.
6347         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
6348         too.
6349         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
6350         associated with either the Equivalent or Root type, instead of the
6351         naked type node.
6352         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
6353         subtree for every field of a global record type.
6354         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
6355         discriminants, invoke again variable_size on its newly computed sizes.
6357 2007-04-06  Robert Dewar  <dewar@adacore.com>
6358             Thomas Quinot  <quinot@adacore.com>
6359             Ed Schonberg  <schonberg@adacore.com>
6360             Bob Duff  <duff@adacore.com>
6362         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
6363         (Next_Component_Or_Discriminant): New function and procedure
6364         (First_Index, First_Literal, Master_Id,
6365         Set_First_Index, Set_First_Literal, Set_Master_Id):
6366         Add missing Ekind assertions.
6367         (Is_Access_Protected_Subprogram_Type): New predicate.
6368         (Has_RACW): New entity flag, set on package entities to indicate that
6369         the package contains the declaration of a remote accecss-to-classwide
6370         type.
6371         (E_Return_Statement): This node type has the Finalization_Chain_Entity
6372         attribute, in case the result type has controlled parts.
6373         (Requires_Overriding): Add this new flag, because "requires
6374         overriding" is subtly different from "is abstract" (see AI-228).
6375         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
6376         Is_Abstract_Type. Make sure these are called only when appropriate.
6377         (Has_Pragma_Unreferenced_Objects): New flag
6379         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
6380         class-wide, the tag of the right-hand side must be an exact match, not
6381         an ancestor of that of the object on left-hand side.
6382         (Move_Activation_Chain): New procedure to create the call to
6383         System.Tasking.Stages.Move_Activation_Chain.
6384         (Expand_N_Extended_Return_Statement): Generate code to call
6385         System.Finalization_Implementation.Move_Final_List at the end of a
6386         return statement if the function's result type has controlled parts.
6387         Move asserts to Build_In_Place_Formal.
6388         (Move_Final_List): New function to create the call statement.
6389         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
6390         tagged type, replace generation of call to the run-time subprogram
6391         CW_Membership by call to Build_CW_Membership.
6392         (Expand_N_Return_Statement): Replace generation of call to the run-time
6393         subprogram Get_Access_Level by call to Build_Get_Access_Level.
6394         (Expand_N_Simple_Function_Return): Replace generation of call to the
6395         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6397         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
6398         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
6399         access to protected operations.
6400         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
6401         master and chain actual parameters to a build-in-place function call
6402         involving tasks.
6403         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
6404         statement.
6405         (Make_Build_In_Place_Call_In_Allocator,
6406         Make_Build_In_Place_Call_In_Anonymous_Context,
6407         Make_Build_In_Place_Call_In_Assignment,
6408         Make_Build_In_Place_Call_In_Object_Declaration): Call
6409         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
6410         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
6411         stubbed procedure with a null body, replace the call with a null
6412         statement without using the full inlining machinery, for efficiency
6413         and to avoid invalid values in source file table entries.
6415         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
6416         renamings of calls to build-in-place functions.
6418         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
6419         provides the functionality of RTE_Available to record components.
6420         (RTU_Entity): The function Entity has been renamed to RTU_Entity
6421         to avoid undesired overloading.
6422         (Entity): New subprogram that returns the entity for the referened
6423         unit. If this unit has not been loaded, it returns Empty.
6424         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
6425         Remove no longer used entities.
6426         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
6427         (RE_Type_Specific_Data): New entity.
6428         (RE_Move_Any_Value): New entity.
6429         (RE_TA_A, RE_Get_Any_Type): New entities.
6430         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
6431          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
6432          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
6433         (Entity): New subprogram that returns the entity for the referened
6434         unit. If this unit has not been loaded, it returns Empty.
6435         (RTE): Addition of a new formal that extends the search to the scopes
6436         of the record types found in the chain of the package.
6438         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
6439         "abstract subprograms must be visible" message, whether or not the type
6440         is an interface; that is, remove the special case for interface types.
6441         (Analyze_Function_Return): Remove error message "return of task objects
6442         is not yet implemented" because this is now implemented.
6443         (Create_Extra_Formals): Add the extra master and activation chain
6444         formals in case the result type has tasks.
6445         Remove error message "return of limited controlled objects is not yet
6446         implemented".
6447         (Create_Extra_Formals): Add the extra caller's finalization list formal
6448         in case the result type has controlled parts.
6449         (Process_Formals): In case of access formal types there is no need
6450         to continue with the analysis of the formals if we already notified
6451         errors.
6452         (Check_Overriding_Indicator): Add code to check overriding of predefined
6453         operators.
6454         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
6455         flags for formals that do not require them,.
6456         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
6457         hidden entity is use visible or directly visible.
6458         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
6459         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
6460         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
6461         New_Overloaded_Entity): Split Is_Abstract flag into
6462         Is_Abstract_Subprogram and Is_Abstract_Type.
6464         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
6465         a return statement's finalization list to the caller's list, used for
6466         build-in-place functions with result type with controlled parts.
6467         Remove no longer used entities.
6469         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
6470         longer needed, because the full type is now limited, and therefore a
6471         pass-by-reference type.
6472         (Foreign_Task_Level): New constant.
6474         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
6475         move tasks from the activation chain belonging to a return statement to
6476         the one passed in by the caller, and update the master to the one
6477         passed in by the caller.
6478         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
6479         of unactivated tasks, so we don't kill the ones that are being returned
6480         by a build-in-place function.
6481         (Create_Task): Ignore AI-280 for foreign threads.
6483 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6484             Robert Dewar  <dewar@adacore.com>
6485             Bob Duff  <duff@adacore.com>
6486             Gary Dismukes  <dismukes@adacore.com>
6488         * errout.adb (Unwind_Internal_Type): Use predicate
6489         Is_Access__Protected_Subprogram_Type.
6491         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
6492         (Freeze_Entity, packed array case): Do not override explicitly set
6493         alignment and size clauses.
6494         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
6495         the enclosing subprogram is a child unit body that acts as a spec.
6496         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
6497         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
6498         Remove all code for DSP option
6500         * layout.adb (Layout_Record_Type): Use First/
6501         Next_Component_Or_Discriminant
6502         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
6503         to handle properly the anonymous access case.
6505         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
6506         for all access attributes, because overload resolution should work the
6507         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
6508         causes the error message for the ambiguous "X'Access = Y'Access" and
6509         "X'Unrestricted_Access = Y'Access" and so forth to match.
6510         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
6511         now that anonymous access to protected operations have their own kind.
6512         (Resolve_Attribute): In case of dispatching call check the violation of
6513         restriction No_Dispatching_Calls.
6514         (Check_Array_Type): Check new -gnatyA array index style option
6516         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
6517         attempt to derive from a synchronized tagged type.
6518         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
6519         type, inherit the class-wide type already created, because it may
6520         already have been used in a self-referential anonymous access component.
6521         (Mentions_T): Recognize self-referential anonymous access components
6522         that use (a subtype of) the class-wide type of the enclosing type.
6523         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
6524         Derived_Type for Prev formal on call to
6525         Check_Anonymous_Access_Components rather than Empty.
6526         (Make_Incomplete_Type_Declaration): Add test for case where the type has
6527         a record extension in deciding whether to create a class-wide type,
6528         rather than just checking Tagged_Present.
6529         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
6530         to stand-alone object declarations as well as component declarations.
6531         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
6532         prevent accidental overwriting when enclosing package appears in
6533         a limited_with_clause.
6534         (Array_Type_Declaration): If the component type is an anonymous access,
6535         the associated_node for the itype is the type declaration itself.
6536         (Add_Interface_Tag_Components): Modified to support concurrent
6537         types with abstract interfaces.
6538         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
6539         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
6540         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
6541         to complete the decoration of synchronized interface types. Add also
6542         a call to Check_Abstract_Interfaces to verify the ARM rules.
6543         (Derive_Interface_Subprograms): Modified to support concurrent types
6544         with abstract interfaces.
6545         (Analyze_Subtype_Indication): Resolve the range with the given subtype
6546         mark, rather than delaying the full resolution depending on context.
6547         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
6548         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
6549         Array_Type_Declaration,Build_Derived_Record_Type,
6550         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
6551         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
6552         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
6553         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6554         called only when appropriate.
6555         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
6556         to private type.
6557         (Analyze_Subtype_Declaration): For an access subtype declaration, create
6558         an itype reference for the anonymous designated subtype, to prevent
6559         scope anonmalies in gigi.
6560         (Build_Itype_Reference): New utility, to simplify construction of such
6561         references.
6563 2007-04-06  Vincent Celier  <celier@adacore.com>
6565         * errutil.adb (Initialize): Initialize warnings table, if all warnings
6566         are suppressed, supply an initial dummy entry covering all possible
6567         source locations.
6569         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
6570         and start with only one, such as "-RTS=none".
6571         (Collect_Arguments): Do not check for sources outside of projects.
6572         Do not collect arguments if project is externally built.
6573         (Compile_Sources): Do nothing, not even check if the source is up to
6574         date, if its project is externally built.
6575         (Compile): When compiling a predefined source, add -gnatpg
6576         as the second switch, after -c.
6577         (Compile_Sources): Allow compilation of Annex J renames without -a
6578         (Is_In_Object_Directory): Check if the ALI file is in the object
6579         even if there is no project extension.
6580         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
6581         gnatbind if the ALI file effectively exists.
6582         (Initialize): Add the directory where gnatmake is invoked in front of
6583         the path if it is invoked from a bin directory, even without directory
6584         information, so that the correct GNAT tools will be used when spawned
6585         without directory information.
6587         * makeusg.adb: Change switch -S to -eS
6588         Add lines for new switches -we, -wn and -ws
6589         Add line for new switch -p
6591         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
6592         Treat_As_Error and there are warnings.
6594         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
6595         -gnatww Change gnatmake switch -S to -eS
6596         (Scan_Make_Switches): Code reorganisation. Process separately multi
6597         character switches and single character switches.
6598         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
6599         False when switch is not recognized by gnatmake.
6600         (Scan_Make_Switches): Set Setup_Projects True when -p or
6601         --create-missing-dirs is specified.
6603         * fname.adb (Is_Predefined_File_Name): Return True for annex J
6604         renamings Calendar, Machine_Code, Unchecked_Conversion and
6605         Unchecked_Deallocation only when Renamings_Included is True.
6607         * par.adb: Allow library units Calendar, Machine_Code,
6608         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
6609         when -gnatg is not specified.
6610         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6611         there is no need to generate always a record_definition_node in case
6612         of synchronized interface types.
6613         (SIS_Entry_Active): Initialize global variable to False
6614         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
6615         indicate cases where AI-447 says "not null" is legal.
6617         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
6619         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
6620         files with with several lines starting with the object fileb name.
6621         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
6622         is specified.
6623         (Initialize): Add the directory where gprmake is invoked in front of the
6624         path, if it is invoked from a bin directory or with directory
6625         information, so that the correct GNAT tools will be used when invoked
6626         directly.
6627         (Check_Compilation_Needed): Process correctly backslashes on Windows.
6629         * vms_data.ads: Update switches/qualifiers
6631 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6632             Thomas Quinot  <quinot@adacore.com>
6634         * exp_aggr.adb:
6635         If the array component is a discriminated record, the array aggregate
6636         is non-static even if the component is given by an aggregate with
6637         static components.
6638         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
6639         (Convert_Aggr_In_Allocator): If the allocator is for an access
6640         discriminant and the type is controlled. do not place on a finalization
6641         list at this point. The proper list will be determined from the
6642         enclosing object.
6643         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
6644         initialize record controller if needed, before the components, to ensure
6645         that they are properly finalized.
6646         (Build_Record_Aggr_Code): For the case of an array component that has a
6647         corresponding array aggregate in the record aggregate, perform sliding
6648         if required.
6650 2007-04-06  Javier Miranda  <miranda@adacore.com>
6651             Gary Dismukes  <dismukes@adacore.com>
6652             Ed Schonberg  <schonberg@adacore.com>
6654         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
6655         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
6657         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
6658         accessibility on class-wide allocators if the allocator occurs at the
6659         same scope level as the allocator's type. The check is guaranteed to
6660         succeed in that case, even when the expression originates from a
6661         parameter of the containing subprogram.
6662         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
6663         under No_Dispatching_Calls restriction. During the semantic analysis
6664         we already notified such violation.
6665         (Tagged_Membership): Constant folding. There is no need to check
6666         the tag at run-time if the type of the right operand is non
6667         class-wide abstract.
6668         Replace call to Is_Ancestor by call to Is_Parent
6669         to support concurrent types with interface types.
6670         (Expand_N_Allocator): Add an assertion associated with the generation
6671         of the master_id.
6672         (Expand_N_Slice): Do not enable range check to nodes associated
6673         with the frontend expansion of the dispatch table.
6674         (Is_Local_Access_Discriminant): Subsidiary function to
6675         Expand_N_Allocator.
6676         (Tagged_Membership): Replace generation of call to the run-time
6677         subprogram CW_Membership by call to Build_CW_Membership.
6678         (Expand_Allocator_Expression): Replace generation of call to the
6679         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6681         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
6682         initialize most the TSD components by means of an aggregate.
6683         Modify the declaration of the object containing the TSD
6684         because we now expand code that has a higher level of abstraction.
6685         The TSD has a discriminant containing the Inheritance Depth Level,
6686         value that is used in the membership test but also to fix the size
6687         of the table of ancestors.
6688         (Expand_Interface_Conversion): Insert function body at the closest place
6689         to the conversion expression, to prevent access-before-elaboration
6690         errors in the backend.
6691         Code improved to reduce the size of the dispatch table if
6692         compiling under restriction No_Dispatching_Calls plus code cleanup.
6693         Code reorganization plus removal of calls to Set_Num_Prim_Ops
6694         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
6695         (Expand_Dispatching_Call): Minor code reorganization plus addition of
6696         code to return immediately if compiling under No_Dispatching_Calls
6697         restriction.
6698         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
6699         CPP_Virtual and CPP_Vtable are no longer supported.
6700         (Expand_Interface_Conversion): Add missing support for interface type
6701         derivations.
6702         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
6703         Is_Parent to support concurrent types with interfaces.
6704         (Init_Predefined_Interface_Primitives): Removed.
6705         (Make_Secondary_DT): Modified to support concurrent record types.
6706         (Set_All_DT_Position): Modified to support concurrent record types.
6707         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6708         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
6709         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
6710         with CW_Membership.
6711         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6712         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
6713         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
6714         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
6715         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
6716         (Expand_Dispatching_Call): Replace generation of call to the run-time
6717         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
6718         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
6719         Address.
6720         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
6721         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
6722         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
6723         Build_Set_Prim_Op_Address.
6724         (Get_Remotely_Callable): Subprogram removed.
6725         (Init_Predefined_Interface_Primitives): Replace generation of call to
6726         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
6727         Prims.
6729         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
6730         First (Parameter_Associations ()) with the call to First_Actual that
6731         returns an actual parameter expression for both named and positional
6732         associations.
6734         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
6735         check violation of restriction No_Dispatching_Calls.
6736         (Check_Controlling_Type): A formal of a tagged incomplete type is a
6737         controlling argument.
6739         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
6740         First/Next_Component_Or_Discriminant
6741         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
6742         (Find_Implemented_Interface): Removed. All the calls to this subprogram
6743         specify Any_Limited_Interface, and this functionality is already
6744         provided by the function Has_Abstract_Interfaces.
6745         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
6746         support concurrent types implementing interfaces.
6747         (Find_Implemented_Interface): Removed. All the calls to this subprogram
6748         specify kind Any_Limited_Interface, and this functionality is already
6749         provided by the function Has_Abstract_Interfaces.
6750         (Remove_Side_Effects): replace Controlled_Type by
6751         CW_Or_Controlled_Type whenever the issue is related to
6752         using or not the secondary stack.
6754         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
6755         P_Interface_Type_Definition to fulfill the new interface (the formal
6756         Is_Synchronized is no longer required).
6758         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
6759         Update dependencies.
6761         * exp_atag.ads, exp_atag.adb: New file
6763 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6764             Bob Duff  <duff@adacore.com>
6765             Cyrille Comar  <comar@adacore.com>
6767         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
6768         anonymous, use finalization list of enclosing dynamic scope.
6769         (Expand_N_Package_Declaration): For a library package declaration
6770         without a corresponding body, generate RACW subprogram bodies in the
6771         spec (just as we do for the task activation call).
6772         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
6773         Is_Abstract_Type. Make sure these are called only when appropriate.
6774         Remove all code for DSP option
6775         (CW_Or_Controlled_Type): new subprogram.
6777 2007-04-06  Eric Botcazou <botcazou@adacore.com>
6778             Ed Schonberg  <schonberg@adacore.com>
6779             Gary Dismukes  <dismukes@adacore.com>
6781         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
6782         parameter. If it is set to true, return a result capped according to
6783         the global upper bound for the index of an entry family.
6784         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
6785         (Build_Find_Body_Index): Adjust for above change.
6786         (Entry_Index_Expression): Likewise.
6787         (Is_Potentially_Large_Family): New function extracted from...
6788         (Collect_Entry_Families): ...here. Call it to detect whether the family
6789         is potentially large.
6790         (Build_Entry_Count_Expression): If the family is potentially large, call
6791         Family_Size with 'Cap' set to true.
6792         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
6793         a protected version of an operation declared in the private part of
6794         a protected object, because they may be invoked through a callback.
6795         (Set_Privals): If the type of a private component is an anonymous access
6796         type, do not create a new itype for each protected body.
6797         If the body of a protected operation creates
6798         controlled types (including allocators for class-widetypes), the
6799         body of the corresponding protected subprogram must include a
6800         finalization list.
6801         (Build_Activation_Chain_Entity): Build the chain entity for extended
6802         return statements.
6803         (Type_Conformant_Parameters): Use common predicate Conforming_Types
6804         to determine whether operation overrides an inherited primitive.
6805         (Build_Wrapper_Spec): Add code to examine the parents while looking
6806         for a possible overriding candidate.
6807         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
6808         hold an actual parameter value since its initialization is separated
6809         from the the declaration. Prevents errors on null-excluding access
6810         formals.
6812 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6814         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
6815         Do an Unchecked_Conversion to handle the passage from the Underlying
6816         Type to the Base Type when calling Build_To_Any_Call and
6817         Build_From_Any_Call.
6818         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
6819         E_Constant, depending upon Variable formal.
6820         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6821         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
6822         parameter that requires an extra constrained parameter, declare
6823         temporary for actual as a variable, not a constant.
6824         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
6825         the unit being compiled is the one that contains the stub type.
6826         Change primitive operation name for the RACW associated with a RAS
6827         from Call to _Call so it cannot clash with any legal identifier.
6828         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
6829         Is_RAS.
6830         (Append_RACW_Bodies): New subprogram.
6831         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
6832         Add_Receiving_Stubs_To_Declarations functions.
6833         When expanding a package body, this list correspond to the
6834         statements in the HSS at the end of the pacakge.
6835         When expanding a package spec, this list correspond to the
6836         spec declarations.
6837         (Add_Receiving_Stubs_To_Declarations): Append the function
6838         registering the receiving stubs at the end of the 'Stmts' list.
6839         (RCI_Package_Locator): Pass the new Version generic formal when
6840         instantiating a RCI_Locator package.
6841         (Build_From_Any_Function): To compute the High bound for an
6842         unconstrained array actual, we add the Low bound with the length.
6843         Thus we must convert the low bound and the length to an appropriate
6844         type before doing the sum.
6845         (Build_Subprogram_Receiving_Stubs, PolyORB):
6846          * Retrieve the extra formals parameters at the
6847            end of the parameter stream.
6848          * Use Move_Any_Value to write back out parameters
6849            after executing the request as it is more efficient
6850            than Copy_Any_Value.
6851          * Build the any containing Extra Formals with the
6852            appropriate typecode.
6853         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
6854         empty Component_List.
6855         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
6856         the tree the declaration for an object that serves as actual parameter
6857         in server-side stubs.
6858         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6859         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6860         Use Build_Actual_Object_Declaration to prepare the actuals.
6861         (Add_Parameter_To_NVList): Set the parameter mode to In for
6862         Extra Constrained Parameters.
6863         (Build_General_Calling_Stubs): Set the parameter type to boolean for
6864         Extra Constrained parameters.
6865         (Build_To_Any_Function, Build_From_Any_Function,
6866         Built_TypeCode_Function): When Typ is implicit, call the correct
6867         function with the first not implicit parent type.
6868         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
6869         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
6870         typecode from the Etype. Therefore we retrieve the correct typecode
6871         with a call to Get_Any_Type.
6872         (Copy_Specification): Do controlling formal type substitution based on
6873         Is_Controlling_Formal flag, instead of caller-provided object type.
6874         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
6875         a RACW primitive operation, we might get a subprogram declaration for an
6876         ancestor of the RACW designated type (not for the designated type
6877         itself), in the case where this operation is inherited. In this case we
6878         have no easy means of determining the original tagged type for which
6879         the primitive was declared, so instead we now rely on
6880         Copy_Specification to use the Is_Controlling_Formal flag to determine
6881         which formals require type substitution.
6883 2007-04-06  Robert Dewar  <dewar@adacore.com>
6884             Ed Schonberg  <schonberg@adacore.com>
6886         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
6887         GNAT.Current_Exception are not allowed if pragma Restrictions
6888         (No_Exception_Propagation) is set and in any case make the associated
6889         handler unsuitable as a target for a local raise statement.
6890         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
6891         run-time subprogram CW_Membership by call to Build_CW_Membership.
6892         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
6893         by a function call, a temporary must be created before expanding the
6894         Constructor_Call itself, to prevent out-of-order elaboration in the
6895         back-end when stack checking is enabled..
6897 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6899         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
6900         result are the bounds of the left operand, not the right.
6902 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6904         * exp_strm.adb
6905         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
6906          discriminant defaults.
6907         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
6908         (Make_Component_List_Attributes): Ditto.
6910 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6911             Bob Duff  <duff@adacore.com>
6913         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
6914         an association with a box as providing a value even though the
6915         initialization procedure for the type is not available.
6916         (Resolve_Record_Aggregate): Check that a choice of an association with a
6917         box corresponds to a component of the type.
6918         (Resolve_Record_Aggregate): Split Is_Abstract flag into
6919         Is_Abstract_Subprogram and Is_Abstract_Type.
6921         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
6922         assert.
6924         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
6925         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6926         called only when appropriate.
6928 2007-04-06  Olivier Hainque  <hainque@adacore.com>
6930         * g-alleve.ads (Low Level Vector type definitions): Map each to the
6931         associated vector view instead of all to the unsigned char view.
6933         * g-altcon.adb (Generic_Conversions): New internal generic package,
6934         offering facilities for all the Vector/View conversion routines
6935         implemented by this unit.
6936         (To_View/To_Vector - all versions): Reimplemented in a systematic
6937         manner, using the internal Generic_Conversions facilities.
6939 2007-04-06  Pascal Obry  <obry@adacore.com>
6941         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6942         string.
6943         (Create): Free the source string before storing the new one.
6945 2007-04-06  Vincent Celier  <celier@adacore.com>
6947         * g-debpoo.adb (Validity): New package with a complete new
6948         implementation of subprograms Is_Valid and Set_Valid.
6949         (Is_Valid): Move to local package Validity
6950         (Set_Valid): Move to local package Validity
6952 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
6954         * g-expect.adb (Get_Command_Output): When expanding the output buffer
6955         we must ensure that there is enough place for the new data we are going
6956         to copy in.
6958 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6960         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
6961         computation.
6963 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
6964             Vincent Celier  <celier@adacore.com>
6966         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
6967         (Stack_String): Add this String that contains the name of the Stack
6968         package in the project file.
6969         (Packages_To_Check_By_Stack): Add this list that contains the packages
6970         to be checked by gnatstack, which are the naming and the stack packages.
6971         (Check_Files): If no .ci files were specified for gnatstack we add all
6972         the .ci files belonging to the projects, including binder generated
6973         files.
6974         (Non_VMS_Usage): Document that gnatstack accept project file switches.
6975         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
6976         Add gnatstack to the list of commands that use project file related
6977         switches, and get the single attribute Switches from the stack package
6978         in a project file when calling gnatstack. Parse the -U flag for
6979         processing files belonging to all projects in the project tree.
6980         Remove all processing for command Setup
6982         * prj-attr.adb: Add new package Stack with single attribute Switches
6984         * vms_conv.ads (Command_Type): Add command Stack.
6985         Move to body declarations that are only used in the body: types Item_Id,
6986         Translation_Type, Item_Ptr, Item and its subtypes.
6988         * vms_conv.adb: (Initialize): Add data for new command Stack.
6989         Add declarations moved from the spec: types Item_Id, Translation_Type,
6990         Item_Ptr, Item and its subtypes.
6991         (Cargs_Buffer): New table
6992         (Cargs): New Boolean global variable
6993         (Process_Buffer): New procedure to create arguments
6994         (Place): Put character in table Buffer or Cargs_Buffer depending on the
6995          value of Cargs.
6996         (Process_Argument): Set Cargs when processing qualifiers for GNAT
6997         COMPILE
6998         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
6999         empty, for table Cargs_Buffer.
7000         (Initialize): Remove component Setup in Command_List
7002 2007-04-06  Vincent Celier  <celier@adacore.com>
7004         * gprep.adb (Process_Files.Process_One_File): Use full file name when
7005         issuing pragma Source_Reference.
7007 2007-04-06  Emmanuel Briot  <briot@adacore.com>
7009         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
7010         [[:xdigit:]] character class.
7011         Also raise an exception when an invalid character class is used.
7013 2007-04-06  Pascal Obry  <obry@adacore.com>
7015         * i-cstrea.ads: (fopen): Add encoding parameter.
7016         (freopen): Idem.
7017         Change reference from a-sysdep.c to sysdep.c in comment.
7018         Update copyright notice.
7019         This set of patch add support for the encoding form parameter.
7021         * mingw32.h (S2WSU): New macro to convert from a string to a
7022         wide-string using the UTF-8 encoding. The S2WS macro supports now only
7023         standard 8bits encoding.
7024         (WS2SU): As above but converting from wide-sring to string.
7025         This is needed as it is necessary to have access to both versions in the
7026         runtime for the form parameter encoding support.
7027         This set of patch add support for the encoding form parameter.
7028         (S2WS): Improve implementation to handle cases where the filename is not
7029         UTF-8 encoded. In this case we default to using the current code page
7030         for the conversion.
7032         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
7033         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
7034         the constants defined in adaint.h.
7035         (fopen): Add encoding parameter.
7036         (freopen): Idem.
7038         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
7039         encoding. This is needed for the Reset routine (freopen low level-call).
7041         * s-fileio.adb (Open): Decode encoding form parameter and set the
7042         corresponding encoding value into AFCB structure.
7043         (Reset): Pass the encoding value to freopen.
7044         (Close): Move the call to Lock_Task to the beginning of the procedure.
7046 2007-04-06  Geert Bosch  <bosch@adacore.com>
7047             Robert Dewar  <dewar@adacore.com>
7049         * i-fortra.ads: Add Double_Complex type.
7051         * impunit.adb: (Is_Known_Unit): New function
7052         Add Gnat.Byte_Swapping
7053         Add GNAT.SHA1
7054         Add new Ada 2005 units
7055         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
7056         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
7057         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
7058         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
7060         * impunit.ads (Is_Known_Unit): New function
7062         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
7063         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
7064         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
7065         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
7066         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
7067         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
7068         New files.
7070         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
7072         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
7074 2007-04-06  Eric Botcazou <botcazou@adacore.com>
7075             Arnaud Charlet  <charlet@adacore.com>
7077         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
7078         __gnat_adjust_context_for_raise.
7079         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
7080         implementation of floating point operations as native x86 targets.
7081         So the FPU should be initialized in the same way using finit. Fix
7082         floating point operations accuracy issues.
7083         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
7084         member in struct sigaction, so as to avoid warning for incompatible
7085         pointer types.
7087 2007-04-06 Serguei Rybin <rybin@adacore.com>
7089         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
7090         switches from previously loaded tree
7092 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7094         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
7095         cases where a given dependency has a body or not.
7096         (Write_With_File_Names): New subprogram, common code for the two cases
7097         above.
7099 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7100             Javier Miranda  <miranda@adacore.com>
7102         * lib-xref.ads, lib-xref.adb: 
7103         Modify the loop that collects type references, to include interface
7104         types that the type implements. List each of these interfaces when
7105         building the entry for the type.
7106         (Generate_Definition): Initialize component Def and Typ of new entry
7107         in table Xrefs, to avoid to have these components unitialized.
7108         (Output_References): Split Is_Abstract flag into
7109         Is_Abstract_Subprogram and Is_Abstract_Type.
7110         (Generate_Reference): Add barrier to do not generate the warning
7111         associated with Ada 2005 entities with entities generated by the
7112         expander.
7114 2007-04-06  Robert Dewar  <dewar@adacore.com>
7115             Arnaud Charlet  <charlet@adacore.com>
7116             Vincent Celier  <celier@adacore.com>
7118         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
7119         Update 'Exception Handling Control' chapter which was outdated.
7120         Minor fix to documentation of -gnatwq
7121         Remove section "Adapting the Run Time to a New C++ Compiler" because
7122         it is now obsolete.
7123         Add passage on need of -nostart-files in some non-ada-main cases.
7124         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
7125         Update documentation about Interfacing with C++
7126         Add documentation for new gnatmake switch -p
7127         Add missing protocol part in URLs.
7128         Document -gnatyA
7129         Document pragma Compile_Time_Error
7130         Add documentation for Object_Size indicating that stand alone
7131         objects can have a larger size in some cases.
7132         Add node for GNAT.Byte_Swapping, GNAT.SHA1
7133         Update reference to the Ravenscar profile.
7134         Document pragma Unreferenced_Objects
7136         * gnat-style.texi: Fix typo
7138 2007-04-06  Vincent Celier  <celier@adacore.com>
7140         * mlib.adb (Building_Library): Only output "building a library..." in
7141         verbose mode
7143         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
7144         files in verbose mode.
7146         * mlib-utl.adb (Ar): Only output the first object files when not in
7147         verbose mode.
7148         (Gcc): Do not display all the object files if not in verbose mode, only
7149         the first one.
7151 2007-04-06  Robert Dewar  <dewar@adacore.com>
7153         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
7154         it no longer destroys the contents of Name_Buffer or Name_Len and
7155         non-standard and invalid names are handled better.
7156         (Get_Decoded_Name_String): Improve performance by using
7157         Name_Has_No_Encodings flag in the name table.
7158         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
7159         Used for debugging printouts.
7161 2007-04-06  Robert Dewar  <dewar@adacore.com>
7162             Javier Miranda  <miranda@adacore.com>
7163             Bob Duff  <duff@adacore.com>
7165         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
7166         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
7167         there is no need to generate always a record_definition_node in case
7168         of synchronized interface types.
7169         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
7170         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
7171         illegal in Ada 95, in cases where it is legal. Change the warnings to
7172         errors in other cases. Don't give the error unless the "not null"
7173         parses properly. Correct the source position at which the error occurs.
7174         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
7175         P_Null_Exclusion, to suppress "not null" warnings.
7176         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
7177         associated goto statements.
7179         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
7180         of END RECORD
7182         * scans.ads (Type_Token_Location): New flag
7184         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
7185         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
7186         P_Null_Exclusion, to suppress "not null" warnings.
7188 2007-04-06  Robert Dewar  <dewar@adacore.com>
7189             Javier Miranda  <miranda@adacore.com>
7190             Bob Duff  <duff@adacore.com>
7191             Vincent Celier  <celier@adacore.com>
7193         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
7194         (Extensions_Allowed): No longer sets Ada_Version
7195         Entry for pragma Unreferenced_Objects
7197         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
7198         system.tasking if pragma priority used in a procedure
7199         (Analyze_Pragma, case Warning): Handle dot warning switches
7200         (Process_Compile_Time_Warning_Or_Error): New procedure
7201         (Analyze_Pragma): Add processing for Compile_Time_Error
7202         Add support for extra arguments External_Name and Link_Name.
7203         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
7204         (Process_Import_Or_Interface): Add support for the use of pragma Import
7205         with tagged types.
7206         (Extensions_Allowed): No longer affects Ada_Version
7207         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
7208         Is_Abstract_Type. Make sure these are called only when appropriate.
7209         Add processing for pragma Unreferenced_Objects
7211         * snames.h, snames.ads, snames.adb: Add entry for pragma
7212         Compile_Time_Error
7213         Add new standard name Minimum_Binder_Options for new gprmake
7214         Add new standard names for gprmake: Archive_Suffix,
7215         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
7216         Library_Support, Library_Version_Options,
7217         Shared_Library_Minimum_Options,
7218         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
7219         Change Name_Call to Name_uCall so that it cannot clash with a legal
7220         subprogram name.
7221         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
7222         Append C_Plus_Plus to convention identifiers as synonym for CPP
7223         Add new standard names Stack and Builder_Switches
7224         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
7225         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
7226         Run_Path_Option, Toolchain_Version.
7227         Entry for pragma Unreferenced_Objects
7229         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
7230         switches, without repetition of "eD". Make sure that last character of
7231         -gnatep= switch is not taken as -gnat switch character.
7232         Complete rewrite of circuit for handling saving compilation options
7233         Occasioned by need to support dot switchs for -gnatw, but cleans up
7234         things in general.
7235         -gnatX does not affect Ada_Version
7236         Include -gnatyA in -gnatg style switches
7238         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
7239         warnings on return objects.
7240         (Warn_On_Useless_Assignment): Exclude warnings on return objects
7241         (Set_Dot_Warning_Switch): New procedure
7242         (Check_References): Add missing case of test for
7243         Has_Pragma_Unreferenced_Objects
7244         (Output_Unreferenced_Messages): Implement effect of new pragma
7245         Unreferenced_Objects, remove special casing of limited controlled
7246         variables.
7248 2007-04-06  Vincent Celier  <celier@adacore.com>
7250         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
7251         the default project path, initially done during elaboration of the
7252         package.
7253         If the prefix returned by Sdefault is null, get the prefix from a call
7254         to Executable_Prefix_Path.
7255         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
7256         null.
7258         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
7259         canonical directory name to open the directory from which files are
7260         retrieved.
7261         (Record_Other_Sources): Idem.
7262         (Locate_Directory): Add the possibility to create automatically missing
7263         directories when Setup_Projects is True.
7264         Call Locate_Directory so that the directory will be created when
7265         Setup_Projects is True, for object dir, library dir, library ALI dir,
7266         library source copy dir and exec dir.
7268         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
7269         versions of GNAT.
7271 2007-04-06  Robert Dewar  <dewar@adacore.com>
7273         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
7274         Use First/Next_Component_Or_Discriminant
7275         (Analyze_Record_Representation_Clause):
7276         Use First/Next_Component_Or_Discriminant
7277         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
7278         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
7279         definition if type is unconstrained.
7280         (Adjust_Record_For_Reverse_Bit_Order): New procedure
7281         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
7282         Is_Abstract_Subprogram and Is_Abstract_Type.
7283         (Adjust_Record_For_Reverse_Bit_Order): New procedure
7285         * repinfo.adb (List_Record_Info): Use First/
7286         Next_Component_Or_Discriminant.
7288         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
7289         New procedure.
7291         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
7292         Include -gnatyA in default switches
7294         * opt.ads: (Warn_On_Non_Local_Exception): New flag
7295         (Warn_On_Reverse_Bit_Order): New flag
7296         (Extensions_Allowed): Update the documentation.
7297         (Warn_On_Questionable_Missing_Parens): Now on by default
7299         * usage.adb: Add documentation of -gnatw.x/X switches
7300         Document new -gnatyA style switch
7301         -gnatq warnings are on by default
7303 2007-04-06  Ed Falis  <falis@adacore.com>
7305         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
7306         full word is no longer compared twice.
7308 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7310         * sem_ch10.adb (Install_Limited_Context_Clauses.
7311         Expand_Limited_With_Clause): Use a new copy of selector name in the
7312         call to Make_With_Clause. This fixes the tree structure for ASIS
7313         purposes. Nothing is changed in the compiler behaviour.
7314         (Process_Body_Clauses): Handle properly use clauses whose prefix is
7315         a package renaming.
7316         (Install_Limited_With_Clauses): Do not install non-limited view when it
7317         is still incomplete.
7319 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7320             Gary Dismukes  <dismukes@adacore.com>
7322         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
7323         when capturing size information, instead of base type, which for a
7324         formal array type will be the unconstrained type.
7325         (Analyze_Formal_Object_Declaration): Add check for illegal default
7326         expressions for a formal in object of a limited type.
7327         (Instantiate_Object): Ditto.
7328         (Check_Formal_Package_Instance): Skip entities that are formal objects,
7329         because they were defaulted in the formal package and no check applies
7330         to them.
7331         (Check_Formal_Package_Instance): Extend conformance check to other
7332         discrete types beyond Integer.
7333         (Process_Default): Copy directly the unmatched formal. A generic copy
7334         has already been performed in Analyze_Formal_Package.
7335         (Analyze_Associations): If a formal subprogram has no match, check for
7336         partial parametrization before looking for a default, to prevent
7337         spurious errors.
7338         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
7339         not set the instantiation environment before analyzing the actuals.
7340         Fixes regression on 8515-003 with implementation of AI-133.
7341         Set_Instance_Env checks whether the generic unit is a predefined
7342         unit, in which case the instance must be analyzed with the latest Ada
7343         mode. This setting must take place after analysis of the actuals,
7344         because the actuals must be analyzed and frozen in the Ada mode extant
7345         outside of the current instantiation.
7346         (Save_Env, Restore_Env): Preserve and restore the configuration
7347         parameters so that predefined units can be compiled in the proper Ada
7348         mode.
7349         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
7350         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
7351         and Is_Abstract_Type.
7352         (Analyze_Formal_Package): For better error recovery, Add exception
7353         handler to catch Instantion_Error, which can be raised in
7354         Analyze_Associations
7356 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7357             Bob Duff  <duff@adacore.com>
7358             Gary Dismukes  <dismukes@adacore.com>
7360         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
7361         prefix type is a discriminated subtype of the type of the formal.
7362         (Analyze_Allocator): Collect all coextensions regardless of the context.
7363         Whether they can be allocated statically is determined in exp_ch4.
7364         (Analyze_Selected_Component): If the prefix is a limited view and the
7365         non-limited view is available, use the non-limited one.
7366         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
7367         therefore illegal), suggest a qualified expression rather than a type
7368         conversion, because a type conversion would be illegal in this context.
7369         (Anayze_Allocator): Trace recursively all nested allocators so that all
7370         coextensions are on the corresponding list for the root. Do no mark
7371         coextensions if the root allocator is within a declaration for a stack-
7372         allocated object, because the access discriminants will be allocated on
7373         the stack as well.
7374         (Analyze_Call): Remove restriction on calls to limited functions for the
7375         cases of generic actuals for formal objects, defaults for formal objects
7376         and defaults for record components.
7377         (Analyze_Allocator): Before analysis, chain coextensions on the proper
7378         element list. Their expansion is delayed until the enclosing allocator
7379         is processed and its finalization list constructed.
7380         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
7381         for an operation with the given name among the primitive operations of
7382         the corresponding record type.
7383         (Analyze_Selected_Component): If the prefix is a task type that
7384         implements an interface, and there is no entry with the given name,
7385         check whether there is another primitive operation (e.g. a function)
7386         with that name.
7387         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
7388         properly the indexing of a function call written in prefix form, where
7389         the function returns an array type, and all parameters of the function
7390         except the first have defaults.
7391         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
7392         the original operands, rather than relocating them, for efficiency and
7393         to work properly when an operand is overloaded.
7394         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
7395         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
7396         (Analyze_Selected_Component): If the prefix is a private extension, only
7397         scan the visible components, not those of the full view.
7398         (Try_Primitive_Operation): If the operation is a procedure, collect all
7399         possible interpretations, as for a function, because in the presence of
7400         classwide parameters several primitive operations of the type can match
7401         the given arguments.
7403 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7404             Robert Dewar  <dewar@adacore.com>
7406         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
7407         tag-indeterminate call to an abstract function, when the left-hand side
7408         is not classwide.
7409         (Analyze_Loop_Statement): Improve detection of infinite loops
7411 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7412             Thomas Quinot  <quinot@adacore.com>
7414         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
7415         out of Analyze_Package_Declaration, because processing must be applied
7416         to package bodies as well, for deferred constants completed by pragmas.
7417         (Analyze_Package_Declaration): When the package declaration being
7418         analyzed does not require an explicit body, call Check_Completion.
7419         (May_Need_Implicit_Body): An implicit body is required when a package
7420         spec contains the declaration of a remote access-to-classwide type.
7421         (Analyze_Package_Body): If the package contains RACWs, append the
7422         pending subprogram bodies generated by exp_dist at the end of the body.
7423         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
7424         Is_Abstract_Subprogram and Is_Abstract_Type.
7425         (Preserve_Full_Attributes): The full entity list is not an attribute
7426         that must be preserved from full to partial view.
7428         * sem_dist.adb (Add_RAS_Dereference_TSS):
7429         Change primitive name to _Call so it cannot clash with any legal
7430         identifier, and be special-cased in Check_Completion.
7431         Mark the full view of the designated type for the RACW associated with
7432         a RAS as Comes_From_Source to get proper view switching when installing
7433         private declarations.
7434         Provite a placeholder nested package body along with the nested spec
7435         to have a place for Append_RACW_Bodies to generate the calling stubs
7436         and stream attributes.
7438 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7439             Robert Dewar  <dewar@adacore.com>
7441         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
7442         that is a limited view, check the non-limited view if available.
7443         (Undefined): Refine error message for missing with of Text_IO
7444         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
7445         to distinguish real missing with cases.
7446         Fix format of all missing with messages
7447         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
7448         renaming as body when renamed entity is abstract.
7450 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7451             Javier Miranda  <miranda@adacore.com>
7453         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
7454         predicate recursive, to handle complex expressions on literals whose
7455         spurious ambiguity comes from the abstract interpretation of some
7456         subexpression.
7457         (Interface_Present_In_Ancestor): Add support to concurrent record
7458         types.
7459         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
7460         Is_Abstract_Subprogram and Is_Abstract_Type.
7462 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7463             Javier Miranda  <miranda@adacore.com>
7465         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
7466         dereference of a local object R created as a reference to another
7467         object O, use the access level of O.
7468         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
7469         rather than local Same_Formal_Type, to check whether protected operation
7470         overrides an inherited one.
7471         (Same_Formal_Type): New predicate, used when matching signatures of
7472         overriding synchronized operations, to handle the case when a formal
7473         has a type that is a generic actual.
7474         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
7475         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
7476         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
7477         syntactic ambiguities involving indexing of function calls that return
7478         arrays.
7479         (Abstract_Interface_List): New subprogram that returns the list of
7480         abstract interfaces associated with a concurrent type or a
7481         concurrent record type.
7482         (Interface_Present_In_Parent): New subprogram used to check if a
7483         given type or some of its parents implement a given interface.
7484         (Collect_Abstract_Interfaces): Add support for concurrent types
7485         with interface types.
7486         (Has_Abstract_Interfaces): Add support for concurrent types with
7487         interface types.
7488         (Is_Parent): New subprogram that determines whether E1 is a parent
7489         of E2. For a concurrent type its parent is the first element of its
7490         list of interface types; for other types this function provides the
7491         same result than Is_Ancestor.
7492         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
7493         (Collect_Synchronized_Interfaces): Removed because the subprogram
7494         Collect_Abstract_Interfaces provides this functionality.
7495         (Collect_Abstract_Interfaces): Minor update to give support to
7496         concurrent types and thus avoid undesired code duplication.
7497         (Get_Subprogram_Entity): Handle entry calls.
7498         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
7499         entry calls.
7500         (Enter_Name): Do not give -gnatwh hiding warning for record component
7501         entities, they never result in hiding.
7503 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7504             Robert Dewar  <dewar@adacore.com>
7506         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
7507         to chain nested components that are allocators for access discriminants
7508         of the enclosing object.
7509         Add N_Push and N_Pop nodes
7510         New field Exception_Label added
7511         (Local_Raise_Statements): New field in N_Exception_Handler_Node
7512         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
7513         (Is_Coextension): New flag for allocators, to mark allocators that
7514         correspond to access discriminants of dynamically allocated objects.
7515         (N_Block_Statement): Document the fact that the corresponding entity
7516         can be an E_Return_Statement.
7517         (Is_Coextension): New flag for allocators.
7518         Remove all code for DSP option
7520         * sprint.ads, sprint.adb: Display basic information for class_wide
7521         subtypes. Add handling of N_Push and N_Pop nodes
7523 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
7525         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
7526         before propagating exception.
7528 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7530         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
7531         an address always within the call instruction from a return address.
7533 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7534             Eric Botcazou <botcazou@adacore.com>
7536         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
7537         expression with a COMPOUND_EXPR including the call instead of emitting
7538         the call directly here.
7539         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
7540         high bound is constant and the slice is empty.  Tidy.
7541         (tree_transform, case N_Op_Not): Handle properly the case where the
7542         operation applies to a private type whose full view is a modular type.
7543         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
7544         Address_Clause, use the associated Expression as the GNAT tree
7545         representing the choice value to ensure the corresponding GCC tree is
7546         of the proper kind.
7547         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
7548         instead of just the operands, as the base GCC stabilize_reference does.
7549         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
7550         requested; otherwise fail.
7551         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
7553 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7555         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
7556         implementation of UI_Div.
7557         (UI_Div): Reimplement as a call to UI_Div_Rem.
7558         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
7559         remainder, avoiding the cost of a multiplication and a subtraction.
7560         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
7561         provides both quotient and remainder in a single computation.
7562         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
7563         functions for uint.
7564         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
7565         is undefined if the given n is not inversible.
7567 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7569         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
7570         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
7571         opcodes.
7573 2007-04-06  Eric Botcazou <botcazou@adacore.com>
7574             Olivier Hainque  <hainque@adacore.com>
7576         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
7577         when updating the contents of the old pointer to an unconstrained array.
7578         (end_subprog_body): Set error_gnat_node to Empty.
7579         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
7580         (unchecked_convert): For subtype to base type conversions, require that
7581         the source be a subtype if it is an integer type.
7582         (builtin_decls): New global, vector of available builtin functions.
7583         (gnat_pushdecl): Add global builtin function declaration nodes to the
7584         builtin_decls list.
7585         (gnat_install_builtins): Adjust comments.
7586         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
7587         calling gnat_pushdecl, so that it knows when it handed a builtin
7588         function declaration node.
7589         (builtin_decl_for): Search the builtin_decls list.
7591 2007-04-06  Eric Botcazou <botcazou@adacore.com>
7593         * s-stchop-vxworks.adb: 
7594         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
7596 2007-04-06  Robert Dewar  <dewar@adacore.com>
7597             Arnaud Charlet  <charlet@adacore.com>
7599         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
7601         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
7602         of files
7603         Add mention of -Sev (set initialize_scalars option from environment
7604         variable at run time) in gnatbind usage message.
7606         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
7608         * fname-uf.ads: Minor comment fix
7610         * osint.ads: Change pragma Elaborate to Elaborate_All
7612         * par-load.adb: Add documentation.
7614         * sem_cat.ads, sem_cat.adb: Minor code reorganization
7616         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
7618         * s-secsta.ads: Extra comments
7620         * s-soflin.ads: Minor comment fixes
7622         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
7624         * s-wchcon.ads: Minor comment addition
7626         * treepr.adb: Minor change in message
7627         (Print_Name,Print_Node): Make these debug printouts more robust: print
7628         "no such..." instead of crashing on bad input.
7630 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
7632         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
7633         instead of gnat_signed_or_unsigned_type.
7634         * utils.c (gnat_signed_or_unsigned_type): Remove.
7635         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
7636         * gigi.h (gnat_signed_or_unsigned_type): Remove
7638 2007-03-09  Roger Sayle  <roger@eyesopen.com>
7640         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
7641         fold with the result of buildN.
7642         * decl.c (gnat_to_gnu_entity): Likewise.
7643         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
7644         * utils.c (finish_record_type, merge_sizes, max_size, convert):
7645         Likewise.
7646         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
7647         nonbinary_modular_operation, build_binary_op, build_unary_op,
7648         build_cond_expr): Likewise.
7650         * utils.c (convert): Use fold_build1 when casting values to void.
7651         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
7652         fold_convert instead of convert when appropriate.
7654 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
7656         * Make-lang.in: Add install-pdf target as copied from
7657         automake v1.10 rules.
7659 2007-02-28  Andreas Schwab  <schwab@suse.de>
7661         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
7662         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
7663         (doc/gnat-style.info): Likewise.
7665 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
7667         * gnat-style.texi: Standardize title page.
7668         * gnat_rm.texi: Likewise.
7669         * gnat_ugn.texi: Likewise.
7671 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
7673         * decl.c (annotate_value): Adjust for refactoring of tree_map
7674         hierarchy.
7676 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
7678         * decl.c (annotate_value): Adjust for refactoring of tree_map
7679         hierarchy.
7681 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
7683         PR ada/18819
7684         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
7685         untagged derived type, add hidden components to keep discriminant
7686         layout consistent, when a given discriminant of the derived type
7687         constraints several discriminants of the parent type.
7689 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
7690             Sandra Loosemore  <sandra@codesourcery.com>
7692         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
7693         build the call expression.
7694         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
7695         * utils.c (max_size) <tcc_exceptional>: Delete.
7696         <tcc_vl_exp>: New case.
7697         <tcc_expression>: Delete CALL_EXPR subcase.
7698         (build_global_cdtor): Use build_call_nary instead of build3.
7699         * utils2.c (build_call_1_expr): Likewise.
7700         (build_call_2_expr): Likewise.
7701         (build_call_0_expr): Likewise.
7702         (build_call_alloc_dealloc): Likewise.
7704 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7706         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7707         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
7708         and _Unwind_SWord with _sleb128_t.
7710 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
7712         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
7713         * decl.c: Include gt-ada-decl.h.
7714         (annotate_value_cache): New.
7715         (annotate_value): Use it instead of TREE_COMPLEXITY.
7717 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
7719         * misc.c, utils2.c: Fix comment typos.
7721 2007-01-24  Roger Sayle  <roger@eyesopen.com>
7723         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
7724         TREE_CONSTANT_OVERFLOW.
7725         (allocatable_size_p, annotate_value): Likewise.
7726         * trans.c (gnat_to_gnu): Likewise.
7727         * utils.c (unchecked_convert): Likewise.
7728         * utils2.c (build_simple_component_ref): Likewise.
7730 2007-01-23  Richard Guenther  <rguenther@suse.de>
7732         PR bootstrap/30541
7733         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
7734         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
7735         (gnatboot3): Likewise.
7736         (GNATBIND): Do not define.
7737         * Makefile.in (GNATBIND): Do not define.
7739 2007-01-08  Richard Guenther  <rguenther@suse.de>
7741         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
7742         * trans.c (gnat_to_gnu): Likewise.
7744 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
7746         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
7747         * adaint.c: Likewise.
7749 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
7751         Merge from gimple-tuples-branch:
7752         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
7754         * ada-tree.h (lang_tree_node): Handle gimple tuples.
7755         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
7756         GIMPLE_MODIFY_STMT.
7758 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
7760         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
7761         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
7762         Fix typos.
7764 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
7766         PR ada/27936
7767         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
7768         if the initializer takes into account the padding.
7770 2006-11-11  Richard Guenther  <rguenther@suse.de>
7772         * trans.c (maybe_stabilize_reference): Remove handling of
7773         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
7775 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
7777         PR ada/29707
7778         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
7779         (To_Target_Priority): New function.
7781 2006-10-31  Robert Dewar  <dewar@adacore.com>
7783         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
7784         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
7785         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
7786         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
7787         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
7788         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
7789         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
7790         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
7791         a-szbzha.adb: Minor reformatting. Fix header.
7793         * a-numaux-x86.adb: Add parentheses for use of unary minus
7794         * a-ngcefu.adb: Supply missing parentheses for unary minus
7795         * a-ngcoty.adb: Add parens for use of unary minus
7796         * a-ngelfu.adb: Add missing parens for unary minus
7797         * a-tifiio.adb: Add parentheses for uses of unary minus
7799 2006-10-31  Robert Dewar  <dewar@adacore.com>
7800             Bob Duff  <duff@adacore.com>
7801             Ed Schonberg  <schonberg@adacore.com>
7803         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
7804         with multiplying operator.
7805         (Expected_Type_Is_Any_Real): New function to determine from the Parent
7806         pointer whether the context expects "any real type".
7807         (Resolve_Arithmetic_Op): Do not give an error on calls to the
7808         universal_fixed "*" and "/" operators when they are used in a context
7809         that expects any real type. Also set the type of the node to
7810         Universal_Real in this case, because downstream processing requires it
7811         (mainly static expression evaluation).
7812         Reword some continuation messages
7813         Add some \\ sequences to continuation messages
7814         (Resolve_Call): Refine infinite recursion case. The test has been
7815         sharpened to eliminate some false positives.
7816         Check for Current_Task usage now includes entry barrier, and is now a
7817         warning, not an error.
7818         (Resolve): If the call is ambiguous, indicate whether an interpretation
7819         is an inherited operation.
7820         (Check_Aggr): When resolving aggregates, skip associations with a box,
7821         which are priori correct, and will be replaced by an actual default
7822         expression in the course of expansion.
7823         (Resolve_Type_Conversion): Add missing support for conversion from
7824         a class-wide interface to a tagged type. Minor code cleanup.
7825         (Valid_Tagged_Converion): Add support for abstact interface type
7826         conversions.
7827         (Resolve_Selected_Component): Call Generate_Reference here rather than
7828         during analysis, and use May_Be_Lvalue to distinguish read/write.
7829         (Valid_Array_Conversion): New procedure, abstracted from
7830         Valid_Conversion, to incorporate accessibility checks for arrays of
7831         anonymous access types.
7832         (Valid_Conversion): For a conversion to a numeric type occurring in an
7833         instance or inlined body, no need to check that the operand type is
7834         numeric, since this has been checked during analysis of the template.
7835         Remove legacy test for scope name Unchecked_Conversion.
7837         * sem_res.ads: Minor reformatting
7839         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
7840         (PE_Current_Task_In_Entry_Body): New exception code
7841         (SE_Restriction_Violation): Removed, not used
7843         * a-except.ads:  Update comments.
7845         * types.h, types.ads: Add definition for Validity_Check
7846         (PE_Current_Task_In_Entry_Body): New exception code
7847         (SE_Restriction_Violation): Removed, not used
7849 2006-10-31  Thomas Quinot  <quinot@adacore.com>
7851         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
7852         error status.
7854 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
7855             Jose Ruiz  <ruiz@adacore.com>
7857         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
7858         part of Ada.Calendar: all subprogram raise Unimplemented.
7859         (Split_W_Offset): Temp function body, raising Unimplemented
7861         * a-calend.ads, a-calend-vms.ads: 
7862         Add imported variable Invalid_TZ_Offset used to designate targets unable
7863         to support time zones.
7864         (Unimplemented): Temporary function raised by the body of new
7865         subprograms below.
7866         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
7867         unit provides handling of leap seconds and is used by the new Ada 2005
7868         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
7869         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
7870         version returns an extra value which is the offset to UTC.
7872         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
7873         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
7874         (Split_W_Offset): New function body.
7875         (Time_Of): When a date is close to UNIX epoch, compute the time for
7876         that date plus one day (that amount is later substracted after
7877         executing mktime) so there are no problems with time zone adjustments.
7879         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
7881         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
7882         a-catizo.ads, a-catizo.adb: New files.
7884         * impunit.adb: Add new Ada 2005 entries
7886         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
7887         Rename all occurences of "__gnat_localtime_r" to
7888         "__gnat_localtime_tzoff".
7889         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
7890         zone data and calculate the GMT offset.
7891         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
7892         Use the field "tm_gmtoff" to extract the GMT offset.
7893         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
7894         the external variable "timezone" to calculate the GMT offset.
7896 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
7897             Jose Ruiz  <ruiz@adacore.com>
7899         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
7900         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
7901         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
7902         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
7903         System.Any_Priority to a POSIX priority on the target.
7905         * system-linux-ia64.ads: 
7906         Extend range of Priority types on Linux to use the whole range made
7907         available by the system.
7909         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
7910         function maps from System.Any_Priority to a POSIX priority on the
7911         target.
7912         (PTHREAD_PRIO_PROTECT): Set real value.
7913         (PTHREAD_PRIO_INHERIT): Now a function.
7914         (SIGCPUFAIL): New signal.
7915         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
7916         are documented as reserved by the OS.
7918         * system-aix.ads: Use the full range of priorities provided by the
7919         system on AIX.
7921         * s-taprop-posix.adb: Call new function To_Target_Priority.
7922         (Set_Priority): Take into account Task_Dispatching_Policy and
7923         Priority_Specific_Dispatching pragmas when determining if Round Robin
7924         must be used for scheduling the task.
7926         * system-linux-x86_64.ads, system-linux-x86.ads, 
7927         system-linux-ppc.ads: Extend range of Priority types on Linux to use
7928         the whole range made available by the system.
7930         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
7931         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
7932         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
7933         when deallocating the TCB in order to avoid potential references to
7934         deallocated data.
7935         (Set_Priority): Take into account Task_Dispatching_Policy and
7936         Priority_Specific_Dispatching pragmas when determining if Round Robin
7937         or FIFO within priorities must be used for scheduling the task.
7939         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7940         the Thread field (to be used internally by the run-time system) and the
7941         kernel-level task id in the LWP field (to be used by the debugger).
7942         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7943         instance, and propagate the current task options to the spawned task.
7944         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7945         (Initialize): Set Round Robin dispatching when the corresponding pragma
7946         is in effect.
7948 2006-10-31  Robert Dewar  <dewar@adacore.com>
7950         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
7951         system-linux-hppa.ads, system-hpux-ia64.ads, 
7952         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
7953         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7954         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
7955         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
7956         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
7957         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
7958         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
7959         Default_Bit_Order) to kill constant condition warnings for references
7960         to this switch.
7962 2006-10-31  Vincent Celier  <celier@adacore.com>
7963             Eric Botcazou  <ebotcazou@adacore.com>
7965         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
7966         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
7967         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
7968         Ext_To, when building the library file name
7970         * mlib-tgt-vxworks.adb: ditto.
7971         (Get_Target_Suffix): Add support for x86 targets.
7973         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
7975         * mlib-tgt-darwin.adb: 
7976         Use Append_To, instead of Ext_To, when building the library file name
7977         (Flat_Namespace): New global variable.
7978         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
7979         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
7980         (Link_Shared_Libgcc): Delete.
7981         (Build_Dynamic_Library): Adjust for above changes.
7982         Use Opt package.
7983         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
7985 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
7987         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
7988         (Initialize): Add type conversions required by above change.
7990 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
7992         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
7993         (getpid): New body for this function that uses the underlying taskIdSelf
7994         function for VxWorks 5 and VxWorks 6 in kernel mode.
7995         (unsigned_int): New type, modular to allow logical bit operations.
7996         (taskOptionsGet): New imported function.
7998         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
7999         field to be compliant with the type used by the corresponding operating
8000         system primitive.
8002 2006-10-31  Pascal Obry  <obry@adacore.com>
8003             Eric Botcazou  <ebotcazou@adacore.com>
8004             Vincent Celier  <celier@adacore.com>
8006         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
8007         ASCII version of the registry API. This is needed as the GNAT runtime
8008         is now UNICODE by default.
8009         Include version.h.
8010         (get_gcc_version): Do not hardcode the return value.
8011         (__gnat_file_time_name): On Windows properly set the default returned
8012         value to -1 which corresponds to Invalid_Time.
8013         (__gnat_fopen): New routine. A simple wrapper on all plateforms
8014          except on Windows where it does conversion for unicode support.
8015         (__gnat_freopen): Idem.
8016         (__gnat_locate_exec_on_path): If environment variable PATH does not
8017         exist, return a NULL pointer
8019         * adaint.h: (__gnat_fopen): Declare.
8020         (__gnat_freopen): Likewise.
8022         * mingw32.h (_tfreopen): Define this macro here for older MingW
8023         version.
8024         Activate the unicode support on platforms using a MingW runtime
8025         version 3.9 or newer.
8027         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
8028         This is needed for proper unicode support on Windows.
8029         (freopen): Idem.
8031 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
8032             Nicolas Setton  <setton@adacore.com>
8033             Olivier Hainque  <hainque@adacore.com>
8034             Gary Dismukes  <dismukes@adacore.com>
8036         * gigi.h: (tree_code_for_record_type): Declare.
8037         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
8038         (get_global_renaming_pointers): Rename to
8039         invalidate_global_renaming_pointers.
8040         (static_ctors): Delete.
8041         (static_dtors): Likewise.
8042         (gnat_write_global_declarations): Declare.
8043         (create_var_decl): Adjust descriptive comment to indicate that the
8044         subprogram may return a CONST_DECL node.
8045         (create_true_var_decl): Declare new function, similar to
8046         create_var_decl but forcing the creation of a VAR_DECL node.
8047         (get_global_renaming_pointers): Declare.
8048         (add_global_renaming_pointer): Likewise.
8050         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
8052         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
8053         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
8054         processing.
8055         (gnat_to_gnu_entity): Remove From_With_Type from computation for
8056         imported_p.
8057         <E_Access_Type>: Use the Non_Limited_View as the full view of the
8058         designated type if the pointer comes from a limited_with clause.  Make
8059         incomplete designated type if it is in the main unit and has a freeze
8060         node.
8061         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
8062         Underlying_Full_View similarly.  Return earlier if the full view already
8063         has an associated tree.
8064         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
8065         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
8066         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
8067         reference type built for objects with an address clause.
8068         Use create_true_var_decl with const_flag set for
8069         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
8070         TREE_READONLY set.
8071         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
8072         for Character and Wide_Character types. This info is read by the
8073         dwarf-2 writer, and is needed to be able to use the command "ptype
8074         character" in the debugger.
8075         (gnat_to_gnu_entity): When generating a type representing
8076         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
8077         so that debug writers can distinguish it from ordinary integers.
8078         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
8079         addition to TREE_READONLY to assert the constantness of variables for
8080         elaboration purposes.
8081         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
8082         parameters to call new Einfo function First_Formal_With_Extras.
8083         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
8084         protected type with its corresponding discriminant, to obtain a usable
8085         declaration
8086         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
8087         for a multiple elaboration of the "equivalent" type.
8088         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
8089         into record_global_renaming_pointer.
8090         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
8091         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
8092         <E_Array_Subtype>: Likewise.
8093         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
8094         incomplete subtypes and incomplete subtypes of incomplete types visible
8095         through a limited with clause.
8096         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
8097         the base index type for the maximum size of the array only if they are
8098         constant.
8099         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
8100         expression into a SAVE_EXPR if stabilization failed.
8102         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
8103         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
8104         by lower level compilation passes.
8105         (gnat_genericize): New function, lowering a function body to GENERIC.
8106         Turn the type of RESULT_DECL into a real reference type if the decl
8107         has been marked DECL_BY_REFERENCE, and adjust references to the latter
8108         accordingly.
8109         (gnat_genericize_r): New function. Tree walking callback for
8110         gnat_genericize.
8111         (convert_from_reference, is_byref_result): New functions. Helpers for
8112         gnat_genericize_r.
8113         (create_type_decl): Call gnat_pushdecl before calling
8114         rest_of_decl_compilation, to make sure that field TYPE_NAME of
8115         type_decl is properly set before calling the debug information writers.
8116         (write_record_type_debug_info): The heuristics which compute the
8117         alignment of a field in a variant record might not be accurate. Add a
8118         safety test to make sure no alignment is set to a smaller value than
8119         the alignment of the field type.
8120         (make_dummy_type): Use the Non_Limited_View as the underlying type if
8121         the type comes from a limited_with clause. Do not loop on the full view.
8122         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
8123         (dummy_node_table): New global variable, moved from decl.c.
8124         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
8125         (save_gnu_tree): Use above macros.
8126         (get_gnu_tree): Likewise.
8127         (present_gnu_tree): Likewise.
8128         (init_dummy_type): New function, moved from decl.c. Use above macros.
8129         (make_dummy_type): Likewise.
8130         (tree_code_for_record_type): New function extracted from make_dummy_type
8131         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
8132         (static_ctors): Change it to a vector, make static.
8133         (static_dtors): Likewise.
8134         (end_subprog_body): Adjust for above change.
8135         (build_global_cdtor): Moved from trans.c.
8136         (gnat_write_global_declarations): Emit global constructor and
8137         destructor, and call cgraph_optimize before emitting debug info for
8138         global declarations.
8139         (global_decls): New global variable.
8140         (gnat_pushdecl): Store the global declarations in global_decls, for
8141         later use.
8142         (gnat_write_global_declarations): Emit debug information for global
8143          declarations.
8144         (create_var_decl_1): Former create_var_decl, with an extra argument to
8145          state whether the creation of a CONST_DECL is allowed.
8146         (create_var_decl): Behavior unchanged. Now a wrapper around
8147         create_var_decl_1 allowing CONST_DECL creation.
8148         (create_true_var_decl): New function, similar to create_var_decl but
8149         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
8150         (create_field_decl): Do not always mark the field as addressable
8151         if its type is an aggregate.
8152         (global_renaming_pointers): New static variable.
8153         (add_global_renaming_pointer): New function.
8154         (get_global_renaming_pointers): Likewise.
8156         * misc.c (gnat_dwarf_name): New function.
8157         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
8158         (gnat_post_options): Add comment about structural alias analysis.
8159         (gnat_parse_file): Do not call cgraph_optimize here.
8160         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
8162         * trans.c (process_freeze_entity): Don't abort if we already have a
8163         non dummy GCC tree for a Concurrent_Record_Type, as it might
8164         legitimately have been elaborated while processing the associated
8165         Concurrent_Type prior to this explicit freeze node.
8166         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
8167         exception handler volatile if it is of variable size.
8168         (process_type): Remove bypass for types coming from a limited_with
8169         clause.
8170         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
8171         actual, convert the corresponding gnu_actual to the real destination
8172         type when necessary.
8173         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
8174         originally TREE_READONLY but whose elaboration cannot be performed
8175         statically.
8176         Part of fix for F504-021.
8177         (tree_transform, subprogram cases): Change loops on formal parameters to
8178         call new Einfo function First_Formal_With_Extras.
8179         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
8180         stemming from type conversion for the lhs.
8181         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
8182         number of bits per unit for components of records.
8183         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
8184         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
8185         with At_End_Proc after the SJLJ EH cleanup.
8186         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
8187         compilation unit.
8188         (elaborate_all_entities): Do not retest type_annotate_only.
8189         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
8190         result type of an abstract subprogram, which may be an itype associated
8191         with an anonymous access result (related to AI-318-02).
8192         (build_global_cdtor): Move to utils.c.
8193         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
8194         this choice is not a null tree nor an integer constant.
8195         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
8196         on the body of elaboration routines instead of mark_unvisited.
8197         (add_stmt): Do not mark the tree.
8198         (add_decl_expr): Tweak comment.
8199         (mark_unvisited): Delete.
8200         (unshare_save_expr): New static function.
8201         (call_to_gnu): Issue an error when making a temporary around a
8202         procedure call because of non-addressable actual parameter if the
8203         type of the formal is by_reference.
8204         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
8205         after building the elaboration routine.
8207 2006-10-31  Bob Duff  <duff@adacore.com>
8209         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
8210         as finalization-started, so we can raise Program_Error on 'new'.
8212         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
8213         collection has already started.
8215         * s-finimp.ads (Collection_Finalization_Started): Added new special
8216         flag value for indicating that a collection's finalization has started.
8218         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
8219         create a task whose master has already waited for dependent tasks.
8221 2006-10-31  Robert Dewar  <dewar@adacore.com>
8223         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
8225         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
8226         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
8227         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
8228         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
8229         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
8230         a-except-2005.ads: Add pragma Preelaborable_Warning
8232 2006-10-31  Robert Dewar  <dewar@adacore.com>
8233             Jose Ruiz  <ruiz@adacore.com>
8235         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
8237         * ali.adb (Get_Name): Properly handle scanning of wide character names
8238         encoded with brackets notation.
8239         (Known_ALI_Lines): Add S lines to this list.
8240         (Scan_ALI): Acquire S (priority specific dispatching) lines.
8241         New flag Elaborate_All_Desirable in unit table
8243         * ali.ads (Priority_Specific_Dispatching): Add this range of
8244         identifiers to be used for Priority_Specific_Dispatching table entries.
8245         (ALIs_Record): Add First_Specific_Dispatching and
8246         Last_Specific_Dispatching that point to the first and last entries
8247         respectively in the priority specific dispatching table for this unit.
8248         (Specific_Dispatching): Add this table for storing each S (priority
8249         specific dispatching) line encountered in the input ALI file.
8250         New flag Elaborate_All_Desirable in unit table
8252         * bcheck.adb: (Check_Configuration_Consistency): Add call to
8253         Check_Consistent_Dispatching_Policy.
8254         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
8255         verifying that the use of Priority_Specific_Dispatching,
8256         Task_Dispatching_Policy, and Locking_Policy is consistent across the
8257         partition.
8259         * bindgen.adb: (Public_Version_Warning): function removed.
8260         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
8261         required information from ALI files in order to initialize the table
8262         containing the specific dispatching policy.
8263         (Gen_Adainit_Ada): Generate the variables required for priority specific
8264         dispatching entries (__gl_priority_specific_dispatching and
8265         __gl_num_specific_dispatching).
8266         (Gen_Adainit_C): Generate the variables required for priority specific
8267         dispatching entries (__gl_priority_specific_dispatching and
8268         __gl_num_specific_dispatching).
8269         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
8270         pragma entries.
8271         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
8272         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
8273         (Tab_To): Removed.
8274         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
8275         a call to gnat_set_globals.
8276         Generate a string containing settings from
8277         Priority_Specific_Dispatching pragma entries.
8278         (Gen_Object_Files_Options): Do not include the runtime libraries when
8279         pragma No_Run_Time is specified.
8281         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
8282         consistency with s-intman-posix.adb.
8283         (__gnat_error_handler, case FreeBSD): Account for the fact that the
8284         handler is installed with SA_SIGINFO.
8285         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
8286         FreeBSD ZCX support, copied from Linux version.
8287         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
8288         sigfillset, and sigemptyset so the routines defined by MaRTE.
8289         (__gl_priority_specific_dispatching): Add this variable that stores the
8290         string containing priority specific dispatching policies in the
8291         partition.
8292         (__gl_num_specific_dispatching): Add this variable that indicates the
8293         highest priority for which a priority specific dispatching pragma
8294         applies.
8295         (__gnat_get_specific_dispatching): Add this routine that returns the
8296         priority specific dispatching policy, as set by a
8297         Priority_Specific_Dispatching pragma appearing anywhere in the current
8298         partition. The input argument is the priority number, and the result
8299         is the upper case first character of the policy name.
8300         (__gnat_set_globals): Now a dummy function.
8301         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
8302         mechargs instead of sigargs, as the latter can be retrieved from the
8303         former and sigargs is not what we want on ia64.
8304         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
8305         mechargs argument.
8306         (__gnat_adjust_context_for_raise, ia64-vms): New function.
8307         (tasking_error): Remove unused symbol.
8308         (_abort_signal): Move this symbol to the IRIX specific part since this
8309         is the only target that uses this definition.
8310         (Check_Abort_Status): Move this symbol to the IRIX specific part since
8311         this is the only target that uses this definition.
8312         (Lock_Task): Remove unused symbol.
8313         (Unlock_Task): Remove unused symbol.
8315         * lib-writ.adb (Write_ALI): Output new S lines for
8316         Priority_Specific_Dispatching pragmas.
8317         Implement new flag BD for elaborate body desirable
8319         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
8320         (Specific_Dispatching): Add this table for storing the entries
8321         corresponding to Priority_Specific_Dispatching pragmas.
8322         Document new BD flag for elaborate body desirable
8324         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
8325         of known pragmas.
8327 2006-10-31  Javier Miranda  <miranda@adacore.com>
8329         * a-tags.ads, a-tags.adb: 
8330         (Predefined_DT): New function that improves readability of the code.
8331         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
8332         Inherit_DT): Use the new function Predefined_DT to improve code
8333         readability.
8334         (Register_Interface_Tag): Update assertion.
8335         (Set_Interface_Table): Update assertion.
8336         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
8337         determining progenitor interfaces in Tags.
8338         (Inherit_CPP_DT): New subprogram.
8340         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
8341         analysis of the thunk code.
8342         (Expand_Interface_Conversion): Handle run-time conversion of
8343         access to class wide types.
8344         (Expand_Dispatching_Call): When generating the profile for the
8345         subprogram itype for a dispatching operation, properly terminate the
8346         formal parameters chaind list (set the Next_Entity of the last formal
8347         to Empty).
8348         (Collect_All_Interfaces): Removed. This routine has been moved to
8349         sem_util and renamed as Collect_All_Abstract_Interfaces.
8350         (Set_All_DT_Position): Hidden entities associated with abstract
8351         interface primitives are not taken into account in the check for
8352         3.9.3(10); this check is done with the aliased entity.
8353         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
8354         interfacing with CPP by default.
8355         (Expand_Interface_Conversion): Add missing support for static conversion
8356         from an interface to a tagged type.
8357         (Collect_All_Interfaces): Add new out formal containing the list of
8358         abstract interface types to cleanup the subprogram Make_DT.
8359         (Make_DT): Update the code to generate the table of interfaces in case
8360         of abstract interface types.
8361         (Is_Predefined_Dispatching_Alias): New function that returns true if
8362         a primitive is not a predefined dispatching primitive but it is an
8363         alias of a predefined dispatching primitive.
8364         (Make_DT): If the ancestor of the type is a CPP_Class and we are
8365         compiling under full ABI compatibility mode we avoid the generation of
8366         calls to run-time services that fill the dispatch tables because under
8367         this mode we currently inherit the dispatch tables in the IP subprogram.
8368         (Write_DT): Emit an "is null" indication for a null procedure primitive.
8369         (Expand_Interface_Conversion): Use an address as the type of the formal
8370         of the internally built function that handles the case in which the
8371         target type is an access type.
8373 2006-10-31  Robert Dewar  <dewar@adacore.com>
8375         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
8377 2006-10-31  Robert Dewar  <dewar@adacore.com>
8379         * bindusg.ads, bindusg.adb:
8380         Change to package and rename procedure as Display, which
8381         now ensures that it only outputs usage information once.
8383 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
8385         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
8386         using RTPs.
8388         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
8389         when using RTPs.
8391 2006-10-31  Robert Dewar  <dewar@adacore.com>
8392             Ed Schonberg  <schonberg@adacore.com>
8394         * treepr.adb: Use new subtype N_Membership_Test
8396         * checks.ads, checks.adb: Add definition for Validity_Check
8397         (Range_Or_Validity_Checks_Suppressed): New function
8398         (Ensure_Valid): Test Validity_Check suppressed
8399         (Insert_Valid_Check): Test Validity_Check suppressed
8400         (Insert_Valid_Check): Preserve Do_Range_Check flag
8401         (Validity_Check_Range): New procedure
8402         (Expr_Known_Valid): Result of membership test is always valid
8403         (Selected_Range_Checks): Range checks cannot be applied to discriminants
8404         by themselves. Disabling those checks must also be done for task types,
8405         where discriminants may be used for the bounds of entry families.
8406         (Apply_Address_Clause_Check): Remove side-effects if address expression
8407         is non-static and is not the name of a declared constant.
8408         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
8409         Code cleanup and new error messages.
8410         (Enable_Range_Check): Test for some cases of suppressed checks
8411         (Generate_Index_Checks): Suppress index checks if index checks are
8412         suppressed for array object or array type.
8413         (Apply_Selected_Length_Checks): Give warning for compile-time detected
8414         length check failure, even if checks are off.
8415         (Ensure_Valid): Do not generate a check on an indexed component whose
8416         prefix is a packed boolean array.
8417         * checks.adb: (Alignment_Checks_Suppressed): New function
8418         (Apply_Address_Clause_Check): New procedure, this is a completely
8419         rewritten replacement for Apply_Alignment_Check
8420         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
8421         we request a discriminal value only in case of discriminants.
8422         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
8423         assignments where the target subtype is unconstrained and the target
8424         object is a parameter or dereference (other aliased cases are known
8425         to be unconstrained).
8427 2006-10-31  Robert Dewar  <dewar@adacore.com>
8429         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
8430         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
8431         vms_conv.adb: Fix bad table increment values (much too small)
8433         * table.adb (Realloc): Make sure we get at least some new elements
8434         Defends against silly small values for table increment
8436 2006-10-31  Robert Dewar  <dewar@adacore.com>
8437             Ed Schonberg  <schonberg@adacore.com>
8438             Bob Duff  <duff@adacore.com>
8440         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
8441         entities. Move other fields around to make this possible
8442         (Is_Derived_Type): Add missing call to Is_Type.
8443         (Extra_Formals): New function for subprograms, entries, subprogram
8444         types.
8445         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
8446         (First_Formal_With_Extras): New function for subprogs, entries, subp
8447         types.
8448         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
8449         Add node information for E_Return_Statement.
8450         (Elaborate_Body_Desirable): New flag
8451         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
8452         to be Is_Inherently_Limited_Type, because return-by-reference has
8453         no meaning in Ada 2005.
8454         (E_Return_Statement): New entity kind.
8455         (Return_Applies_To): Field of E_Return_Statement.
8456         (Is_Return_Object): New flag in object entities.
8457         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
8458         (Must_Have_Preelab_Init): New flag
8459         (Known_To_Have_Preelab_Init): New flag
8460         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
8461         (Is_Visible_Formal): New flag on entities in formal packages.
8462         (Low_Bound_Known): New flag
8463         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
8464         Incomplete_Kind.
8465         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
8466         output when Id is an incomplete subtype.
8468 2006-10-31  Robert Dewar  <dewar@adacore.com>
8470         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
8471         Avoid abbreviation Creat
8472         (Finalize): List all sources in extended mail source if -gnatl
8473         switch is active.
8474         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
8475         (Finalize): Implement new -gnatl=xxx switch to output listing to file
8476         (Set_Specific_Warning_On): New procedure
8477         (Set_Specific_Warning_Off): New procedure
8478         Add implementation of new insertion \\
8479         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
8480         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
8481         types.
8482         (Error_Msg_Internal): Make sure that we set Last_Killed to
8483         True when a message from another package is suppressed.
8484         Implement insertion character ~ (insert string)
8485         (First_Node): Minor adjustments to get better placement.
8487         * frontend.adb: 
8488         Implement new -gnatl=xxx switch to output listing to file
8490         * gnat1drv.adb: 
8491         Implement new -gnatl=xxx switch to output listing to file
8493         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
8494         (Commands_To_Stdout): New flag
8495         Implement new -gnatl=xxx switch to output listing to file
8496         New switch Dump_Source_Text
8497         (Warn_On_Deleted_Code): New warning flag for -gnatwt
8498         Define Error_Msg_Line_Length
8499         (Warn_On_Assumed_Low_Bound): New switch
8501         * osint.ads, osint.adb
8502         (Normalize_Directory_Name): Fix bug.
8503         Implement new -gnatl=xxx switch to output listing to file
8504         (Concat): Removed, replaced by real concatenation
8505         Make use of concatenation now allowed in compiler
8506         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
8507         we find the 'lib' or 'bin' directory even when the tool has been
8508         invoked with a relative path.
8509         (Executable_Name): New function taking string parameters.
8511         * osint-c.ads, osint-c.adb: 
8512         Implement new -gnatl=xxx switch to output listing to file
8514         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
8516         * switch-c.adb: 
8517         Implement new -gnatl=xxx switch to output listing to file
8518         Recognize new -gnatL switch
8519         (no longer keep in old warning about old style usage)
8520         Use concatenation to simplify code
8521         Recognize -gnatjnn switch
8522         (Scan_Front_End_Switches): Clean up handling of -gnatW
8523         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
8525 2006-10-31  Robert Dewar  <dewar@adacore.com>
8527         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
8528         (Set_Specific_Warning_Off): New procedure
8529         (Warning_Specifically_Suppressed): New function
8530         (Validate_Specific_Warnings): New procedure
8531         (Output_Msg_Text): Complete rewrite to support -gnatjnn
8533         * err_vars.ads: Implement insertion character ~ (insert string)
8535 2006-10-31  Bob Duff  <duff@adacore.com>
8536             Ed Schonberg  <schonberg@adacore.com>
8538         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
8539         the parent part is a build-in-place function call, generate assignments.
8540         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
8541         are build-in-place function calls.
8542         (Replace_Self_Reference): New subsidiary of
8543         Make_OK_Assignment_Statement, to replace an access attribute that is a
8544         self-reference into an access to the appropriate component of the
8545         target object. Generalizes previous mechanism to handle self-references
8546         nested at any level.
8547         (Is_Self_Referential_Init): Remove, not needed.
8548         (Is_Self_Referential_Init): New predicate to simplify handling of self
8549         referential components in record aggregates.
8550         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
8551         check for presence of entity before checking for self-reference.
8552         (Has_Default_Init_Comps): Return True if a component association is a
8553         self-reference to the enclosing type, which can only come from a
8554         default initialization.
8555         (Make_OK_Assignment_Statement): If the expression is of the form
8556         Typ'Acc, where Acc is an access attribute, the expression comes from a
8557         default initialized self-referential component.
8558         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
8559         that has been derived from several abstract interfaces we must also
8560         initialize the tags of the secondary dispatch tables.
8562 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
8563             Thomas Quinot  <quinot@adacore.com>
8564             Javier Miranda  <miranda@adacore.com>
8565             Robert Dewar  <dewar@adacore.com>
8567         * exp_attr.adb: 
8568         (Expand_Access_To_Protected_Op): If the context indicates that an access
8569         to a local operation may be transfered outside of the object, create an
8570         access to the wrapper operation that must be used in an external call.
8571         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
8572         target, pass the Valid attribute applied to a floating-point prefix on
8573         to the back end without expansion.
8574         (Storage_Size): Use the new run-time function Storage_Size to retrieve
8575         the allocated storage when it is specified by a per-object expression.
8576         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
8577         Nothing to do here, the attribute has been rewritten during semantic
8578         analysis.
8579         (Expand_Attribute_Reference): Handle expansion of the new Priority
8580         attribute
8581         (Find_Fat_Info): Handle case of universal real
8582         (Expand_Access_To_Protected_Op): Fix use of access to protected
8583         subprogram from inside the body of a protected entry.
8584         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
8585         'Access and 'Unrestricted_Access, to transform the attribute reference
8586         into a fat pointer.
8587         (Is_Constrained_Aliased_View): New predicate to help determine whether a
8588         subcomponent's enclosing variable is aliased with a constrained subtype.
8589         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
8590         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
8591         an aliased prefix must be known to be constrained in order to use True
8592         for the attribute value, and now it's possible for some aliased views
8593         to be unconstrained.
8595 2006-10-31  Robert Dewar  <dewar@adacore.com>
8597         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
8598         (Expand_Entity_Reference): Correct error of not handling subprogram
8599         formals in current_value processing.
8601 2006-10-31  Javier Miranda  <miranda@adacore.com>
8602             Robert Dewar  <dewar@adacore.com>
8603             Ed Schonberg  <schonberg@adacore.com>
8604             Gary Dismukes  <dismukes@adacore.com>
8606         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
8607         register in the final list objects containing class-wide interfaces;
8608         otherwise we incorrectly register the tag of the interface in the final
8609         list.
8610         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
8611         generate the wrapper if the parent primitive is abstract. This is
8612         required to report the correct error message.
8613         (Expand_N_Subtype_Indication): Do validity checks on range
8614         (Clean_Task_Names): If an initialization procedure includes a call to
8615         initialize a task (sub)component, indicate that the procedure will use
8616         the secondary stack.
8617         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
8618         compatibility for interfacing with CPP by default.
8619         (Expand_N_Object_Declaration): Only build an Adjust call when the
8620         object's type is a nonlimited controlled type.
8621         * exp_ch3.adb: Add with and use of Exp_Ch6.
8622         (Expand_N_Object_Declaration): Check for object initialization that is a
8623         call to build-in-place function and apply Make_Build_In_Place_Call_In_
8624         Object_Declaration to the call.
8625         (Freeze_Type): When the designated type of an RACW was not frozen at the
8626         point where the RACW was declared, validate the primitive operations
8627         with respect to E.2.2(14) when it finally is frozen.
8628         (Build_Initialization_Call,Expand_Record_Controller): Rename
8629         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
8630         return-by-reference has no meaning in Ada 2005.
8631         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
8632         to register tag of the immediate ancestor interfaces in the
8633         run-time structure.
8634         (Init_Secondary_Tags): Moved to the specification to allow the
8635         initialization of extension aggregates with abstract interfaces.
8636         (Build_Master_Renaming): Make public, for use by function declarations
8637         whose return type is an anonymous access type.
8638         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
8639         Insert_List_Before_And_Analyze after the generation of the specs
8640         associated with null procedures.
8641         (Expand_Tagged_Root): Update documentation in its specification.
8642         (Init_Secondary_Tags): Update documentation.
8643         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
8644         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
8645         then generate code to inherit the contents of the dispatch table
8646         directly from the ancestor.
8647         (Expand_Record_Controller): Insert controller component after tags of
8648         implemented interfaces.
8649         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
8650         create null procedure overridings when null procedures are inherited
8651         from interfaces.
8652         (Make_Null_Procedure_Specs): New procedure to generate null procedure
8653         declarations for overriding null primitives inherited from interfaces.
8654         (Is_Null_Interface_Procedure): New function in
8655         Make_Null_Procedure_Specs.
8656         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
8657         immediate ancestor of a tagged type is an abstract interface type we
8658         must generate the specification of the predefined primitives associated
8659         with controlled types (because the dispatch table of the ancestor is
8660         null and hence these entries cannot be inherited). This is required to
8661         elaborate well the dispatch table.
8663 2006-10-31  Javier Miranda  <miranda@adacore.com>
8664             Ed Schonberg  <schonberg@adacore.com>
8665             Bob Duff  <duff@adacore.com>
8666             Gary Dismukes  <dismukes@adacore.com>
8667             Robert Dewar  <dewar@adacore.com>
8669         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
8670         conversion.
8671         (Expand_N_In): Do validity checks on range
8672         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
8673         (Expand_N_Allocator): For "new T", if the object is constrained by
8674         discriminant defaults, allocate the right amount of memory, rather than
8675         the maximum for type T.
8676         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
8677         when the allocator is initialized by a build-in-place call, since the
8678         allocator is already rewritten as a reference to the function result,
8679         and this prevents an unwanted duplication of the function call.
8680         Add with and use of Exp_Ch6.
8681         (Expand_Allocator_Expresssion): Check for an allocator whose expression
8682         is a call to build-in-place function and apply
8683         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
8684         untagged designated types).
8685         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
8686         optimization if source or target is biased.
8687         (Expand_N_Allocator): Add comments for case of an allocator within a
8688         function that returns an anonymous access type designating tasks.
8689         (Expand_N_Allocator): apply discriminant checks for access
8690         discriminants of anonymous access types (AI-402, AI-416)
8692 2006-10-31  Bob Duff  <duff@adacore.com>
8693             Robert Dewar  <dewar@adacore.com>
8694             Gary Dismukes  <dismukes@adacore.com>
8695             Ed Schonberg  <schonberg@adacore.com>
8697         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
8699         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
8700         (Expand_N_Assignment_Statement): Call
8701         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
8702         build-in-place function call. Currently, this can happen only for
8703         assignments that come from aggregates.
8704         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8705         in order to alleviate the upward compatibility introduced by AI-318.
8706         (Expand_N_Extended_Return_Statement): Add support for handling the
8707         return object as a build-in-place result.
8708         (Expand_Non_Function_Return): Implement simple return statements nested
8709         within an extended return.
8710         (Enable_New_Return_Processing): Turn on the new processing of return
8711         statements.
8712         (Expand_Non_Function_Return): For a return within an extended return,
8713         don't raise Program_Error, because Sem_Ch6 now gives a warning.
8714         (Expand_N_Extended_Return_Statement): Implement AI-318
8715         (Expand_Simple_Function_Return): Ditto.
8716         (Expand_N_If_Statement): Handle new -gnatwt warning
8717         (Expand_N_Case_Statement): Handle new -gnatwt warning
8718         (Expand_N_Assignment): Handle assignment to the Priority attribute of
8719         a protected object.
8720         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
8721         validity checking of assignments to elementary record components.
8722         (Expand_N_Return_Statement): return Class Wide types on the secondary
8723         stack independantly of their controlled status since with HIE runtimes,
8724         class wide types are not potentially controlled anymore.
8726         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
8727         node kind.
8729         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
8730         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
8731         it expects a block, procedure, or task. The return statement will get
8732         turned into a block, and Expand_Cleanup_Actions will happen then.
8734 2006-10-31  Robert Dewar  <dewar@adacore.com>
8735             Ed Schonberg  <schonberg@adacore.com>
8736             Bob Duff  <duff@adacore.com>
8737             Gary Dismukes  <dismukes@adacore.com>
8739         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
8740         capability.
8741         (Expand_Inlined_Call): Tagged types are by-reference types, and
8742         therefore should be replaced by a renaming declaration in the expanded
8743         body, as is done for limited types.
8744         (Expand_Call): If this is a call to a function with dispatching access
8745         result, propagate tag from context.
8746         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
8747         CPP by default.
8748         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
8749         build-in-place when the right-hand side of an assignment is a
8750         build-in-place function call.
8751         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
8752         of the explicit dereference of the allocator to the result subtype of
8753         the build-in-place function. This is needed to satisfy type checking
8754         in cases where the caller's return object is created by an allocator for
8755         a class-wide access type and the type named in the allocator is a
8756         specific type.
8757         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
8758         conversion of the reference to the declared object to the result subtype
8759         of the build-in-place function. This is needed to satisfy type checking
8760         in cases where the declared object has a class-wide type. Also, in the
8761         class-wide case, change the type of the object entity to the specific
8762         result subtype of the function, to avoid passing a class-wide object
8763         without explicit initialization to the back end.
8764         (Register_Interface_DT_Entry): Moved outside the body of
8765         Freeze_Subprogram because this routine is now public; it is called from
8766         Check_Dispatching_Overriding to handle late overriding of abstract
8767         interface primitives.
8768         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
8769         adding an implicit access actual on a call to a build-in-place function.
8770         (Expand_Actuals): Test for an actual parameter that is a call to a
8771         build-in-place function and apply
8772         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
8773         (Is_Build_In_Place_Function): New function to determine whether an
8774         entity is a function whose calls should be handled as build-in-place.
8775         (Is_Build_In_Place_Function_Call): New function to determine whether an
8776         expression is a function call that should handled as build-in-place.
8777         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
8778         calls to build-in-place functions as the initialization of an allocator.
8779         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
8780         handling calls to build-in-place functions in contexts that do not
8781         involve init of a separate object (for example, actuals of subprogram
8782         calls).
8783         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
8784         handling calls to build-in-place functions as the initialization of an
8785         object declaration.
8786         (Detect_Infinite_Recursion): Add explicit parameter Process to
8787         instantiation of Traverse_Body to avoid unreferenced warning.
8788         (Check_Overriding_Inherited_Interfaces): Removed.
8789         (Register_Interface_DT_Entry): Code cleanup.
8790         (Register_Predefined_DT_Entry): Code cleanup.
8791         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
8792         inlined statements if within a transient scope.
8793         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
8794         formal parameters with occurrences of actuals in inlined body, establish
8795         visibility on the proper view of the actual's subtype for the body's
8796         context.
8797         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
8798         compatibility mode and we have an imported CPP subprogram because
8799         for now we assume that imported CPP primitives correspond with
8800         objects whose constructor is in the CPP side (and therefore we
8801         don't need to generate code to register them in the dispatch table).
8802         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
8803         aligned selected component.
8804         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
8805         the actual of an in-mode parameter is a type conversion.
8806         (Expand_Actuals): If the call does not come from source and the actual
8807         is potentially misaligned, let gigi handle it rather than rejecting the
8808         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
8809         Class Wide types as returning by reference independantly of their
8810         controlled status since with HIE runtimes class wide types are not
8811         potentially controlled anymore.
8813 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
8815         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
8816         references that are private components of the protected object.
8817         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
8818         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
8819         instantiation to deal with warnings.
8820         (Initialize_Protection): If expression for priority is non-static, use
8821         System_Priority as its expected type, in case the expression has not
8822         been analyzed yet.
8824 2006-10-31  Robert Dewar  <dewar@adacore.com>
8826         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
8827         initialization of Homonym_Len.
8828         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
8829         names from fully qualified name. Fixes problem of duplicate
8830         external names differing only in the presence of such a block name.
8832 2006-10-31  Thomas Quinot  <quinot@adacore.com>
8833             Pablo Oliveira  <oliveira@adacore.com>
8835         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
8836         subprogram Ids, even if they are not yet assigned.
8837         (Build_Subprogram_Id): It is now this function that will take care of
8838         calling Assign_Subprogram_Ids if necessary.
8839         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
8840         should be done only once they are assigned.
8841         (Build_From_Any_Function, case of tagged types): Add missing call to
8842         Allocate_Buffer.
8843         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
8844         type for an RACW type.
8845         (Add_RACW_Features): When processing an RACW declaration for which the
8846         designated type is already frozen, enforce E.2.2(14) rules immediately.
8847         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
8848         special reordering of controlling formals.
8850         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
8851         associated stub type for an RACW type.
8853 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
8855         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
8856         fixed-point operations in an integer context, i.e. as operands of a
8857         conversion to an integer type, indicate that result must be rounded.
8859 2006-10-31  Robert Dewar  <dewar@adacore.com>
8861         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
8862         cases, pass the encoding method, since it is now required by the run
8863         time.
8865         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
8866         assumption that Str'First = 1.
8867         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
8868         it on to the Value_Wide_Wide_Character call.
8869         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
8870         properly handles a string of the form quote-encoded_wide_char-quote.
8872         * s-wchcnv.adb: Minor reformatting
8874 2006-10-31  Javier Miranda  <miranda@adacore.com>
8876         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8877         run-time membership test to ensure that the constructed object
8878         implements the target abstract interface.
8880 2006-10-31  Robert Dewar  <dewar@adacore.com>
8882         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
8883         Machine_Attribute pragma internally to implement the user pragma.
8884         Add processing for pragma Interface so that it is now completely
8885         equivalent to pragma Import.
8887         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
8888         so that it can be applied to all entities, including record components
8889         and enumeration literals.
8890         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
8891         priority ranges are correct, verify compatibility against task
8892         dispatching and locking policies, and if everything is correct an entry
8893         is added to the table containing priority specific dispatching entries
8894         for this compilation unit.
8895         (Delay_Config_Pragma_Analyze): Delay processing
8896         Priority_Specific_Dispatching pragmas because when processing the
8897         pragma we need to access run-time data, such as the range of
8898         System.Any_Priority.
8899         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
8900         Allow pragma Unreferenced as a context item
8901         Add pragma Preelaborable_Initialization
8902         (Analyze_Pragma, case Interface): Interface is extended so that it is
8903         now syntactically and semantically equivalent to Import.
8904         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
8905         insertion characters.
8906         Add handling for Pragma_Wide_Character_Encoding
8907         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
8908         never supercedes a real restriction, and that a real restriction
8909         always supercedes a warning.
8910         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
8911         appropriate form.
8913 2006-10-31  Bob Duff  <duff@adacore.com>
8914             Ed Schonberg  <schonberg@adacore.com>
8915             Robert Dewar  <dewar@adacore.com>
8917         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
8918         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
8919         Is_Inherently_Limited_Type, because return-by-reference has no meaning
8920         in Ada 2005.
8921         (Find_Node_To_Be_Wrapped): Use new method of determining the result
8922         type of the function containing a return statement, because the
8923         Return_Type field was removed. We now use the Return_Applies_To field.
8925         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
8926         (Build_Task_Image_Decl): If procedure is not called from an
8927         initialization procedure, indicate that function that builds task name
8928         uses the sec. stack. Otherwise the enclosing initialization procedure
8929         will carry the indication.
8930         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
8931         N_Object_Declaration instead.
8932         (Kill_Dead_Code): New interface to implement -gnatwt warning for
8933         conditional dead code killed, and change implementation accordingly.
8934         (Insert_Actions): Add N_Return_Object_Declaration case.
8935         Correct comment to mention N_Extension_Aggregate node.
8936         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
8937         attempts to save information for global variables which cannot be
8938         safely tracked.
8939         (Get_Current_Value_Condition): Handle conditions the other way round
8940         (constant on left). Also handle right operand of AND and AND THEN
8941         (Set_Current_Value_Condition): Corresponding changes
8942         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8943         (Get_Current_Value_Condition): Handle simple boolean operands
8944         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8945         (Get_Current_Value_Condition): If the variable reference is within an
8946         if-statement, does not appear in the list of then_statments, and does
8947         not come from source, treat it as being at unknown location.
8948         (Get_Current_Value_Condition): Enhance to allow while statements to be
8949         processed as well as if statements.
8950         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
8951         come from source.
8952         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
8953         of loop. This is safe now that we fixed Kill_Current_Values.
8954         (OK_To_Do_Constant_Replacement): Check whether current scope is
8955         Standard, before examining outer scopes.
8957 2006-10-31  Vincent Celier  <celier@adacore.com>
8959         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
8960         When True, apply VMS treatment to children of packages A, G, I and S.
8961         For F320-016
8963         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
8965 2006-10-31  Robert Dewar  <dewar@adacore.com>
8966             Ed Schonberg  <schonberg@adacore.com>
8968         * freeze.adb: Add handling of Last_Assignment field
8969         (Warn_Overlay): Supply missing continuation marks in error msgs
8970         (Freeze_Entity): Add check for Preelaborable_Initialization
8972         * g-comlin.adb: Add Warnings (Off) to prevent new warning
8974         * g-expect.adb: Add Warnings (Off) to prevent new warning
8976         * lib-xref.adb: Add handling of Last_Assignment field
8977         (Generate_Reference): Centralize handling of pragma Obsolescent here
8978         (Generate_Reference): Accept an implicit reference generated for a
8979         default in an instance.
8980         (Generate_Reference): Accept a reference for a node that is not in the
8981         main unit, if it is the generic body corresponding to an subprogram
8982         instantiation.
8984         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
8986         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
8987         -gnatwq/Q.
8988         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
8989         exception handler.
8990         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
8991         use clauses, to avoid messages on packages used to qualify, and also
8992         to avoid messages from obsolescent units.
8993         (Warn_On_Useless_Assignments): Don't generate messages for imported
8994         and exported variables.
8995         (Warn_On_Useless_Assignments): New procedure
8996         (Output_Obsolescent_Entity_Warnings): New procedure
8997         (Check_Code_Statement): New procedure
8999         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
9000         Change name Is_Ada_2005 to Is_Ada_2005_Only
9001         (Last_Assignment): New field for useless assignment warning
9003 2006-10-31  Olivier Hainque  <hainque@adacore.com>
9005         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
9006         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
9008 2006-10-31  Bob Duff  <duff@adacore.com>
9009             Robert Dewar  <dewar@adacore.com>
9010             Ed Schonberg  <schonberg@adacore.com>
9012         * g-awk.adb (Default_Session, Current_Session): Compile this file in
9013         Ada 95 mode, because it violates the new rules for AI-318.
9015         * g-awk.ads: Use overloaded subprograms in every case where we used to
9016         have a default of Current_Session. This makes the code closer to be
9017         correct for both Ada 95 and 2005.
9019         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
9020         code, relying on the fact that the compiler generates a warning
9021         instead of an error in -gnatg mode.
9023         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
9024         E_Return_Statement entity kind.
9025         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
9027         * par.adb (P_Interface_Type_Definition): Addition of one formal to
9028         report an error if the reserved word abstract has been previously found.
9029         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
9031         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
9032         parenthesized range attribute usage
9033         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
9035         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
9036         in the syntax for extended_return_statement. This is not in the latest
9037         RM, but the ARG is expected to issue an AI allowing this.
9038         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
9039         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
9040         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
9041         P_Return_Statement): Parse the new syntax for extended_return_statement.
9043         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
9044         Output_End_Missing): Add error-recovery code for the new
9045         extended_return_statement syntax; that is, the new E_Return entry on
9046         the scope stack.
9048         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
9049         limited to nonlimited, because otherwise we violate the new Ada 2005
9050         rules about returning limited types in function Create_AST_Handler in
9051         s-asthan.adb.
9053         * sem.adb (Analyze): Add cases for new node kinds
9054         N_Extended_Return_Statement and N_Return_Object_Declaration.
9056         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
9057         type is in the same category as type of context before applying check,
9058         to prevent anomalies in instantiations.
9059         (Resolve_Aggregate): Remove test for limited components in aggregates.
9060         It's unnecessary in Ada 95, because if it has limited components, then
9061         it must be limited. It's wrong in Ada 2005, because limited aggregates
9062         are now allowed.
9063         (Resolve_Record_Aggregate): Move check for limited types later, because
9064         OK_For_Limited_Init requires its argument to have been resolved.
9065         (Get_Value): When copying the component default expression for a
9066         defaulted association in an aggregate, use the sloc of the aggregate
9067         and not that of the original expression, to prevent spurious
9068         elaboration errors, when the expression includes function calls.
9069         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
9070         were missing. We also didn't handle qualified expressions. Now also
9071         allow function calls. Use new common routine OK_For_Limited_Init.
9072         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
9073         with space can upper case letter).
9075         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
9076         Has_Static_Discriminants flag
9077         (Record_Type_Declaration): Diagnose an attempt to declare an interface
9078         type with discriminants.
9079         (Process_Range_Expr_In_Decl): Do validity checks on range
9080         (Build_Discriminant_Constraints): Use updated form of
9081         Denotes_Discriminant.
9082         (Process_Subtype): If the subtype is a private subtype whose full view
9083         is a concurrent subtype, introduce an itype reference to prevent scope
9084         anomalies in gigi.
9085         (Build_Derived_Record_Type, Collect_Interface_Primitives,
9086         Record_Type_Declaration):  The functionality of the subprograms
9087         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
9088         is now performed by a single routine.
9089         (Build_Derived_Record_Type): If the type definition includes an explicit
9090         indication of limitedness, then the type must be marked as limited here
9091         to ensure that any access discriminants will not be treated as having
9092         a local anonymous access type.
9093         (Check_Abstract_Overriding): Issue a detailed error message when an
9094         abstract subprogram was not overridden due to incorrect mode of its
9095         first parameter.
9096         (Analyze_Private_Extension_Declaration): Add support for the analysis of
9097         synchronized private extension declarations. Verify that the ancestor is
9098         a limited or synchronized interface or in the generic case, the ancestor
9099         is a tagged limited type or synchronized interface and all progenitors
9100         are either limited or synchronized interfaces.
9101         Derived_Type_Declaration): Check for presence of private extension when
9102         dealing with synchronized formal derived types.
9103         Process_Full_View): Enchance the check done on the usage of "limited" by
9104         testing whether the private view is synchronized.
9105         Verify that a synchronized private view is completed by a protected or
9106         task type.
9107         (OK_For_Limited_Init_In_05): New function.
9108         (Analyze_Object_Declaration): Move check for limited types later,
9109         because OK_For_Limited_Init requires its argument to have been resolved.
9110         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9111         in order to alleviate the upward compatibility introduced by AI-318.
9112         (Constrain_Corresponding_Record): If the constraint is for a component
9113         subtype, mark the itype as frozen, to avoid out-of-scope references to
9114         discriminants in the back-end.
9115         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
9116         this subprogram against wrong sources.
9117         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
9118         discriminant of limited type completed with a protected type, when the
9119         discriminant is used to constrain a private component of the type, and
9120         expansion is disabled.
9121         (Find_Type_Of_Object): Do not treat a return subtype that is an
9122         anonymous subtype as a local_anonymous_type, because its accessibility
9123         level is the return type of the enclosing function.
9124         (Check_Initialization): In -gnatg mode, turn the error "cannot
9125         initialize entities of limited type" into a warning.
9126         (OK_For_Limited_Init): Return true for generated nodes, since it
9127         sometimes violates the legality rules.
9128         (Make_Incomplete_Declaration): If the type for which an incomplete
9129         declaration is created happens to be the currently visible entity,
9130         preserve the homonym chain when removing it from visibility.
9131         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
9132         inherited subprograms.
9133         (Access_Definition): If this is an access to function that is the return
9134         type of an access_to_function definition, context is a type declaration
9135         and the scope of the anonymous type is the current one.
9136         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
9137         incomplete subtype to the set of private dependents of the original
9138         incomplete type.
9139         (Constrain_Discriminated_Type): Emit an error message whenever an
9140         incomplete subtype is being constrained.
9141         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
9142         corresponding subtype of the full view of the original incomplete type.
9143         (Check_Incomplete): Properly detect invalid usage of incomplete types
9144         and subtypes.
9146 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9148         * g-catiio.ads, g-catiio.adb (Value): New function.
9149         Given an input String, try and parse a valid Time value.
9151 2006-10-31  Vincent Celier  <celier@adacore.com>
9153         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
9154         Integer_Address arithmetic, as in Set_Valid.
9156 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9157             Robert Dewar  <dewar@adacore.com>
9159         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
9160         handling executable extension manually and duplicating code.
9162         * make.adb: Implement new -S switch
9163         (Gnatmake): Use new function Osint.Executable_Name instead
9164         of handling executable extension manually.
9166         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
9167         is specified, the executable name ends with this suffix.
9168         Take advantage of Osint.Executable_Name instead of duplicating code.
9170         * switch-m.adb: Recognize new gnatmake -S switch
9172         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
9173         variable.
9174         (Get_Target_Parameters): Set Executable_Extension_On_Target if
9175         available.
9177         * makeusg.adb: Add line for gnatmake -S switch
9179 2006-10-31  Vincent Celier  <celier@adacore.com>
9181         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
9182         call it with -static-libgcc, as there are some platforms, such as
9183         Darwin, where one of these two switches is compulsory to link.
9185 2006-10-31  Vincent Celier  <celier@adacore.com>
9187         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
9188         instead of ADA_PROJECT_PATH, for the project path.
9189         (Gnatls): When displaying the project path directories, use host dir
9190         specs.
9192         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
9193         names in the project path, as absolute paths may correspond to
9194         multi-valued VMS logical names.
9196 2006-10-31  Vincent Celier  <celier@adacore.com>
9198         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
9199         absolute path name.
9200         (Locate_Regular_File): Ditto
9201         (Change_Dir): Remove, no longer used
9202         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
9203         on Windows. Get it calling Get_Current_Dir.
9204         (OpenVMS): Remove imported boolean, no longer needed.
9205         (Normalize_Pathname)[VMS]: Do not resolve directory names.
9206         (Pid_To_Integer): New function to convert a Process_Id to  Integer
9208 2006-10-31  Thomas Quinot  <quinot@adacore.com>
9210         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
9211         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
9212         to No_Socket.
9213         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
9214         W_Sig_Socket.
9216 2006-10-31  Robert Dewar  <dewar@adacore.com>
9218         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
9219         initial letter o as a zero.
9221 2006-10-31  Robert Dewar  <dewar@adacore.com>
9223         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
9225 2006-10-31  Robert Dewar  <dewar@adacore.com>
9227         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
9228         variant records
9229         (Layout_Variant_Record): Retrieve the discriminants from the entity
9230         rather than from the type definition, because in the case of a full
9231         type for a private type we need to take the discriminants from the
9232         partial view.
9233         (Layout_Component_List): When applying the Max operator to variants with
9234         a nonstatic size, check whether either operand is static and scale that
9235         operand from bits to storage units before applying Max.
9236         (Layout_Type): In VMS, if a C-convention access type has no explicit
9237         size clause (and does not inherit one in the case of a derived type),
9238         then the size is reset to 32 from 64.
9240 2006-10-31  Vincent Celier  <celier@adacore.com>
9242         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
9243         its file has already been loaded, according to the unit being loaded,
9244         not to the current value of Multiple_Unit_Index.
9246 2006-10-31  Thomas Quinot  <quinot@adacore.com>
9247             Eric Botcazou  <ebotcazou@adacore.com>
9248             Arnaud Charlet  <charlet@adacore.com>
9250         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
9251         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
9252         possible.
9253         (a-except.o): Pass it to the compiler.
9254         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
9255         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
9256         a-calend-mingw.adb version.
9258         * Makefile.rtl: Added s-dsaser.
9259         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
9260         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
9261         Ada.Dispatching.Round_Robin.
9262         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
9264         * Make-lang.in: Remove all references to gt-ada-decl.h.
9265         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
9266         sources.
9267         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
9268         Update dependencies.
9270         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
9272 2006-10-31  Vincent Celier  <celier@adacore.com>
9274         * mlib-utl.adb (Initialized): Remove, no longer used
9275         (Initialize): Remove, no longer used
9276         (Ar): If Ar_Exec is null, get the location of the archive builder and,
9277         if there is one, the archive indexer. Fail if the archive builder cannot
9278         be found.
9279         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
9280         be found.
9282 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9284         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
9285         Process_Body_Clauses): If the context of a body includes a use clause
9286         for P.Q then a with_clause for P in the same body is not redundant,
9287         even if the spec also has a with_clause on P.
9288         Add missing continuation mark to error msg
9289         (Build_Limited_Views): A limited view of a type is tagged if its
9290         declaration includes a record extension.
9291         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
9292         node, even if the subunit has errors. This avoids malfunction by
9293         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
9294         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
9295         generation of obsolescent messages for with statements (cannot do
9296         this too early, or we cannot implement avoiding the messages in the
9297         case of obsolescent units withing obsolescent units).
9298         (Install_Siblings): If the with_clause is on a remote descendant of
9299         an ancestor of the current compilation unit, find whether there is
9300         a sibling child unit that is immediately visible.
9301         (Remove_Private_With_Clauses): New procedure, invoked after completing
9302         the analysis of the private part of a nested package, to remove from
9303         visibility the private with_clauses of the enclosing package
9304         declaration.
9305         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
9306         now centralized in Generate_Reference.
9307         (Install_Limited_Context_Clauses): Remove superfluous error
9308         message associated with unlimited view visible through use
9309         and renamings. In addition, at the point in which the error
9310         is reported, we add the backslash to the text of the error
9311         to ensure that it is reported as a single error message.
9312         Use new // insertion for some continuation messages
9313         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
9314         to create implicit with_clause for parent unit mentioned in original
9315         limited_with_clause.
9316         (Install_Limited_With_Unit): Set entity of parent identifiers if the
9317         unit is a child unit. For ASIS queries.
9318         (Analyze_Subunit): If the subunit appears within a child unit, make all
9319         ancestor child units directly visible again.
9321 2006-10-31  Robert Dewar  <dewar@adacore.com>
9323         * par-ch10.adb (P_Context_Clause): Minor error message fix
9325 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9326             Javier Miranda  <miranda@adacore.com>
9328         * par-ch12.adb: Grammar update and cleanup.
9329         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
9330         support for synchronized derived type definitions.
9331         Add the new actual Abstract_Present to every call to
9332         P_Interface_Type_Definition.
9333         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
9334         a formal object declaration with an access definition or a subtype mark
9335         with a null exclusion.
9336         (P_Generic_Association): Handle association with box, and others_choice
9337         with box, to support Ada 2005 partially parametrized formal packages.
9339 2006-10-31  Robert Dewar  <dewar@adacore.com>
9340             Javier Miranda  <miranda@adacore.com>
9342         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
9343         (P_Type_Declaration): Remove barrier against the reserved word "limited"
9344         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
9345         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
9346         private extensions.
9347         (P_Type_Declaration): Add the new actual Abstract_Present to every call
9348         to P_Interface_Type_Definition.
9349         (P_Interface_Type_Definition): Addition of one formal to report an error
9350         if the reserved word abstract has been previously found.
9351         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
9352         object renaming declaration with an access definition or subtype mark
9353         with a possible null exclusion.
9355         * par-ch9.adb: Minor error msg fix
9357         * par-load.adb: Add missing continuation mark to error msg
9359         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
9361 2006-10-31  Vincent Celier  <celier@adacore.com>
9363         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
9364         unknown attribute in unknown package or in package that does not need
9365         to be checked.
9366         (Parse_Package_Declaration): Do not issue warning for unknown package in
9367         quiet output.
9369 2006-10-31  Vincent Celier  <celier@adacore.com>
9371         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
9372         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
9373         Packages_To_Check.
9375 2006-10-31  Vincent Celier  <celier@adacore.com>
9377         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
9378         on VMS, change "__" to '.' before checking the name.
9379         (Record_Ada_Source): Always add the source file name in the list of
9380         of sources, even if it is not the first time, as it is for another
9381         source index.
9382         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
9383         dot, instead of replacing only the first '_'.
9385         * prj-part.adb (Parse): Convert project file path to canonical form
9387         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
9388         extended, the project id of the project extending it is recorded in its
9389         data, even when it has already been processed as an imported project.
9391 2006-10-31  Robert Dewar  <dewar@adacore.com>
9393         * repinfo.adb (List_Entities): Don't list entities from renaming
9394         declarations.
9396 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9397             Robert Dewar  <dewar@adacore.com>
9399         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
9400         only a restriction warning is active for the given restriction. This is
9401         desirable because we do not want to modify code in the case where only
9402         a warning is set.
9403         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
9404         causes overriding of real restrictions.
9405         Take advantage of new No_Restrictions constant.
9407         * raise.h: (__gnat_set_globals): Change profile.
9409 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9411         * rtsfind.adb: Remove s-polint from comment as it exists no more.
9413         * rtsfind.ads: 
9414         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
9415         Move all the entities in obsolete package System.PolyORB_Interface to
9416         System.Partition_Interface.
9417         (RE_Storage_Size): New function in System.Tasking.
9418         (RE_Get_Ceiling): New entity.
9419         (RE_Set_Ceiling): New entity.
9420         (RO_PE_Get_Ceiling): New entity.
9421         (RO_RE_Set_Ceiling): New entity.
9422         (Inherit_CPP_DT): New entity
9424 2006-10-31  Robert Dewar  <dewar@adacore.com>
9426         * scng.adb (Scan, case of numeric literal): Better msg for identifier
9427         starting with a digit.
9429 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9430             Thomas Quinot  <quinot@adacore.com>
9431             Javier Miranda  <miranda@adacore.com>
9432             Gary Dismukes  <dismukes@adacore.com>
9434         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
9435         properly an attempt to apply Unchecked_Access to a protected operation.
9436         (OK_Self_Reference): New subprogram to check the legality of an access
9437         attribute whose prefix is the type of an enclosing aggregate.
9438         Generalizes previous mechanism to handle attribute references nested
9439         arbitrarily deep within the aggregate.
9440         (Analyze_Access_Attribute): An access attribute whose prefix is a type
9441         can appear in an aggregate if this is a default-initialized aggregate
9442         for a self-referential type.
9443         (Resolve_Attribute, case Access): Ditto.
9444         Add support for new implementation defined attribute Stub_Type.
9445         (Eval_Attribute, case Attribute_Stub_Type): New case.
9446         (Analyze_Attribute, case Attribute_Stub_Type): New case.
9447         (Stream_Attribute_Available): Implement using new subprogram from
9448         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
9449         Has_Specified_Stream_Attribute flag.
9450         Disallow Storage_Size and Storage_Pool for access to subprogram
9451         (Resolve_Attribute, case 'Access et al): Take into account anonymous
9452         access types of return subtypes in extended return statements. Remove
9453         accessibility checks on anonymous access types when Unchecked_Access is
9454         used.
9455         (Analyze_Attribute): Add support for the use of 'Class to convert
9456         a class-wide interface to a tagged type.
9457         Add support for the attribute Priority.
9458         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
9459         whether the designated type is discriminated with a constrained partial
9460         view and require static matching in that case.
9461         Add local variable Des_Btyp. The Designated_Type
9462         of an access to incomplete subtype is either its non-limited view if
9463         coming from a limited with or its etype if regular incomplete subtype.
9465         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
9466         Fix predicate to identify and allow cases of (expander-generated)
9467         references to tag of designated object of a RACW.
9468         (Validate_Static_Object_Name): In Ada 2005, a formal object is
9469         non-static, and therefore cannot appear as a primary in a preelaborable
9470         package.
9471         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
9472         Has_Read_Write_Attributes.
9473         (Has_Read_Write_Attributes): Reimplement in termes of
9474         Has_Stream_Attribute_Definition.
9475         (Missing_Read_Write_Attributes): When checking component types in a
9476         record, unconditionally call Missing_Read_Write_Attributes recursively
9477         (remove guard checking for Is_Record_Type / Is_Access_Type).
9479 2006-10-31  Robert Dewar  <dewar@adacore.com>
9481         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
9482         useless assignments here and conditionalize it on absence of exception
9483         handlers.
9484         (Analyze_Exception_Handlers): Small code reorganization of error
9485         detection code, for new handling of formal packages.
9487 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9488             Hristian Kirtchev  <kirtchev@adacore.com>
9490         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
9491         that has been constant-folded, preserve information of original tree,
9492         for ASIS uses.
9493         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
9494         generated private extension declaration if the formal derived type is
9495         synchronized. Carry synchronized present over to the generated private
9496         extension.
9497         (Validate_Derived_Type_Instance): Ensure that the actual of a
9498         synchronized formal derived type is a synchronized tagged type.
9499         (Instantiate_Formal_Package): When creating the instantiation used to
9500         validate the actual package of a formal declared without a box, check
9501         whether the formal itself depends on a prior actual.
9502         (Instantiate_Formal_Subprogram): Create new entities for the defining
9503         identifiers of the formals in the renaming declaration, for ASIS use.
9504         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
9505         a renaming declaration or a subtype declaration for an actual in an
9506         instance, capture location information of declaration in generic, for
9507         ASIS use.
9508         (Instantiate_Formal_Package): Add comments on needed additional tests.
9509         AI-317 (partial parametrization) is fully implemented.
9510         (Validate_Private_Type_Instance): Add check for actual which
9511         must have preelaborable initialization
9512         Use new // insertion for some continuation messages
9513         (Analyze_Formal_Object_Declaration): Change usage of Expression to
9514         Default_Expression. Add type retrieval when the declaration has an
9515         access definition. Update premature usage of incomplete type check.
9516         (Check_Access_Definition): New subsidiary routine. Check whether the
9517         current compilation version is Ada 05 and the supplied node has an
9518         access definition.
9519         (Instantiate object): Alphabetize local variables. Handle the creation
9520         of new renaming declarations with respect to the kind of definition
9521         used - either an access definition or a subtype mark. Guard against
9522         unnecessary error message in the context of anonymous access types after
9523         they have been resolved. Add check for required null exclusion in a
9524         formal object declaration.
9525         (Switch_View): A private subtype of a non-private type needs to be
9526         switched (the base type can have been switched without its private
9527         dependents because of the last branch of Check_Private_View.
9528         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
9529         value from BT.
9530         (Instantiate_Type): Emit an error message whenever a class-wide type of
9531         a tagged incomplete type is used as a generic actual.
9532         (Find_Actual_Type): Extend routine to handle a component type in a child
9533         unit that is imported from a formal package in a parent.
9534         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
9535         agree on constrainedness, rather than checking against ultimate ancestor
9536         (Instantiate_Subprogram_Body): Create a cross-reference link to the
9537         generic body, for navigation purposes.
9539 2006-10-31  Robert Dewar  <dewar@adacore.com>
9540             Thomas Quinot  <quinot@adacore.com>
9542         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
9543         type.
9544         (New_Stream_Subprogram): When processing an attribute definition clause
9545         for a stream-oriented subprogram, record an entity node occurring at
9546         the point of clause to use for checking the visibility of the clause,
9547         as defined by 8.3(23) as amended by AI-195.
9548         (New_Stream_Subprogram): New procedure, factoring behaviour from both
9549          New_Stream_Function and New_Stream_Procedure.
9550         (New_Stream_Function, New_Stream_Procedure): Removed.
9551         (Analyze_Attribute_Definition_Clause, case Address): Check new
9552         Alignment_Check check
9554 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9555             Javier Miranda  <miranda@adacore.com>
9556             Robert Dewar  <dewar@adacore.com>
9558         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
9559         generate the same errors compiling under -gnatc.
9560         (Try_Object_Operation): If no candidate interpretation succeeds, but
9561         there is at least one primitive operation with the right name, report
9562         error in call rather than on a malformed selected component.
9563         (Analyze_Selected_Component): If the prefix is an incomplete type from
9564         a limited view, and the full view is available, use the full view to
9565         determine whether this is a prefixed call to a primitive operation.
9566         (Operator_Check): Verify that a candidate interpretation is a binary
9567         operation before checking the type of its second formal.
9568         (Analyze_Call): Add additional warnings for function call contexts not
9569         yet supported.
9570         (Analyze_Allocator): Move the check for "initialization not allowed for
9571         limited types" after analyzing the expression. This is necessary,
9572         because OK_For_Limited_Init looks at the structure of the expression.
9573         Before analysis, we don't necessarily know what sort of expression it
9574         is. For example, we don't know whether F(X) is a function call or an
9575         indexed component; the former is legal in Ada 2005; the latter is not.
9576         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
9577         were missing. We also didn't handle qualified expressions. Now also
9578         allow function calls. Use new common routine OK_For_Limited_Init.
9579         (Analyze_Type_Conversion): Do not perform some legality checks in an
9580         instance, because the error message will be redundant or spurious.
9581         (Analyze_Overloaded_Selected_Component): Do not do style check when
9582         setting an entity, since we do not know it is the right entity yet.
9583         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
9584         (Analyze_Overloaded_Selected_Component): Same change
9585         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
9586         since regular incomplete subtypes are transformed into corresponding
9587         subtypes of their full views.
9588         (Complete_Object_Operation): Treat name of transformed subprogram call
9589         as coming from source, for browsing purposes.
9590         (Try_Primitive_Operation): If formal is an access parameter, compare
9591         with base type of object to determine whether it is a primitive
9592         operation.
9593         (Operator_Check): If no interpretation of the operator matches, check
9594         whether a use clause on any candidate might make the operation legal.
9595         (Try_Class_Wide_Operation): Check whether the first parameter is an
9596         access type whose designated type is class-wide.
9598 2006-10-31  Robert Dewar  <dewar@adacore.com>
9599             Ed Schonberg  <schonberg@adacore.com>
9600             Gary Dismukes  <dismukes@adacore.com>
9602         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
9603         warn on infinite loops.
9604         Add \\ to some continuation messages
9605         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
9606         (Process_Bounds): If the bounds are integer literals that result from
9607         constant-folding, and they carry a user-defined type, preserve that type
9608         rather than treating this as an integer range.
9609         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
9610         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
9611         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
9612         left hand side of assignment.
9613         (Analyze_Assignment): Add suport to manage assigments to the attribute
9614         priority of a protected object.
9615         (Check_Possible_Current_Value_Condition): Allow fully qualified names
9616         not just identifiers.
9617         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
9618         or AND THEN for possible tracking.
9619         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
9620         case of while loops so we can track values in the loop body.
9622 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9623             Hristian Kirtchev  <kirtchev@adacore.com>
9624             Bob Duff  <duff@adacore.com>
9626         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
9627         procedure cannot be a protected operation (it is a basic_declaration,
9628         not a subprogram_declaration).
9629         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
9630         Subp. Add logic for entry processing.
9631         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
9632         Determine whether an entry or subprogram of a protected or task type
9633         override an inherited primitive of an implemented interface.
9634         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
9635         Update the actual used in calls to Check_Overriding_Indicator.
9636         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
9637         generate the proper reference to the parent unit, for cross-reference.
9638         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
9639         Is_Formal.
9640         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9641         (Add_Extra_Formal): Revise procedure to allow passing in associated
9642         entity, scope, and name suffix, and handle setting of the new
9643         Extra_Formals field.
9644         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
9645         pass new parameters. Add support for adding the new extra access formal
9646         for functions whose calls are treated as build-in-place.
9647         (Analyze_A_Return_Statement): Correct casing in error message.
9648         Move Pop_Scope to after Analyze_Function_Return, because an extended
9649         return statement really is a full-fledged scope. Otherwise, visibility
9650         doesn't work right. Correct use of "\" for continuation messages.
9651         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
9652         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
9653         the node doesn't get properly marked as analyzed.
9654         (Analyze_Subprogram_Body): If subprogram is a function that returns
9655         an anonymous access type that denotes a task, build a Master Entity
9656         for it.
9657         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
9658         proper usage of null exclusion in a result definition.
9659         (Process_Formals): Code cleanup and new error message.
9660         (Process_Formals): Detect incorrect application of null exclusion to
9661         non-access types.
9662         (Conforming_Types): Handle conformance between [sub]types and itypes
9663          generated for entities that have null exclusions applied to them.
9664         (Maybe_Primitive_Operation): Add an additional type retrieval when the
9665          base type is an access subtype. This case arrises with null exclusions.
9666         (New_Overloaded_Entity): Do not remove the overriden entity from the
9667         homonym chain if it corresponds with an abstract interface primitive.
9668         (Process_Formals): Replace membership test agains Incomplete_Kind with a
9669         call to the synthesized predicate Is_Incomplete_Type.
9670         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
9671         primitives.
9672         (Analyze_Subprogram_Declaration): Check that abstract interface
9673         primitives are abstract or null.
9674         (Analyze_Subprogram_Specification): Remove previous check for abstract
9675         interfaces because it was not complete.
9676         (Has_Interface_Formals): Removed.
9678 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9679             Javier Miranda  <miranda@adacore.com>
9681         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
9682         of Analyze_Package_Body, to create Itype references for anonymous
9683         access types created in the package declaration, whose designated types
9684         may have only a limited view.
9685         (Analyze_Package_Specification): For the private part of a nested
9686         package, install private_with_clauses of enclosing compilation unit if
9687         we are in its visible part.
9688         (Declare_Inherited_Private_Subprograms): Complete barrier
9689         to ensure that the primitive operation has an alias to some parent
9690         primitive. This is now required because, after the changes done for the
9691         implementation of abstract interfaces, the contents of the list of
9692         primitives has entities whose alias attribute references entities of
9693         such list of primitives.
9694         (Analyze_Package_Specification): Simplify code that handles parent units
9695         of instances and formal packages.
9696         (Uninstall_Declarations): Check the convention consistency among
9697         primitive overriding operations of a tagged record type.
9699 2006-10-31  Robert Dewar  <dewar@adacore.com>
9700             Hristian Kirtchev  <kirtchev@adacore.com>
9701             Javier Miranda  <miranda@adacore.com>
9702             Ed Schonberg  <schonberg@adacore.com>
9704         * sem_ch8.adb: Minor error msg rewording
9705         (Undefined): When checking for misspellings, invert arguments (to get
9706         expected and found set right)
9707         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
9708         (Analyze_Generic_Renaming): Same fix
9709         (Use_One_Package): Do not take into account the internal entities of
9710         abstract interfaces during the analysis of entities that are marked
9711         as potentially use-visible.
9712         (Find_Type): Handle the case of an attribute reference for
9713         implementation defined attribute Stub_Type (simply let the analysis of
9714         the attribute reference rewrite it).
9715         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
9716         type that appears in a Use_Type clause.
9717         (Analyze_Object_Renaming): Add support for renaming of the Priority
9718         attribute.
9719         (Find_Type): In Ada 2005, a task type can be used within its own body,
9720         when it appears in an access definition.
9721         (Analyze_Object_Renaming): Remove warning on null_exclusion.
9722         (Analyze_Object_Renaming): Introduce checks for required null exclusion
9723          in a formal object declaration or in a subtype declaration.
9724         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
9725         (Check_Null_Exclusion): New local routine to
9726         Analyze_Subprogram_Renaming. Check whether the formals and return
9727         profile of a renamed subprogram have required null exclusions when
9728         their counterparts of the renaming already impose them.
9729         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
9730         Determine whether an entity is inside a generic scope.
9731         (In_Open_Scope): First pass of documentation update.
9732         (Find_Expanded_Name): Add support for shadow entities associated with
9733         limited withed packages. This is required to handle nested packages.
9734         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
9735         that makes a renaming of a limited withed package illegal.
9737 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9738             Ed Schonberg  <schonberg@adacore.com>
9740         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
9741         Check_Overriding_Indicator.
9742         (Analyze_Task_Definition): Ditto.
9743         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
9744         (Check_Overriding_Indicator): To find overridden interface operation,
9745         examine only homonyms that have an explicit subprogram declaration, not
9746         inherited operations created by an unrelated type derivation.
9747         (Check_Overriding_Indicator): When checking for the presence of "null"
9748         in a procedure, ensure that the queried node is a procedure
9749         specification.
9750         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
9751         type when the formal is an access to variable.
9752         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
9753         (Analyze_Task_Type): Same addition
9754         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
9755         provide navigation capabilities for entries.
9757 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9758             Ed Schonberg  <schonberg@adacore.com>
9759             Javier Miranda  <miranda@adacore.com>
9760             Gary Dismukes  <dismukes@adacore.com>
9762         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
9763         inherited from an interface ancestor by another interface in the
9764         context of an instance as 'late'.
9765         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
9766         of a call to a function that dispatches on access result.
9767         (Check_Dispatching_Operation): In case of late overriding of a primitive
9768         that covers abstract interface subprograms we register it in all the
9769         secondary dispatch tables associated with abstract interfaces.
9770         (Check_Dispatching_Call): Add check that a dispatching call is not made
9771         to a function with a controlling result of a limited type. This is a
9772         current implementation restriction.
9773         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
9774         (Check_Dispatching_Operation): Do no emit a warning if the controlling
9775         argument is an interface type that is a generic formal.
9776         (Is_Interface_Subprogram): Removed.
9777         (Check_Dispatching_Operation): If the subprogram is not a dispatching
9778         operation, check the formals to handle the case in which it is
9779         associated with an abstract interface type.
9781 2006-10-31  Robert Dewar  <dewar@adacore.com>
9782             Ed Schonberg  <schonberg@adacore.com>
9784         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
9785         Add new calls to this procedure during traversal
9786         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
9787         another unit if expansion is disabled.
9789 2006-10-31  Robert Dewar  <dewar@adacore.com>
9791         * sem_eval.adb (Compile_Time_Compare): Make use of information from
9792         Current_Value in the conditional case, to evaluate additional
9793         comparisons at compile time.
9795 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9796             Hristian Kirtchev  <kirtchev@adacore.com>
9797             Javier Miranda  <miranda@adacore.com>
9799         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
9800         subprogram type to provide better diagnostics in case of ambiguity.
9801         (Covers): Handle coverage of formal and actual anonymous access types in
9802         the context of generic instantiation.
9803         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
9804         abstract interface types; this is required to handle concurrent types
9805         with discriminants and abstract interface types.
9806         (Covers): Include type coverage of both regular incomplete subtypes and
9807         incomplete subtypes of incomplete type visibles through a limited with
9808         clause.
9810 2006-10-31  Robert Dewar  <dewar@adacore.com>
9811             Hristian Kirtchev  <kirtchev@adacore.com>
9812             Ed Schonberg  <schonberg@adacore.com>
9814         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
9815         messages for entities in packages which are not used.
9816         (Collect_Synchronized_Interfaces): New procedure.
9817         (Overrides_Synchronized_Primitive): New function.
9818         (Denotes_Discriminant): Extend predicate to apply to task types.
9819         Add missing continuation marks in error msgs
9820         (Unqualify): New function for removing zero or more levels of
9821         qualification from an expression. There are numerous places where this
9822         ought to be used, but we currently only deal properly with zero or one
9823         level.
9824         (In_Instance); The analysis of the actuals in the instantiation of a
9825         child unit is not within an instantiation, even though the parent
9826         instance is on the scope stack.
9827         (Safe_To_Capture_Value): Exclude the case of variables that are
9828         renamings.
9829         (Check_Obsolescent): Removed
9830         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
9831         is an aliased view, even when rewritten as a reference to the target
9832         object in an assignment.
9833         (Get_Subprogram_Entity): New function
9834         (Known_To_Be_Assigned): New function
9835         (Type_Access_Level): Compute properly the access level of a return
9836         subtype that is an anonymous access type.
9837         (Explain_Limited_Type): Correct use of "\" for continuation messages.
9838         (Is_Transfer): The new extended_return_statement causes a transfer of
9839         control.
9840         (Has_Preelaborable_Initialization): New function
9841         (Has_Null_Exclusion): New function. Given a node N, determine whether it
9842         has a null exclusion depending on its Nkind.
9843         Change Is_Lvalue to May_Be_Lvalue
9844         (May_Be_Lvalue): Extensive additional code to deal with subprogram
9845         arguments (IN parameters are not Lvalues, IN OUT parameters are).
9846         (Safe_To_Capture_Value): Extend functionality so it can be used for
9847         the current value condition case.
9848         (Has_Compatible_Alignment): New function
9849         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
9850         objects to handle the Ada 2005 case, where aliasedness no longer implies
9851         that the object is constrained. In particular, for dereferenced names,
9852         the designated object must be assumed to be unconstrained.
9853         (Kill_Current_Values): Properly deal with the case where we encounter
9854         a loop in the scope chain.
9855         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
9856         a value.
9857         (Compile_Time_Constraint_Error): Improve error message in error case
9859         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
9860         associated with entities of abstract interface primitives.
9861         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
9863 2006-10-31  Robert Dewar  <dewar@adacore.com>
9865         * s-osinte-tru64.adb: 
9866         Mark Asm statements Volatile to prevent warnings (seems a
9867         reasonable change anyway)
9868         Fixes new warnings
9870         * s-mastop-irix.adb: Add Volatile to Asm statements
9871         Suppresses warning, and seems appropriate in any case
9873         * s-osinte-vms.adb: Add Volatile to Asm statement
9875         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
9877         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
9878         returned.
9879         Add call to Check_Code_Statement
9881 2006-10-31  Robert Dewar  <dewar@adacore.com>
9882             Ed Schonberg  <schonberg@adacore.com>
9883             Bob Duff  <duff@adacore.com>
9885         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
9886         Synchronized_Present): Add Formal_Derived_Type_Definition and
9887         Private_Extension_Declaration to the list of assertions.
9888         (Is_Entry_Barrier_Function): New flag
9889         (Has_Self_Reference): New flag on aggregates, to indicate that they
9890         contain a reference to the enclosing type, inserted through a default
9891         initialization.
9892         (Next_Rep_Item): Move from Node4 to Node5.
9893         (Entity): Add this field for N_Attribute_Definition_Clause.
9894         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
9895         (N_Return_Object_Declaration): Remove this node kind. We now use
9896         N_Object_Declaration instead.
9897         (Actual_Designated_Subtype): Move to a different place to make room in
9898         N_Extended_Return_Statement.
9899         (Procedure_To_Call): Move to a different place to make room in
9900         N_Extended_Return_Statement.
9901         (Return_Type): Removed this field to make room in return statements
9902         (both kinds).
9903         (Return_Statement_Entity): New field in return statements, in part to
9904         replace Return_Type, and in part to support the fact that return
9905         statements are now pushed on the scope stack during semantic analysis.
9906         (Return_Object_Declarations): New field to support extended return
9907         statements.
9908         (N_Extended_Return_Statement): New node for extended_return_statement
9909         nonterminal.
9910         (N_Return_Object_Declaration): New node for part of
9911         extended_return_statement nonterminal. Needed because all the necessary
9912         fields won't fit in N_Extended_Return_Statement.
9913         Generic_associations now carry the Box_Present flag, to indicate a
9914         default for an actual in a partially parametrized formal package.
9916         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
9917         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
9918         and for the new predefined dispatching policies: EDF_Across_Priorities,
9919         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
9920         Introduce new name Stub_Type for implementation defined attribute.
9921         Add pragma Preelaborable_Initialization
9922         Add entry for Priority attribute.
9923         Add Pragma_Wide_Character_Encoding
9924         (Get_Convention_Name): Given a convention id, this function returns the
9925         corresponding name id from the names table.
9927 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9928             Robert Dewar  <dewar@adacore.com>
9929             Bob Duff  <duff@adacore.com>
9931         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
9932         print null exclusion twice in the case of an access definition,
9933         Implement new -gnatL switch
9934         Remove N_Return_Object_Declaration. We now use
9935         N_Object_Declaration instead. Implement the case for
9936         N_Extended_Return_Statement. Alphabetize the cases.
9937         Add cases for new nodes N_Extended_Return_Statement and
9938         N_Return_Object_Declaration. The code is not yet written.
9939         Update the output for N_Formal_Object_Declaration
9940         and N_Object_Renaming_Declaration.
9941         (Write_Itype): Account for the case of a modular integer subtype whose
9942         base type is private.
9944 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9946         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
9947         Remove elaboration code, now done in the binder.
9949         * s-rident.ads: Make this unit Preelaborate.
9950         (No_Restrictions): New constant used to clean up code and follow
9951         preelaborate constraints.
9953         * s-stalib.adb: 
9954         Add System.Restrictions dependence, referenced directly from the
9955         binder generated file.
9957 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
9959         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
9960         True when AAMP extended floating-point is in use (48-bit). Change type
9961         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
9962         the two byte array types on AFloat. Change type of IV_Ilf overlay
9963         variable from Byte8 to ByteLF. Add appropriate initializations of
9964         floating-point overlays for AAMP cases.
9966 2006-10-31  Javier Miranda  <miranda@adacore.com>
9968         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
9969         (Get_Ceiling): New subprogram that returns
9970         the ceiling priority of the protected object.
9971         (Set_Ceiling): New subprogram that sets the new ceiling priority of
9972         the protected object.
9974         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
9976         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
9978 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
9980         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
9981         requeuing to the same protected object to give higher priority tasks
9982         the opportunity to execute.
9984 2006-10-31  Robert Dewar  <dewar@adacore.com>
9986         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
9987         add more precise check for the character sequence that follows '[' to
9988         avoid possible confusion in case if '[' is the last character of a
9989         string literals.
9990         (Scan_Wide): Always allow brackets encoding
9992 2006-10-31  Olivier Hainque  <hainque@adacore.com>
9994         * s-stchop.ads: make this unit preelaborate. This is desirable in
9995         general and made mandatory by the use of this unit by s-taprop which
9996         is itself preelaborate.
9998         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
9999         Td_Events component.
10001 2006-10-31  Vincent Celier  <celier@adacore.com>
10003         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
10004         in file names.
10006 2006-10-31  Vincent Celier  <celier@adacore.com>
10008         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
10010 2006-10-31  Vincent Celier  <celier@adacore.com>
10012         * makegpr.adb (Check_Compilation_Needed): Take into account path names
10013         with spaces.
10014         (Check_Compilation_Needed): When checking a C or C++ source, do not
10015         resolve symbolic links.
10016         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
10017         When not in verbose mode and Ellipse is True, display "..." for the
10018         first argument with Display set to False.
10019         (Build_Global_Archive): Always set Display True for the first object
10020         file. Call Display_Command with Ellipse set to True.
10022 2006-10-31  Matt Heaney  <heaney@adacore.com>
10024         * a-crbtgo.ads: Commented each subprogram
10026         * a-crbtgo.adb: Added reference to book from which algorithms were
10027         adapted.
10029         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
10030         indicate which child.
10031         (Generic_Conditional_Insert): changed parameter name from "Success" to
10032         "Inserted".
10033         (Generic_Unconditional_Insert_With_Hint): improved algorithm
10035         * a-coorse.adb (Replace_Element): changed parameter name in call to
10036         conditional insert operation.
10038         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
10040         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
10041         Generic_Iteration
10043         * a-ciorse.adb (Replace_Element): changed parameter name in call to
10044         conditional insert operation.
10046         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
10047         Generic_Iteration.
10049         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
10050         instead of mode inout.
10052         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
10053         draft
10054         (Generic_Read): preserve existing buckets array if possible
10055         (Generic_Write): don't send buckets array length anymore
10057         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
10058         instead of mode inout.
10060         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
10061         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
10063         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
10064         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
10065         (Replace_Element): local operation is now an instantiation
10067         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
10068         check current length.
10069         (Generic_Replace_Element): new operation
10071 2006-10-31  Doug Rupp  <rupp@adacore.com>
10073         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
10074         Call TBK$SYMBOLIZE without omitting parameters.
10076 2006-10-31  Vincent Celier  <celier@adacore.com>
10078         * symbols-processing-vms-ia64.adb,
10079         symbols-processing-vms-alpha.adb (Process): Do not include symbols
10080         that come from generic instantiations in bodies.
10082 2006-10-31  Pat Rogers  <rogers@adacore.com>
10084         * a-rttiev.ads, a-rttiev.adb: 
10085         This is a significant redesign primarily for the sake of automatic
10086         timer task termination but also to fix a design flaw.
10087         Therefore we are now using an RTS lock, instead of a protected
10088         object, to provide mutual exclusion to the queue of pending events
10089         and the type Timing_Event is no longer a protected type.
10091 2006-10-31  Robert Dewar  <dewar@adacore.com>
10092             Cyrille Comar  <comar@adacore.com>
10093             Ben Brosgol  <brosgol@adacore.com>
10095         * debug.adb:  Update flags documentation
10097         * gnat_ugn.texi: Add documentation for new -gnatwq switch
10098         Clean up documentation for several other warning switches
10099         Clarify how task stack size can be specified with various
10100         versions of Windows.
10101         Add note that -gnatVo includes ranges including loops
10102         Add documentation for -gnatL switch
10103         Add note on elaboration warning for initializing variables
10104         Add documentation for new -gnatwt warning switch
10105         Document new form of pragma Warnings (On|Off, string)
10106         Add comment on use of pragma Warnings to control warnings
10107         Add documentation for -gnatjnn switch
10108         Modify section on interfacing with C for VMS 64-bit.
10109         Add doc for -gnatVe/E
10110         Add documentation of new warning flags -gnatww/-gnatwW
10111         Add warnings about address clause overlays to list of warnings
10112         (Exception Handling Control): Document that the option --RTS must be
10113         used consistently for gcc and gnatbind.
10114         Clarify that inlining is not always possible
10115         Update documentation on pragma Unchecked_Union.
10117         * gnat_rm.texi: 
10118         Add documentation for new extended version of pragma Obsolescent
10119         Add documentation for implementation defined attribute 'Stub_Type.
10120         Add note on use of Volatile in asm statements
10121         Add documentation on use of pragma Unreferenced in context clause
10122         Document new form of pragma Warnings (On|Off, pattern)
10123         Document pragma Wide_Character_Encoding
10124         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
10125         enforced if code generation is active.
10126         Add section on pragma Suppress to document GNAT specific check
10127         Alignment_Check
10128         Clarify difference between No_Dispatching_Calls & No_Dispatch.
10129         Add documentation for pragma Restrictions (No_Elaboration_Code)
10131         * gnat-style.texi: 
10132         Add comments on layout of subprogram local variables in the
10133         presence of nested subprograms.
10135         * ug_words: Resync.
10137         * elists.ads: Minor reformatting
10138         Node returns Node_Or_Entity_Id (doc change only)
10140         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
10142         * g-arrspl.ads (Create): Update comments.
10144         * sem.ads: Add details on the handling of the scope stack.
10146         * usage.adb: Update documentation.
10148         * validsw.ads, validsw.adb: 
10149         Add definition of Validity_Check_Components and implement -gnatVe/E
10151         * vms_data.ads: Add missing VMS qualifiers.
10153         * s-addope.ads: Add documentation on overflow and divide by zero
10155 2006-10-31  Robert Dewar  <dewar@adacore.com>
10156             Thomas Quinot  <quinot@adacore.com>
10157             Arnaud Charlet  <charlet@adacore.com>
10159         * fmap.adb: Put routines in alpha order
10161         * g-boumai.ads: Remove redundant 'in' keywords
10163         * g-cgi.adb: Minor reformatting
10165         * g-cgi.ads: Remove redundant 'in' keywords
10167         * get_targ.adb: Put routines in alpha order
10169         * prj-attr.ads: Minor reformatting
10171         * s-atacco.ads: Minor reformatting
10173         * scn.adb: Put routines in alpha order
10175         * sinput-l.adb: Minor comment fix
10177         * sinput-p.adb: Minor comment fix
10179         * s-maccod.ads: Minor reformatting
10181         * s-memory.adb: Minor reformatting
10183         * s-htable.adb: Fix typo in comment.
10185         * s-secsta.adb: Minor comment update.
10187         * s-soflin.adb: Minor reformatting
10189         * s-stoele.ads: 
10190         Add comment about odd qualification in Storage_Offset declaration
10192         * s-strxdr.adb: 
10193         Remove unnecessary 'in' keywords for formal parameters.
10195         * treeprs.adt: Minor reformatting
10197         * urealp.adb: Put routines in alpha order
10199         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
10200         taking string.
10202         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10204         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
10206         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
10207         workaround as on other platforms.
10209         * g-eacodu-vms.adb: Remove redundant 'in' keywords
10210         * g-expect-vms.adb: Remove redundant 'in' keywords
10212         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
10213         clear error message if the list-of-files file cannot be opened.
10215         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
10216         equality operator is always visible.
10218         * lang.opt: Woverlength-strings: New option.
10220         * nmake.adt: 
10221         Update copyright, since nmake.ads and nmake.adb have changed.
10223         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
10224         (Binder_Output_Time_Stamps_Set): removed.
10225         (Old_Binder_Output_Time_Stamp): idem.
10226         (New_Binder_Output_Time_Stamp): idem.
10227         (Recording_Time_From_Last_Bind): idem.
10228         (Recording_Time_From_Last_Bind): Make constant.
10230         * output.ads, output.adb (Write_Str): Allow LF characters
10231         (Write_Spaces): New procedure
10233         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
10235         * inline.adb: Minor reformatting
10237         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10239         * s-mastop-vms.adb: Remove redundant 'in' keywords
10241         * s-osprim-vms.adb: Remove redundant 'in' keywords
10243         * s-trafor-default.adb: Remove redundant 'in' keywords
10245         * 9drpc.adb: Remove redundant 'in' keywords
10247         * s-osinte-mingw.ads: Minor reformatting
10249         * s-inmaop-posix.adb: Minor reformatting
10251         * a-direio.ads: Remove quotes from Compile_Time_Warning message
10253         * a-exexda.adb: Minor code reorganization
10255         * a-filico.adb: Minor reformatting
10257         * a-finali.adb: Minor reformatting
10259         * a-nudira.ads: Remove quote from Compile_Time_Warning message
10261         * a-numeri.ads: Minor reformatting
10263         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
10265         * exp_pakd.ads: Fix obsolete comment
10267         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
10268         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
10269         Probably not a bug, but certainly neater and more efficient.
10271         * a-tienio.adb: Minor reformatting
10273         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
10274         Avoid assuming low bound of string is 1.
10276         * gnatbind.adb: Change Bindusg to package and rename procedure as
10277         Display, which now ensures that it only outputs usage information once.
10278         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
10280         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
10281         Table'First.
10283         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
10284         warning.
10285         (Match): Add pragma Assert to ensure that Matches'First is zero
10287         * g-regpat.ads (Match): Document that Matches lower bound must be zero
10289         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
10290         documented preconditions (also kills warnings about bad indexes).
10292         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
10293         is 1.
10294         (Build_Import_Library): Ditto;
10296         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
10298         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
10300         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
10301         lower bound of choice table is 1.
10303         * sem_case.ads (Analyze_Choices): Document that lower bound of
10304         Choice_Table is 1.
10306         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
10307         string is 1.
10309         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
10310         and add appropriate Assert pragma to suppress warnings.
10312         * atree.h, atree.ads, atree.adb
10313         Change Elist24 to Elist25
10314         Add definitions of Field28 and Node28
10315         (Traverse_Field): Use new syntactic parent table in sinfo.
10317         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10319         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10321         * exp_tss.adb: Put routines in alpha order
10323         * fe.h: Remove redundant declarations.
10325 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
10327         * utils.c (builtin_function): Rename to gnat_builtin_function.
10328         Move common code to add_builtin_function.
10329         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
10330         gnat_builtin_function.
10331         * gigi.h (builtin_function): Rename to gnat_builtin_function.
10332         Change the signature.
10334 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
10336         * Makefile.in: Add TEXI2PDF definition.
10337         * Make-lang.in: Add "ada.pdf" target.
10339 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
10341         * decl.c, utils.c: Fix comment typos.
10342         * utils.c: Fix a typo.
10344 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
10346         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
10347         on "pure" Ada subprograms if SJLJ exceptions are used.
10348         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
10349         on the declaration node of JMPBUF_SAVE.
10350         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
10351         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
10352         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
10354 2006-08-20  Laurent GUERBY  <laurent@guerby.net>
10356         PR ada/28716
10357         g-socket.adb (Bind_Socket): Call Set_Address.
10359 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10361         PR ada/15802
10362         * decl.c (same_discriminant_p): New static function.
10363         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
10364         subtype and we have discriminants, fix up the COMPONENT_REFs
10365         for the discriminants to make them reference the corresponding
10366         fields of the parent subtype after it has been built.
10368 2006-09-15  Roger Sayle  <roger@eyesopen.com>
10370         PR ada/18817
10371         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
10372         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
10374 2006-09-13  Olivier Hainque  <hainque@adacore.com>
10376         PR ada/29025
10377         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
10378         of a SAVE_EXPR, just make the operand addressable/not-readonly and
10379         let the common gimplifier code make and propagate a temporary copy.
10380         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
10381         out/in-out actuals and defer setting the addressable/readonly bits
10382         to the gimplifier.
10384 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10386         PR ada/28591
10387         * decl.c (components_to_record): Defer emitting debug info for the
10388         record type associated with the variant until after we are sure to
10389         actually use it.
10391 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10393         PR ada/21952
10394         * gigi.h (gnat_internal_attribute_table): Declare.
10395         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
10396         * utils.c (gnat_internal_attribute_table): New global variable.
10397         (builtin_function): Always call decl_attributes on the builtin.
10398         (handle_const_attribute): New static function.
10399         (handle_nothrow_attribute): Likewise.
10401 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10403         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
10405 2006-06-23  Olivier Hainque  <hainque@adacore.com>
10407         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
10408         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
10410 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
10411             Eric Botcazou  <ebotcazou@adacore.com>
10413         PR ada/18692
10414         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
10415         check-gnat into check-acats.
10417 2006-06-17  Karl Berry  <karl@gnu.org>
10419         * gnat-style.texi (@dircategory): Use "Software development"
10420         instead of "Programming", following the Free Software Directory.
10422 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10424         PR ada/27944
10425         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
10427 2006-06-06  Laurent GUERBY  <laurent@guerby.net>
10429         PR ada/27769
10430         mlib-utl.adb: Use Program_Name.
10432 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
10434         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
10435         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
10436         trans.c, utils.c: Fix comment typos.  Follow spelling
10437         conventions.
10438         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
10439         conventions.
10441 2006-05-19  Nicolas Setton  <setton@adacore.com>
10443         * misc.c (gnat_dwarf_name): New function.
10444         (LANG_HOOKS_DWARF_NAME): Define to it.
10446 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10448         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
10449         (ada/misc.o): Likewise.
10450         (ada/utils.o): Likewise.
10452 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
10454         * Makefile.in: Add Ada support for GNU/kFreeBSD.
10455         * s-osinte-kfreebsd-gnu.ads: New file.
10457 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
10459         * Make-lang.in: Rename docdir to gcc_docdir.
10461 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
10463         * gigi.h (get_ada_base_type): Delete.
10464         * utils2.c (get_ada_base_type): Likewise.
10465         * trans.c (convert_with_check): Operate in the real base type.
10467 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10469         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
10471 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
10473         * utils.c (create_var_decl): Use have_global_bss_p when deciding
10474         whether to make the decl common.
10476 2006-02-20  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
10478         * Make-lang.in (Ada): Remove.
10479         (.PHONY): Remove Ada
10481 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10483         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
10484         aggregate, check the interpretations of the other operand to find one
10485         that may be a boolean array.
10487         (Analyze_Selected_Component): Fix flow-of-control typo in case where
10488         the prefix is a private extension.
10490 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
10492         PR ada/26315
10493         * utils2.c (find_common_type): If both input types are BLKmode and
10494         have the same constant size, keep using the first one.
10496         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
10498         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
10500         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
10502 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
10504         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
10505         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
10506         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
10507         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
10508         Abort_Defer/Undefer pairs to avoid the possibility of a task being
10509         aborted while owning a lock.
10511 2006-02-17  Javier Miranda  <miranda@adacore.com>
10512             Robert Dewar  <dewar@adacore.com>
10514         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
10515         through an access to class-wide interface we force the displacement of
10516         the pointer to the allocated object to reference the corresponding
10517         secondary dispatch table.
10518         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
10519         if Long_Shifts are supported on the target, even if 64 bit divides
10520         are not supported (configurable run time mode).
10521         (Expand_N_Type_Conversion): Do validity check if validity checks on
10522         operands are enabled.
10523         (Expand_N_Qualified_Expression): Do validity check if validity checks
10524         on operands are enabled.
10526 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10528         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
10529         must be materialized when the renamed expression is an explicit
10530         dereference.
10532 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10534         * freeze.adb (Statically_Discriminated_Components): Return false if
10535         the bounds of the type of the discriminant are not static expressions.
10537         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
10538         the bounds of the discriminant type are not static.
10540 2006-02-17  Robert Dewar  <dewar@adacore.com>
10542         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
10543         then we close To if it is valid.
10545 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
10547         * init.c (facility_resignal_table): new array
10548         (__gnat_default_resignal_p): enhance default predicate to resignal if
10549         VMS condition has one of the predefined facility codes.
10551 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
10553         * Makefile.in: Use VMS64 specialized versions of several units in
10554         Interfaces.C hierarchy to be compatible with HP C default size choices.
10555         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
10557 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10559         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
10560         instantiation, the corresponding entity is the related_instance of the
10561         wrapper package created for the instance.
10563 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10565         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
10566         the current instance is nested within another instance in a child unit.
10568 2006-02-17  Javier Miranda  <miranda@adacore.com>
10569             Ed Schonberg  <schonberg@adacore.com>
10571         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
10572         type we cannot inherit the primitive operations; we inherit the
10573         Corresponding_Record_Type (which has the list of primitive operations).
10574         (Check_Anonymous_Access_Types): When creating anonymous access types for
10575         access components, use Rewrite in order to preserve the tree structure,
10576         for ASIS use.
10577         (Analyze_Object_Declaration): For limited types with access
10578         discriminants with defaults initialized by an aggregate, obtain
10579         subtype from aggregate as for other mutable types.
10580         (Derived_Type_Declaration): If the derived type is a limited interface,
10581         set the corresponding flag (Is_Limited_Record is not sufficient).
10583 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10585         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
10586         to inline a function that returns an unconstrained type, the return
10587         expression must be the first variable declared in the body of the
10588         function.
10590 2006-02-17  Javier Miranda  <miranda@adacore.com>
10592         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
10593         abstract interface type, the static analysis is not enough to know if
10594         the interface is implemented or not by the source tagged type. Hence
10595         we must pass the work to the expander to generate the required code to
10596         evaluate the conversion at run-time.
10597         (Resolve_Equality_Op): Do not apply previous
10598         transformation if expansion is disasbled, to prevent anomalies when
10599         locating global references in a generic unit.
10601 2006-02-17  Vincent Celier  <celier@adacore.com>
10603         * snames.ads, snames.adb: New standard names for new project attributes:
10604         archive_builder, archive_indexer, compiler_pic_option,
10605         config_body_file_name, config_body_file_name_pattern,
10606         config_file_switches, config_file_unique, config_spec_file_name,
10607         config_spec_file_name_pattern, default_builder_switches,
10608         default_global_compiler_switches, default_language,
10609         dependency_file_kind, global_compiler_switches, include_path,
10610         include_path_file, language_kind, linker_executable_option,
10611         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
10612         roots, runtime_project.
10614 2006-02-17  Matthew Heaney  <heaney@adacore.com>
10616         * a-convec.ads, a-convec.adb: 
10617         (operator "&"): handle potential overflow for large index types
10618         (Insert): removed Contraint_Error when using large index types
10619         (Insert_Space): removed Constraint_Error for large index types
10620         (Length): moved constraint check from Length to Insert
10622         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
10623         as not null access.
10624         Explicit raise statements now include an exception message.
10625         (operator "&"): handle potential overflow for large index types
10626         (Insert): removed Contraint_Error when using large index types
10627         (Insert_Space): removed Constraint_Error for large index types
10628         (Length): moved constraint check from Length to Insert
10630 2006-02-17  Robert Dewar  <dewar@adacore.com>
10632         * s-wchcnv.adb: Document handling of [ on output (we do not change
10633         this to ["5B"] and the new comments say why not.
10635         * gnat_ugn.texi: 
10636         Add note for -gnatVo that this now includes the cases of type
10637         conversions and qualified expressions.
10638         Add comments on handling of brackets encoding for Text_IO
10640 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
10641             Thomas Quinot  <quinot@adacore.com>
10642             Robert Dewar  <dewar@adacore.com>
10643             Javier Miranda  <miranda@adacore.com>
10645         * expander.adb: Fix typo in comment
10647         * exp_pakd.adb: Fix typo
10648         Minor comment reformatting.
10650         * g-dyntab.adb: Minor reformatting
10652         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
10653         aliased subprograms to look for the abstract interface subprogram.
10655 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10657         * env.c (__gnat_setenv): Use size_t.
10658         (__gnat_unsetenv): Likewise.
10659         (__gnat_clearenv): Likewise.
10661 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
10663         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
10665 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10667         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
10668         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
10669         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
10670         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
10671         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
10672         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
10673         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
10674         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
10675         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
10676         no longer used.
10678 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
10680         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
10681         protection against race conditions is not needed.
10682         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
10683         fallback handler.
10684         (Set_Specific_Handler): Add mutual exclusive access to the specific
10685         handler.
10686         (Specific_Handler): Add mutual exclusive access for retrieving the
10687         specific handler.
10689         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
10690         back handler.
10692         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
10693         Fall_Back_Handler and Specific_Handler.
10695         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
10696         termination handlers.
10697         Set two different owerflow depending on the maximal stack size.
10699         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
10700         protection against race conditions is not needed when executing the
10701         task termination handler.
10703 2006-02-13  Robert Dewar  <dewar@adacore.com>
10705         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
10706         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
10707         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10708         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
10709         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
10710         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
10711         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
10712         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
10713         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
10714         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10715         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
10716         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
10717         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
10718         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
10719         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
10720         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
10721         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
10722         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
10723         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
10724         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
10725         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
10726         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
10727         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
10728         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
10729         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
10730         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
10731         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
10732         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
10733         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
10734         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
10735         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
10736         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
10737         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
10738         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
10739         reformatting.
10741 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
10743         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
10744         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
10745         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
10746         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
10747         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
10748         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
10749         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
10750         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
10751         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
10753 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10755         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
10756         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
10757         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
10758         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
10759         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
10760         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
10761         replaced by anonymous access type.
10762         (pthread_sigmask): Now take an access sigset_t
10764         * s-osinte-hpux.ads:  Ditto.
10765         (pthread_mutex_t, pthread_cond_t): Update definitions to support
10766         properly 32 and 64 bit ABIs.
10768 2006-02-13  Pascal Obry  <obry@adacore.com>
10770         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
10771         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
10772         s-taprop-linux.adb, s-taprop-solaris.adb,
10773         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
10774         adjustement is already done when calling this routine.
10776 2006-02-13  Pascal Obry  <obry@adacore.com>
10778         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
10779         table to take advantage of the 16 priority levels available on Windows
10780         2000 and XP. On NT4 there are only 7 priority levels, this is properly
10781         supported by this new mapping.
10783 2006-02-13  Nicolas Setton  <setton@adacore.com>
10785         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
10786         (get_encoding): New subprogram. Extracts the encodings from an encoded
10787         Ada name.
10789 2006-02-13  Pascal Obry  <obry@adacore.com>
10790             Nicolas Roche  <roche@adacore.com>
10791             Arnaud Charlet  <charlet@adacore.com>
10793         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
10794         support.
10795         (__gnat_try_lock): Add unicode support by using a specific section on
10796         Windows.
10797         (__gnat_get_current_dir): Idem.
10798         (__gnat_open_read): Idem.
10799         (__gnat_open_rw): Idem.
10800         (__gnat_open_create): Idem.
10801         (__gnat_create_output_file): Idem.
10802         (__gnat_open_append): Idem.
10803         (__gnat_open_new): Idem.
10804         (__gnat_file_time_name): Idem.
10805         (__gnat_set_file_time_name): Idem.
10806         (__gnat_stat): Idem.
10807         (win32_no_block_spawn): Idem.
10808         (__gnat_locate_exec_on_path): Idem.
10809         (__gnat_opendir): New routine.
10810         (__gnat_closedir): Idem.
10811         (__gnat_readdir): Add new parameter length (pointer to int). Update
10812         implementation to use it and add specific Win32 code for Unicode
10813         support.
10814         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
10815         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
10816         (convert_addresses): Do not define this dummy routine on VMS.
10818         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
10819         runtime Unicode support will be activated.
10820         (S2WS): String to Wide-String conversion. This version just copy a
10821         string in non Unicode version.
10822         (WS2S): Wide-String to String conversion. This version just copy a
10823         string in non Unicode version.
10825         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
10826         (Open): Now import __gnat_opendir from adaint.c.
10827         (Read): Change the implementation to support unicode characters. It is
10828         not possible to use strlen() on Windows as this version supports only
10829         standard ASCII characters. So the length of the directory entry is now
10830         returned from the imported __gnat_readdir routine.
10831         Update copyright notice.
10833         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
10834         (opendir): Moved to adaint.c.
10836         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
10837         (Get_Directory): Fix wrong indexing.
10838         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
10839         __gnat_getenv from env.c
10840         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
10841         from env.c
10843         * env.h, env.c: New file.
10845         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
10846         adaint.c by __gnat_getenv from env.c
10848         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
10849         adaint.c by __gnat_getenv from env.c
10851         * Make-lang.in: Add env.o in the list of C object needed by gnat1
10852         and gnatbind.
10853         Update dependencies.
10855 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10856             Olivier Hainque  <hainque@adacore.com>
10857             Eric Botcazou  <ebotcazou@adacore.com>
10859         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
10860         
10861         * gigi.h (value_factor_p): Add prototype and description, now public.
10863         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
10864         promotion for field with rep clause if the associated size was proven
10865         to be in error.
10866         Expand comments describing attempts to use a packable type.
10867         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
10868         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
10869         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
10870         necessary since these are not different types and pointers may
10871         actually designate any subtype in this hierarchy.
10872         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
10873         discriminants but put them into record only if not Unchecked_Union;
10874         pass flag to components_to_record showing Unchecked_Union.
10875         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
10876         components before variants; don't set TYPE_UNCHECKED_UNION_P.
10877         (components_to_record): New argument UNCHECKED_UNION.
10878         Remove special case code for Unchecked_Union and instead use main code
10879         with small changes.
10881         PR ada/26096
10882         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
10883         variable with the expression being built, only its inner field.
10885         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
10886         emit_sequence_entry_statements.
10887         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
10888         (establish_gnat_vms_condition_handler): Move before
10889         Subprogram_Body_to_gnu.
10890         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
10891         for a subprogram if it has a foreign convention or is exported.
10892         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
10893         substituted for a CONST_DECL.
10894         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
10895         Etype to assoc_to_constructor.
10896         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
10897         discriminants of Unchecked_Union.
10898         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
10899         don't need cluttering preprocessor directives.
10900         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
10901         condition handler as current in the compiled function.
10902         (body_with_handlers_p): New function. Tell whether a given sequence of
10903         statements node is attached to a package or subprogram body and involves
10904         exception handlers possibly nested within inner block statements.
10905         (emit_sequence_entry_statements): New function, to emit special
10906         statements on entry of sequences when necessary. Establish GNAT
10907         condition handler in the proper cases for VMS.
10908         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
10909         emit_sequence_entry_statements.
10911         * utils2.c (find_common_type): If both input types are BLKmode and
10912         have a constant size, use the smaller one.
10913         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
10914         the same.
10916         * utils.c (value_factor_p): Make public, to allow uses from other gigi
10917         units.
10918         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
10919         (convert, case UNION_TYPE): Remove special treatment for unchecked
10920         unions.
10922         PR ada/18659
10923         (update_pointer_to): Update variants of pointer types to unconstrained
10924         arrays by attaching the list of fields of the main variant.
10926 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10927             Robert Dewar  <dewar@adacore.com>
10929         * a-exexpr.adb, a-exexpr-gcc.adb
10930         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
10931         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
10932         Remove code unused for exception propagation for the compiler itself
10933         from a-except.adb and update to still share separate packages.
10935         * a-except.ads, a-except.adb: Ditto.
10936         Add comments that this version is now used only by the compiler and
10937         other basic tools. The full version that includes the Ada 2005 stuff
10938         is in separate files a-except-2005.ads/adb. The reason is that we do
10939         not want to cause bootstrap problems with compilers not recognizing
10940         Wide_Wide_String.
10941         Add exception reason code PE_Implicit_Return
10942         Add new exception reason code (Null Exception_Id)
10944         * a-except-2005.adb, a-except-2005.ads: New files.
10946         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
10948         * s-wchcon.adb: New file.
10950         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
10951         (traceback.o deps): Likewise.
10952         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
10953         Activate build of GMEM instrumentation library on VMS targets.
10954         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
10955         Use a-except-2005.ads/adb for all run-time library builds unless
10956         specified otherwise.
10957         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
10958         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
10959         Use s-parame.adb on all native platforms.
10960         Use s-parame-vxworks.adb on all vxworks platforms.
10961         Add env.c env.h in LIBGNAT_SRCS
10962         Add env.o in LIBGNAT_OBJS
10963         (GNATMAKE_OBJS): Remove ctrl_c.o object.
10964         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
10965         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10966         supports VxWorks 6 RTPs.
10967         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
10968         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10970         * types.h, types.ads (Terminate_Program): New exception
10971         Add comment on modifying multiple versions of a-except.adb when the
10972         table of exception reasons is modified.
10973         Add exception reason code PE_Implicit_Return
10974         Add new exception reason code (Null Exception_Id)
10976         * clean.adb (Initialize): Get the target parameters before checking
10977         if target is OpenVMS. Move the OpenVMS specific code here from package
10978         body elaboration code.
10980 2006-02-13  Thomas Quinot  <quinot@adacore.com>
10981             Vincent Celier  <celier@adacore.com>
10982             Robert Dewar  <dewar@adacore.com>
10984         * ali-util.adb (Get_File_Checksum): Update to account for change in
10985         profile of Initialize_Scanner.
10987         * gprep.adb (Gnatprep): Update to account for change in profile of
10988         Initialize_Scanner.
10989         (Process_One_File): Same.
10991         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
10992         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
10993         that behaviour using the new Unit information recorded in the source
10994         files table, rather than going through all units every time.
10995         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
10996         (Get_Source_Unit): Same.
10998         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
10999         change in profile of Initialize_Scanner.
11000         (Prepare_To_Preprocess): Same.
11002         * lib.ads: Fix typo in comment (templace -> template).
11004         * prj-part.adb (Parse_Single_Project): Update to account for change in
11005         profile of Initialize_Scanner.
11007         * scn.adb (Initialize_Scanner): Account for change in profile of
11008         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
11009         Also record the association of the given Source_File_Index to the
11010         corresponding Unit_Number_Type.
11012         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
11013         procedure.
11014         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
11015         Remove Unit formal for generic scanner: this formal
11016         is only relevant to Scn (the scanner instance used to parse Ada source
11017         files), not to other instances. Update comment accordingly.
11018         (Scan): Use new function Snames.Is_Keyword_Name.
11020         * sinfo-cn.adb: Fix typo in comment.
11022         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
11023         Unit.
11025         * sinput.ads (Source_File_Record): New component Unit, used to capture
11026         the unit identifier (if any) associated to a source file.
11028         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
11029         Unit in Source_File_Record.
11031         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
11032         in profile of Initialize_Scanner.
11034         * scans.adb (Initialize_Ada_Keywords): New procedure
11036         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
11037         Ada keywords in the Namet table, without the need to call
11038         Initialize_Scanner.
11040         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
11041         (Is_Keyword_Name): New function
11043         * snames.ads: Add subtype Configuration_Pragma_Names
11044         Add pragma Ada_2005 (synonym for Ada_05)
11045         (Is_Keyword_Name): New function
11047         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
11049 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
11051         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
11052         index.
11054         * a-stwima.adb (To_Set): Add extra check when N = 0.
11056         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
11058 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
11060         * s-parame-mingw.adb, s-parame-linux.adb,
11061         s-parame-solaris.adb: Removed, replaced by s-parame.adb
11063         * s-parame-vxworks.ads: Fix typo.
11065         * s-parame-vxworks.adb: New file.
11067         * s-parame.adb: Version now used by all native platforms.
11068         (Default_Stack_Size): Use 2 megs for default stack size and use
11069         __gl_default_stack_size when available.
11070         (Minimum_Stack_Size): Use 12K.
11072         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
11073         (Create_Task): Refine implementation taking advantage of the XP stack
11074         size support. On XP, we now create the thread using the flag
11075         STACK_SIZE_PARAM_IS_A_RESERVATION.
11077         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
11079         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
11080         XP and 0 on older Windows versions.
11082         * interfac-vms.ads: Removed, no longer used.
11084 2006-02-13  Matthew Heaney  <heaney@adacore.com>
11086         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
11087         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
11088         a-cohase.adb: All explicit raise statements now include an exception
11089         message.
11091         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
11092         (Update_Element_Preserving_Key): renamed op to just Update_Element.
11093         Explicit raise statements now include an exception message
11095         * a-cihase.ads, a-cohase.ads: Removed comment.
11097         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
11098         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
11099         a-szbzha.adb, a-szfzha.ads: New files.
11101 2006-02-13  Matthew Heaney  <heaney@adacore.com>
11103         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
11104         quicksort.
11106 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
11108         * lang.opt: Wvariadic-macros: New option.
11109         Wold-style-definition: Likewise.
11110         Wmissing-format-attribute: Likewise.
11112         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
11113         -Wold-style-definition and -Wmissing-format-attribute.
11115 2006-02-13  Robert Dewar  <dewar@adacore.com>
11117         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
11119         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
11121 2006-02-13  Nicolas Roche  <roche@adacore.com>
11123         * a-envvar.adb, a-envvar.ads: New files.
11125 2006-02-13  Douglas Rupp  <rupp@adacore.com>
11127         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
11129         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
11131 2006-02-13  Pat Rogers  <rogers@adacore.com>
11133         * a-rttiev.adb, a-rttiev.ads: New files.
11135 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
11137         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
11138         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
11140         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
11142 2006-02-13  Robert Dewar  <dewar@adacore.com>
11144         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
11145         sem_case.adb: Minor code reorganization (not Present should be No)
11147 2006-02-13  Geert Bosch  <bosch@adacore.com>
11148             Gary Dismukes  <dismukes@adacore.com>
11150         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
11151         0, since the lower bound of the actual string may be greater than one.
11153         PR ada/20753
11154         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
11155         layout is requested.
11157 2006-02-13  Vincent Celier  <celier@adacore.com>
11159         * back_end.adb (Scan_Compiler_Arguments): Check if
11160         Search_Directory_Present is True and, if it is, add the argument in
11161         the source search directory path.
11163         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
11164         Search_Directory_Present to True.
11166 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
11168         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
11169         volatile, to tell the compiler to preserve this variable at any level
11170         of optimization.
11171         (Gen_Versions_Ada): Temporarily work around codegen bug.
11173 2006-02-13  Vincent Celier  <celier@adacore.com>
11175         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
11176         gcc to link with option -shared-libgcc.
11177         (Gnatlink): Remove duplicate switches -shared-libgcc
11179 2006-02-13  Robert Dewar  <dewar@adacore.com>
11181         * gnatvsn.ads (Current_Year): New constant, used to easily update
11182         copyright on all GNAT tools.
11184         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
11185         copyright notice.
11187 2006-02-13  Robert Dewar  <dewar@adacore.com>
11189         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
11190         after hyphen (small aesthetic change useful for a range of numbers
11191         using ^-^.
11192         Suppress range checks for a couple of assignments which otherwise
11193         cause validity checks with validity checking turned on.
11195         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
11196         Improvement in error message for object.
11197         (Rep_Item_Too_Late): Remove '!' in warning message.
11199 2006-02-13  Robert Dewar  <dewar@adacore.com>
11200             Eric Botcazou  <ebotcazou@adacore.com>
11202         * err_vars.ads: Suppress range checks for a couple of assignments
11203         which otherwise cause validity checks with validity checking turned on.
11204         Update comments.
11206         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
11207         Make message unconditional if it is a warning.
11208         (Error_Msg_NEL): Always output warning messages.
11209         Suppress range checks for a couple of assignments which otherwise
11210         cause validity checks with validity checking turned on.
11212         * errout.ads (Message Insertion Characters): Document that '!' is
11213         implied by '?' in error messages.
11215         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
11216         (Gnat1drv): Use a goto to end of main subprogram instead of
11217         Exit_Program (E_Success) so that finalization can occur normally.
11219 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
11221         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
11222         wrapped around.
11224 2006-02-13  Vincent Celier  <celier@adacore.com>
11226         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
11227         Unchecked_Conversion functions.
11228         (Modification_Time): Use direct conversion of OS_Time to Calendar time
11229         when OpenVMS returns False.
11231         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
11232         a-dirval.adb (OpenVMS): New Boolean function
11234 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11235             Thomas Quinot  <quinot@adacore.com>
11237         * checks.adb (Build_Discriminant_Checks): If the expression being
11238         checks is an aggregate retrieve the values of its discriminants to
11239         generate the check, rather than creating a temporary and a reference
11240         to it.
11241         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
11242         (Install_Null_Excluding_Check): Ditto
11243         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
11244         not for the renamed object, so that the actual itype is attached in the
11245         proper context.
11247 2006-02-13  Robert Dewar  <dewar@adacore.com>
11248             Vincent Celier  <celier@adacore.com>
11250         * debug.adb: Eliminate numeric switches for binder/gnatmake
11252         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
11253         switches for the compiler.
11254         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
11255         (Scan_Make_Switches): When failing with an illegal switch, output an
11256         error message with the full switch.
11257         Eliminate numeric switches for binder/gnatmake
11259         * switch.ads, switch.adb (Bad_Switch): New procedure
11261         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
11262         Remove 0-9 as debug flag character possibilities
11263         -d is now controlling the primary stack size when its value is a
11264         positive. Also add checks against invalid values, and support for kb,
11265         mb. Ditto for -D switch.
11267 2006-02-13  Robert Dewar  <dewar@adacore.com>
11268             Serguei Rybin  <rybin@adacore.com>
11270         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
11271         save/restore routines.
11272         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11273         were not always properly handled previously.
11274         Since we are changing the tree format anyway, also get rid of the
11275         junk obsolete Immediate_Errors flag.
11276         (Tree_Read): Change the way of reading Tree_Version_String - now we
11277         read the version string from the tree even if its length is not the
11278         same as the length of the version string computed from Gnatvsn.
11279         (Search_Directory_Present): New Boolean flag for the compiler.
11280         Define Tree_Version_String as a dynamic string.
11281         (Default_Stack_Size): new variable, used to handle switch -d.
11283         * par-prag.adb: 
11284         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
11285         only for main unit.
11286         Add pragma Ada_2005 (synonym for Ada_05)
11287         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11288         were not always properly handled previously.
11290         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
11291         explicit Ada_95 to Ada_2005.
11293 2006-02-13  Javier Miranda  <miranda@adacore.com>
11294             Robert Dewar  <dewar@adacore.com>
11295             Ed Schonberg  <schonberg@adacore.com>
11297         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
11298         against errors in the source program: a private types for which the
11299         corresponding full type declaration is missing and pragma CPP_Virtual
11300         is used.
11301         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
11302         (Is_Known_Null): New flag
11303         (Has_Pragma_Pure): New flag
11304         (No_Return): Present in all entities, set only for procedures
11305         (Is_Limited_Type): A type whose ancestor is an interface is limited if
11306         explicitly declared limited.
11307         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
11308         entities. Only used for component marked Is_Tag. If present it stores
11309         the Offset_To_Top function used to provide this value in tagged types
11310         whose ancestor has discriminants.
11312         * exp_ch2.adb: Update status of new Is_Known_Null flag
11314         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
11316         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
11317         the categorization sense if Is_Pure was set by pragma Pure_Function.
11319 2006-02-13  Quentin Ochem  <ochem@adacore.com>
11320             Olivier Hainque  <hainque@adacore.com>
11322         * bindusg.adb: Updated documentation for -d and -D switches.
11324         * raise.h (__gnat_set_globals): added new parameter for
11325         Default_Stack_Size.
11327         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
11328         (__gnat_handle_vms_condition): Adjust context before raise.
11329         (__gnat_install_handler): Restore the global vector setup for GCC
11330         versions before 3.4, as the frame based circtuitry is not available
11331         in this case.
11332         (__gnat_set_globals): added a parameter default_stack_size
11333         (__gl_default_stack_size): new variable.
11335 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11337         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
11338         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
11339         does not exist in the Ada RM.
11340         (Compatible_Int_Bounds): Determine whether two integer range bounds
11341         are of equal length and have the same start and end values.
11342         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
11343         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
11344         aggregate when it is part of an object declaration.
11345         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
11346         constrains discriminants of its parent, add explicitly the discriminant
11347         constraints of the ancestor by retrieving them from the
11348         stored_constraint of the parent.
11350 2006-02-13  Robert Dewar  <dewar@adacore.com>
11352         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
11353         attribute Mechanism_Code is applied to renamed subprogram, modify
11354         prefix to point to base subprogram.
11355         Max/Min attributes now violate Restriction No_Implicit_Conditionals
11357         * sinfo.ads: Document that Mechanism_Code cannot be applied to
11358         renamed subprograms so that the front-end must replace the prefix
11359         appropriately.
11361 2006-02-13  Javier Miranda  <miranda@adacore.com>
11362             Gary Dismukes  <dismukes@adacore.com>
11364         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
11365         availability of RE_Interface_Tag.
11366         (Build_Initialization_Call): Fix wrong access to the discriminant value.
11367         (Freeze_Record_Type): Do not generate the tables associated with
11368         timed and conditional dispatching calls through synchronized
11369         interfaces if compiling under No_Dispatching_Calls restriction.
11370         When compiling for Ada 2005, for a nonabstract
11371         type with a null extension, call Make_Controlling_Function_Wrappers
11372         and insert the wrapper function declarations and bodies (the latter
11373         being appended as freeze actions).
11374         (Predefined_Primitive_Bodies): Do not generate the bodies of the
11375         predefined primitives associated with timed and conditional
11376         dispatching calls through synchronized interfaces if we are
11377         compiling under No_Dispatching_Calls.
11378         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
11379         service is available before generating a call.
11380         (Make_Controlling_Function_Wrappers): New procedure.
11381         (Expand_N_Full_Type_Declaration): Create a class-wide master for
11382         access-to-limited-interfaces because they can be used to reference
11383         tasks that implement such limited interface.
11384         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
11385         procedure spec and body of the Offset_To_Top function that is generated
11386         when the parent of a type with discriminants has secondary dispatch
11387         tables.
11388         (Init_Secondary_Tags): Handle the case in which the parent of the type
11389         containing secondary dispatch tables has discriminants to generate the
11390         correct arguments to call Set_Offset_To_Top.
11391         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
11393         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
11394         Add Wide_[Wide_]Expanded_Name.
11395         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
11396         the same functionality of Get_Prim_Op_Address but applied to predefined
11397         primitive operations because the pointers to the predefined primitives
11398         are now saved in a separate table.
11399         (Parent_Size): Modified to get access to the separate table of primitive
11400         operations or the parent type.
11401         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
11402         functionality of Set_Prim_Op_Address but applied to predefined primitive
11403         operations.
11404         (Set_Signature): New subprogram used to store the signature of a DT.
11405         (Displace): If the Offset_To_Top value is not static then call the
11406         function generated by the expander to get such value; otherwise use
11407         the value stored in the table of interfaces.
11408         (Offset_To_Top): The type of the actual has been changed to Address to
11409         give the correct support to tagged types with discriminants. In this
11410         case this value is stored just immediately after the tag field.
11411         (Set_Offset_To_Top): Two new formals have been added to indicate if the
11412         offset_to_top value is static and hence pass this value to the run-time
11413         to store it in the table of interfaces, or else if this value is dynamic
11414         and then pass to the run-time the address of a function that is
11415         generated by the expander to provide this value for each object of the
11416         type.
11418         * rtsfind.ads (Default_Prin_Op_Count): Removed.
11419         (Default_Prim_Op_Count): New entity
11420         (Get_Predefined_Prim_Op_Address): New entity
11421         (Set_Predefined_Prim_Op_Address): New entity
11422         (RE_Set_Signature): New entity
11424 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11425             Ed Schonberg  <schonberg@adacore.com>
11427         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
11428         Make_Adjust_Call done for a newly-allocated object.
11430         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
11431         in a subprogram are wrapped in a cleanup block, indicate that the
11432         subprogram contains an inner block with an exception handler.
11433         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
11434         Adjust call is for a newly-allocated object. In that case we must not
11435         assume that the finalization list chain pointers are correct (since they
11436         come from a bit-for-bit copy of the original object's pointers) so if
11437         the attach level would otherwise be zero (no change), we set it to 4
11438         instead to cause the pointers to be reset to null.
11440         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
11441         reset chain pointers to null.
11443 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11445         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
11446         string, and the context requires a loop for the assignment (e.g.
11447         because the left-hand side is packed), generate a unique name for the
11448         temporary that holds the string, to prevent spurious name clashes.
11450 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11451             Javier Miranda  <miranda@adacore.com>
11452             Robert Dewar  <dewar@adacore.com>
11453             Gary Dismukes  <dismukes@adacore.com>
11455         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
11456         return unconstrained arrays.
11457         Update comments.
11458         (Expand_Call):  An indirect call through an access parameter of a
11459         protected operation is not a protected call.
11460         Add circuit to raise CE in Ada 2005 mode following call
11461         to Raise_Exception.
11462         (Register_DT_Entry): Do nothing if
11463         the run-time does not give support to abstract interfaces.
11464         (Freeze_Subprogram): In case of dispatching operations, do not generate
11465         code to register the operation in the dispatch table if the source
11466         is compiled with No_Dispatching_Calls.
11467         (Register_Predefined_DT_Entry): Generate code that calls the new
11468         run-time subprogram Set_Predefined_Prim_Op_Address instead of
11469         Set_Prim_Op_Address.
11471         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
11472         on array assignments if the right-hand side is a function call that has
11473         been inlined. Check is performed on the assignment in the block.
11474         (Process_Bounds): If bounds and range are overloaded, apply preference
11475         rule for root operations to disambiguate, and diagnose true ambiguity.
11476         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
11477         a tag-indeterminate right-hand side even when Expander_Active is True.
11478         Needed to ensure that dispatching calls to T'Input are allowed and
11479         get the tag of the target class-wide object.
11481         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
11482         an inherited primitive operation that already overrides several
11483         abstract interface primitives. For transitivity, the new entity must
11484         also override all the abstract interface primitives covered by the
11485         inherited overriden primitive.
11486         Emit warning if new entity differs from homograph in same scope only in
11487         that one has an access parameter and the other one has a parameter of
11488         a general access type with the same designated type, at the same
11489         position in the signature.
11490         (Make_Inequality_Operator): Use source locations of parameters and
11491         subtype marks from corresponding equality operator when creating the
11492         tree structure for the implicit declaration of "/=". This does not
11493         change anything in behaviour except that the decoration of the
11494         components of the subtree created for "/=" allows ASIS to get the
11495         string images of the corresponding identifiers.
11496         (Analyze_Return_Statement): Remove '!' in warning message.
11497         (Check_Statement_Sequence): Likewise.
11498         (Analyze_Subprogram_Body): For an access parameter whose designated type
11499         is an incomplete type imported through a limited_with clause, use the
11500         type of the corresponding formal in the body.
11501         (Check_Returns): Implicit return in No_Return procedure now raises
11502         Program_Error with a compile time warning, instead of beging illegal.
11503         (Has_Single_Return):  Function returning unconstrained type cannot be
11504         inlined if expression in unique return statement is not an identifier.
11505         (Build_Body_To_Inline): It is possible to inline a function call that
11506         returns an unconstrained type if all return statements in the function
11507         return the same local variable. Subsidiary procedure Has_Single_Return
11508         verifies that the body conforms to this restriction.
11510         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
11511         same type, and  one of them is of an anonymous access type, convert
11512         the other operand to it, so that this is a valid binary operation for
11513         gigi.
11514         (Resolve_Type_Conversion): Handle subtypes of protected types and
11515         task types when accessing to the corresponding record type.
11516         (Resolve_Allocator): Add '\' in 2-line warning message.
11517         Remove '!' in warning message.
11518         (Resolve_Call): Add '\' in 2-line warning message.
11519         (Valid_Conversion): Likewise.
11520         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
11521         resulting type may be an access type with an implicit dereference.
11522         Obtain the proper component from the designated type.
11523         (Make_Call_Into_Operator): Handle properly a call to predefined equality
11524         given by an expanded name with prefix Standard, when the operands are
11525         of an anonymous access type.
11526         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
11527         Explicit_Dereference and Resolve_Selected_Component, to verify that the
11528         prefix of the expression is not of an incomplete type. Allows full
11529         diagnoses of all semantic errors.
11530         (Resolve_Actuals): If the actual is an allocator whose directly
11531         designated type is a class-wide interface we build an anonymous
11532         access type to use it as the type of the allocator. Later, when
11533         the subprogram call is expanded, if the interface has a secondary
11534         dispatch table the expander will add a type conversion to force
11535         the displacement of the pointer.
11536         (Resolve_Call): If a function that returns an unconstrained type is
11537         marked Inlined_Always and inlined, the call will be inlined and does
11538         not require the creation of a transient scope.
11539         (Check_Direct_Boolean_Op): Removed
11540         (Resolve_Comparison_Op): Remove call to above
11541         (Resolve_Equality_Op): Remove call to above
11542         (Resolve_Logical_Op): Inline above, since this is only call.
11543         (Valid_Conversion): Handle properly conversions between arrays of
11544         convertible anonymous access types.
11546         PR ada/25885
11547         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
11548         the literal in an unchecked conversion, because GCC 4.x needs a static
11549         value for a string bound.
11551 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11552             Hristian Kirtchev  <kirtchev@adacore.com>
11554         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
11555         components of the corresponding record, take into account component
11556         definitions that are access definitions.
11557         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
11558         procedure is not considered a dispatching call and will be expanded
11559         properly.
11561 2006-02-13  Javier Miranda  <miranda@adacore.com>
11563         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
11564         controlling argument of the dispatching call is an abstract interface
11565         class-wide type then we use it directly.
11566         Check No_Dispatching_Calls restriction.
11567         (Default_Prim_Op_Position): Remove the code that looks for the last
11568         entity in the list of aliased subprograms. This code was wrong in
11569         case of renamings.
11570         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
11571         when the source is compiled with the No_Dispatching_Calls restriction.
11572         (Init_Predefined_Interface_Primitives): No need to inherit primitives
11573         if we are compiling with restriction No_Dispatching_Calls.
11574         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
11575         subprograms if we are compiling under No_Dispatching_Calls restriction.
11576         (Make_DT): Generate a dispatch table with a single dummy entry if
11577         we are compiling with the No_Dispatching_Calls restriction. In
11578         addition, in this case we don't generate code that calls to the
11579         following run-time subprograms: Set_Type_Kind, Inherit_DT.
11580         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
11581         of this subprogram if compiling with the No_Dispatching_Calls
11582         restriction.
11583         (Expand_Type_Conversion): Instead of using the actual parameter,
11584         the argument passed as parameter to the conversion function was
11585         erroneously referenced by the expander.
11586         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
11587         Set_Predefined_Primitive_Op_Address and Set_Signature.
11588         (Expand_Dispatching_Call): Generate call to
11589         Get_Predefined_Prim_Op_Address for predefined primitives.
11590         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
11591         predefined primitives.
11592         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
11593         primitives we reserve one dummy entry to ensure that the tag does not
11594         point to some memory that is associated with some other object. In
11595         addition, remove all the old code that generated the assignments
11596         associated with the signature of the dispatch table and replace them
11597         by a call to the new subprogram Set_Signature.
11598         (Set_All_DT_Position): Change the algorithm because now we have a
11599         separate dispatch table associated with predefined primitive operations.
11600         (Expand_Interface_Conversion): In case of non-static offset_to_top
11601         add explicit dereference to get access to the object after the call
11602         to displace the pointer to the object.
11603         (Expand_Interface_Thunk): Modify the generation of the actual used
11604         in the calls to the run-time function Offset_To_Top to fulfil its
11605         new interface.
11606         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
11608 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11610         * exp_dist.adb (Copy_Specification): For access parameters, copy
11611         Null_Exclusion flag, which will have been set for stream subprograms
11612         in Ada2005 mode.
11614 2006-02-13  Pascal Obry  <obry@adacore.com>
11616         * expect.c (__gnat_expect_portable_execvp): New implementation. The
11617         previous implementation was using the C runtime spawnve routine but
11618         the corresponding wait was using directly the Win32 API. This was
11619         causing some times a lock when waiting for an event using
11620         WaitForSingleObject in __gnat_waitpid. This new implementation uses
11621         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
11622         API fixes this problem.
11624 2006-02-13  Robert Dewar  <dewar@adacore.com>
11626         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
11627         call.
11629 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11631         * exp_pakd.ads: Fix typos in comments.
11633         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
11634         array reference that is an explicit dereference, mark the converted
11635         (packed) array reference as analyzed to prevent a forthcoming
11636         reanalysis from resetting its type to the original (non-packed) array
11637         type.
11639 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11640             Javier Miranda  <miranda@adacore.com>
11641             Eric Botcazou  <ebotcazou@adacore.com>
11643         * exp_util.ads, exp_util.adb (Find_Prim_Op,
11644         Is_Predefined_Primitive_Operation): When
11645         searching for the predefined equality operator, verify that operands
11646         have the same type.
11647         (Is_Predefined_Dispatching_Operation): Remove the code that looks
11648         for the last entity in the list of aliased subprograms. This code
11649         was wrong in case of renamings.
11650         (Set_Renamed_Subprogram): New procedure
11651         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
11652         Exp_Type constant computed when entering this subprogram.
11653         (Known_Null): New function
11654         (OK_To_Do_Constant_Replacement): New function
11655         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
11656         (Side_Effect_Free): An attribute reference 'Input is not free of
11657         side effect, unlike other attributes that are functions. (from code
11658         reading).
11659         (Remove_Side_Effects): Expressions that involve packed arrays or records
11660         are copied at the point of reference, and therefore must be marked as
11661         renamings of objects.
11662         (Is_Predefined_Dispatching_Operation): Return false if the operation is
11663         not a dispatching operation.
11665         PR ada/18819
11666         (Remove_Side_Effects): Lift enclosing type conversion nodes for
11667         elementary types in all cases.
11669 2006-02-13  Javier Miranda  <miranda@adacore.com>
11671         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
11672         task types when accessing to the corresponding record type.
11673         Remove '!' in warning message.
11675 2006-02-13  Olivier Hainque  <hainque@adacore.com>
11677         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
11678         to avoid useless and space inefficient overalignments on targets where
11679         Max_Alignment is larger than 16.
11681 2006-02-13  Pascal Obry  <obry@adacore.com>
11683         * g-catiio.adb (Sec_Number): New type used to compute the number of
11684         seconds since 1-1-1970.
11685         (Image) [Natural]: The parameter was an Integer, as we can't deal with
11686         negative numbers (years, months...) it is better to have a Natural here.
11687         Code clean-up.
11688         (Image) [Number]: Change parameter from Long_Integer to Number.
11689         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
11690         overflow for dates past year 2038.
11692 2006-02-13  Matthew Heaney  <heaney@adacore.com>
11694         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
11695         Constraint_Error.
11697 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
11699         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
11700         native platforms.
11701         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
11702         finalization can occur normally.
11704 2006-02-13  Vincent Celier  <celier@adacore.com>
11706         * gnatcmd.adb (Rules_Switches): New table
11707         (Add_To_Rules_Switches): New procedure
11708         (GNATCmd): For command CHECK, put all options following "-rules" in the
11709         Rules_Switches table. Append these -rules switches after the -cargs
11710         switches.
11712 2006-02-13  Robert Dewar  <dewar@adacore.com>
11714         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
11715         These two cases were generating incorrect output, and if this unit
11716         was built with checks on, generated a discriminant mismatch constraint
11717         error.
11719 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11720             Robert Dewar  <dewar@adacore.com>
11722         * lib-xref.adb (Get_Type_Reference): For a private type whose full
11723         view is an array type, indicate the component type as well, for
11724         navigation purposes.
11725         (Generate_Reference): Don't consider array ref on LHS to be a case
11726         of violating pragma Unreferenced.
11727         Do not give Ada 2005 warning except on real reference.
11729 2006-02-13  Vincent Celier  <celier@adacore.com>
11731         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
11732         main source, add switch -mdebug-main=_ada_ so that the executable can
11733         be debugged by the standard VMS debugger.
11734         (Gnatmake): Set No_Main_Subprogram to True when there is no main
11735         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
11736         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
11737         of the last source, as the binding and linking phases are never
11738         performed.
11739         Set all executable obsolete when rebuilding a library.
11741         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
11742         options.
11744 2006-02-13  Javier Miranda  <miranda@adacore.com>
11746         PR ada/23973
11747         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
11748         code to improve the error message reported when the program has
11749         declarations of abstract interface types and it is not compiled with
11750         the -gnat05 switch.
11751         (P_Access_Definition): Reorganize the code to improve the error
11752         message reported when the new Ada 2005 syntax for anonymous
11753         access types is used and the program is not compiled with the
11754         -gnat05 switch.
11756 2006-02-13  Robert Dewar  <dewar@adacore.com>
11758         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
11759         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
11760         (MODE_IN)
11762 2006-02-13  Javier Miranda  <miranda@adacore.com>
11764         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
11765         against source containing syntax errors.
11767 2006-02-13  Vincent Celier  <celier@adacore.com>
11769         * prj.adb (Reset): Initialize the first element of table Namings with
11770         the standard naming data.
11772 2006-02-13  Vincent Celier  <celier@adacore.com>
11774         * prj.ads (Error_Warning): New enumeration type
11776         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
11777         unknown, use the location of the project to report the error.
11778         (When_No_Sources): New global variable
11779         (Report_No_Ada_Sources): New procedure
11780         (Check): New parameter When_No_Sources. Set value of global variable
11781         When_No_Sources,
11782         (Find_Sources): Call Report_No_Ada_Sources when appropriate
11783         (Get_Sources_From_File): Ditto
11784         (Warn_If_Not_Sources): Better warning messages indicating the unit name
11785         and the file name.
11787         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
11788         Call Prj.Proc.Process with parameter When_No_Sources.
11790         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
11791         Call Recursive_Check with parameter When_No_Sources.
11792         (Recursive_Check): New parameter When_No_Sources. Call itself and
11793         Prj.Nmsc.Check with parameter When_No_Sources.
11794         (Process): New parameter When_No_Sources. Call Check with parameter
11795         When_No_Sources.
11796         (Copy_Package_Declarations): New procedure to copy renamed parameters
11797         and setting the location of the declared attributes to the location
11798         of the renamed package.
11799         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
11800         packages.
11802 2006-02-13  Vincent Celier  <celier@adacore.com>
11804         * prj-makr.adb (Make): Preserve the comments from the original project
11805         file.
11806         When removing nodes (attributes Source_Dirs, Source_Files,
11807         Source_List_File and package Naming), save the comments and attach the
11808         saved comments to the newly created nodes.
11809         Do not add a with clause for the naming package if one already exists.
11811 2006-02-13  Javier Miranda  <miranda@adacore.com>
11812             Gary Dismukes  <dismukes@adacore.com>
11813             Robert Dewar  <dewar@adacore.com>
11815         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
11817         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
11818         aliased entities to look for the overriden abstract interface
11819         subprogram.
11820         (Is_Interface_Subprogram): Complete documentation.
11821         (Check_Dispatching_Operation): Do not generate code to register the
11822         operation in the dispatch table if the source is compiled with
11823         restriction No_Dispatching_Calls.
11824         (Override_Dispatching_Operation): Check for illegal attempt to override
11825         No_Return procedure with procedure that is not No_Return
11826         (Check_Dispatching_Call): Suppress the check for an abstract operation
11827         when the original node of an actual is a tag-indeterminate attribute
11828         call, since the attribute, which must be 'Input, can never be abstract.
11829         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
11830         call to the Input attribute (even when rewritten).
11831         (Propagate_Tag): Augment comment to indicate the possibility of a call
11832         to an Input attribute.
11834         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
11835         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
11837         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
11838         No_Wide_Characters is no longer partition-wide
11839         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
11840         rather than GNAT
11842 2006-02-13  Douglas Rupp  <rupp@adacore.com>
11844         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
11846 2006-02-13  Javier Miranda  <miranda@adacore.com>
11848         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
11849         handles default-initialized components to keep separate the management
11850         of this feature but also avoid the unrequired resolution and
11851         expansion of components that do not have partially initialized
11852         values.
11853         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
11854         (Check_Bounds): Likewise.
11855         (Check_Length): Likewise.
11857 2006-02-13  Javier Miranda  <miranda@adacore.com>
11858             Ed Schonberg  <schonberg@adacore.com>
11860         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
11861         abstract interface type call analyze_and_resolve to expand the type
11862         conversion into the corresponding displacement of the
11863         reference to the base of the object.
11864         (Eval_Attribute, case Width): For systems where IEEE extended precision
11865         is supported, the maximum exponent occupies 4 decimal digits.
11866         (Accessibility_Message): Add '\' in 2-line warning message.
11867         (Resolve_Attribute): Likewise.
11868         (case Attribute_Access): Significantly revise checks
11869         for illegal access-to-subprogram Access attributes to properly enforce
11870         the rules of 3.10.2(32/2).
11871         Diagnose use of current instance with an illegal attribute.
11873         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
11874         to a Node_Id.
11875         (Enclosing_Generic_Unit): New function to return a node's innermost
11876         enclosing generic declaration node.
11877         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
11878         (Type_Access_Level): The accessibility level of anonymous acccess types
11879         associated with discriminants is that of the current instance of the
11880         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
11881         (Compile_Time_Constraint_Error): Handle case of conditional expression.
11882         (Kill_Current_Values_For_Entity): New function
11883         (Enter_Name): Change formal type to Entity_Id
11885 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
11886             Ed Schonberg  <schonberg@adacore.com>
11887             Gary Dismukes  <dismukes@adacore.com>
11889         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
11890         Analyze_Compilation_Unit.
11891         Detect and warn on redundant with clauses detected in a package spec
11892         and/or body when -gnatwr is used.
11893         (Analyze_Context): Analyze config pragmas before other items
11894         (Install_Context_Items): Don't analyze config pragmas here
11895         (Install_Limited_Withed_Unit): Set limited entity of package in
11896         with_clause so that cross-reference information or warning messages on
11897         unused packages can be properly generated
11898         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
11899         has Error_Posted set. Prevent infinite loops in illegal programs.
11900         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
11901         to the point of the error test requiring the current unit to be private.
11902         This ensures that private with clauses are not exempted from the basic
11903         checking for being a descendant of the same library unit parent as a
11904         withed private descendant unit.
11905         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
11906         handle private with clauses properly, as well as to account for cases
11907         where the withed unit is a public descendant of a private ancestor
11908         (in which case the current unit must be a descendant of the private
11909         ancestor's parent). The spec comments were updated accordingly. Also,
11910         the old error message in this subprogram was replaced with error
11911         messages that mirror the errors tested and reported by
11912         Check_Private_Child_Unit.
11913         Parameter and variable names improved for readability.
11914         (Install_Limited_Context_Clauses): Remove test for a withed unit being
11915         private as the precondition for calling
11916         Check_Private_Limited_Withed_Unit since that subprogram has been
11917         revised to test public units as well as private units.
11919 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11920             Robert Dewar  <dewar@adacore.com>
11921             Ed Schonberg  <schonberg@adacore.com>
11922             Javier Miranda  <miranda@adacore.com>
11924         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
11925         that Scope_Stack.First = 1.
11926         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11927         were not always properly handled previously.
11928         (Formal_Entity): Complete rewrite, to handle properly some complex case
11929         with multiple levels of parametrization by formal packages.
11930         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
11931         to the corresponding derived type declaration for proper semantics.
11933         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
11934         (Check_Component): Enforce restriction on components of
11935         unchecked_unions: a component in a variant cannot contain tasks or
11936         controlled types.
11937         (Unchecked_Union): Allow nested variants and multiple discriminants, to
11938         conform to AI-216.
11939         Add pragma Ada_2005 (synonym for Ada_05)
11940         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11941         were not always properly handled previously.
11942         Document that pragma Propagate_Exceptions has no effect
11943         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11944         (Set_Convention_From_Pragma): Check that if a convention is
11945         specified for a dispatching operation, then it must be
11946         consistent with the existing convention for the operation.
11947         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
11948         longer required to specify an vtable-ptr component in the record. For
11949         compatibility reasons we leave the support for the previous definition.
11950         (Analyze_Pragma, case No_Return): Allow multiple arguments
11952         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
11953         non-overrideen inherited operation with a controlling result as
11954         illegal only its implicit declaration comes from the derived type
11955         declaration of its result's type.
11956         (Check_Possible_Deferred_Completion): Relocate the object definition
11957         node of the subtype indication of a deferred constant completion rather
11958         than directly analyzing it. The analysis of the generated subtype will
11959         correctly decorate the GNAT tree.
11960         (Record_Type_Declaration): Check whether this is a declaration for a
11961         limited derived record before analyzing components.
11962         (Analyze_Component_Declaration): Diagnose record types  not explicitly
11963         declared limited when a component has a limited type.
11964         (Build_Derived_Record_Type): Code reorganization to check if some of
11965         the inherited subprograms of a tagged type cover interface primitives.
11966         This check was missing in case of a full-type associated with a private
11967         type declaration.
11968         (Constant_Redeclaration): Check that the subtypes of the partial and the
11969         full view of a constrained deferred constant statically match.
11970         (Mentions_T): A reference to the current type in an anonymous access
11971         component declaration  must be an entity name.
11972         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
11973         class_wide type to refer to full type, not to the incomplete one.
11974         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
11975         available. Required to give support to the certified run-time.
11976         (Analyze_Component_Declaration): In case of anonymous access components
11977         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
11978         (Process_Discriminants): For an access discriminant, use the
11979         discriminant specification as the associated_node_for_itype, to
11980         simplify accessibility checks.
11982 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11983             Javier Miranda  <miranda@adacore.com>
11985         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
11986         abstract interpretations on an operator, remove interpretations that
11987         yield Address or a type derived from it, if one of the operands is an
11988         integer literal.
11989         (Try_Object_Operation.Try_Primitive_Operation,
11990         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
11991         location when creating the new reference to a primitive or class-wide
11992         operation as a part of rewriting a subprogram call.
11993         (Try_Primitive_Operations): If context requires a function, collect all
11994         interpretations after the first match, because there may be primitive
11995         operations of the same type with the same profile and different return
11996         types. From code reading.
11997         (Try_Primitive_Operation): Use the node kind to choose the proper
11998         operation when a function and a procedure have the same parameter
11999         profile.
12000         (Complete_Object_Operation): If formal is an access parameter and prefix
12001         is an object, rewrite as an Access reference, to match signature of
12002         primitive operation.
12003         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
12004         by an expanded name with prefix Standard, when the operands are of an
12005         anonymous access type.
12006         (Remove_Abstract_Operations): If the operation is abstract because it is
12007         inherited by a user-defined type derived from Address, remove it as
12008         well from the set of candidate interpretations of an overloaded node.
12009         (Analyze_Membership_Op): Membership test not applicable to cpp-class
12010         types.
12012 2006-02-13  Bob Duff  <duff@adacore.com>
12014         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
12015         redundant use clauses.
12016         In particular, if the scope of two use clauses overlaps, but one is not
12017         entirely included in the other, we should not warn.  This can happen
12018         with nested packages.
12019         (Analyze_Subprogram_Renaming): Protect the compiler against previously
12020         reported errors. The bug was reported when the compiler was built
12021         with assertions enabled.
12022         (Find_Type): If the node is a 'Class reference and the prefix is a
12023         synchronized type without a corresponding record, return the type
12024         itself.
12026 2006-02-13  Javier Miranda  <miranda@adacore.com>
12028         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
12029         if this is the full-declaration associated with a private declaration
12030         that implement interfaces, then the private type declaration must be
12031         limited.
12032         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
12033         as aliased. The use of the 'access attribute is not available for such
12034         object (for this purpose the object should be explicitly marked as
12035         aliased, but being an anonymous type this is not possible).
12037 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12038             Robert Dewar  <dewar@adacore.com>
12040         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
12041         compilation unit is an elaboration scope.
12042         (Add_Task_Proc): Add '\' in 2-line warning message.
12043         (Activate_All_Desirable): Deal with case of unit with'ed by parent
12045 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12046             Javier Miranda  <miranda@adacore.com>
12048         * sem_type.adb (Write_Overloads): Improve display of candidate
12049         interpretations.
12050         (Add_One_Interp): Do not add to the list of interpretations aliased
12051         entities corresponding with an abstract interface type that is an
12052         immediate ancestor of a tagged type; otherwise we have a dummy
12053         conflict between this entity and the aliased entity.
12054         (Disambiguate): The predefined equality on universal_access is not
12055         usable if there is a user-defined equality with the proper signature,
12056         declared in the same declarative part as the designated type.
12057         (Find_Unique_Type): The universal_access equality operator defined under
12058         AI-230 does not cover pool specific access types.
12059         (Covers): If one of the types is a generic actual subtype, check whether
12060         it matches the partial view of the other type.
12062 2006-02-13  Thomas Quinot  <quinot@adacore.com>
12064         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
12065         line. This is necessary to allow In_Extended_Main_Unit to provide
12066         correct results for itypes while writing out expanded source.
12067         (Close_File): No need to update the source_index_table here since it's
12068         now done for each line.
12070 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12071             Robert Dewar  <dewar@adacore.com>
12073         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
12074         preserve the source unit where the itype is declared, and prevent a
12075         backend abort.
12076         (Note_Implicit_Run_Time_Call): New procedure
12077         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
12078         E_Subprogram_Type)
12080         * sprint.ads: Document use of $ for implicit run time routine call
12082 2006-02-13  Quentin Ochem  <ochem@adacore.com>
12084         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
12085         task name.
12087 2006-02-13  Bob Duff  <duff@adacore.com>
12089         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
12090         Scan_Unsigned, so we do not scan leading blanks and sign twice.
12091         Integer'Value("- 5") and Integer'Value("-+5") now correctly
12092         raise Constraint_Error.
12094         * s-vallli.adb (Scan_Long_Long_Integer): Call
12095         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
12096         do not scan leading blanks and sign twice.
12097         Integer'Value("- 5") and Integer'Value("-+5") now correctly
12098         raise Constraint_Error.
12100         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
12101         Scan_Long_Long_Unsigned): Split out most of the processing from
12102         Scan_Long_Long_Unsigned out into
12103         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
12104         This prevents scanning leading blanks and sign twice.
12105         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
12106         See RM-3.5(44).
12108         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
12109         out most of the processing from Scan_Unsigned out into
12110         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
12111         This prevents scanning leading blanks and sign twice.
12113         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
12114         use with Modular'Value attribute.
12115         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
12116         attribute.
12118 2006-02-13  Robert Dewar  <dewar@adacore.com>
12120         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
12122 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12124         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
12125         (PPC VxWorks): Likewise.
12126         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
12127         (forced_callee): Make non-inlinable and non-pure.
12128         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
12130 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12131             Ben Brosgol  <brosgol@adacore.com>
12132             Robert Dewar  <dewar@adacore.com>
12134         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
12135         support.
12136         Document that gnatbind -M option is for cross environments only.
12137         Added description of using gnatmem to trace gnat rtl allocs and deallocs
12138         Add note on use of $ to label implicit run time calls
12139         Add documentation for -gnatyI (check mode IN)
12140         Updated chapter on compatibility with HP Ada
12141         VMS-oriented edits.
12142         Ran spell and corrected errors
12143         Add documentation for gnatbind -d and rework documentation of -D
12144         at the same time.
12145         Add subprogram/data elimination section.
12146         Minor editing of annex A.
12147         Add section for gnatcheck.
12148         Add documentation for restriction No_Dispatching_Calls
12149         Add documentation for pragma Ada_2005
12150         Remove mention of obsolete pragma Propagate_Exceptions
12151         Document that pragma Unreferenced can appear after DO in ACCEPT
12152         Clarify Pure_Function for library level units
12153         Mention Max/Min in connection with No_Implicit_Conditionals
12154         No_Wide_Characters restriction is no longer partition-wide
12155         Add a nice example for Universal_Literal_String attribute
12156         Document that pragma No_Return can take multiple arguments
12158         * ug_words: Added entry for gnatcheck
12160         * g-ctrl_c.ads (Install_Handler): Enhance comments
12162         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
12164         * g-trasym.ads: Add documentation on how to do off line symbolic
12165         traceback computation.
12167         * s-fatgen.adb: Add comments for Unaligned_Valid
12169         * stand.ads: Fix typo in comment
12171 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12173         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
12175 2006-02-06  Roger Sayle  <roger@eyesopen.com>
12177         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
12179 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12181         PR target/25926
12182         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
12183         implementation that calls __main.
12185 2006-01-25  Peter O'Gorman  <peter@pogma.com>
12187         PR bootstrap/25859
12188         * Makefile.in (GCC_LINK): Remove quotes.
12189         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
12190         or $(GCC_LINK).
12192         (powerpc-darwin): Pass -shared-libgcc when building shared library.
12194 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12196         PR ada/24533
12197         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
12199 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12201         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
12203 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12205         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
12206         needed.
12208 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12210         * Make-lang.in: Update dependencies
12212 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12214         * Make-lang.in: Add rule for ada/exp_sel.o
12216 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12218         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
12220 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
12222         * gnatvsn.ads (Library_Version): Bump to version 4.2
12223         (ASIS_Version_Number): Bumped.
12225 2005-12-09  Doug Rupp  <rupp@adacore.com>
12227         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
12228         Ada bind file prefix on VMS from b$ to b__.
12229         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
12230         __init.
12232         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
12233         Targparm.OpenVMS_On_Target.
12234         (Object_Suffix): Initialize with target object suffix.
12235         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
12237         * butil.adb: Change some Hostparm.OpenVMS checks to
12238         Targparm.OpenVMS_On_Target.
12240         * clean.adb: Change some Hostparm.OpenVMS checks to
12241         Targparm.OpenVMS_On_Target.
12242         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
12243         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
12244         Ada bind file prefix on VMS from b$ to b__.
12246         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
12247         --GCC so that Get_Target_Parameters can find system.ads.
12248         (Gnatlink): Call Get_Target_Parameters in mainline.
12249         Initialize standard packages for Targparm.
12250         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12251         (Process_Args): Also Check for object files with target object
12252         extension.
12253         (Make_Binder_File_Names): Create with target object extension.
12254         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
12255         to b__.
12257         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
12258         Targparm.OpenVMS_On_Target.
12259         ({declaration},Build_Library,Check_Library): Change Ada bind file
12260         prefix on VMS from b$ to b__.
12262         * osint-b.adb: Change some Hostparm.OpenVMS checks to
12263         Targparm.OpenVMS_On_Target.
12264         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
12265         b__.
12267         * targext.c: New file.
12269         * Makefile.in: add support for vxworks653 builds
12270         (../../vxaddr2line): gnatlink with targext.o.
12271         (TOOLS_LIBS): Move targext.o to precede libgnat.
12272         (init.o, initialize.o): Minor clean up in dependencies.
12273         (GNATLINK_OBJS): Add targparm.o, snames.o
12274         Add rules fo building targext.o and linking it explicitly with all
12275         tools.
12276         Also add targext.o to gnatlib.
12278         * Make-lang.in: Add rules for building targext.o and linking it in
12279         with gnat1 and gnatbind.
12280         Add entry for exp_sel.o.
12282         * osint.adb Change some Hostparm.OpenVMS checks to
12283         Targparm.OpenVMS_On_Target.
12284         (Object_File_Name): Use target object suffix.
12286         * osint.ads (Object_Suffix): Remove, no longer used.
12287         (Target_Object_Suffix): Initialize with target object suffix.
12289         * rident.ads: Add special exception to license.
12291         * targparm.adb (Get_Target_Parameters): Set the value of
12292         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
12293         value.
12294         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
12295         
12296         * targparm.ads: Add special exception to license.
12298         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
12299         function.
12300         (Copy_File): Make sure from file is closed if error on to file
12301         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
12303         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
12304         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
12306         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
12307         target object suffix.
12309 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
12310             Quentin Ochem  <ochem@adacore.com>
12311             Florian Villoing  <villoing@adacore.com>
12313         * a-taster.ads, a-taster.adb: New files.
12315         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
12316         link to the version that does nothing. This way the task termination
12317         routine is not executed twice for the environment task when finishing
12318         because of an unhandled exception.
12320         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
12321         handler because of an unhandled exception.
12323         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
12324         System.Tasking.Utilities instead of that in System.Tasking.Stages.
12326         * s-finimp.adb (initialization code): Modify the soft link for the
12327         finalization of the global list instead of Adafinal.
12329         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
12330         non-tasking version of the soft link for task termination. We do
12331         nothing since if we are using the non-tasking version it
12332         means that the task termination functionality is not used.
12333         (Null_Finalize_Global_List): Add this null version for the procedure
12334         in charge of finalizing the global list for controlled objects.
12335         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
12336         instead for handling run-time termination in a more flexible way.
12337         (Adafinal_NT): This new procedure will take care of finalizing the
12338         global list for controlled objects if needed, but no tasking
12339         finalization.
12341         * s-tarest.adb (Task_Lock): Do not try to lock again the
12342         Global_Task_Lock if we already own it. Otherwise, we get blocked in
12343         some run-time operations.
12344         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
12345         until all nested locks have been released.
12346         (Task_Wrapper): Call the fall-back task termination handler. It
12347         applies to all tasks but the environment task.
12348         (Finalize_Global_Tasks): Add the call for the task termination
12349         procedure for the environment task.
12350         (Task_Wrapper): suppress warnings around declaration of
12351         Secondary_Stack_Address.
12353         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
12354         moved to the Common_ATCB record.
12355         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
12356         Common_ATCB record.
12357         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
12358         Common_ATCB record.
12360         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
12361         Fall_Back_Handler, and Specific_Handler.
12363         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
12364         defined in Ada.Task_Termination, to avoid circular dependencies.
12365         (Termination_Handler): Redefine this type here, alredy defined in
12366         Ada.Task_Termination, for avoiding circular dependencies.
12367         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
12368         for storing task termination handlers. In addition,
12369         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
12370         Common_ATCB because it is used by both the regular and the restricted
12371         run times.
12372         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
12373         Common_ATCB because it is used by both the regular and the restricted
12374         run times.
12375         (Common_ATCB): Added a dynamic task analyzer field.
12377         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
12378         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
12379         (Task_Wrapper): Call the task termination handler. It applies to all
12380         tasks but the environment task.
12381         (Finalize_Global_Tasks): Call the task termination procedure for the
12382         environment task. The call to Finalize_Global_List is now performed
12383         using the soft links mechanism.
12384         (Task_Wrapper): added dynamic stack analysis.
12386         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
12387         potentially blocking operations has been moved from
12388         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
12389         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
12390         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
12391         this run-time check.
12393         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
12394         of task termination procedure.
12395         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
12396         link for the task termination procedure.
12398         * bindusg.adb: (Bindusg): Added documentation for -u option.
12400         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
12401         (Get_Main_C): Add handling of dynamic stack analysis.
12402         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
12404         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
12405         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
12406         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
12408         * opt.ads: Added flags used by dynamic stack measurement.
12409         (Max_Line_Length): Remove (not used anymore)
12411         * s-io.ads, s-io.adb (Standard_Error): new subprogram
12412         (Standart_Output): new subprogram
12413         (Set_Output): new subprogram
12414         (Put): now uses the value of Current_Out to know if the output has to be
12415         send to stderr or stdout.
12416         
12417         * s-stausa.ads: Complete implementation.
12419         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
12420         
12421         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
12422         list of Ada 05 files.
12423         (GNAT Library Units): Add AltiVec files.
12425         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
12426         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
12427         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
12429 2005-12-09  Nicolas Setton  <setton@adacore.com>
12431         * adaint.c (__gnat_locate_regular_file): Return immediately if
12432         file_name is empty.
12434 2005-12-09  Javier Miranda  <miranda@adacore.com>
12435             Hristian Kirtchev  <kirtchev@adacore.com>
12437         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
12438         to the specification because the frontend generates code that uses this
12439         subprogram.
12440         (Set_Interface_Table): Add missing assertion.
12441         Update documentation describing the run-time structure.
12442         (Displace): New subprogram that displaces the pointer to the object
12443         to reference one of its secondary dispatch tables.
12444         (IW_Membership): Modified to use the new table of interfaces.
12445         (Inherit_TSD): Modified to use the new table of interfaces.
12446         (Register_Interface_Tag): Use the additional formal to fill the
12447         contents of the new table of interfaces.
12448         (Set_Interface_Table): New subprogram that stores in the TSD the
12449         pointer to the table of interfaces.
12450         (Set_Offset_To_Top): Use the additional formal to save copy of
12451         the offset value in the table of interfaces.
12452         Update structure of GNAT Primary and Secondary dispatch table diagram.
12453         Add comment section on GNAT dispatch table prologue.
12454         (Offset_To_Signature): Update the constant value of the Signature field.
12455         (Dispatch_Table): Update comment on hidden fields in the prologue.
12456         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
12457         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
12458         the type of formal parameter T to Tag, introduce additional assertions.
12459         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
12460         conversion.
12461         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
12463         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
12464         in all the calls to Expand_Interface_Thunk. Instead of referencing the
12465         record component containing the tag of the secondary dispatch table we
12466         have to use the Offset_To_Top run-time function to get this information;
12467         otherwise if the pointer to the base of the object has been displace
12468         we get a wrong value if we use the 'position attribute.
12470         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
12471         all the calls to Expand_Interface_Thunk.
12472         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
12473         interfaces; hence the call to Set_Interface_Table was clearly wrong.
12474         (Collect_All_Interfaces): Modify the internal subprogram Collect to
12475         ensure that the interfaces implemented by the ancestors are placed
12476         at the header of the generated list.
12477         (Expand_Interface_Conversion): Handle the case in which the displacement
12478         associated with the interface conversion is not statically known. In
12479         this case we generate a call to the new run-time subprogram Displace.
12480         (Make_DT): Generate and fill the new table of interfaces.
12481         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
12482         Get_Tagged_Kind and Set_Tagged_Kind.
12483         (Tagged_Kind): New function that determines the tagged kind of a type
12484         with respect to limitedness and concurrency and returns a reference to
12485         RE_Tagged_Kind.
12486         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
12487         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
12488         primary dispatch table for a type.
12489         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
12490         secondary dispatch table respectively of a tagged type.
12492         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
12493         (Expand_Interface_Conversion): New subprogram to indicate if the
12494         displacement of the type conversion is statically known.
12495         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
12497         * rtsfind.ads (RE_Offset_To_Top): New entity
12498         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
12499         accessible to users.
12500         (Re_Displace): New entity
12501         (RE_Interface_Data): New entity
12502         (RE_Set_Interface_Data): New_Entity
12503         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
12504         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
12505         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
12506         RE_TK_Tagged, RE_TK_Task.
12508         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
12509         Init_Secondary_Tags_Internal to allow its use with interface types and
12510         also to generate the code for the new additional actual required
12511         by Set_Offset_To_Top.
12512         (Build_Init_Statements): In case of components associated with abstract
12513         interface types there is no need to generate a call to its IP.
12514         (Freeze_Record_Type): Generate Select Specific Data tables only for
12515         concurrent types.
12516         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
12517         the bodies and specifications of the predefined primitive operations
12518         dealing with dispatching selects and abort, 'Callable, 'Terminated only
12519         for concurrent types.
12521         * exp_sel.ads, exp_sel.adb: New files.
12523         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
12524         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
12525         properly protected objects and attach handler in the case of the
12526         restricted profile.
12527         Move embeded package Select_Expansion_Utilities into a separate external
12528         package.
12529         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
12530         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
12531         (Build_K, Build_S_Assignment): New subprograms, part of the select
12532         expansion utilities.
12533         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
12534         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
12535         where the trigger is a dispatching procedure of a limited tagged type.
12537 2005-12-09  Olivier Hainque  <hainque@adacore.com>
12539         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
12540         pointer initialization values. Make a SAVE_EXPR instead. Add comments
12541         about the use and expansion of SAVE_EXPRs in the various possible
12542         renaming handling cases.
12543         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
12544         abusing DECL_FCONTEXT.
12546 2005-12-09  Matthew Heaney  <heaney@adacore.com>
12548         * a-convec.adb (Merge): Added assertions to check whether vector params
12549         are sorted.
12551         * a-coinve.adb (Merge): Added assertions to check whether vector params
12552         are sorted.
12554         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
12555         draft.
12556         (Cursor'Read): raises PE
12558         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
12559         to its default value.
12561         * a-cihama.adb: Manually check whether cursor's key and elem are
12562         non-null
12564         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
12565         (Merge): Assert that target and source lists are in order
12566         (Swap): Declare non-const temporaries, to pass to Splice
12568         * a-cdlili.ads: (Splice): Changed param name and param mode
12570         * a-cdlili.adb: (Splice): Changed param name and param mode
12571         (Merge): Assert that target and source lists are in order
12572         (Swap): Declare non-const temporaries, to pass to Splice
12574         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
12575         (Write): declare Stream param as not null
12577         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
12578         an exception message.
12580 2005-12-09  Thomas Quinot  <quinot@adacore.com>
12581             Robert Dewar  <dewar@adacore.com>
12583         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
12584         which is the absolute maximum length we can support.
12586         * frontend.adb: For the processing of configuration pragma files,
12587         remove references to Opt.Max_Line_Length, which is not checked anymore.
12589         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
12590         length.
12592         * scn.adb, scng.adb: 
12593         Always check line length against the absolute supported maximum,
12594         Hostparm.Max_Line_Length.
12596         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
12597         value for the maximum line length is Max_Line_Length (not
12598         Column_Number'Last).
12599         Minor error msg update
12600         (Set_Style_Check_Options): New interface returning error msg
12601         Minor code reorganization (processing for 'M' was out of alpha order)
12603         * switch-c.adb: New interface for Set_Style_Check_Options
12605         * stylesw.ads (Set_Style_Check_Options): New interface returning error
12606         msg.
12608 2005-12-09  Javier Miranda  <miranda@adacore.com>
12610         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
12611         with IP subprogram were only supported if there were limited types.
12613         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
12614         records with IP subprogram were only supported if there were limited
12615         types.
12617 2005-12-09  Olivier Hainque  <hainque@adacore.com>
12618             Eric Botcazou  <ebotcazou@adacore.com>
12620         * trans.c (tree_transform, emit_check): Adjust calls to
12621         build_call_raise, passing the now expected GNAT_NODE argument.
12623         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
12624         source line information than what the current global locus indicates
12625         when appropriate.
12627         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
12628         field has overflowed.
12629         (build_call_raise): Add a GNAT_NODE argument to convey better source
12630         line information than what the current global locus indicates when
12631         appropriate.
12632         (build_component_ref): Adjust call to build_call_raise.
12634 2005-12-09  Pascal Obry  <obry@adacore.com>
12636         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
12637         the iterator is quitting iteration on parent directory.
12639 2005-12-09  Javier Miranda  <miranda@adacore.com>
12641         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
12642         and the assignment to a class-wide object, before the assignment we
12643         generate a run-time check to ensure that the tag of the Target is
12644         covered by the tag of the source.
12646 2005-12-09  Robert Dewar  <dewar@adacore.com>
12648         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
12649         parameter in call to Image_Wide_Character.
12651         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
12652         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
12653         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
12654         annoying FFFE/FFFF inconsistency.
12656 2005-12-09  Robert Dewar  <dewar@adacore.com>
12657             Javier Miranda  <miranda@adacore.com>
12658             Ed Schonberg  <schonberg@adacore.com>
12660         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
12661         of type conversion.
12662         (Find_Interface): New subprogram that given a tagged type and one of its
12663         component associated with the secondary table of an abstract interface
12664         type, return the entity associated with such abstract interface type.
12665         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
12666         base type to create anonymous subtype, because entity may be a locally
12667         declared subtype or generic actual.
12668         (Find_Interface): New subprogram that given a tagged type and one of its
12669         component associated with the secondary table of an abstract interface
12670         type, return the entity associated with such abstract interface type.
12672         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
12673         conversion cannot be handled at compile time. In this case we pass this
12674         information to the expander to generate the appropriate code.
12676 2005-12-09  Robert Dewar  <dewar@adacore.com>
12677             Ed Schonberg  <schonberg@adacore.com>
12678             Gary Dismukes  <dismukes@adacore.com>
12679             Javier Miranda  <miranda@adacore.com>
12680             Hristian Kirtchev  <kirtchev@adacore.com>
12682         * einfo.adb (Itype_Printed): New flag
12683         (Is_Limited_Type): Derived types do not inherit limitedness from
12684         interface progenitors.
12685         (Is_Return_By_Reference_Type): Predicate does not apply to limited
12686         interfaces.
12688         * einfo.ads (Itype_Printed): New flag
12689         Move Is_Wrapper_Package to proper section
12690         Add missing Inline for Is_Volatile
12692         * output.ads, output.adb (Write_Erase_Char): New procedure
12693         (Save/Restore_Output_Buffer): New procedures
12694         (Save/Restore_Output_Buffer): New procedures
12696         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
12697         Add missing support for anonymous access type
12698         (Write_Id): Insert calls to Write_Itype
12699         (Write_Itype): New procedure to output itypes
12701         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
12702         use of "limited" in declaration.
12704         * sinfo.ads, sinfo.adb: 
12705         Formal derived types can carry an explicit "limited" indication.
12707         * sem_ch3.adb: Add with and use of Targparm.
12708         (Create_Component): If Frontend_Layout_On_Target is True and the
12709         copied component does not have a known static Esize, then reset
12710         the size and positional fields of the new component.
12711         (Analyze_Component_Declaration): A limited component is
12712         legal within a protected type that implements an interface.
12713         (Collect_Interfaces): Do not add to the list the interfaces that
12714         are implemented by the ancestors.
12715         (Derived_Type_Declaration): If the parent of the full-view is an
12716         interface perform a transformation of the tree to ensure that it has
12717         the same parent than the partial-view. This simplifies the job of the
12718         expander in order to generate the correct object layout, and it is
12719         needed because the list of interfaces of the full-view can be given in
12720         any order.
12721         (Process_Full_View): The parent of the full-view does not need to be
12722         a descendant of the parent of the partial view if both parents are
12723         interfaces.
12724         (Analyze_Private_Extension_Declaration): If declaration has an explicit
12725         "limited" the parent must be a limited type.
12726         (Build_Derived_Record_Type): A derived type that is explicitly limited
12727         must have limited ancestor and progenitors.
12728         (Build_Derived_Type): Ditto.
12729         (Process_Full_View): Verify that explicit uses of "limited" in partial
12730         and full declarations are consistent.
12731         (Find_Ancestor_Interface): Remove function.
12732         (Collect_Implemented_Interfaces): New procedure used to gather all
12733         implemented interfaces by a type.
12734         (Contain_Interface): New function used to check whether an interface is
12735         present in a list.
12736         (Find_Hidden_Interface): New function used to determine whether two
12737         lists of interfaces constitute a set equality. If not, the first
12738         differing interface is returned.
12739         (Process_Full_View): Improve the check for the "no hidden interface"
12740         rule as defined by AI-396.
12742 2005-12-09  Robert Dewar  <dewar@adacore.com>
12744         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
12745         types, not on record subtypes.
12746         (Freeze_Entity): Code cleanup. Add barrier to the loop
12747         that generates the references for primitive operations. This allows to
12748         remove an unnecessary exception handler.
12749         Code reformatting and comment clean ups.
12751 2005-12-09  Vincent Celier  <celier@adacore.com>
12753         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
12754         If GNAT CHECK is called with a project file, but with no
12755         source on the command line, call gnatcheck with all the compilable
12756         sources of the project.
12757         Take into account the new command Check, for gnatcheck. Treat as for
12758         other ASIS tools: take into account project, specific package Check and
12759         Compiler switches.
12760         For ASIS tools, add the switches in package Compiler for
12761         the invocation of the compiler.
12763         * prj-attr.adb: Add package Check and its attributes
12765         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
12767         * vms_conv.adb (Initialize): Change Params of command Check to
12768         unlimited files.
12769         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12770         Add data for new command Check
12772         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
12773         ELIM.
12774         Add qualifiers for Check command options
12775         (Command_Type): New command Check
12777 2005-12-09  Thomas Quinot  <quinot@adacore.com>
12779         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
12780         command line switch overruns the output buffer.
12782 2005-12-09  Robert Dewar  <dewar@adacore.com>
12784         * sem_prag.adb: Processing for new pragma Complete_Representation
12785         (Analyze_Pragma, case Debug): Implement two argument form.
12787         * par-prag.adb: Entry for new pragma Complete_Representation
12788         (Prag, case Debug): Recognize two argument form of pragma Debug
12789         New interface for Set_Style_Check_Options.
12791         * sem_ch13.adb: Implement new pragma Complete_Representation.
12793         * snames.adb, snames.ads, snames.h: Entry for new pragma
12794         Complete_Representation.
12796 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
12798         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
12799         available user-specified stream attributes on limited parameters to
12800         also test the type directly rather than only its underlying type (for
12801         Ada 95) and, in the case of Ada 2005, to check that the user-specified
12802         attributes are visible at the point of the subprogram declaration.
12803         For Ada 2005, the error message is modified to indicate that the
12804         type's stream attributes must be visible (again, only for -gnat05).
12806 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
12808         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
12809         anonymous access types.
12811         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
12812         matching of anonymous access types and anonymous access to subprogram
12813         types. 'R'M 4.9.1 (2/2).
12815 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
12817         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
12818         rule prematurely when operands are universal, remaining ambiguities
12819         will be removed during resolution.
12820         Code cleanup.
12822         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
12823         that are Ada 2005 functions.
12824         (Has_Abstract_Interpretation): Subsidiary to
12825         Remove_Conversions, to remove ambiguities caused by abstract operations
12826         on numeric types when operands are universal.
12828 2005-12-09  Robert Dewar  <dewar@adacore.com>
12830         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
12831         for case where spec is categorized.
12833 2005-12-09  Javier Miranda  <miranda@adacore.com>
12835         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
12836         types use the corresponding record type. This was not needed before
12837         the implementation of Ada 2005 synchronized types because
12838         concurrent types were never tagged types in Ada 95.
12840 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
12842         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
12843         first subtype of the type of the expression to verify that it is a
12844         legal Time type.
12846 2005-12-09  Robert Dewar  <dewar@adacore.com>
12848         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
12849         decoded names.
12851 2005-12-09  Quentin Ochem  <ochem@adacore.com>
12852             Robert Dewar  <dewar@adacore.com>
12853             Ed Falis  <falis@adacore.com>
12854             Florian Villoing  <villoing@adacore.com>
12855             Thomas Quinot  <quinot@adacore.com>
12856             Arnaud Charlet  <charlet@adacore.com>
12858         * gnat_ugn.texi: Created section "Stack Related Tools"
12859         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
12860         "Stack Related Tools"
12861         Added subsection "Static Stack Usage Analysis"
12862         Added subsection "Dynamic Stack Usage Analysis"
12863         Include documentation of itypes in sprint listing (-gnatG)
12864         Documented gnatbind -D switch (default sec stack size for fixed sec
12865         stacks).
12866         Added Interrupt_State and Persistent_BSS to list of configuration
12867         pragmas.
12868         Add missing doc for maximum value of nnn in -gnatyMnnn
12870         * gnat_rm.texi: Document the AltiVec binding.
12871         Add documentation for pragma Complete_Representation
12872         Shortened an overly long line (> 79 chars)
12873         Clarify documentation of unchecked conversion in implementation
12874         defined cases.
12875         Document two argument form of pragma Debug
12877         * types.ads (Column_Number): Update documentation.
12879         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
12880         library level Finalize_Storage_Only objects (these are not attached to
12881         any finalization list).
12883         * system-mingw.ads: (Underlying_Priorities): Update comment.
12885 2005-12-09  Robert Dewar  <dewar@adacore.com>
12887         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
12888         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
12889         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
12890         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
12891         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
12892         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
12893         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
12894         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
12895         reformatting.
12897 2005-12-09  Robert Dewar  <dewar@adacore.com>
12899         * s-vaflop-vms-alpha.adb: (Ne_F): New function
12900         (Ne_G): New function
12902         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
12903         for tag assignment.
12904         (Rewrite_Comparison): Handle case where operation is not a comparison
12905         and ignore, and also handle type conversion case.
12907 2005-12-09  Thomas Quinot  <quinot@adacore.com>
12909         * exp_aggr.ads: Fix typo in comment.
12910         ???-mark Convert_Aggr_In_Assignment as needing documentation.
12912 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
12914         * layout.adb: Replace various uses of byte by storage unit throughout.
12915         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
12916         static size, convert to storage units before returning, to conform to
12917         spec.
12919 2005-12-09  Matthew Gingell  <gingell@adacore.com>
12921         * g-exctra.ads: Fix typo in comment.
12923 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12925         * utils.c: Minor reformatting.
12927 2005-12-09  Robert Dewar  <dewar@adacore.com>
12929         * g-soccon.ads: 
12930         Further comment fixes to make the status of the default file clear
12932         * s-bitops.adb: Clarify comment for Bits_Array
12934 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12936         * Make-lang.in (ada.install-normal): Remove.
12938 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12940         * Make-lang.in: Remove all dependencies on s-gtype.
12942 2005-12-05  Richard Guenther  <rguenther@suse.de>
12944         * utils.c (convert): Use fold_convert where appropriate.
12946 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
12948         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
12949         a period is meant.
12951 2005-12-02  Richard Guenther  <rguenther@suse.de>
12953         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
12955 2005-12-01  Roger Sayle  <roger@eyesopen.com>
12957         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
12958         nodes.
12960 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
12962         * mlib-prj.adb (Build_Library): Initialize Delete.
12964 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
12966         * socket.c: Add extern int h_errno for rtems since networking header
12967         files are not available at this point in a tool bootstrap. Newlib
12968         only has basic C library header files.
12970 2005-11-19  Richard Guenther  <rguenther@suse.de>
12971         Roger Sayle  <roger@eyesopen.com>
12973         PR ada/23717
12974         * misc.c (internal_error_function): Don't use vsprintf to format
12975         the error message text, instead use pp_format_text and the new
12976         pretty printer APIs.  This allows handling of %qs, %w, etc.
12978 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
12980         PR ada/24857
12981         * Makefile.in: Use s-auxdec-empty for RTEMS.
12983 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12985         PR ada/22333
12986         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
12987         a temporary if taking the address of something that is neither
12988         reference, declaration, or constant, since the gimplifier
12989         can't handle that case.
12991 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
12993         PR ada/24857
12994         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
12996 2005-11-16  Richard Guenther  <rguenther@suse.de>
12998         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
13000 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
13002         PR ada/24855
13003         * raise-gcc.c: Add missing stdarg.h include.
13005 2005-11-16  Richard Guenther  <rguenther@suse.de>
13007         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
13008         (ada/misc.o): Likewise.
13010 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13012         * g-soccon.ads: Minor reformatting. Update comments.
13014         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
13015         gain visibility on the declaration of struct timeval.
13017         * g-soccon-freebsd.ads,
13018         g-soccon-darwin.ads,
13019         g-soccon-tru64.ads,
13020         g-soccon-aix.ads,
13021         g-soccon-irix.ads,
13022         g-soccon-hpux.ads,
13023         g-soccon-solaris.ads,
13024         g-soccon-vms.ads,
13025         g-soccon-mingw.ads,
13026         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
13028         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
13029         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
13030         g-soccon-linux-x86.ads: New files.
13032         * g-socthi-mingw.adb: 
13033         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
13035         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
13036         (time_t, suseconds_t): New types constructed to match the tv_sec
13037         and tv_usec fields of C struct timeval.
13038         (Timeval): Construct structure in terms of the new types.
13039         (Host_Errno): New function (imported from socket.c), returns last hosts
13040         database error.
13042         * g-socthi-vxworks.adb:  Add error handling circuitry.
13044         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
13045         components of struct timeval.
13046         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
13047         (Check_Selector): In error conditions, clear internal socket sets to
13048         avoid a memory leak.
13049         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
13050         Send_Timeout, Receive_Timeout.
13052         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
13053         the tv_sec and tv_usec fields of C struct timeval.
13054         (Timeval): Construct structure in terms of the new types.
13055         (Host_Errno): New function (imported from socket.c), returns last hosts
13056         database error.
13058         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
13059         hosts database last error code.
13061         * gen-soccon.c: Complete value expansion should not be performed on
13062         TARGET, as it has the form of a math expression, and some components
13063         may be platform-defined macros.
13064         For VxWorks, generate the OK and ERROR values.
13065         New constants giving the sizes of the components of C struct timeval.
13067 2005-11-14  Robert Dewar  <dewar@adacore.com>
13068             Ed Schonberg  <schonberg@adacore.com>
13070         PR ada/18434
13071         * types.ads: Include All_Checks in Suppress_Array
13073         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
13074         not(a=b), since we no longer do this rewriting, and hence it is not
13075         needed.
13076         (Elaboration_Checks_Suppressed): Add special casing to
13077         deal with different cases of static and dynamic elaboration checks (all
13078         checks does not count in the first case, but does in the second).
13079         (Expr_Known_Valid): Do not assume that the result of any arbitrary
13080         function call is valid, since this is not the case.
13081         (Ensure_Valid): Do not apply validity check to a real literal
13082         in a universal or fixed context
13084         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
13085         elementary types using the operator in standard. It is cleaner not to
13086         modify the programmers intent, especially in the case of floating-point.
13087         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
13088         it did not matter because we always rewrote a/=b to not(a=b).
13089         (Expand_Allocator_Expression): For an allocator expression whose nominal
13090         subtype is an unconstrained packed type, convert the expression to its
13091         actual constrained subtype.
13092         Implement warning for <= or >= where < or > not possible
13093         Fix to Vax_Float tests (too early in many routines, causing premature
13094         Vax_Float expansions.
13096         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
13097         to be used with packages and generic packages as well as with
13098         subprograms.
13099         (Suppress): Set All_Checks, but not Elaboration_Check, for case
13100         of pragma Suppress (All_Checks)
13101         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
13102         a string literal for precise control over warnings.
13103         Avoid raise of pragma in case of unrecognized pragma and just return
13104         instead.
13106         * sem_prag.ads: Minor reformatting
13108         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
13109         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13110         Switch. Do not handle any exception.
13111         Include -gnatwx as part of -gnatg (warn on redundant parens)
13112         Allow optional = after -gnatm
13113         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
13114         longer sets Elaboration_Checks.
13115         Code to set warning mode moved to Sem_Warn
13116         so that it can be shared by pragma processing.
13118         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
13119         statement.
13121         * s-taprop-solaris.adb: 
13122         Change some <= to =, to avoid new warning
13124         * a-exexda.adb, prj-proc.adb: 
13125         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
13126         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
13128 2005-11-14  Robert Dewar  <dewar@adacore.com>
13130         * exp_vfpt.adb: Handle /= case
13131         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
13132         so that we do not get duplicate scaling for fixed point conversions.
13134         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
13136 2005-11-14  Matthew Gingell  <gingell@adacore.com>
13138         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
13139         Increase default priority on Lynx from 15 to 17, and meet the Ada
13140         requirement that Default_Priority be ((Priority'First +
13141         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
13143 2005-11-14  Vincent Celier  <celier@adacore.com>
13145         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13146         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13147         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
13148         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
13149         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
13150         mlib-tgt-lynxos.adb (DLL_Prefix): New function
13152 2005-11-14  Doug Rupp  <rupp@adacore.com>
13154         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
13155         private part.
13157 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13159         * s-traces-default.adb, s-trafor-default.ads,
13160         s-tratas-default.adb: Fix compilation errors.
13162 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
13164         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
13165         raising the exception so the memory used is freed.
13167 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13169         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
13170         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
13171         (convert_address): Update comments and list of platforms using this.
13173         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
13174         no longer used.
13176 2005-11-14  Pascal Obry  <obry@adacore.com>
13177             Vincent Celier  <celier@adacore.com>
13179         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
13180         GNAT.Command_Line.
13182         * memroot.adb: Remove redundant with/use clause on
13183         System.Storage_Elements.
13185 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13187         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
13188         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
13189         related code to a-exexpr.adb
13190         (Save_Occurrence_And_Private): Move GCC EH related code to
13191         a-exexpr-gcc.adb
13192         (Raise_Current_Excep): Add new variable Id with pragma
13193         volatile, to ensure that the variable lives on stack.
13195         * a-exexpr-gcc.adb, raise-gcc.c: New file.
13197         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
13198         from a-except.adb.
13199         Move GCC EH related code to a-exexpr-gcc.adb
13201         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
13202         64-bit Solaris
13203         Split the Linux version of g-soccon into separate variants for 32 and 64
13204         bit platforms.
13205         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
13206         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
13207         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
13208         of host variable $(RANLIB_FLAGS).
13209         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
13210         Code clean up: remove unused/obsolete targets.
13211         (EH_MECHANISM): New variable introduced to differenciate between the
13212         two EH mechanisms statically.
13213         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
13214         (LIBGNAT_OBJS): Add raise-gcc.o
13215         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
13216         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13217         supports VxWorks 6 RTPs.
13218         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
13219         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13221         * raise.c: Move all GCC EH-related routines to raise-gcc.c
13223 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
13225         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
13226         deferral level, when abort is not allowed, to a later stage (the
13227         Task_Wrapper).
13228         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
13229         it will not get changed by the generated code. It was previously done
13230         in Create_Task.
13232 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13233             Olivier Hainque  <hainque@adacore.com>
13234             Eric Botcazou  <ebotcazou@adacore.com>
13236         * decl.c:
13237         Factor common code to build a storage type for an unconstrained object
13238         from a fat or thin pointer type and a constrained object type.
13239         (annotate_value): Handle BIT_AND_EXPR.
13240         (annotate_rep): Don't restrict the back annotation of inherited
13241         components to the type_annotate_only case.
13242         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
13243         we are not defining the type.
13244         <E_Record_Type>: Likewise.
13245         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
13246         to get advantage of the new maybe_stabilize_reference interface, to
13247         ensure that what we reference is indeed stabilized instead of relying
13248         on assumptions on what the stabilizer does.
13249         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
13250         type imported through a limited_with clause, use its non-limited view.
13251         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
13252         differentiation.
13253         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
13254         of #if sections + explicit comparisons of convention identifiers.
13255         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
13256         before early-returning for certain types when code generation is
13257         disabled.
13258         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
13259         nullification of gnu_expr we do for objects with address clause and
13260         that we are not defining.
13261         (elaborate_expression_1): Do not create constants when creating
13262         variables needed by the debug info: the dwarf2 writer considers that
13263         CONST_DECLs is used only to represent enumeration constants, and emits
13264         nothing for them.
13265         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
13266         object with an address clause into an indirect reference, drop the
13267         initializing expression.
13268         Include "expr.h".
13269         (STACK_CHECK_BUILTIN): Delete.
13270         (STACK_CHECK_PROBE_INTERVAL): Likewise.
13271         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
13272         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
13273         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
13274         corresponding to the renamed object as ignored for debugging purposes.
13276         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
13277         related): For a prefix that is a dereference of a fat or thin pointer,
13278         if there is an actual subtype provided by the front-end, use that
13279         subtype to build an actual type with bounds template.
13280         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
13281         is provided by the front-end, use that subtype to compute the size of
13282         the deallocated object.
13283         (gnat_to_gnu): When adding a statement into an elaboration procedure,
13284         check for a potential violation of a No_Elaboration_Code restriction.
13285         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13286         with extra arguments to control whether to recurse through non-values
13287         and to let the caller know if the stabilization has succeeded.
13288         (gnat_stabilize_reference): Now a simple wrapper around
13289         maybe_stabilize, for common uses without restriction on lvalues and
13290         without need to check for the success indication.
13291         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
13292         pass false instead of 0 as the FORCE argument which is a bool.
13293         (Identifier_to_gnu): Remove checks ensuring that an renamed object
13294         attached to a renaming pointer has been properly stabilized, as no such
13295         object is attached otherwise.
13296         (call_to_gnu): Invoke create_var_decl to create the temporary when the
13297         function uses the "target pointer" return mechanism.
13298         Reinstate conversion of the actual to the type of the formal
13299         parameter before any other specific treatment based on the passing
13300         mechanism. This turns out to be necessary in order for PLACEHOLDER
13301         substitution to work properly when the latter type is unconstrained.
13303         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
13304         common pattern.
13305         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13306         with extra arguments to control whether to recurse through non-values
13307         and to let the caller know if the stabilization has succeeded.
13309         * utils2.c (gnat_build_constructor): Only sort the fields for possible
13310         static output of record constructor if all the components are constant.
13311         (gnat_build_constructor): For a record type, sort the list of field
13312         initializers in increasing bit position order.
13313         Factor common code to build a storage type for an unconstrained object
13314         from a fat or thin pointer type and a constrained object type.
13315         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
13316         types variants, and process special cases of VIEW_CONVERT expressions
13317         as their NOP_EXPR counterpart to ensure we get to the
13318         CORRESPONDING_VARs associated with CONST_DECls.
13319         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
13320         on the right-hand side.
13322         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
13323         a common pattern.
13324         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
13325         are converting back to its original type.
13326         (convert) <JM input>: Fallthrough regular conversion code instead of
13327         extracting the object if converting to a type variant.
13328         (create_var_decl): When a variable has an initializer requiring code
13329         generation and we are at the top level, check for a potential violation
13330         of a No_Elaboration_Code restriction.
13331         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
13332         SIZE and SIZE_UNIT which we need for later back-annotations.
13333         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
13334         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
13335         is an unchecked union.
13336         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
13337         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
13338         main variant, just replace the VIEW_CONVERT_EXPR.
13339         <UNION_TYPE>: Revert 2005-03-02 change.
13341         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
13343         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
13345 2005-11-14  Matthew Heaney  <heaney@adacore.com>
13347         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
13348         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
13349         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
13350         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
13351         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
13352         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
13353         Compiles against the spec for ordered maps described in sections
13354         A.18.6 of the most recent (August 2005) AI-302 draft.
13356 2005-11-14  Olivier Hainque  <hainque@adacore.com>
13358         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
13359         to ensure bias adjustments take place when need be and to prevent
13360         occurrences of intermediate overflows.
13362 2005-11-14  Matthew Gingell  <gingell@adacore.com>
13363             Olivier Hainque  <hainque@adacore.com>
13365         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
13366         ia64 HP-UX.
13368         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
13369         tracebacks on ia64 HP-UX and provide explanatory comment.
13370         Enable backtraces on ia64 GNU/Linux.
13371         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
13372         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
13374 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
13375             Javier Miranda  <miranda@adacore.com>
13377         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
13378         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
13379         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
13380         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
13382         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
13383         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
13384         assertions).
13386         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
13387         subprogram that generates the external name associated with a
13388         secondary dispatch table.
13389         (Get_Secondary_DT_External_Name): New subprogram that generates the
13390         external name associated with a secondary dispatch table.
13392 2005-11-14  Emmanuel Briot  <briot@adacore.com>
13394         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
13395         line in the ALI file to include both an instantiation reference, and a
13396         returned value.
13398 2005-11-14  Vincent Celier  <celier@adacore.com>
13400         * clean.adb (Check_Project): Look for Ada code in extending project,
13401         even if Ada is not specified as a language.
13402         Use new function DLL_Prefix for DLL_Name
13403         (Clean_Interface_Copy_Directory): New procedure
13404         (Clean_Library_Directory): New procedure
13405         (Clean_Directory): Remove procedure, no longer used
13406         (Clean_Project): Do not delete any file in an externally built project
13408         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
13409         directory of an extending project, even when there are no Ada source
13410         present.
13411         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
13412         (Set_Ada_Paths.Add.Recursive_Add): Ditto
13414         * mlib-prj.adb (Check_Library): For all library projects, get the
13415         library file timestamp.
13416         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
13417         (Build_Library): Use new function DLL_Prefix for the DLL_Name
13418         (Clean): Remove procedure, no longer used
13419         (Ultimate_Extension_Of): New function
13420         (Build_Library): When cleaning the library directory, only remove an
13421         existing library file and any ALI file of a source of the project.
13422         When cleaning the interface copy directory, remove any source that
13423         could be a source of the project.
13425         * prj.ads, prj.adb (Project_Empty): Add values of new components
13426         Library_TS and All_Imported_Projects.
13427         (Project_Empty): Add values for new components of Project_Data:
13428         Library_ALI_Dir and Display_Library_ALI_Dir
13430         * prj-attr.adb: New project level attribute name Library_ALI_Dir
13432         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
13433         attribute Library_ALI_Dir.
13434         (Check_Library_Attributes): The library directory cannot be the same as
13435         any source directory of the project tree.
13436         (Check_Stand_Alone_Library): The interface copy directory cannot be
13437         the same as any source directory of the project tree.
13439         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
13440         all temporary files.
13442 2005-11-14  Robert Dewar  <dewar@adacore.com>
13443             Ed Schonberg  <schonberg@adacore.com>
13445         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13446         (Check_Elab_Call): A call within a protected body is never an
13447         elaboration call, and does not require checking.
13448         (Same_Elaboration_Scope): Take into account protected types for both
13449         entities.
13450         (Activate_Elaborate_All_Desirable): New procedure
13452         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
13453         desirable
13455         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
13456         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
13458         * lib-writ.ads, lib-writ.adb: 
13459         Implement new AD/ED for Elaborate_All/Elaborate desirable
13460         Use new Elaborate_All_Desirable flag in N_With_Clause node
13462         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
13463         N_Free_Statement nodes.
13464         Define new class N_Subprogram_Instantiation
13465         Add Elaborate_Desirable flag to N_With_Clause node
13466         Add N_Delay_Statement (covering two kinds of delay)
13468         * debug.adb: Introduce d.f flag for compiler
13469         Add -da switch for binder
13471 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13472             Cyrille Comar  <comar@adacore.com>
13474         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
13475         for task component, in the case of a limited aggregate. The enclosed
13476         object declaration will create it earlier. Otherwise, in the case of a
13477         nested aggregate, the object may appear in the wrong scope.
13478         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
13479         (Gen_Assign): If the component being assigned is an array type and the
13480         expression is itself an aggregate, wrap the assignment in a block to
13481         force finalization actions on the temporary created for each row of the
13482         enclosing object.
13483         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
13484         structures are initialized after all discriminants are set so that
13485         they can be accessed even when their offset is dynamic.
13487 2005-11-14  Robert Dewar  <dewar@adacore.com>
13488             Hristian Kirtchev  <kirtchev@adacore.com>
13490         * sem_attr.adb: Implement Machine_Rounding attribute
13491         (Analyze_Access_Attribute): The access attribute may appear within an
13492         aggregate that has been expanded into a loop.
13493         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
13494         'Terminated whenever the prefix is of a task interface class-wide type.
13495         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
13496         the prefix is of a task interface class-wide type.
13498         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
13499         to avoid warnings.
13501         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
13502         Remove pragma Inline for [Unaligned_]Valid.
13503         Add comments that Valid routines do not work for Vax_Float
13505         * exp_attr.adb: Implement Machine_Rounding attribute
13507         * snames.h: Add entry for Machine_Rounding attribute
13509 2005-11-14  Javier Miranda  <miranda@adacore.com>
13510             Robert Dewar  <dewar@adacore.com>
13511             Hristian Kirtchev  <kirtchev@adacore.com>
13513         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
13514         and related): For a prefix that is an explicit dereference of an
13515         access to unconstrained packed array type, annotate the dereference
13516         with an actual subtype so GIGI can make a correct size computation.
13517         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
13518         'Unrestricted_Access, if the designated type is an interface we
13519         add a type conversion to force the displacement of the pointer
13520         to the secondary dispatch table.
13521         Use Universal_Real instead of Long_Long_Float when we need a high
13522         precision float type for the generated code (prevents gratuitous
13523         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13524         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
13525         'Terminated for task interface class-wide objects. Generate a call to
13526         the predefined dispatching routine used to retrieve the _task_id from
13527         a task corresponding record.
13528         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
13530         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13531         (Check_Dispatching_Operation): Protect the frontend againts
13532         previously detected errors.
13534         * Makefile.rtl: Add new instantiations of system.fat_gen
13536         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
13537         Change name of instantiated package for better consistency
13538         with newly added system.fat_gen instantiations.
13540         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
13541         s-fvagfl.ads: New files.
13543 2005-11-14  Cyrille Comar  <comar@adacore.com>
13544             Thomas Quinot  <quinot@adacore.com>
13546         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
13547         assignment of a value of a tagged type that has been rewritten to a
13548         block statement, it is known by construction that no checks are
13549         necessary for the statements within the block: analyze it with checks
13550         suppressed.
13551         (Expand_N_If_Statement): When killing a dead then-branch in an
13552         if-statement that has elsif_parts, recompute the Current_Value node
13553         for any entity whose value is known from the condition of the first
13554         elsif_part.
13555         (Expand_N_Return_Statement): When returning a mutable record, convert
13556         the return value into its actual subtype in order to help the backend
13557         to return the actual size instead of the maximum. This is another
13558         aftermath of not returning mutable records on the sec-stack anymore.
13560         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
13561         handling of error msg for suspicious reverse range iteration.
13562         (Check_Possible_Current_Value_Condition): Move declaration from body to
13563         spec, to allow this subprogram to be called from exp_ch5.
13565 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13567         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
13568         generate a set of nested array aggregates instead of a single flat
13569         aggregate for multi-dimensional arrays.
13571 2005-11-14  Pascal Obry  <obry@adacore.com>
13573         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
13574         by spawnve is a process handle, no need to convert. Add a parameter
13575         close to control wether the process handle must be closed.
13576         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
13577         a process handle, not need to convert.
13578         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
13580         * g-expect.adb: (Kill): Document the new close parameter.
13581         (Close): Do not release the process handle in the kill there as
13582         waitpid() is using it.
13583         (Send_Signal): Release the process handle.
13585 2005-11-14  Robert Dewar  <dewar@adacore.com>
13587         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
13588         need a high precision float type for the generated code (prevents
13589         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13590         used).
13592         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
13593         need a high precision float type for the generated code (prevents
13594         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13595         used).
13596         (Expand_Width_Attribute): In configurable run-time, the attribute is not
13597         allowed on non-static enumeration subtypes. Force a load error to emit
13598         the correct diagnostic.
13600 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13601             Robert Dewar  <dewar@adacore.com>
13602             Ed Schonberg  <schonberg@adacore.com>
13604         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
13605         subtype to compute the size of the designated object at run-time,
13606         create such a subtype and store it in the Actual_Designated_Subtype
13607         attribute of the N_Free_Statement.
13608         Generate itype for classwide designated object in both cases of
13609         user-specified storage pool: specific and class-wide, not only in the
13610         specific case.
13611         Raise CE when trying to set a not null access type object to null.
13612         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
13613         an explicit loop, because freeze nodes make its position variable.
13615         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
13616         null object.
13618 2005-11-14  Javier Miranda  <miranda@adacore.com>
13620         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
13621         Build_Stream_Procedure): Add the null-excluding attribute to the first
13622         formal.
13623         This has no semantic meaning under Ada95 mode but it is a
13624         requirement under Ada05 mode.
13626         * par-ch3.adb (P_Access_Definition): Addition of warning message if
13627         the null exclusion is used under Ada95 mode
13628         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
13629         (P_Access_Definition): Remove assertion that forbids the use of
13630         the null-exclusion feature in Ada95.
13632 2005-11-14  Robert Dewar  <dewar@adacore.com>
13634         * impunit.adb: Exclude container helper units not intended for use by
13635         users.
13637 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13639         * freeze.adb (Freeze_Entity): For an access formal that is an access
13640         to subprogram, freeze the anonymous subprogram type at the same time,
13641         to prevent later freezing in the wrong scope, such as the enclosing
13642         subprogram body.
13643         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
13644         subprogram whenever available.
13646 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13648         PR ada/23732
13649         * gnatvsn.ads (Library_Version): Bump to 4.1
13651 2005-11-14  Robert Dewar  <dewar@adacore.com>
13653         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
13654         Storage_Offset to avoid wrap around causing invalid results.
13656 2005-11-14  Pascal Obry  <obry@adacore.com>
13658         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
13659         cross-compiler.
13660         (Scan_Bind_Arg): Fail with an error message if -M option is used
13661         on a native compiler.
13663 2005-11-14  Robert Dewar  <dewar@adacore.com>
13664             Vincent Celier  <celier@adacore.com>
13666         * gprep.adb: Implement -C switch to scan comments
13668         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
13670         * scans.ads: Comment updates (including new use of Tok_Comment in
13671         preprocessing)
13673         * opt.ads: Add documentation for flags that are used by gprmake,
13674         currently and in the next version of gprmake.
13675         (Verbosity_Level): New variable
13676         Add Replace_In_Comments switch
13678         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
13679         and -vm.
13680         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
13682 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13684         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
13685         message, friendlier.
13687 2005-11-14  Robert Dewar  <dewar@adacore.com>
13689         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
13691 2005-11-14  Doug Rupp  <rupp@adacore.com>
13693         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
13695 2005-11-14  Robert Dewar  <dewar@adacore.com>
13697         * interfac.ads: Change declarations of IEEE float types so that we no
13698         longer need a separate version of this package for VMS.
13700 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13702         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
13703         internal entity created for the declaration of a child subprogram body
13704         with no spec as coming from source, to generate proper cross-reference
13705         information.
13707 2005-11-14  Vincent Celier  <celier@adacore.com>
13709         * make.adb (Compile_Sources): Change verbose message to minimum
13710         verbosity level High for "is in an Ada library", "is a read-only
13711         library" and "is an internal library",
13712         (Create_Binder_Mapping_File): Path name of ALI file for library project
13713         must include the library directory, not the object directory.
13714         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
13715         for new switches -vl, -vm and -vh.
13716         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
13717         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
13718         (Compile_Sources): Do not attempt to compile if an ALI file is missing
13719         in a project that is externally built.
13720         (Compute_All_Imported_Projects): New procedure
13721         (Gnatmake): Check if importing libraries should be regenerated because
13722         at least an imported library is more recent.
13723         (Initialize): For each project compute the list of the projects it
13724         imports directly or indirectly.
13725         (Add_Library_Search_Dir): New procedure, used in place of
13726         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13727         put in the search paths.
13728         (Add_Source_Search_Dir): New procedure, used in place of
13729         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13730         put in the search paths.
13731         (Mark_Directory): Resolve the absolute path the directory before marking
13732         it.
13734         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
13735         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13736         Switch. Do not handle any exception.
13737         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
13738         so that the switch is recognized as valid.
13739         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
13741 2005-11-14  GNAT Script  <nobody@adacore.com>
13743         * Make-lang.in: Makefile automatically updated
13745 2005-11-14  Pascal Obry  <obry@adacore.com>
13747         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
13748         used.
13749         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
13750         In both cases the last argument was dropped.
13752 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
13754         * namet.h: (Column_Numbe): New type.
13755         (Get_Column_Number): Define to sinput__get_column_number.
13756         (Instantiation): Define to sinput__instantiation.
13757         (Get_Column_Number): Declare.
13758         (Instantiation): Likewise.
13760 2005-11-14  Robert Dewar  <dewar@adacore.com>
13762         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
13763         syntax, which could cause compiler hangs.
13765 2005-11-14  Vincent Celier  <celier@adacore.com>
13767         * prj-ext.adb: Take into account new environment variable
13768         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
13769         are defined.
13770         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
13771         normalize its path name, making it absolute and resolving symbolic
13772         links, and replace the original if resolved path is different.
13774 2005-11-14  Vincent Celier  <celier@adacore.com>
13776         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
13777         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
13779 2005-11-14  Emmanuel Briot  <briot@adacore.com>
13781         * prj-pp.adb (Print): Do not output the with statement if the
13782         associated name is empty, which happens for virtual extending projects.
13783         (Print): Preserve the "extends all" attribute when printing the project.
13785         * prj-tree.ads (String_Value_Of): Add comment about returned value for
13786         a virtual extending project.
13788 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13790         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
13791         rhs of an assignment even if the type is unconstrained, when the
13792         context is non-expanding.
13793         In an inlined body, if the context type is private,
13794         resolve with its full view, which must be a composite type.
13796 2005-11-14  Robert Dewar  <dewar@adacore.com>
13797             Ed Schonberg  <schonberg@adacore.com>
13799         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13800         Do not give obsolescent warning on with of subprogram (since we
13801         diagnose calls)
13802         (Analyze_With_Clause): Add test for obsolescent package
13803         (Install_Context_Clauses): If the unit is the body of a child unit, do
13804         not install twice the private declarations of the parents, to prevent
13805         circular lists of Use_Clauses in a parent.
13806         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
13807         compiling body of child unit.
13808         Use new class N_Subprogram_Instantiation
13809         (Expand_With_Clause): If this is a private with_clause for a child unit,
13810         appearing in the context of a package declaration, then the implicit
13811         with_clauses generated for parent units are private as well.
13812         (License_Check): Do not generate message if with'ed unit is internal
13814 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
13815             Ed Schonberg  <schonberg@adacore.com>
13816             Thomas Quinot  <quinot@adacore.com>
13818         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
13819         names are internal, because they will not have a corresponding partner
13820         in the actual package.
13821         (Analyze_Formal_Package): Move the setting of the formal package spec's
13822         Generic_Parent field so that it occurs prior to analyzing the package,
13823         to allow proper operation of Install_Parent_Private_Declarations.
13824         (Analyze_Package_Instantiation): Set the instantiated package entity's
13825         Package_Instantiation field.
13826         (Get_Package_Instantiation_Node): Move declaration to package spec.
13827         Retrieve the N_Package_Instantiation node when the Package_Instantiation
13828         field is present.
13829         (Check_Generic_Child_Unit): Within an inlined call, the only possible
13830         instantiation is Unchecked_Conversion, for which no parents are needed.
13831         (Inline_Instance_Body): Deinstall and record the use_clauses for all
13832         parent scopes of a scope being removed prior to inlining an instance
13833         body.
13834         (Analyze_Package_Instantiation): Do not perform front-end inlining when
13835         the current context is itself an instance within a non-instance child
13836         unit, to prevent scope stack errors.
13837         (Save_References): If the node is an aggregate that is an actual in a
13838         call, rewrite as a qualified expression to preserve some type
13839         information, to resolve possible ambiguities in the instance.
13840         (Instance_Parent_Unit): New global variable to record the ultimate
13841         parent unit associated with a generic child unit instance (associated
13842         with the existing Parent_Unit_Visible flag).
13843         (type Instance_Env): New component Instance_Parent_Unit for stacking
13844         parents recorded in the global Instance_Parent_Unit.
13845         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
13846         stack.
13847         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
13848         it's not a top-level unit, and only do this if Instance_Parent_Unit is
13849         not already set. Replace test of Is_Child_Unit with test of parent's
13850         scope against package Standard. Add comments and a ??? comment.
13851         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
13852         on a child instance parent to test that the parent equals
13853         Instance_Parent rather than simply checking that the unit is not a
13854         child unit.
13855         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
13856         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
13857         a formal interface are ancestors of the corresponding actual.
13858         (Validate_Formal_Interface_Type): Additional legality checks.
13859         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
13860         interface types with ancestors.
13861         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
13862         to diagnose attempts to use generic within its own declaration.
13864 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13865             Javier Miranda  <miranda@adacore.com>
13867         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
13868         discriminant.
13869         (Build_Private_Derived_Type): The entity of the created full view of the
13870         derived type does not come from source. If after installing the private
13871         declarations of the parent scope the parent is still private, use its
13872         full view to construct the full declaration of the derived type.
13873         (Build_Derived_Record_Type): Relax the condition that controls the
13874         execution of the check that verifies that the partial view and
13875         the full view agree in the set of implemented interfaces. In
13876         addition, this test now only takes into account the progenitors.
13877         (Derive_Interface_Subprograms): No need to derive subprograms
13878         of ancestors that are interfaces.
13879         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
13880         associated code.
13881         Change name Is_Package to Is_Package_Or_Generic_Package
13882         (Complete_Subprograms_Derivation): Handle the case in which the full
13883         view is a transitive derivation of the ancestor of the partial view.
13884         (Process_Full_View): Rename local subprogram Find_Interface_In_
13885         Descendant to Find_Ancestor_Interface to leave the code more clear.
13886         Remove wrong code that avoids the generation of an error message
13887         when the immediate ancestor of the partial view is an interface.
13888         In addition some minor reorganization of the code has been done to
13889         leave it more clear.
13890         (Analyze_Type_Declaration): If type has previous incomplete tagged
13891         partial view, inherit properly its primitive operations.
13892         (Collect_Interfaces): Make public, for analysis of formal
13893         interfaces.
13894         (Analyze_Interface_Declaration): New procedure for use for regular and
13895         formal interface declarations.
13896         (Build_Derived_Record_Type): Add support for private types to the code
13897         that checks if a tagged type implements abstract interfaces.
13898         (Check_Aliased_Component_Type): The test applies in the spec of an
13899         instance as well.
13900         (Access_Type_Declaration): Clean up declaration of malformed type
13901         declared as an access to its own classwide type, to prevent cascaded
13902         crash.
13903         (Collect_Interfaces): For private extensions and for derived task types
13904         and derived protected types, the parent may be an interface that must
13905         be included in the interface list.
13906         (Access_Definition): If the designated type is an interface that may
13907         contain tasks, create Master_Id for it before analyzing the expression
13908         of the declaration, which may be an allocator.
13909         (Record_Type_Declaration): Set properly the interface kind, for use
13910         in allocators, the creation of master id's for task interfaces, etc.
13912 2005-11-14  Javier Miranda  <miranda@adacore.com>
13913             Ed Schonberg  <schonberg@adacore.com>
13915         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
13916         omitted in case of stream attribute subprograms.
13917         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
13918         appear immediately after a subprogram body, when there is no previous
13919         subprogram declaration.
13920         Change name Is_Package to Is_Package_Or_Generic_Package
13921         (Process_Formals): A non null qualifier on a non null named access
13922         type is not an error, and is a warning only if Redundant_Constructs
13923         are flagged.
13925 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
13926             Ed Schonberg  <schonberg@adacore.com>
13928         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
13929         nested within Analyze_Package_Specification to install the private
13930         declarations and use clauses within each of the parent units of a
13931         package instance of a generic child package.
13932         (Analyze_Package_Specification): When entering a private part of a
13933         package associated with a generic instance or formal package, the
13934         private declarations of the parent must be installed (by calling new
13935         procedure Install_Parent_Private_Declarations).
13936         Change name Is_Package to Is_Package_Or_Generic_Package
13937         (Preserve_Full_Attributes): For a synchronized type, the corresponding
13938         record is absent in a generic context, which does not indicate a
13939         compiler error.
13941 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13943         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13944         not try to rewrite a renamed stream attribute, because the operations
13945         on the type may not have been generated.
13946         Handle properly a renaming_as_body generated for a stream operation
13947         whose default is abstract because the object type itself is abstract.
13948         (Find_Type): If the type is incomplete and appears as the prefix of a
13949         'Class reference, it is tagged, and its list of primitive operations
13950         must be initialized properly.
13951         (Chain_Use_Clauses): When chaining the use clauses that appear in the
13952         private declaration of a parent unit, prior to compiling the private
13953         part of a child unit, find on the scope stack the proper parent entity
13954         on which to link the use clause.
13955         (Note_Redundant_Use): Emit a warning when a redundant use clause is
13956         detected.
13957         (Analyze_Object_Renaming): An attribute reference is not a legal object
13958         if it is not a function call.
13960 2005-11-14  Robert Dewar  <dewar@adacore.com>
13961             Ed Schonberg  <schonberg@adacore.com>
13963         * sem_eval.adb: Implement d.f flag
13964         (Subtype_Statically_Match): A generic actual type has unknown
13965         discriminants when the corresponding actual has a similar partial view.
13966         If the routine is called to validate the signature of an inherited
13967         operation in a child instance, the generic actual matches the full view,
13969 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
13970             Ed Schonberg  <schonberg@adacore.com>
13971             Robert Dewar  <dewar@adacore.com>
13972             Thomas Quinot  <quinot@adacore.com>
13974         * sem_res.adb (Resolve_Call): Provide a better error message whenever
13975         a procedure call is used as a select statement trigger and is not an
13976         entry renaming or a primitive of a limited interface.
13977         (Valid_Conversion): If the operand has a single interpretation do not
13978         remove address operations.
13979         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
13980         statement to inhibit warning.
13981         (Resolve_Unary_Op): Do not produce a warning when
13982         processing an expression of the form -(A mod B)
13983         Use Universal_Real instead of Long_Long_Float when we need a high
13984         precision float type for the generated code (prevents gratuitous
13985         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13986         (Resolve_Concatenation_Arg): Improve error message when argument is an
13987         ambiguous call to a function that returns an array.
13988         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
13989         there is an implicit operator in the given scope if we are within an
13990         instance: legality check has been performed on the generic.
13991         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
13992         after resolving operand, to avoid false warnings on overloaded calls.
13994 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13995             Javier Miranda  <miranda@adacore.com>
13997         PR ada/15604
13998         * sem_type.adb (Covers): In an inlined body, a composite type matches
13999         a private type whose full view is a composite type.
14000         (Interface_Present_In_Ancestor): Protect the frontend against
14001         previously detected errors to ensure that its compilation
14002         with assertions enabled gives the same output that its
14003         compilation without assertions.
14004         (Interface_Present_In_Ancestor): Add support for private types.
14005         Change name In_Actual to In_Generic_Actual (clean up)
14006         (Disambiguate): New predicate In_Actual, to recognize expressions that
14007         appear in the renaming declaration generated for generic actuals, and
14008         which must be resolved in the outer context.
14010 2005-11-14  Robert Dewar  <dewar@adacore.com>
14011             Thomas Quinot  <quinot@adacore.com>
14012             Hristian Kirtchev  <kirtchev@adacore.com>
14013             Ed Schonberg  <schonberg@adacore.com>
14015         * sem_util.ads, sem_util.adb: Change name Is_Package to
14016         Is_Package_Or_Generic_Package.
14017         (Check_Obsolescent): New procedure.
14018         (Set_Is_Public): Remove obsolete junk test.
14019         (Set_Public_Status): Do not set Is_Public on an object whose declaration
14020         occurs within a handled_sequence_of_statemets.
14021         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
14022         for a parameterless procedure.
14023         (Enter_Name): Recognize renaming declarations created for private
14024         component of a protected type within protected operations, so that
14025         the source name of the component can be used in the debugger.
14027 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
14028             Robert Dewar  <dewar@adacore.com>
14030         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
14031         of a generic subprogram are not visible outside the body.
14032         (Set_Warning_Switch): New procedure (code to set warning mode moved
14033         here from Switch.C so that it can be shared by pragma processing.
14034         (Check_References): Special case warning for non-modified non-imported
14035         volatile objects.
14036         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
14037         form with a string literal argument
14039 2005-11-14  Javier Miranda  <miranda@adacore.com>
14041         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
14042         anonymous access.
14043         (Write): Addition of "not null" to the anonymous access.
14044         (Read): Addition of "not null" to the anonymous access.
14045         (Write): Addition of "not null" to the anonymous access.
14047         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
14048         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
14049         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
14050         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
14051         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
14052         "not null" to the anonymous access.
14054 2005-11-14  Robert Dewar  <dewar@adacore.com>
14056         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
14057         offset values
14059 2005-11-14  Vincent Celier  <celier@adacore.com>
14061         * switch.adb (Bad_Switch): New procedure
14062         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
14063         message when in error.
14065         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
14066         Too_Many_Output_Files): Remove declarations, no longer used.
14067         (Scan_Nat): New parameter Switch
14068         (Scan_Pos): Ditto
14069         (Bad_Switch): New procedure
14071         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
14072         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
14073         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
14074         to Osint.Fail. Do not handle any exception.
14076 2005-11-14  Vincent Celier  <celier@adacore.com>
14078         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
14079         designates a non existent directory.
14081 2005-11-14  Robert Dewar  <dewar@adacore.com>
14083         * xgnatugn.adb: Replace invalid membership test by 'Valid
14085 2005-11-14  Vincent Celier  <celier@adacore.com>
14087         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
14088         there is no object directory.
14090 2005-11-14  Robert Dewar  <dewar@adacore.com>
14092         * usage.adb: Minor adjustment to output format, use nn instead of nnn
14093         (so that -gnateInnn does not run into next column)
14095 2005-11-14  Ed Falis  <falis@adacore.com>
14097         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
14098         "constrained"
14100 2005-11-14  Cyrille Comar  <comar@adacore.com>
14102         * s-chepoo.ads: Add comments on Dereference.
14103         Remove unnecessary inherited abstract primitives.
14104         Cosmetic cleanup.
14106 2005-11-14  Robert Dewar  <dewar@adacore.com>
14108         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
14109         node parameter, not needed, since it is available as Declaration_Node.
14111 2005-11-14  Geert Bosch  <bosch@adacore.com>
14113         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
14114         grammatically correct.
14116 2005-11-14  Vincent Celier  <celier@adacore.com>
14118         * s-fileio.ads: Correct spelling error in comment
14120 2005-11-14  Cyrille Comar  <comar@adacore.com>
14121             Robert Dewar  <dewar@adacore.com>
14122             Vincent Celier  <celier@adacore.com>
14123             Ben Brosgol  <brosgol@adacore.com>
14124             Jose Ruiz  <ruiz@adacore.com>
14125             Pascal Obry  <obry@adacore.com>
14127         * gnat_ugn.texi: 
14128         Document that -fstack-check is needed for strict compliance with the
14129         Ada 95 Reference Manual.
14130         Correct reference to VAX systems to meet HP guidelines
14131         Add documentation for new gnatmake switches -vl, -vm and -vh
14132         Replace DEC Ada by HP Ada
14133         Replace DIGITAL by HP
14134         Remove empty section on tools in compatibility section
14135         Clarify the Windows convention semantics.
14136         Document the Win32 calling convention.
14137         The Stdcall, Win32 and DLL convention are synonyms.
14138         Add a note in -gnatR description about zero size record components
14139         Note on new >= and <= warnings for -gnatwc
14140         Document that equal sign after -gnatm is optional.
14141         Note that strip is working fine on DLL built with a Library
14142         Project. The restriction apply only to DLL built with gnatdll.
14143         Update section about the way to debug a DLL.
14144         Update information about the DLL convention.
14145         Document -C switch for gnatprep
14146         Document new attribute Library_ALI_Dir
14147         Update elaboration doc to include implicit Elaborate pragmas now
14148         generated for subprogram instantiations.
14149         Document limitation on executable names that include spaces for --GCC,
14150         --GNATBIND, and --GNATLINK switches.
14151         Document that -w causes -gnatws to be added at start of gcc switches
14153         * gnat_rm.texi: Document that -mieee is needed for generating infinite
14154         and NaN values in case of overflow on machines that are not fully
14155         compliant with the IEEE floating-point standard.
14156         Create a section describing the set of compiler options needed for
14157         strict compliance with the Ada 95 Reference Manual.
14158         Add documentation for pragma Obsolescent applied to a package
14159         Clarify potential issues of mixed language programs related to the
14160         I/O buffering enabling in the elaboration of the GNAT runtime.
14161         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
14162         This documentation only patch adds extra documentsion for pragma
14163         Restrictions (No_Elaboration_Code), explaining why it is not possible
14164         to document this restriction in terms of allowed source constructs.
14165         Document string literal form of pragma Warnings
14166         Document new attribute Library_ALI_Dir
14167         Add documentation on stable attributes in project files that was missing
14169         * gnat-style.texi: Indicate that paragraphs within a single comment
14170         should be separated by empty comment lines
14172         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
14173         /05 respectively)
14175         * bindusg.adb: Minor cleanup, put -m before -M for consistency
14177 2005-11-14  Robert Dewar  <dewar@adacore.com>
14179         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
14180         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
14181         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
14182         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
14183         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
14184         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
14185         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
14186         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
14187         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
14188         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
14189         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
14190         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
14191         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
14192         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
14193         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
14194         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
14195         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
14196         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
14197         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
14198         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
14199         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14200         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
14201         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
14202         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
14203         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
14204         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
14205         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
14206         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
14207         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
14208         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
14209         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
14210         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
14211         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
14212         system-interix.ads, system-solaris-sparc.ads,
14213         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
14214         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
14215         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
14216         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
14217         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
14218         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
14219         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
14220         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14221         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
14222         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
14223         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
14224         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
14225         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
14226         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
14227         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
14228         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
14229         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
14230         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
14231         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
14232         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
14233         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
14234         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
14235         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
14236         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
14237         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
14238         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14239         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
14240         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
14241         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
14242         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
14243         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
14244         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
14245         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14246         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
14247         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
14248         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
14249         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14250         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
14251         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
14252         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
14253         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
14254         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
14255         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
14256         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
14257         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
14258         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
14259         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
14260         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
14261         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
14262         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
14263         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
14264         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
14265         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
14266         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
14267         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
14268         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
14269         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
14270         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
14271         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
14272         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
14273         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
14274         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
14275         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
14276         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
14277         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
14278         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
14279         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
14280         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
14281         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
14282         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
14283         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14284         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
14285         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
14286         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
14287         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
14288         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
14289         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
14290         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
14291         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
14292         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
14293         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
14294         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
14295         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
14296         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
14297         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
14298         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
14299         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
14300         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
14301         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
14302         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
14303         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
14304         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
14305         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
14306         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
14307         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
14308         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
14309         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
14310         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
14311         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
14312         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
14313         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
14314         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
14315         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
14316         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
14317         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
14318         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
14319         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
14320         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
14321         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
14322         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
14323         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
14324         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
14325         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
14326         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
14327         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
14328         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
14329         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
14330         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
14331         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
14332         a-numaux-darwin.ads, a-numaux-darwin.adb,
14333         a-swuwha.ads, a-stunha.ads: Minor reformatting
14335 2005-11-14  Robert Dewar  <dewar@adacore.com>
14337         PR ada/18434
14338         * osint-m.adb: Add pragma Elaborate_All for Osint
14340 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
14342         PR ada/23995
14343         * trans.c (call_to_gnu): Restore statement lost in translation.
14345 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
14347         * init.c: Use the Linux-specific section for the IA-64/Linux target.
14348         (__gnat_adjust_context_for_raise): Add conditional code so that the
14349         IA-64 is also supported.
14351 2005-11-03  James E Wilson  <wilson@specifix.com>
14353         PR ada/23427
14354         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
14355         TREE_OVERFLOW check.
14357 2005-09-21  Olivier Hainque  <hainque@adacore.com>
14359         PR ada/22418
14360         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
14361         as we create them to store a size in bits.
14363 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
14365         PR ada/21937
14366         PR ada/22328
14367         PR ada/22381
14368         PR ada/22383
14369         PR ada/22419
14370         PR ada/22420
14371         * utils2.c (build_return_expr): New helper function.
14372         * gigi.h (build_return_expr): Declare it.
14373         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
14374         of manually building the RETURN_EXPR tree.
14375         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
14376         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
14377         build_binary_op for the "target pointer" case.  Use build_return_expr
14378         instead of manually building the RETURN_EXPR tree.
14380 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
14382         PR ada/23788
14383         * s-tpinop.ads: Make this unit Preelaborate.
14385 2005-09-16  Andreas Jaeger  <aj@suse.de>
14387         * socket.c: Add string.h for memcpy.
14389 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
14391         * dec-io.ads, dec-io.adb: Removed, no longer used.
14393 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14395         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
14397         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14398         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
14399         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
14400         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
14401         dependent units are Preelaborate.
14402         (Initialize): Call Interrupt_Managemeent.Initialize and
14403         OS_Primitives.Initialize to ensure proper initialization of this unit.
14404         Remove use of System.Soft_Links
14405         Make this unit Preelaborate.
14407         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
14408         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
14409         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
14410         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
14411         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14412         s-tratas.ads, s-tasinf.ads: Minor reformatting.
14413         Add pragma Preelaborate, since these packages are suitable for this
14414         categorization.
14415         Update comments.
14417         * s-traent-vms.ads, s-intman-dummy.adb,
14418         s-taprop-dummy.adb: Make this unit Preelaborate.
14420         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14421         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
14422         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
14423         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
14424         s-intman-solaris.adb, s-intman-irix-athread.adb,
14425         s-intman-irix.adb: Mark this unit Preelaborate.
14426         (Initialize): New procedure.
14427         Update comments.
14429         * s-taspri-linux.ads: Removed.
14431         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
14432         as done by other implementations (e.g. posix).
14434         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
14435         responsible for deferring abort.
14436         Mark this unit Preelaborate.
14438         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
14439         proper initialization of the tasking run-time.
14441         * s-tasdeb.ads: Mark this unit Preelaborate.
14442         (Known_Tasks): Add explicit default value to avoid elaboration code.
14444         * s-inmaop-vms.adb (Elaboration code): Add call to
14445         Interrupt_Management.Initialize since the elaboration code depends on
14446         proper initialization of this package.
14448         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
14449         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
14450         s-osprim-posix.adb: Make this unit Preelaborate.
14452         * a-calend.adb: Add call to OS_Primitives.Initialize
14454         * a-elchha.adb: Update use of Except.Id.Full_Name.
14455         Minor reformatting.
14456         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
14458         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
14459         Move with clauses outside Warnings Off now that dependent units are
14460         Preelaborate.
14461         Use raise xxx with "..."; Ada 2005 form.
14463         * a-taside.ads, a-taside.adb:
14464         Remove some dependencies, to make it easier to make this unit truly
14465         Preelaborate.
14466         Rewrite some code to be conformant with Preelaborate rules.
14468         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
14469         marked Preelaborate in the future.
14471         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
14472         these units Preelaborate.
14474         * s-exctab.adb: Update use of Except.Id.Full_Name.
14476         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
14477         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
14478         Set_Exc_Stack_Addr): Removed, no longer used.
14479         Remove reference to *Machine_State_Addr*, no longer needed.
14481         * s-stalib.ads: Mark this unit as Preelaborate[_05].
14482         (Exception_Data): Full_Name is now a System.Address so that this unit
14483         can be made Preelaborate.
14484         Clean up/simplify code thanks to Full_Name being a System.Address.
14485         Remove obsolete pragma Suppress (All_Checks), no longer needed.
14487         * s-taskin.ads, s-taskin.adb:
14488         Move with clauses outside Warnings Off now that dependent units are
14489         Preelaborate.
14490         Make this unit Preelaborate.
14491         (Initialize): New proceduure, replace elaboration code and makes the
14492         set up of the tasking run-time cleaner.
14493         (Detect_Blocking): Now a function instead of a deferred boolean, to
14494         obey Preelaborate rules.
14496         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
14497         soft links, no longer used.
14499         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
14500         packages are suitable for this categorization.
14502         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
14503         since we compile run-time sources in Ada 2005 mode.
14504         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
14505         avoid having s-taprop*.adb depend on s-soflin and to avoid code
14506         duplication.
14507         Remove reference to *Machine_State_Addr*, no longer needed.
14509 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14511         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
14512         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14513         Remove reference to System.Exceptions.
14515         * s-mastop-x86.adb: Removed, no longer used.
14517         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
14519         * a-excach.adb: Minor reformatting.
14521         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
14522         instead fix new warnings that were hidden by this change.
14523         (AAA, ZZZ): Removed, replaced by...
14524         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
14525         are used instead of constants, to help make Ada.Exception truly
14526         preelaborate.
14527         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
14528         Raise_Storage_Error): File is now a System.Address, to simplify code.
14529         (Elab code): Removed, no longer used.
14530         (Null_Occurrence): Remove Warnings Off and make this construct
14531         preelaborate.
14532         Remove code related to front-end zero cost exception handling, since
14533         it is no longer used.
14534         Remove -gnatL/-gnatZ switches.
14536         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
14537         Update use of Except.Msg.
14539         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
14540         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
14541         to front-end zero cost exception handling, since it is no longer used.
14542         Remove -gnatL/-gnatZ switches.
14544         * lib-writ.ads: Minor reformatting
14545         Remove doc of UX
14547         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
14549         * Make-lang.in: Remove references to s-except.ads
14551         * s-except.ads: Removed, no longer used.
14553         * s-mastop.ads, s-mastop.adb:
14554         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14555         Remove reference to System.Exceptions.
14557         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
14558         switch-b.adb: Remove code related to front-end zero cost exception
14559         handling, since it is no longer used.
14560         Remove -gnatL/-gnatZ switches.
14562 2005-09-01  Robert Dewar  <dewar@adacore.com>
14563             Gary Dismukes  <dismukes@adacore.com>
14564             Javier Miranda  <miranda@adacore.com>
14566         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
14567         type by valid test and generate warning.
14568         (Tagged_Membership): Generate call to the run-time
14569         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
14570         Change formal name Subtype_Mark to Result_Definition in several calls to
14571         Make_Function_Specification.
14572         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
14573         check for proper accessibility of the operand of a class-wide allocator.
14574         The check can be left out if checks are suppressed or if the expression
14575         has a specific tagged type whose level is known to be safe.
14577         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
14578         generates the run-time check associated with null-excluding entities.
14579         (Expand_N_Return_Statement): Add tests to determine if the accessibility
14580         check on the level of the return expression of a class-wide function
14581         can be elided. The check usually isn't needed if the expression has a
14582         specific type (unless it's a conversion or a formal parameter). Also
14583         add a test for whether accessibility checks are suppressed. Augment
14584         the comments to describe the conditions for performing the check.
14586 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
14587             Javier Miranda  <miranda@adacore.com>
14588             Gary Dismukes  <dismukes@adacore.com>
14589             Ed Schonberg  <schonberg@adacore.com>
14591         * a-tags.adb (IW_Membership): Give support to
14592         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
14593         subprogram has been extended to look for the tag in the ancestors tag
14594         table.
14595         Update the structure of the GNAT Dispatch Table to reflect the
14596         additional two tables used in dispatching selects.
14597         Introduce appropriate array types and record components in
14598         Type_Specific_Data to reflect the two tables.
14599         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
14600         the TSD of a tag, indexed by position.
14601         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
14602         operation kind in the TSD of a tag, indexed by position.
14604         * a-tags.ads: Introduce an enumeration type to capture different
14605         primitive operation kinds. Define a constant reflecting the number of
14606         predefined primitive operations.
14607         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
14608         of an entry wrapper.
14609         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
14610         callable entity of a primitive operation.
14612         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
14613         primitive operations used in dispatching selects for limited
14614         interfaces, limited tagged, task and protected types what implement a
14615         limited interface.
14616         (Freeze_Type): Generate the bodies of the primitive operations used in
14617         dispatching selects for limited tagged, task and protected types that
14618         implement a limited interface. Generate statements to populate the two
14619         auxiliary tables used for dispatching in select statements.
14620         (Freeze_Record_Type): Add call to initialize the dispatch table entries
14621         associated with predefined interface primitive operations.
14622         (Build_Dcheck_Function): Change Set_Subtype_Mark to
14623         Set_Result_Definition.
14624         (Build_Variant_Record_Equality): Change Subtype_Mark to
14625         Result_Definition.
14626         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
14627         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
14628         (Build_Assignment): Simplify the code that adds the run-time-check.
14629         (Expand_N_Object_Declaration): Code cleanup.
14631         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
14632         entries when there is a protected type that implements a limited
14633         interface.
14635         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
14636         common routines used in expansion of dispatching selects.
14637         (Add_Private_Declarations): Select the appropriate protection type when
14638         there is a protected type that implements a limited interface.
14639         (Build_Parameter_Block): Generate a wrapped parameter block.
14640         (Build_Protected_Subprogram_Body): Select the appropriate type for
14641         locking entries when there is a protected type that implements a
14642         limited interface.
14643         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
14644         classified as entry wrappers.
14645         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
14646         asynchronous selects.
14647         (Expand_N_Conditional_Entry_Call): Add support for expansion of
14648         dispatching conditional selects.
14649         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
14650         protection when there is a protected type that implements limited
14651         interfaces.
14652         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
14653         timed selects.
14654         (Extract_Dispatching_Call): Extract the entity of the name of a
14655         dispatching call, the object parameter, actual parameters and
14656         corresponding formals.
14657         (Make_Initialize_Protection): Correct logic of protection initialization
14658         when there is a protected type that implements a limited interface.
14659         (Parameter_Block_Pack): Populate a wrapped parameter block with the
14660         values of actual parameters.
14661         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
14662         block and assign them to the original actual parameters.
14664         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
14665         (Build_Protected_Sub_Specification): Change the type and name of the
14666         last formal to account for the increased variety of protection modes.
14668         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
14669         entities. Used to save the value of the Is_Hidden attribute when the
14670         limited-view is installed.
14671         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
14672         the attribute of procedures classified as entry wrappers.
14673         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
14674         entity of a primitive wrapper.
14675         (Write_Entity_Flags): Output the name and value of the
14676         Is_Primitive_Wrapper attribute.
14677         (Write_Field27_Name): Output the name and entity of the field Wrapped_
14678         Entity.
14679         (Underlying_Type): If we have an incomplete entity that comes from
14680         the limited view then we return the Underlying_Type of its non-limited
14681         view if it is already available.
14682         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
14683         including operators.
14684         (Write_Field26_Name): Add entry for Overridden_Operation
14685         (Overridden_Operation): New attribute of functions and procedures.
14687         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
14688         predefined position in the dispatch table for the primitive operations
14689         used in dispatching selects.
14690         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
14691         predefined primitive operations and replace it with
14692         Default_Prim_Op_Count.
14693         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
14694         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
14695         the names of the generated primitive operations used in dispatching
14696         selects.
14697         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
14698         case of abstract interface types. They will be inherit by the objects
14699         implementing the interface.
14700         (Make_DT): There is no need to inherit the dispatch table of the
14701         ancestor interface for the elaboration of abstract interface types.
14702         The dispatch table will be inherited by the object implementing the
14703         interface.
14704         (Copy_Secondary_DTs): Add documentation.
14705         (Validate_Position): Improve this static check in case of
14706         aliased subprograms because aliased subprograms must have
14707         the same position.
14708         (Init_Predefined_Interface_Primitives): New subprogram that initializes
14709         the entries associated with predefined primitives of all the secondary
14710         dispatch tables.
14711         (Build_Anonymous_Access_Type): Removed.
14712         (Expand_Interface_Actuals): With the previous cleanup there is no need
14713         to build an anonymous access type. This allows further cleanup in the
14714         code generated by the expander.
14715         (Expand_Interface_Conversion): If the actual is an access type then
14716         build an internal function to handle the displacement. If the actual
14717         is null this function returns null because no displacement is
14718         required; otherwise performs a type conversion that will be
14719         expanded in the code that returns the value of the displaced actual.
14720         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
14721         conversions that have no effect in the generated code because no
14722         displacement is required. Code cleanup; use local variables to
14723         avoid repeated calls to the subprogram directly_designated_type().
14725         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
14726         Classify the primitive operations used in dispatching selects as
14727         predefined.
14728         (Implements_Limited_Interface): Determine whether some type either
14729         directly implements a limited interface or extends a type that
14730         implements a limited interface.
14731         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
14732         (Expand_Subtype_From_Expr): Do not build actual subtype if the
14733         expression is limited.
14734         (Find_Interface_Tag): Add code to handle class-wide types and
14735         entities from the limited-view.
14737         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
14738         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
14739         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
14740         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
14741         Set_Prim_Op_Kind.
14743         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
14744         of procedure name or prefix that appears as a trigger in a triggering
14745         alternative.
14747         * uintp.ads: Introduce constants Uint_11 and Uint_13.
14749 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14751         * s-tataat.adb, a-tasatt.adb:
14752         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
14754         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
14755         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
14756         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
14757         longer used.
14759 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14760             Jose Ruiz  <ruiz@adacore.com>
14762         * s-taprop-vxworks.adb:
14763         Move with clauses outside Warnings Off now that dependent units are
14764         Preelaborate.
14765         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
14766         initialization of this unit.
14767         (Specific): Add new procedures Initialize and Delete so that this
14768         package can be used for VxWorks 5.x and 6.x
14769         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
14770         differences between VxWorks 5.x and 6.x
14771         Minor reformatting.
14772         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
14773         caller.
14774         Use only Preelaborate-compatible constructs.
14776         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
14777         Primitives.Operations.
14778         (Delete, Initialize): New procedures.
14780         * s-osinte-vxworks.adb: Body used to handle differences between
14781         VxWorks 5.x and 6.x
14782         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
14784         * s-osinte-vxworks.ads: Minor reformatting.
14785         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
14786         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
14787         and 6.
14788         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
14789         between Vxworks 5 and 6.
14790         (taskLock, taskUnlock): Removeed, no longer used.
14792         * adaint.c: The wait.h header is not located in the sys directory on
14793         VxWorks when using RTPs.
14794         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
14795         using RTPs.
14796         (__gnat_dup): dup is available on Vxworks when using RTPs.
14797         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
14799         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
14801         * expect.c: The wait.h header is not located in the sys directory on
14802         VxWorks when using RTPs.
14804 2005-09-01  Thomas Quinot  <quinot@adacore.com>
14806         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
14808         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
14810         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
14811         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14812         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
14813         g-soccon-freebsd.ads: Add new constants:
14814          IP_MULTICAST_IF
14815          SO_RCVTIMEO/SO_SNDTIMEO
14816          IOV_MAX
14818         * gen-soccon.c:
14819         Move all target-specific file inclusions and macro definitions to
14820         gsocket.h, in order to ensure that any C code in socket.c will see a
14821         set of constants that is consistent with the contents of g-soccon.ads.
14823         * gsocket.h: Code imported from gen-soccon.c:
14824         Move all target-specific file inclusions and macro definitions to
14825         gsocket.h, in order to ensure that any C code in socket.c will see a set
14826         of constants that is consistent with the contents of g-soccon.ads.
14827         This change also makes gen-soccon self-contained (removing dependencies
14828         upon GCC internal headers).
14830         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
14831         iovecs at a time.
14832         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
14834         * socket.c: Minor reformatting.
14836 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
14837             Thomas Quinot  <quinot@adacore.com>
14839         * fname-sf.adb, mlib-tgt.ads,
14840         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
14841         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
14842         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
14843         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
14844         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
14845         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
14846         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
14847         makegpr.adb: Remove redundant use_clauses.
14849 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14851         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
14852         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
14853         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
14854         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
14855         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
14856         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
14857         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
14858         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
14859         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14860         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
14861         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
14862         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
14863         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
14864         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
14865         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
14866         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14867         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
14868         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
14869         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
14870         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
14871         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
14872         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
14873         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
14874         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
14875         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
14876         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
14877         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
14878         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
14879         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
14880         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
14881         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
14882         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
14883         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
14884         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
14885         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
14886         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
14887         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
14888         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
14889         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
14890         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
14891         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
14892         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
14893         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
14894         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
14895         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
14896         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
14897         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
14898         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
14899         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
14900         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
14901         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
14902         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
14903         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
14904         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
14905         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
14906         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
14907         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
14908         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
14909         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
14910         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
14911         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
14912         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
14913         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
14914         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
14915         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
14916         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
14917         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
14918         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
14919         and always use the no parameter form for consistency.
14921         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
14923 2005-09-01  Robert Dewar  <dewar@adacore.com>
14925         * binde.adb: Minor reformatting
14926         (Find_Elab_Order): Output warning if -p used with static elab order
14928 2005-09-01  Robert Dewar  <dewar@adacore.com>
14930         * checks.adb (Check_Needed): New procedure, deals with removing checks
14931         based on analysis of short-circuited forms. Also generates warnings for
14932         improper use of non-short-circuited forms.
14933         Code clean ups.
14935 2005-09-01  Robert Dewar  <dewar@adacore.com>
14937         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14938         with 'Valid tests.
14940 2005-09-01  Robert Dewar  <dewar@adacore.com>
14942         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14943         spec.
14944         Implement new insertion char < (conditional warning)
14945         * errutil.adb, erroutc.adb: Implement new insertion char <
14946         (conditional warning).
14947         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
14948         (Error_Msg_Warn): New variable for < insertion char.
14949         * prj-nmsc.adb: Implement new errout insertion char < (conditional
14950         warning).
14951         (Check_For_Source): Change value of Source_Id only after the current
14952         source has been dealt with.
14954 2005-09-01  Robert Dewar  <dewar@adacore.com>
14955             Doug Rupp  <rupp@adacore.com>
14957         * exp_attr.adb: Handle vax fpt for 'Valid attribute
14958         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
14959         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
14960         (Valid_D, Valid_F, Valid_G): New functions
14962 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
14963             Hristian Kirtchev  <kirtchev@adacore.com>
14964             Javier Miranda  <miranda@adacore.com>
14966         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
14967         from object notation, the original node is unanalyzed and carries no
14968         semantic information, so that accessiblity checks must be performed on
14969         the type of the actual itself.
14970         (Expand_N_Subprogram_Declaration): Change last actual parameter for
14971         compatibility with Build_Protected_Sub_Specification.
14972         (Check_Overriding_Inherited_Interfaces): Add suport to handle
14973         overloaded primitives.
14974         (Register_Interface_DT_Entry): Use the new name of the formal
14975         the the calls to Expand_Interface_Thunk
14977         * exp_dbug.ads: Augment comments on encoding of protected types to
14978         include the generation of dispatching subprograms when the type
14979         implements at least one interface.
14981         * lib.ads: Extend information in Load_Stack to include whether a given
14982         load comes from a Limited_With_Clause.
14984         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
14985         whether a potential circularity is harmless, because it includes units
14986         loaded through a limited_with clause. Extends previous treatment which
14987         did not handle properly arbitrary combinations of limited and
14988         non-limited clauses.
14990 2005-09-01  Nicolas Setton  <setton@adacore.com>
14992         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
14993         to be encoded as typ___XBLU_lowerbound__upperbound instead of
14994         typ___XB_lowerbound__upperbound.
14996 2005-09-01  Thomas Quinot  <quinot@adacore.com>
14998         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
14999         dummy access formal for RACW/RAS TypeCode TSS.
15000         (Build_TypeCode_Call): Do not generate dummy null access actual for
15001         calls to the TypeCode TSS.
15003 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15005         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
15006         fully qualified name, to distinguish instances with the same local name.
15008         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
15009         fully qualified.
15011 2005-09-01  Robert Dewar  <dewar@adacore.com>
15013         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
15014         packed arrays.
15016 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
15018         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
15019         (Free): New deallocation procedure for filter elements
15020         (Close): Deallocate any existing filter for the concerned connection
15022 2005-09-01  Laurent Pautet  <pautet@adacore.com>
15024         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
15025         position set is provided, we compute one in order to reduce the maximum
15026         length of the keys.  This computation first selects a character
15027         position between 1 and the minimum length of the keys in order to
15028         avoid reducing one of the keys to an empty string.
15029         (Initialize, Compute): When the ratio V to K is too low, the algorithm
15030         does not converge. The initialization procedure now comes with a
15031         maximum number of iterations such that when exceeded, an exception is
15032         raised in Compute. The user can initialize this ratio to another value
15033         and try again
15034         Reformating and updated headers.
15036 2005-09-01  Javier Miranda  <miranda@adacore.com>
15038         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
15039         that given an entity T creates and returns an Itype that duplicates the
15040         contents of T. The returned Itype has the null-exclusion
15041         attribute set to True, and its Etype attribute references T
15042         to keep the association between the two entities.
15043         Update copyright notice
15045         * sem_aggr.adb (Check_Can_Never_Be_Null,
15046         Aggregate_Constraint_Checks, Resolve_Aggregate,
15047         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
15049         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
15051 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
15052             Robert Dewar  <dewar@adacore.com>
15053             Hristian Kirtchev  <kirtchev@adacore.com>
15055         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
15056         Result_Definition.
15058         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
15059         function specs.
15060         Call Set_Result_Definition instead of Set_Subtype_Mark.
15061         (P_Subprogram_Specification): Add parsing of anonymous access result
15062         plus null exclusions. Call Set_Result_Definition instead of
15063         Set_Subtype_Mark.
15065         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
15066         (P_Access_Type_Definition): Add parsing for an anonymous access result
15067         subtype, plus parsing for null exclusions. Call Set_Result_Definition
15068         instead of Set_Subtype_Mark.
15070         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
15071         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
15072         (Result_Definition): New function for N_Function_Specifications.
15073         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
15074         N_Function_Specification.
15075         (Set_Null_Exclusion_Present): Allow this flag for
15076         N_Function_Specification.
15077         (Set_Result_Definition): New procedure for N_Function_Specifications.
15078         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
15079         and N_Function_Specification.
15081         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
15082         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
15083         Add support for LIMITED NEW for Ada 2005 AI-419
15084         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
15085         syntax for anonymous access results.
15086         Replace Subtype_Mark field by Result_Definition in
15087         N_Function_Specification and N_Access_Definition specs.
15088         Add Null_Exclusion_Present to spec of N_Function_Specification.
15089         (Result_Definition): New function for N_Function_Specification and
15090         N_Access_Function_Definition.
15091         (Set_Result_Definition): New procedure for N_Function_Specification and
15092         N_Access_Function_Definition.
15094         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
15095         Result_Definition for cases of N_Access_Function_Definition and
15096         N_Function_Specification.
15097         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
15099 2005-09-01  Vincent Celier  <celier@adacore.com>
15101         * lib-writ.adb: Update Copyright notice
15102         (Write_With_Lines): On platforms where file names are case-insensitive,
15103         record the file names in lower case.
15104         (Write_ALI): For D lines, on platforms where file names are
15105         case-insensitive, record the file names in lower case.
15107 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15108             Emmanuel Briot  <briot@adacore.com>
15110         * lib-xref.adb (Output_Overridden_Op): Display information on
15111         overridden operation.
15113         * lib-xref.ads: Add documentation on overridden operations.
15115         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
15116         information.
15118         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
15119         overriding entity information.
15121 2005-09-01  Vincent Celier  <celier@adacore.com>
15123         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
15124         including those that are inherited.
15126 2005-09-01  Robert Dewar  <dewar@adacore.com>
15128         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
15130         * par-prag.adb: Implement new pragma Debug_Policy
15132         * sem_prag.adb Implement new pragma Debug_Policy
15133         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
15134         Component_Size attribute specification. Give warning for ignored pragma
15135         Pack.
15137         * snames.h, snames.ads, snames.adb: Introduce entries in
15138         Preset_Names for Name_Disp_Asynchronous_Select,
15139         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
15140         Name_Disp_Timed_Select.
15141         New pragma Debug_Policy
15143         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
15144         explicitly.
15145         Switch -gnata also sets Debug_Pragmas_Enabled
15147         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
15148         handle an explicit -gnata when compiling predefined files.
15150 2005-09-01  Vincent Celier  <celier@adacore.com>
15152         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
15153         directories of projects that have no Ada sources.
15155 2005-09-01  Robert Dewar  <dewar@adacore.com>
15157         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
15158         (makes a difference for wide characters)
15160         * widechar.adb, widechar.ads:
15161         Add Wide_Char_Byte_Count feature to count chars vs bytes
15163 2005-09-01  Thomas Quinot  <quinot@adacore.com>
15164             Ed Schonberg  <schonberg@adacore.com>
15165             Robert Dewar  <dewar@adacore.com>
15167         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
15168         'Address attribute reference with an overloaded prefix, use the
15169         location of the prefix (not the location of the attribute reference) as
15170         the error location.
15171         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
15172         a function renaming thereof, is a valid prefix for 'Size (where it is
15173         intepreted as a function call).
15174         (Statically_Denotes_Entity): New predicate to determine whether the
15175         prefix of an array attribute can be considered static.
15177         PR ada/9087
15178         (Eval_Attr): Fix failure to evaluate Component_Size for
15179         unconstrained arrays (resulted in wrong value in packed case, since
15180         back end cannot handle this case)
15182 2005-09-01  Robert Dewar  <dewar@adacore.com>
15184         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
15185         error msgs for most common cases.
15186         Use new errout insertion char < (conditional warning)
15188 2005-09-01  Javier Miranda  <miranda@adacore.com>
15189             Ed Schonberg  <schonberg@adacore.com>
15191         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
15192         become local to the whole package.
15193         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
15194         the package was already analyzed the new algorithm "replaces" the
15195         real entities by the shadow ones. This is required to ensure that
15196         the order of these entities in the homonym chains does not change;
15197         otherwise we can have undefined references at linking time because
15198         in case of conflicts the external name of the entities will have
15199         a suffix that depends on the order of the entities in the chain.
15200         (Remove_Limited_With_Clause): Complementary code that completes the
15201         new algorithm and replaces the shadow entities by the real ones.
15202         (Install_Limited_Withed_Unit): When unchaining entities before the
15203         installation of the shadow entities, only regular entities of the
15204         public part must be taken into account. This is required to
15205         keep this routine in synch with the work done by Remove_Limited_
15206         With_Clause
15207         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
15208         even if unit is analyzed, because the analysis of the unit is
15209         idempotent in any case, and the limited view of the unit may have to
15210         be installed for proper visibility.
15211         (Expand_Limited_With_Clause): Even if the unit in the implicit
15212         with_clause has been analyzed already, a limited view of the package
15213         must be built for the current context, if it does not exist yet.
15215 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15216             Javier Miranda  <miranda@adacore.com>
15217             Gary Dismukes  <dismukes@adacore.com>
15219         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
15220         defining entity for the instance body, make a new defining identifier
15221         rather than copying the entity of the spec, to prevent accidental
15222         sharing of the entity list.
15223         (Check_Private_View): When exchanging views of private types, build the
15224         list of exchanged views as a stack, to ensure that on exit the exchanges
15225         are undone in the proper order.
15226         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
15227         Restore the compilation environment in case of instantiation_error.
15228         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
15229         for an anonymous access result.
15230         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
15231         (Formal_Entity): Handle properly the case of a formal package that
15232         denotes a generic package renaming.
15234 2005-09-01  Thomas Quinot  <quinot@adacore.com>
15236         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
15237         clause if the array aggregate is surrounded by parentheses.
15239 2005-09-01  Cyrille Comar  <comar@adacore.com>
15240             Gary Dismukes  <dismukes@adacore.com>
15241             Ed Schonberg  <schonberg@adacore.com>
15242             Javier Miranda  <miranda@adacore.com>
15244         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
15245         underlying type
15246         to check if a type is Constrained in cases related to code generation
15247         (rather than semantic checking) since otherwise we do not generate
15248         similar code for mutable private types depending if their
15249         discriminants are visible or not.
15250         (Check_Abstract_Overriding): Do not complain about failure to override
15251         the primitive operations used in dispatching selects since they will
15252         always be overriden at the freeze point of the type.
15253         (Access_Definition): Separate out handling for resetting the scope
15254         of an anonymous access function result type. Retrieve the scope
15255         of the associated function rather than using Current_Scope, which
15256         does not have a consistent value (depends on whether we're in the
15257         middle of analyzing formal parameters). Add ??? comment about
15258         finding a cleaner way to handle the special cases of scope setting.
15259         (Process_Incomplete_Dependents): A protected operation is never a
15260         dispatching operation (only its wrapper may be).
15261         (Build_Derived_Record_Type): In case of tagged private types that
15262         implement interfaces add derivation of predefined primitive
15263         operations.
15264         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
15265         by two parameters that are used in case of derivation from abstract
15266         interface types: No_Predefined_Prims is used to avoid the derivation
15267         of predefined primitives from the interface, and Predefined
15268         Prims_Only is used to complete the derivation predefined primitives
15269         in case of private tagged types implementing interfaces.
15270         Fix typo in comments
15271         (Find_Interface_In_Descendant): Protect the frontend against
15272         wrong code with large circularity chains.
15273         (Is_Private_Overriding): Add support for entities overriding interface
15274         subprograms. The test failed because Entities associated with overriden
15275         interface subprograms are always marked as hidden (and used to build
15276         the secondary dispatch table); in this case the overriden entity is
15277         available through the field abstract_interface_alias (cf. override_
15278         dispatching_operation)
15279         (Access_Definition): Set the scope of the type to Current_Scope for the
15280         case of a function with an anonymous access result type.
15281         (Access_Subprogram_Declaration): Handle creation of the type entity for
15282         an access-to-function type with an anonymous access result.
15283         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
15284         in handling for N_Access_Function_Definition.
15285         (Analyze_Subtype_Declaration): Modify the text of error message.
15286         (Derived_Type_Declaration): Modify the text of error message.
15287         (Process_Subtype): Modify the text of error message plus cleanup
15288         of one redundant error message.
15289         (Analyze_Component_Declaration): Code cleanup.
15290         (Analyze_Object_Declaration): Code cleanup.
15291         (Analyze_Subtype_Declaration): Propagate the null-exclusion
15292         attribute in case of access types. Code cleanup.
15293         (Array_Type_Declaration): Code cleanup.
15294         (Process_Discriminants): Create the new null-excluding itype
15295         if required. Code cleanup.
15296         (Process_Subtype): Create the new null-excluding itype if
15297         required. Code cleanup.
15298         (Build_Derived_Record_Type): Code cleanup to avoid calling
15299         twice the subprogram derive_subprograms in case of private
15300         types that implement interfaces. In this particular case the
15301         subprogram Complete_Subprograms_Derivation already does the
15302         job associated with the second call.
15304         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
15305         conversion to the full view when generating an operation for a
15306         discriminant whose type may currently be private.
15308 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15309             Javier Miranda  <miranda@adacore.com>
15311         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
15312         V (Obj.F), the rewriting does not involve the indexed component, but
15313         only the selected component itself.
15314         Do not apply the transformation if the analyzed node is an actual of a
15315         call to another subprogram.
15316         (Complete_Object_Operation): Retain the entity of the
15317         dispatching operation in the selector of the rewritten node. The
15318         entity will be used in the expansion of dispatching selects.
15319         (Analyze_One_Call): Improve location of the error message associated
15320         with interface.
15321         (Analyze_Selected_Component): No need to resolve prefix when it is a
15322         function call, resolution is done when parent node is resolved, as
15323         usual.
15324         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
15325         when attempting to resolve a call transformed from its object notation.
15326         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
15327         of the argument list for each interpretation of the operation.
15328         (Try_Object_Operation): The designated type of an access parameter may
15329         be an incomplete type obtained through a limited_with clause, in which
15330         case the primitive operations of the type are retrieved from its full
15331         view.
15332         (Analyze_Call): If this is an indirect call, and the return type of the
15333         access_to_subprogram is incomplete, use its full view if available.
15335 2005-09-01  Javier Miranda  <miranda@adacore.com>
15336             Gary Dismukes  <dismukes@adacore.com>
15338         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
15339         access types the null-exclusion and access-to-constant attributes must
15340         also match.
15341         (Analyze_Return_Statement): When the result type is an anonymous access
15342         type, apply a conversion of the return expression to the access type
15343         to ensure that appropriate accessibility checks are performed.
15344         (Analyze_Return_Type): For the case of an anonymous access result type,
15345         generate the Itype and set Is_Local_Anonymous_Access on the type.
15346         Add ??? placeholder for check to disallow returning a limited object
15347         in Ada 2005 unless it's an aggregate or a result of a function call.
15348         Change calls from Subtype_Mark to Result_Definition.
15349         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
15350         Result_Definition in call to Make_Function_Specification.
15351         (Build_Body_To_Inline): Change Set_Subtype_Mark to
15352         Set_Result_Definition.
15353         (Make_Inequality_Operator): Change formal Subtype_Mark to
15354         Result_Definition in call to Make_Function_Specification.
15355         (Process_Formals): Create the new null-excluding itype if required.
15356         (New_Overloaded_Entity): For an entity overriding an interface primitive
15357         check if the entity also covers other abstract subprograms in the same
15358         scope. This is required to handle the general case, that is, overriding
15359         other interface primitives and overriding abstract subprograms inherited
15360         from some abstract ancestor type.
15361         (New_Overloaded_Entity): For an overriding entity that comes from
15362         source, note the operation that it overrides.
15363         (Check_Conformance, Type_Conformant): Addition of one new formal
15364         to skip controlling formals in the analysis. This is used to
15365         handle overloading of abstract interfaces.
15366         (Base_Types_Match): Add missing case for types imported from
15367         limited-with clauses
15368         (New_Overloaded_Entity): Add barrier to protect the use of
15369         the "alias" attribute.
15371 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15373         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
15374         verify that the procedure and the entry are mode conformant.
15375         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
15376         as a different operator, which is often a cut-and-paste error.
15378 2005-09-01  Javier Miranda  <miranda@adacore.com>
15379             Ed Schonberg  <schonberg@adacore.com>
15381         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
15382         used in controlling parameters exclude null because it is necessary to
15383         read the tag to dispatch, and null has no tag.
15384         (Override_Dispatching_Operation): If the previous operation is inherited
15385         from an interface, it becomes hidden  and does not participate in later
15386         name resolution.
15388 2005-09-01  Javier Miranda  <miranda@adacore.com>
15389             Ed Schonberg  <schonberg@adacore.com>
15390             Gary Dismukes  <dismukes@adacore.com>
15392         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
15393         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
15394         the expander will generate the corresponding run-time check to evaluate
15395         the expression.
15396         (Resolve_Call): Check for legal type of procedure name or prefix that
15397         appears as a trigger in a triggering alternative.
15398         (Valid_Conversion): If expression is ambiguous and the context involves
15399         an extension of System, remove System.Address interpretations.
15400         (Resolve_Qualified_Expression): Reject the case of a specific-type
15401         qualification applied to a class-wide argument. Enhance comment
15402         to explain checking of Original_Node.
15403         (Resolve_Type_Conversion): The location of the error message was not
15404         general enough to handle the general case and hence it has been removed.
15405         In addition, this patch improves the text of the message.
15406         (Resolve_Type_Conversion): Add missing support for access to interface
15407         types.
15408         (Resolve_Type_Conversion): If the target is a class-wide interface type,
15409         do not expand if the expression is the actual in a call, because proper
15410         expansion will take place when the call itself is expanded.
15411         (Resolve_Allocator): If the context is an unchecked conversion, the
15412         allocator inherits its storage pool, if any, from the target type of
15413         the conversion.
15415 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15416             Javier Miranda  <miranda@adacore.com>
15418         * sem_type.adb (Add_One_Interp): If a candidate operation is an
15419         inherited interface operation that has an implementation, use the
15420         implementation to avoid spurious ambiguities.
15421         (Interface_Present_In_Ancestor): In case of concurrent types we can't
15422         use the Corresponding_Record_Typ attribute to look for the interface
15423         because it is set by the expander (and hence it is not always
15424         available). For this reason we traverse the list of interfaces
15425         (available in the parent of the concurrent type).
15426         (Interface_Present_In_Ancestor): Handle entities from the limited view
15428 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15430         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
15431         from the list of required components.
15432         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
15433         primitive procedure of a limited interface with a controlling first
15434         parameter.
15435         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
15436         of an entry.
15437         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
15438         capture if it is generated in the second operand of a short-circuit
15439         operation.
15440         Do not capture values for variables with address clauses.
15441         (Is_Object_Reference): Treat a function call as an object reference only
15442         if its type is not Standard_Void_Type.
15444 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15446         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
15447         to a variable that is statically known to be constant.
15449 2005-09-01  Geert Bosch  <bosch@adacore.com>
15450             Robert Dewar  <dewar@adacore.com>
15452         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
15453         (VAXGF_Safe_First): Idem.
15455 2005-09-01  Robert Dewar  <dewar@adacore.com>
15456             Arnaud Charlet  <charlet@adacore.com>
15458         * g-dirope.ads: Minor reformatting
15459         Document that bounds of result of Base_Name match the input index
15460         positions.
15461         Add documentation on environment variable syntax for Expand_Path
15463         * gnat_ugn.texi: Update documentation to include mention of -m switches
15464         Document new treatment of wide characters in max line length
15465         style check.
15466         Remove -gnatL/-gnatZ switches, no longer used.
15467         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
15468         of -gnata switch.
15470         * gnat_rm.texi: Add doc for two argument form of pragma
15471         Float_Representation.
15472         Add documentation for pragma No_Strict_Aliasing
15473         Add note that explicit component clause overrides pragma Pack.
15474         Add documentation of pragma Debug_Policy
15476 2005-09-01  Matthew Heaney  <heaney@adacore.com>
15478         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
15479         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
15480         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
15481         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
15482         draft (Draft 13, August 2005) of Ada Amendment 1.
15484 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
15486         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
15487         Note that the platform-specific version of g-soccon.ads for VMS is now
15488         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
15489         really is a package spec).
15490         Replace s-taspri-linux.ads by s-taspri-posix.ads
15491         Remove references to s-mastop-x86.adb
15493         * system-vxworks-xscale.ads: Removed, no longer used.
15494         * s-vxwork-xscale.ads: Removed, no longer used.
15496 2005-09-01  Robert Dewar  <dewar@adacore.com>
15498         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
15499         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
15500         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
15501         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
15502         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
15503         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
15504         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
15505         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
15506         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
15507         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
15508         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
15509         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
15510         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
15511         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
15512         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
15513         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
15514         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
15515         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
15516         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
15517         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
15518         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
15520 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
15522         PR ada/23187
15523         * adaint.c
15524         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
15526 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
15527             Doug Rupp  <rupp@adacore.com>
15529         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
15530         when needed.
15531         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
15532         this code in the GNAT run-time.
15534         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
15536         PR ada/21053
15537         * init.c (__gnat_error_handler [many]): Mark "msg" as const
15538         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
15540         (__gnat_inside_elab_final_code): Moved here from
15541         Standard_Library and only defined for the compiler.
15542         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
15543         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
15544         using RTPs because directly vectored Interrupt routines are not
15545         supported on this configuration.
15546         (getpid): Do not redefine this function on VxWorks when using RTPs
15547         because this primitive is well supported by the RTP libraries.
15548         (copy_msg): Correct the code that checks for buffer overflow.
15549         Discovered during code reading.
15551 2005-08-29  Olivier Hainque  <hainque@adacore.com>
15553         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
15554         a library level mutable variable with an initializer, tell
15555         build_allocator to ignore the initializer's size. It may not be large
15556         enough for all the values that might be assigned to the variable later
15557         on.
15559 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
15560             Eric Botcazou  <ebotcazou@adacore.com>
15562         * trans.c: Protect < in error msg with quote
15563         Replace GCC_ZCX by Back_End_Exceptions.
15564         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
15565         has been sufficiently aligned in the record.
15567 2005-08-15  James E. Wilson  <wilson@specifix.com>
15569         * system-linux-alpha.ads: Change ia64 to alpha.
15571 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
15573         * decl.c, utils.c: Fix comment typos.
15575 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
15577         * decl.c, init.c, initialize.c: Fix comment typos.
15579 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
15581         Make CONSTRUCTOR use VEC to store initializers.
15582         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
15583         CONSTRUCTOR_ELTS.
15584         * trans.c (extract_values): Likewise.
15585         * utils.c (convert, remove_conversions): Likewise.
15586         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
15587         gnat_build_constructor): Likewise.
15589 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
15591         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
15592         DECL_SECTION_NAME.
15593         (compare_field_bitpos): Likewise.
15595 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
15597         * utils.c (create_var_decl): Only set DECL_COMMON on
15598         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
15599         VAR_OR_FUNCTION_DECL_P.
15601 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
15603         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
15604         removed.
15606 2005-07-07  Pascal Obry  <obry@adacore.com>
15608         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
15609         returned type on Windows.
15611         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
15612         routine.
15614         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
15615         exception in this case.
15616         Simplify the code as "Image (Image'Range)" = "Image".
15618 2005-07-07  Vincent Celier  <celier@adacore.com>
15620         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
15621         the destructor/constructor attributes for <lib>final/<lib>init.
15623         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
15625 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
15627         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
15628         type if the parameter is not passed by copy but reference by default.
15630 2005-07-07  Javier Miranda  <miranda@adacore.com>
15632         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
15633         Reimplementation of the support for abstract interface types in order
15634         to leave the code more clear and easy to maintain.
15636         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
15637         abstract interface types in order to leave the code clearer and easier
15638         to maintain.
15640         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
15641         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
15642         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
15643         appropriate entry of the secondary dispatch table.
15644         (Make_DT): Add code to inherit the secondary dispatch tables of
15645         the ancestors.
15647         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
15648         implementing both functionalities by means of a common routine, each
15649         routine has its own code.
15651 2005-07-07  Javier Miranda  <miranda@adacore.com>
15653         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
15655         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
15656         types:
15657         --
15658           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15659         --
15661         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
15662         use of tag incomplete types.
15664         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
15665         give support to tagged incomplete types.
15667         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
15668         expression is a discriminant reference and its type is private, as can
15669         happen within a stream operation for a mutable record, use the full
15670         view of the type to resolve the case alternatives.
15671         (Analyze_Assignment): Check wrong dereference of incomplete types.
15673         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
15674         types.
15676         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
15677         incomplete types.
15679         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
15680         N_Incomplete_Type_Declaration nodes.
15682         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
15683         Tag_Present to give support to tagged incomplete types:
15684         --
15685           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15686         --
15688 2005-07-07  Olivier Hainque  <hainque@adacore.com>
15690         PR ada/22301
15691         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
15692         definitions for the Unwind wrappers in the compiler case.
15694 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
15695             Javier Miranda  <miranda@adacore.com>
15697         * par-load.adb (Load): If a child unit is loaded through a limited_with
15698         clause, each parent must be loaded as a limited unit as well.
15700         * sem_ch10.adb (Previous_Withed_Unit): Better name for
15701         Check_Withed_Unit. Return true if there is a previous with_clause for
15702         this unit, whether limited or not.
15703         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
15704         the current unit.
15705         (Is_Visible_Through_Renamings): New local subprogram of install_limited
15706         _withed_unit that checks if some package installed through normal with
15707         clauses has a renaming declaration of package whose limited-view is
15708         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
15709         of the current Draft document for Ada 2005.
15710         (Analyze_Context): Complete the list of compilation units that
15711         are allowed to contain limited-with clauses. It also contains
15712         checks that were previously done by Install_Limited_Context_Clauses.
15713         This makes the code more clear and easy to maintain.
15714         (Expand_Limited_With_Clause) It is now a local subprogram of
15715         Install_Limited_Context_Clauses, and contains the code that adds
15716         the implicit limited-with clauses for parents of child units.
15717         This functionality was prevously done by Analyze_Context.
15719         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
15720         incomplete type.
15722         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
15723         been erroneously named in a limited-with clause of its own context.
15724         In this case the error has been previously notified by Analyze_Context.
15726 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
15728         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
15729         generic package that contains local declarations with the same name.
15730         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
15732 2005-07-07  Bernard Banner  <banner@adacore.com>
15734         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
15735         ia64 platform only on platforms that you the GCC unwind library
15736         rather than the system unwind library.
15738 2005-07-07  Thomas Quinot  <quinot@adacore.com>
15740         * expect.c: Minor reformatting
15742 2005-07-07  Sergey Rybin  <rybin@adacore.com>
15744         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
15745         --no-separate-is
15747         * gnat_ugn.texi: Add description for new gnatpp option
15748         (--no-separate-is)
15750 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15752         * g-expect-vms.adb, g-expect.ads, g-expect.adb
15753         (Get_Command_Output): New subprogram to launch a process and get its
15754         standard output as a string.
15756 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15757             Olivier Hainque  <hainque@adacore.com>
15759         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
15760         fetch a code-range descriptor associated with the machine state. On
15761         failure set the machine state's PC to 0; on success, pass the
15762         descriptor to exc_virtual_unwind.
15764         * init.c (Tru64 section): New function __gnat_set_code_loc.
15766 2005-07-04  Vincent Celier  <celier@adacore.com>
15768         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15769         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15770         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
15771         Remove all auto-initialization code, as this is now done through the
15772         constructor mechanism.
15774         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
15775         __gnat_sals_init_using_constructors): New functions.
15777         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
15778         Linker_Constructor and Linker_Destructor when switch -a is used.
15780         * bindusg.adb: Add line for new switch -a
15782         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
15783         (Gnatbind): When switch -a is used, check if it is allowed
15785         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
15787 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
15789         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
15790         This prevents us from hitting a limitation during the debug info
15791         generation when using stabs.
15792         (Prims_Ptr): Likewise.
15794 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
15795             Ed Schonberg  <schonberg@adacore.com>
15796             Javier Miranda  <miranda@adacore.com>
15798         * checks.adb (Null_Exclusion_Static_Checks): In the case of
15799         N_Object_Declaration, only perform the checks if the Object_Definition
15800         is not an Access_Definition.
15802         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
15803         where the parent of an the access definition is an N_Object_Declaration
15804         when determining the Associated_Node_For_Itype and scope of an
15805         anonymous access-to-subprogram type.
15807         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
15808         Corresponding_Spec on the body created for a null procedure. Add ???
15809         comment. Remove New_Copy_Tree call on body argument to
15810         Set_Body_To_Inline.
15812         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
15813         discriminants, use the type of the actual as well, because the
15814         discriminants may be read by the called subprogram.
15816         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
15817         access type we do not need to handle non-limited views.
15818         (Build_Derived_Record_Type): Additional check to check that in case of
15819         private types, interfaces are only allowed in private extensions.
15821 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15823         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
15824         <Pragma_Linker_Destructor>: Likewise.
15826         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
15827         Pragma_Linker_Destructor.
15829         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
15830         ATTR_LINK_DESTRUCTOR.
15831         (static_ctors, static_dtors): New variables.
15833         * misc.c (gnat_expand_body): Output current function as constructor
15834         and destructor if requested.
15836         * par-prag.adb: Add processing for pragma Linker_Constructor and
15837         Linker_Destructor.
15839         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
15840         extracted from Check_Interrupt_Or_Attach_Handler.
15841         (Check_Interrupt_Or_Attach_Handler): Invoke it.
15842         Implement pragma Linker_Constructor and Linker_Destructor with the
15843         help of Find_Unique_Parameterless_Procedure.
15844         Replace Name_Alias with Name_Target for pragma Linker_Alias.
15846         * snames.h, snames.ads, snames.adb:
15847         Add Name_Linker_Constructor and Name_Linker_Destructor.
15848         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
15849         * snames.adb: Remove Name_Alias.
15851         * trans.c: Include cgraph.h.
15852         (build_global_cdtor): New function.
15853         (Compilation_Unit_to_gnu): Build global constructor and destructor if
15854         needed.
15855         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
15856         of objects too.
15857         (addressable_p) <COMPONENT_REF>: Unconditionally test
15858         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
15860         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
15861         variable if it is external.
15863         (static_ctors, static_dtors): New global variables.
15864         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
15865         <ATTR_LINK_DESTRUCTOR>: Likewise.
15866         (end_subprog_body): Chain function as constructor and destructor
15867         if requested.
15869         * exp_util.adb (Force_Evaluation): Unconditionally invoke
15870         Remove_Side_Effects with Variable_Ref set to true.
15871         (Remove_Side_Effects): Handle scalar types first. Use a renaming
15872         for non-scalar types even if Variable_Ref is true and for class-wide
15873         expressions.
15875 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15877         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
15878         to prevent spurious warnings.
15880 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15882         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
15883         Itypes. Itypes are really unexpected there.
15884         (Build_TypeCode_Function): Generalise special processing for Itypes to
15885         handle the case of numeric implicit base types as well as enumerated
15886         ones.
15888 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15890         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
15891         controlled, indicate the expected type of the dereference that is
15892         created for the call to Deep_Finalize, to prevent spurious errors when
15893         the designated type is private and completed with a derivation from
15894         another private type.
15896 2005-07-04  Vincent Celier  <celier@adacore.com>
15898         * make.adb (Change_To_Object_Directory): When unable to change the
15899         current dir to the object directory, output the full path of the
15900         directory.
15902 2005-07-04  Matthew Gingell  <gingell@adacore.com>
15904         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
15906         * indepsw-linux.adb: Replace by...
15908         * indepsw-gnu.adb: ...this new file
15910 2005-07-04  Vincent Celier  <celier@adacore.com>
15912         * mlib-prj.adb (Auto_Initialize): New constant String
15913         (SALs_Use_Constructors): New Boolean function
15914         (Build_Library): Call gnatbind with Auto_Initialize switch when
15915         SALs_Use_Constructors returns True.
15917         * mlib-tgt.ads: Minor reformatting
15919         * mlib-utl.ads: Minor reformatting
15921         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
15923 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15925         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
15926         single protected declarations can have an interface list.
15927         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
15928         with seriously malformed entry declarations, and lead to compilation
15929         abandoned messages.
15931 2005-07-04  Javier Miranda  <miranda@adacore.com>
15933         * par-load.adb: Load the context items in two rounds.
15935 2005-07-04  Robert Dewar  <dewar@adacore.com>
15937         * scng.adb: Do not consider Mod used as an attribute to be a keyword
15939 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15940             Javier Miranda  <miranda@adacore.com>
15942         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15943         type extension needs a limited view.
15944         Remove previous restriction on private types available through the
15945         limited-view (only tagged private types were previously allowed).
15946         (Install_Withed_Unit): In the code that implements the
15947         legality rule given in AI-377, exclude a child unit with the name
15948         Standard, because it is a homonym of the Standard environment package.
15950 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15952         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
15953         overloaded function call, carry interpretations from the original tree
15954         to the copy.
15956 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15958         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
15959         types check whether some designated type is a limited view, and use
15960         the non-limited view if available.
15962 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
15964         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
15965         constraint of full view of a private view T1 if present, when T2 is a
15966         discriminated full view.
15968 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15970         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
15971         actual that is a view conversion of a bit packed array reference.
15973 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15975         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
15976         present before checking whether an interface type covers a synchronized
15977         type.
15979 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15981         * sem_util.adb (Is_Object_Reference): An indexed or selected component
15982         whose prefix is an implicit dereference is an object reference. Removes
15983         spurious errors when compiling with -gnatc.
15985 2005-07-04  Robert Dewar  <dewar@adacore.com>
15987         PR ada/22039
15988         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
15990 2005-07-04  Matthew Gingell  <gingell@adacore.com>
15992         * tracebak.c: Enable tracebacks on ia64 platforms
15994 2005-07-04  Vincent Celier  <celier@adacore.com>
15996         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
15997         the GNAT BIND command, as gnatbind accepts multiples ALI files with
15998         the -L or -n switches.
16000 2005-07-04  Vincent Celier  <celier@adacore.com>
16002         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
16003         correctly computed and the main project data is not modified while
16004         doing so.
16005         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
16006         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
16007         c++linker as this does not work on some platforms.
16009 2005-07-04  Matthew Heaney  <heaney@adacore.com>
16011         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
16012         was changed.
16013         * a-coinve.adb: Perform constraint checks explicitly.
16015 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16016             Thomas Quinot  <quinot@adacore.com>
16018         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
16019         new target gen-soccon.
16021 2005-07-04  Robert Dewar  <dewar@adacore.com>
16023         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
16025 2005-07-04  Thomas Quinot  <quinot@adacore.com>
16027         * g-socket.ads (Check_Selector): Minor rewording of comment.
16029 2005-07-04  Vincent Celier  <celier@adacore.com>
16031         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
16033 2005-07-04  Thomas Quinot  <quinot@adacore.com>
16035         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
16037 2005-07-04  Sergey Rybin  <rybin@adacore.com>
16039         * gnat_ugn.texi: Add description of --eol gnatpp option
16041 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
16042             Thomas Quinot  <quinot@adacore.com>
16044         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
16045         if the user wants all calls of a subprogram to be flagged,
16046         independently of whether they are made from within the same unit or
16047         another unit.
16048         Mention restriction for pragma Linker_Alias on some platforms.
16049         Document pragma Linker_Constructor and Linker_Destructor.
16050         Rewrite documentation of Weak_External, Linker_Section and
16051         Linker_Alias pragmas.
16053 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
16055         * s-stausa.ads, s-stausa.adb: New files.
16057 2005-06-30  Kelley Cook
16059         * all files:  Update FSF address in copyright headers.
16060         * gen-soccon.co (main): Output new FSF address in generated files.
16062 2005-06-28  Paul Brook  <paul@codesourcery.com>
16064         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
16066 2005-06-14  Olivier Hainque  <hainque@adacore.com>
16067             Eric Botcazou  <ebotcazou@adacore.com>
16069         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
16070         exc_unwind, now that we are generating proper .debug_frame output for
16071         that target.
16073         * tracebak.c: Remove the mips-irix section, as we are now using the
16074         s-mastop based unwinder again.
16075         Under SPARC/Solaris, take into account the stack bias to compute the
16076         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
16077         ABI.
16079 2005-06-14  Doug Rupp  <rupp@adacore.com>
16081         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
16083         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
16085 2005-06-14  Pascal Obry  <obry@adacore.com>
16087         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
16088         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
16089         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
16090         package name).
16092         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
16093         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
16094         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
16095         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
16096         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
16097         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
16098         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
16099         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
16100         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
16101         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
16102         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
16103         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
16104         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
16105         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
16106         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
16107         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
16108         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
16109         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
16110         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
16111         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
16112         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
16113         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
16114         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
16115         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
16116         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
16117         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
16118         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
16119         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
16120         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
16121         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
16122         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
16123         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
16124         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
16125         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
16126         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
16127         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
16128         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
16129         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
16130         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
16131         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
16132         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
16133         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
16134         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
16135         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
16136         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
16137         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
16138         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
16139         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
16140         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
16141         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
16142         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
16143         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
16144         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
16145         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
16146         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
16147         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
16148         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
16149         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
16150         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
16151         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
16152         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
16153         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
16154         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
16155         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
16156         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
16157         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
16158         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
16159         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
16160         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
16161         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
16162         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
16163         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
16164         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
16165         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
16166         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
16167         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
16168         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
16169         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
16170         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
16171         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
16172         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
16173         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
16174         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
16175         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
16176         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
16177         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
16178         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
16179         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
16180         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
16181         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
16182         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
16183         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
16184         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
16185         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
16186         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
16187         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
16188         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
16189         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
16190         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
16191         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
16192         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
16193         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
16194         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
16195         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
16196         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
16197         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
16198         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
16199         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
16200         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
16201         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
16202         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
16203         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
16204         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16205         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
16206         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
16207         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
16208         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
16209         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
16210         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
16211         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
16212         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
16213         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
16214         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
16215         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
16216         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
16217         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
16218         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
16219         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
16220         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
16221         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
16222         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
16223         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
16224         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
16226 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
16227             Arnaud Charlet  <charlet@adacore.com>
16229         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
16230         longer protected objects. They have been replaced by lower-level
16231         suspension objects made up by a mutex and a condition variable (or
16232         their equivalent given a particular OS) plus some internal data to
16233         reflect the state of the suspension object.
16234         (Initialize, Finalize): Add this initialization procedure for
16235         Suspension_Object, which is a controlled type.
16236         (Finalize): Add the finalization procedure for Suspension_Object,
16237         which is a controlled type.
16239         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
16240         Ada.Synchronous_Task_Control because there is no longer a need for a
16241         VxWorks specific version of this package. Target dependencies
16242         has been moved to System.Task_Primitives.Operations.
16244         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
16245         longer needed.
16246         (InitializeCriticalSection, EnterCriticalSection,
16247         LeaveCriticalSection, DeleteCriticalSection): Replace the type
16248         pCriticalSection by an anonymous access type so that we avoid problems
16249         of accessibility to local objects.
16251         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
16252         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16253         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
16254         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
16255         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
16256         set the environment task mask here.
16257         (Current_State): Add this function that returns the state of the
16258         suspension object.
16259         (Set_False): Add this procedure that sets the state of the suspension
16260         object to False.
16261         (Set_True): Add this procedure that sets the state of the suspension
16262         object to True, releasing the task that was suspended, if any.
16263         (Suspend_Until_True): Add this procedure that blocks the calling task
16264         until the state of the object is True. Program_Error is raised if
16265         another task is already waiting on that suspension object.
16266         (Initialize): Add this procedure for initializing the suspension
16267         object. It initializes the mutex and the condition variable which are
16268         used for synchronization and queuing, and it sets the internal state
16269         to False.
16270         (Finalize): Add this procedure for finalizing the suspension object,
16271         destroying the mutex and the condition variable.
16273         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16274         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
16275         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
16276         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
16277         which provides a low-level abstraction (using operating system
16278         primitives) for Ada.Synchronous_Task_Control.
16279         This object is made up by a mutex (for ensuring mutual exclusion), a
16280         condition variable (for queuing threads until the condition is
16281         signaled), a Boolean (State) indicating whether the object is open,
16282         and a Boolean (Waiting) reflecting whether there is a task already
16283         suspended on this object.
16285         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
16286         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
16287         s-intman-vms.ads, s-intman-mingw.adb,
16288         (Initialize_Interrupts): Removed, no longer used.
16290         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
16291         (Setup_Interrupt_Mask): New procedure.
16293         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
16295         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
16297         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
16298         this is no longer done in the body of s-taprop
16299         (Server_Task): Explicitely test for Pending_Action in case
16300         System.Parameters.No_Abort is True.
16302         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
16303         is no longer done in the body of s-taprop
16305 2005-06-14  Robert Dewar  <dewar@adacore.com>
16307         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16308         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16309         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16310         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16311         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16312         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
16313         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
16314         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16315         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
16316         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
16317         system-linux-hppa.ads, system-vms_64.ads,
16318         system-vxworks-alpha.ads: Minor comment update for
16319         AI-362 (unit is Pure).
16321         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
16322         Add pragma Pure_05 for AI-362
16323         Make remaining conversion functions obsolescent in Ada 95
16325         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16326         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
16327         Add entries for a-wichun and a-zchuni
16328         Add a-widcha a-zchara for AI-395
16329         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
16331         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16332         Add entries for a-wichun.o and a-zchuni.o
16333         Entries for a-widcha.o and a-zchara.o
16334         Add entry for a-chacon.o
16336         * a-ztenau.adb: Add with of Ada.Characters.Conversions
16338         * a-chacon.ads, a-chacon.adb: New files.
16340         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
16341         categorization violations.
16343         * a-strmap.ads: Add pragma Pure_05 for AI-362
16344         * a-strmap.ads: Add note on implicit categorization for AI-362
16346         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
16348         * par-prag.adb: Dummy entry for pragma Persistent_BSS
16349         Set Ada_Version_Explicit, for implementation of AI-362
16350         Add processing for pragma Pure_05 and Preelaborate_05
16351         Add entry for Assertion_Policy pragma
16353         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
16354         when needed for proper processing of categorization stuff
16356         * sem_cat.adb:
16357         For several cases, make errors in preealborate units warnings,
16358         instead of errors, if GNAT_Mode is set. For AI-362.
16360         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
16361         preelaborate unit is now warning if in GNAT mode
16363         * s-stoele.ads: Document AI-362 for pragma preelaborate
16365 2005-06-14  Doug Rupp  <rupp@adacore.com>
16367         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
16368         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
16369         Default_Exception_Msg_Max_Length: new parameter.
16371         * a-except.ads: (Exception_Msg_Max_Length): Set to
16372         System.Parameters.Default_Exception_Msg_Max_Length
16373         Add pragma Preelaborate_05 for AI-362
16374         Add warnings off to allow categorization violations for AI-362
16376 2005-06-14  Vincent Celier  <celier@adacore.com>
16378         * gnatsym.adb: Adapt to modification of package Symbols: procedure
16379         Process is now in package Processing.
16381         * symbols.ads, symbols.adb:
16382         (Processing): New package, containing procedure Process
16384         * symbols-vms-alpha.adb:
16385         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
16387         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
16388         symbols-processing-vms-ia64.adb: New files.
16390 2005-06-14  Pascal Obry  <obry@adacore.com>
16392         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
16393         implementation. This new version generates the proper DllMain routine
16394         to initialize the SAL. The DllMain is generated in Ada and compiled
16395         before being added as option to the library build command.
16397 2005-06-14  Doug Rupp  <rupp@adacore.com>
16398             Pascal Obry  <obry@adacore.com>
16400         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
16401         call to decc$translate_vms.
16402         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
16403         need to remove those quotes before catenating the filename.
16404         (__gnat_locate_exec_on_path): improvements to the Win32 section:
16405         * avoid allocating the memory twice for better efficiency;
16406         * allocate 32K buffer for environment expansion as suggested by MSDN;
16407         * prepend ".;" to the path so that current directory is searched too.
16409 2005-06-14  Robert Dewar  <dewar@adacore.com>
16411         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
16412         instead of raising CE (AI-241)
16413         Add warnings off to allow categorization violations for AI-362
16415 2005-06-14  Robert Dewar  <dewar@adacore.com>
16417         * ali-util.adb, gnatbind.adb: Remove references to
16418         Force_RM_Elaboration_Order.
16420         * switch-b.adb: Remove recognition of -f switch
16422 2005-06-14  Pascal Obry  <obry@adacore.com>
16424         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
16425         implementation which is slightly more efficient.
16427 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
16428             Javier Miranda  <miranda@adacore.com>
16429             Ed Schonberg  <schonberg@adacore.com>
16430             Hristian Kirtchev  <kirtchev@adacore.com>
16432         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
16433         allocator's designated type is a class-wide type, and compiling for
16434         Ada 2005, emit a run-time check that the accessibility level of the
16435         type given in the allocator's expression is not deeper than the level
16436         of the allocator's access type.
16438         (Tagged_Membership): Modified to gives support to abstract interface
16439         types.
16441         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
16442         Access_Level.
16443         (Descendant_Tag): New predefined function
16444         (Is_Descendant_At_Same_Level): New predefined function
16445         (Get_Access_Level): New private function
16446         (Set_Access_Level): New private procedure
16447         (IW_Membership): New function. Given the tag of an object and the tag
16448         associated with an interface, evaluate if the object implements the
16449         interface.
16450         (Register_Interface_Tag): New procedure used to initialize the table of
16451         interfaces used by the IW_Membership function.
16452         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
16453         of the dispatch table.
16454         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
16455         table of interfaces of the parent.
16456         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
16457         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
16458         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
16459         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
16460         Ada 2005 semantics for the new predefined function.
16462         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
16463         call to Descendant_Tag rather than Internal_Tag.
16464         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
16465         the accessibility level of the attribute's Item parameter is not deeper
16466         than the level of the attribute's prefix type. Tag_Error is raised if
16467         the check fails. The check is only emitted for Ada_05.
16468         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
16469         requested stream attribute, use it.
16470         (Expand_N_Attribute_Reference): If the designated type is an interface
16471         then rewrite the referenced object as a conversion to force the
16472         displacement of the pointer to the secondary dispatch table.
16473         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
16474         is a dereference of an object with a constrained partial view.
16476         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
16477         type is a class-wide type, emit a run-time check that the accessibility
16478         level of the returned object is not deeper than the level of the
16479         function's master (only when compiling for Ada 2005).
16481         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
16482         Action_Nb_Arg): Add entries for new Get_Access_Level and
16483         Set_Access_Level routines in these tables.
16484         (Make_DT): Generate a call to set the accessibility level of the
16485         tagged type in its TSD.
16486         (Make_DT): Code cleanup. The functionality of generating all the
16487         secondary dispatch tables has been moved to freeze_record_type.
16488         (Make_Abstract_Interface_DT): Minor code cleanup.
16489         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
16490         this subprogram implements a new algorithm that provides the
16491         same functionality and it is more clear in case of primitives
16492         associated with abstract interfaces.
16493         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
16494         clean up, the functionality of this subprogram is now provided
16495         by Set_All_DT_Position.
16496         (Write_DT): New subprogram: a debugging procedure designed to be called
16497         within gdb to display the dispatch tables associated with a tagged
16498         type.
16499         (Collect_All_Interfaces): New subprogram that collects the whole list
16500         of interfaces that are directly or indirectly implemented by a tagged
16501         type.
16502         (Default_Prim_Op_Position): New subprogram that returns the fixed
16503         position in the dispatch table of the default primitive operations.
16504         (Expand_Interface_Actuals): New subprogram to generate code that
16505         displaces all the actuals corresponding to class-wide interfaces to
16506         reference the interface tag of the actual object.
16507         (Expand_Interface_Conversion): New subprogram. Reference the base of
16508         the object to give access to the interface tag associated with the
16509         secondary dispatch table.
16510         (Expand_Interface_Thunk): New subprogram that generates the code of the
16511         thunk. This is required for compatibility with the C+ ABI.
16512         (Make_Abstract_Interface_DT): New subprogram that generate the
16513         declarations for the secondary dispatch tables associated with an
16514         abstract interface.
16515         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
16516         attribute for each primitive operation covering interface subprograms
16517         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
16518         These subprograms were upgraded to give support to abstract interfaces
16520         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
16521         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
16522         RE_Set_Access_Level.
16523         (RE_Unit_Table): Add entries for new Ada.Tags operations.
16524         Add support to call the followig new run-time subprograms:
16525         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
16527         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
16528         match its full declaration when both have an access definition with
16529         statically matching designated subtypes.
16530         (Analyze_Component_Declaration): Delete commented out code that was
16531         incorrectly setting the scope of an anonymous access component's type.
16532         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
16533         an access discriminant when the containing type is nonlimited.
16534         (Make_Incomplete_Type_Declaration): Create an incomplete type
16535         declaration for a record type that includes self-referential access
16536         components.
16537         (Check_Anonymous_Access_Types): Before full analysis of a record type
16538         declaration, create anonymous access types for each self-referential
16539         access component.
16540         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
16541         an access component in this context is a Local_Anonymous_Access, for
16542         proper accessibility checks.
16543         (Access_Definition): Set properly the scope of the anonymous access type
16544         created for a stand-alone access object.
16545         (Find_Type_Of_Object): An object declaration may be given with an access
16546         definition.
16547         (Complete_Subprograms_Derivation): New subprogram used to complete
16548         type derivation of private tagged types implementing interfaces.
16549         In this case some interface primitives may have been overriden
16550         with the partial-view and, instead of re-calculating them, they
16551         are included in the list of primitive operations of the full-view.
16552         (Build_Derived_Record_Type): Modified to give support to private
16553         types implemening interfaces.
16554         (Access_Definition): Reject ALL on anonymous access types.
16555         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
16556         type derivation to occur at a deeper accessibility level than the
16557         parent type.
16558         For the case of derivation within a generic body however, disallow the
16559         derivation if the derived type has an ancestor that is a formal type
16560         declared in the formal part of an enclosing generic.
16561         (Analyze_Object_Declaration): For protected objects, remove the check
16562         that they cannot contain interrupt handlers if not declared at library
16563         level.
16564         (Add_Interface_Tag_Components): New subprogram to add the tag components
16565         corresponding to all the abstract interface types implemented by a
16566         record type or a derived record type.
16567         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16568         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16569         Process_Full_View, Record_Type_Declaration): Modified to give
16570         support to abstract interface types
16571         (Collect_Interfaces): New subprogram that collects the list of
16572         interfaces that are not already implemented by the ancestors
16573         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
16574         when partial view has no discriminants and full view has defaults.
16575         (Constrain_Access): Reject a constraint on a general access type
16576         if the discriminants of the designated type have defaults.
16577         (Access_Subprogram_Declaration): Associate the Itype node with the inner
16578         full-type declaration or subprogram spec. This is required to handle
16579         nested anonymous declarations.
16580         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16581         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16582         Process_Full_View, Record_Type_Declaration): Modified to give
16583         support to abstract interface types
16584         (Derive_Subprograms): Addition of a new formal to indicate if
16585         we are in the case of an abstact-interface derivation
16586         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
16587         to the specification because it is requied to analyze all the
16588         identifiers found in a list of interfaces
16590         * debug.adb: Complete documentation of flag "-gnatdZ"
16592         * exp_ch3.adb: Implement config version of persistent_bss pragma
16593         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
16594         testing for TSS presence to properly enforce visibility rules.
16595         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
16596         Make_Abstract_Interfaces_DT to generate the secondary tables
16597         associated with abstract interfaces.
16598         (Build_Init_Procedure): Modified to initialize all the tags
16599         corresponding.
16600         (Component_Needs_Simple_Initialization): Similar to other tags,
16601         interface tags do not need initialization.
16602         (Freeze_Record_Type): Modified to give support to abstract interface
16603         types.
16604         (Expand_N_Object_Declaration): Do not generate an initialization for
16605         a scalar temporary marked as internal.
16607         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
16608         in-out parameter that is a component in an initialization procedure,
16609         whose constraint might depend on discriminants, and that may be
16610         misaligned because of packing or representation clauses.
16611         (Is_Legal_Copy): New predicate to determine whether a possibly
16612         misaligned in-out actual can actually be passed by copy/return. This
16613         is an error in case the type is by_reference, and a warning if this is
16614         the consequence of a DEC import pragma on the subprogram.
16615         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
16616         interface types
16617         (Expand_Inlined_Call): Mark temporary generated for the return value as
16618         internal, so that no useless scalar normalization is generated for it.
16619         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
16620         null procedure can always be inlined.
16621         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
16622         procedure, generate an explicit empty body for it.
16624         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
16625         Given a type implementing an interface, returns the corresponding
16626         access_disp_table value.
16627         (Find_Interface_Tag): New subprogram. Given a type implementing an
16628         interface, returns the record component containing the tag of the
16629         interface.
16630         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
16631         previous ones that return the corresponding tag and access_disp_table
16632         entities.
16633         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
16634         is a predefined primitive operation.
16635         (Expand_Subtype_From_Expr): If the expression is a selected component
16636         within an initialization procedure, compute its actual subtype, because
16637         the component may depend on the discriminants of the enclosing record.
16639         * i-cpp.ads, i-cpp.adb:
16640         This package has been left available for compatibility with previous
16641         versions of the frontend. As part of the new layout this is now a
16642         dummy package that uses declarations available at a-tags.ads
16644         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
16645         "constant access" and "aliased [constant] access" when not compiling
16646         with -gnat05.
16647         Suppress Ada 2005 keyword warning if -gnatwY used
16648         (P_Identifier_Declarations): Add support for object declarations with
16649         access definitions.
16650         (Private_Extension_Declaration): Complete the documentation
16651         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
16652         attribute in case of private extension declaration
16653         (P_Type_Declaration): Mark as "abstract" the type declarations
16654         corresponding with protected, synchronized and task interfaces
16655         (P_Declarative_Items): "not" and "overriding" are overriding indicators
16656         for a subprogram or instance declaration.
16658         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
16659         instantiation that is a dispatching operation has controlling access
16660         parameters that are null excluding.
16661         Save and restore Ada_Version_Explicit, for implementation of AI-362
16662         (Validate_Derived_Type_Instance): Add check for abstract interface
16663         types.
16664         (Analyze_Formal_Package): Establish Instantiation source for the copy of
16665         the generic that is created to represent the formal package.
16666         (Analyze_Package_Instantiation): Instantiate body immediately if the
16667         package is a predefined unit that contains inlined subprograms, and
16668         we are compiling for a Configurable_Run_Time.
16669         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
16670         If the program has a null default, generate an empty body for it.
16672         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
16673         error message condition, null procedures are correctly detected now.
16674         (New_Overloaded_Entity): Bypass trivial overriding indicator check
16675         for subprograms in the context of protected types. Instead, the
16676         indicator is examined in Sem_Ch9 while analysing the subprogram
16677         declaration.
16678         (Check_Overriding_Indicator): Check consistency of overriding indicator
16679         on subprogram stubs as well.
16680         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
16681         the library level.
16682         (Analize_Subprogram_Specification): When analyzing a subprogram in which
16683         the type of the first formal is a concurrent type, replace this type
16684         by the corresponding record type.
16685         (Analyze_Subprogram_Body): Undo the previous work.
16686         (Analyze_Procedure_Call): If the call has the form Object.Op, the
16687         analysis of the prefix ends up analyzing the call itself, after which
16688         we are done.
16689         (Has_Interface_Formals): New subprogram subsidiary to analyze
16690         subprogram_specification that returns true if some non
16691         class-wide interface subprogram is found
16692         (New_Overloaded_Entity): Modified to give support to abstract
16693         interface types
16694         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
16695         access to subprograms must be recursive.
16696         (Is_Unchecked_Conversion): Improve the test that recognizes
16697         instantiations of Unchecked_Conversion, and allows them in bodies that
16698         are to be inlined by the front-end. When the body comes from an
16699         instantiation, a reference to Unchecked_Conversion will be an
16700         Expanded_Name, even though the body has not been analyzed yet.
16701         Replace Is_Overriding and Not_Overriding in subprogram_indication with
16702         Must_Override and Must_Not_Override, to better express intent of AI.
16703         (Analyze_Subprogram_Body): If an overriding indicator is given, check
16704         that it is consistent with the overrinding status of the subprogram
16705         at this point.
16706         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
16707         always inlined.
16708         If the subprogram is a null procedure, indicate that it does not need
16709         a completion.
16711         * sem_disp.adb (Check_Controlling_Type): Give support to entities
16712         available through limited-with clauses.
16713         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
16714         allowed as the last primitive of a tagged type if it has no previous
16715         spec.
16716         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
16717         to give support to abstract interface types
16719         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
16720         in the case where the target type is an anonymous access type of an
16721         object or component (that is, when Is_Local_Anonymous_Access is true).
16722         Prevent the special checks for conversions of access discriminants in
16723         the case where the discriminant belongs to a nonlimited type, since
16724         such discriminants have their accessibility level defined in the same
16725         way as a normal component of an anonymous access type.
16726         (Resolve_Allocator): When an allocator's designated type is a class-wide
16727         type, check that the accessibility level of type given in the
16728         allocator's expression or subtype indication is not statically deeper
16729         than the level of the allocator's access type.
16730         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
16731         name in a discriminant constraint of a record component.
16732         (Resolve_Explicit_Dereference): Do not check whether the type is
16733         incomplete when the dereference is a use of an access discriminant in
16734         an initialization procedure.
16735         (Resolve_Type_Conversion): Handle conversions to abstract interface
16736         types.
16737         (Valid_Tagged_Conversion): The conversion of a tagged type to an
16738         abstract interface type is always valid.
16739         (Valid_Conversion): Modified to give support to abstract interface types
16740         (Resolve_Actuals): Enable full error reporting on view conversions
16741         between unrelated by_reference array types.
16742         The rule for view conversions of arrays with aliased components is
16743         weakened in Ada 2005.
16744         Call to obsolescent subprogram is now considered to be a violation of
16745         pragma Restrictions (No_Obsolescent_Features).
16746         (Check_Direct_Boolean_Operator): If the boolean operation has been
16747         constant-folded, there is nothing to check.
16748         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
16749         check on possible violation of restriction No_Direct_Boolean_Operators
16750         until after expansion of operands, to prevent spurious errors when
16751         operation is constant-folded.
16753         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
16754         Has_Compatible_Type): Modified to give support to abstract interface
16755         types.
16756         (Interface_Present_In_Ancestor): New function to theck if some ancestor
16757         of a given type implements a given interface
16759         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
16760         prefix is a parameterless function that returns an access_to_procedure.
16761         (Transform_Object_Operation): Handle properly function calls of the
16762         form Obj.Op (X), which prior to analysis appear as indexed components.
16763         (Analyze_One_Call): Complete the error notification to help new Ada
16764         2005 users.
16765         (Analyze_Allocator): For an allocator without an initial value, where
16766         the designated type has a constrained partial view, a discriminant
16767         constraint is illegal.
16769 2005-06-14  Robert Dewar  <dewar@adacore.com>
16771         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
16772         do with treatment of Set_Col when positioned at end of line character.
16774 2005-06-14  Robert Dewar  <dewar@adacore.com>
16776         * atree.adb: (Elist*): Protect against uninitialized field
16778 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16780         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
16781         for an attribute reference that returns an access type.
16782         (Apply_Discriminant_Check): No need for check if (designated) type has
16783         constrained partial view.
16785         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
16786         both bound checks, rather than a conjunction.
16787         (Insert_Valid_Check): If the expression is an actual that is an indexed
16788         component of a bit-packed array, force expansion of the packed element
16789         reference, because it is specifically inhibited elsewhere.
16791 2005-06-14  Vincent Celier  <celier@adacore.com>
16793         * clean.adb (Clean_Project): Correctly delete executable specified as
16794         absolute path names.
16796         * make.adb (Gnatmake): Allow relative executable path names with
16797         directory information even when project files are used.
16798         (Change_To_Object_Directory): Fail gracefully when unable to change
16799         current working directory to object directory of a project.
16800         (Gnatmake): Remove exception handler that could no longer be exercized
16801         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
16802         may be deallocated by Normalize_Arguments.
16803         (Collect_Arguments): Eliminate empty arguments
16805         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
16806         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
16807         (Check_Project): Return False when Project is No_Project. Return True
16808         when All_Projects is True.
16809         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
16810         All_Projects to True.
16811         Minor reformatting
16813 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16814             Javier Miranda  <miranda@adacore.com>
16815             Thomas Quinot  <quinot@adacore.com>
16816             Robert Dewar  <dewar@adacore.com>
16817             Hristian Kirtchev  <kirtchev@adacore.com>
16818             Gary Dismukes  <dismukes@adacore.com>
16820         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
16821         anonymous access types, to indicate that the accessibility level of
16822         the type is determined by that of the enclosing declaration.
16823         (Has_Persistent_BSS): New flag
16824         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
16825         of this attribute with functions.
16826         (Is_Primitive_Wrapper): Remove the barrier.
16827         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
16828         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
16829         New subprograms.
16830         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
16831         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
16832         New subprograms.
16833         (Is_Pure_Unit_Access_Type): New flag
16834         (Abstract_Interfaces): Complete the assertion to cover all usages.
16835         (Set_Is_Interface): Complete the assertion to cover all usages.
16836         (Is_Primitive_Wrapper): New attribute.
16837         (Is_Obsolescent): Now applies to all entities (though it is only set
16838         for subprograms currently)
16839         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
16840         which solves various problems concerning access subtypes.
16841         (Has_Persistent_BSS): New flag
16842         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
16843         Remove these subprograms because this attribute is currently
16844         not used.
16845         New entity flags:
16846         Has_Specified_Stream_Input (Flag190)
16847         Has_Specified_Stream_Output (Flag191)
16848         Has_Specified_Stream_Read (Flag192)
16849         Has_Specified_Stream_Write (Flag193)
16850         Present in all type and subtype entities. Set for a given view if the
16851         corresponding stream-oriented attribute has been defined by an
16852         attribute definition clause. When such a clause occurs, a TSS is set
16853         on the underlying full view; the flags are used to track visibility of
16854         the attribute definition clause for partial or incomplete views.
16855         (Is_Pure_Unit_Access_Type): New flag
16856         Clarify use of Is_Internal.
16857         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
16858         internally generated to wrap the invocation of tasks and protected
16859         types that implement interfaces.
16860         (Implementation_Base_Type): Documentation correction
16861         (Is_Obsolescent): Now applies to all entities (though it is only set
16862         for subprograms currently)
16863         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
16864         which solves various problems concerning access subtypes.
16866         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
16867         for examined parameters. Identify unequal parameter list lengths as
16868         non-conformant parameters.
16869         (Overriding_Possible): Do not check for "All" qualifier in declaration
16870         of controlling access parameter, following prescription of AI-404.
16871         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
16872         that build the procedure body that wraps an entry invocation
16873         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
16874         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
16875         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
16876         give support to abstract interface types
16878         * freeze.adb (Freeze_Entity): Issue error message if
16879         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
16880         type has no storage pool (Ada 2005) AI-366.
16881         Also modified to give support to abstract interface types
16882         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
16883         Inline_Always pragma.
16885         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
16886         now begin an entry declaration.
16887         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
16888         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
16889         a subprogram declaration preceded by an overriding indicator.
16890         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
16891         declarations or subprogram declarations preceded by reserved words
16892         "not" or "overriding".
16893         (P_Entry_Declaration): Update comment. Parse and check overriding
16894         indicator, set semantic flags of entry declarations.
16895         (P_Task): New error message in case of private applied
16896         to a task type declaration.
16897         (P_Protected): New error message in case of private applied
16898         to a task type declaration.
16900         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
16901         in which the full view of a type implementing an interface is a
16902         concurrent type.
16903         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
16904         Declare_Inherited_Private_Subprograms): If an explicit operation
16905         overrides an operation that is inherited in the private part, mark the
16906         explicit one as overriding, to enable overriding indicator checks.
16907         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
16908         full view to partial view, to simplify handling in back-end.
16910         * sprint.adb: Print interface lists where needed: derived types,
16911         protected types, task types.
16912         output "is null" for null procedures. Part of implementation of
16914         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
16915         relaxation of rules for access types in pure, shared passive partitions.
16917         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
16918         first read discriminants into temporary objects, performing checks on
16919         the read values, then possibly performing discriminant checks on the
16920         actual (if it is constrained), and only finally reading the components
16921         into a constrained temporary object.
16922         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
16923         case of reading discriminants of a mutable record type to recognize
16924         the new form of the code generated by
16925         Build_Mutable_Record_Read_Procedure.
16927         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
16928         of a simple call to Make_TSS_Name.
16929         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
16930         buffer, in order for Is_TSS to work correctly on local TSS names.
16932         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
16933         Is_Local_Anonymous_Access to check legaliy of attributes in the
16934         context of  access components and stand-alone access objects.
16935         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
16936         treated as available for a limited private type if there is an
16937         attribute_definition_clause that applies to its full view, but not in
16938         other cases where the attribute is available for the full view
16939         (specifically, the sole fact that the full view is non-limited does not
16940         make the attribute available for the partial view).
16941         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16942         non-overloaded intrinsic subprogram.
16943         (Check_Stream_Attribute): Reject an attribute reference for an
16944         unavailable stream attribute even if the prefix is not a limited type
16945         (case of a 'Input attribute reference for an abstract, non-classwide
16946         type)
16947         (Stream_Attribute_Available): New function to determine whether a stream
16948         attribute is available at a place.
16949         (Check_Attribute): Use Stream_Attribute_Available instead of just
16950         testing for TSS presence on the implementation base type.
16951         (Analyze_Attribute): Modified to give support to task interfaces.
16952         (Analyze_Access_Attribute): Add error check for use of an Access (or
16953         Unrestricted_Access) attribute with a subprogram marked as
16954         Inline_Always.
16955         (Analyze_Attribute, case Attribute_Address): Add error check for use of
16956         an Address attribute with a subprogram marked as Inline_Always.
16957         Update Eval_Attribute to handle new value of Width from AI-395
16959         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
16960         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
16961         Factor common code across the stream-oriented attribute circcuits into
16962         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
16963         processing is functionally identical to the previous duplicated one,
16964         except that an expression that denotes an abstract subprogram will now
16965         be rejected, as mandated by AI-195 item 5.
16967         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
16968         Is_Local_Anonymous_Access to apply accessibility checks to access
16969         components and stand-alone access objects.
16970         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
16971         elsewhere.
16972         (Is_Potentially_Persistent_Type): New function
16973         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
16974         a heap-object whose type has a constrained partial view, the object is
16975         unconstrained and the component may depend on a discriminant, making its
16976         renaming illegal.
16978         * sinfo.ads, sinfo.adb
16979         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
16980         (Must_Override): Flag applicable to N_Entry_Declaration.
16981         Indicate that interface_list can appear in single task and single
16982         protected declarations.
16983         Replace Is_Overriding and Not_Overriding with Must_Override and
16984         Must_Not_Override, to better express intent of AI.
16985         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
16986         of an overriding indicator in a subprogram or instance.
16987         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
16988         Add the overriding indicator [[not] overriding] construct to the
16989         following grammar productions:
16990          ENTRY_DECLARATION
16991          GENERIC_INSTANTIATION
16992          SUBPROGRAM_SPECIFICATION
16994         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
16995         can start with an overriding indicator.
16997         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
16998         flags accordingly on subrogram specifications or instances.
17000         * sem_ch8.adb:
17001         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
17002         overriding_indicator, if present, is consistent with status of spec.
17003         Improve error message for null-excluding checks on controlling access
17004         parameters.
17005         (Check_In_Previous_With_Clause): Protect the frontend against
17006         previously reported critical errors in the context clauses.
17007         Save and restore Ada_Version_Explicit, for implementation of AI-362
17008         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
17009         operation verify that controlling formals of the renamed entity that
17010         are access parameters are explicitly non-null.
17011         (Find_Expanded_Name): Improve error message when prefix is an illegal
17012         reference to a private child unit.
17014         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
17015         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
17016         Rewrite to correspond to new wide character names in AI-395
17018         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
17019         default procedures.
17021 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17022             Robert Dewar  <dewar@adacore.com>
17024         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
17025         code, not on the bodies of predefined operations, to cut down on
17026         spurious noise.
17028 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17030         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
17031         be expanded in place. The size computation does not require a
17032         subtraction, which would raise an exception on a compiler built with
17033         assertions when the upper bound is Integer'first.
17034         (Flatten): For an array of composite components, take into account the
17035         size of the components to determine whether it is safe to expand the
17036         array into a purely positional representation.
17038 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17040         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
17041         denoting a formal parameter into account.
17043 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17045         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
17046         the entry_call alternative of a conditional entry call, wrap the
17047         conditional entry call itself.
17049 2005-06-14  Nicolas Setton  <setton@adacore.com>
17050             Ed Schonberg  <schonberg@adacore.com>
17052         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
17053         the "simple_choice" member in a variant record, in accordance with the
17054         description in the package spec: the information output for a constant
17055         should be "S number", not "SS number".
17056         (Get_Encoded_Name): Return at once if not generating code. Avoids name
17057         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
17059 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17061         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
17062         RACW without any primitives, do not generate the if statement for
17063         dispatching by name in the PolyORB/DSA case, as it would be malformed
17064         (it would have an Elsif_Parts list that is not No_List, but with a
17065         length of 0).
17067 2005-06-14  Robert Dewar  <dewar@adacore.com>
17069         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
17071 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
17073         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
17074         can determine whether pragma Suppress_Exception_Locations is in effect.
17076         * utils2.c (build_call_raise): Do not pass the file name to the
17077         exception handler if pragma Suppress_Exception_Locations is in effect.
17078         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
17080 2005-06-14  Emmanuel Briot  <briot@adacore.com>
17082         * g-debpoo.adb (Deallocate, Dereference): Improve output.
17084 2005-06-14  Nicolas Roche  <roche@adacore.com>
17086         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
17087         to ""
17088         (Next_Level): Fix minor bug in handling of ../dir case
17089         (Read): Add dir separator to Directory name so that "" is understood as
17090          "/"
17092 2005-06-14  Pascal Obry  <obry@adacore.com>
17094         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
17095         releasing the items.
17097 2005-06-14  Vincent Celier  <celier@adacore.com>
17098             Cyrille Comar  <comar@adacore.com>
17100         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
17101         with output file descriptor and with output file name.
17102         (Dup, Dup2): Now global procedures as they are used by two subprograms
17103         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
17105 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17107         PR ada/6717
17108         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
17109         broadcast address.
17110         (Create_Selector): Bind listening socket used to create the signalling
17111         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
17112         Set listen backlog to 1 to ensure that we detect socket theft by a
17113         failure of our own connect(2) call.
17114         (Check_Selector): Improve documentation of the selector mechanism.
17115         (Broadcast_Inet_Addr): New constant.
17117 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
17119         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
17120         type which turns out to be an incomplete and incorrect fix.
17121         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
17122         of the type is declared in a record (for determination of insertion
17123         type).
17124         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
17125         a private type and ensure that the primary entity is used for the type
17126         of the newly created function's V formal by taking the Etype of the
17127         view.
17129 2005-06-14  Javier Miranda  <miranda@adacore.com>
17130             Jose Ruiz  <ruiz@adacore.com>
17131             Robert Dewar  <dewar@adacore.com>
17132             Ed Schonberg  <schonberg@adacore.com>
17134         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
17135         that indicates if we are parsing a compilation unit found in a
17136         limited-with clause.
17137         It is use to avoid the circularity check.
17139         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
17140         we are parsing a compilation unit found in a limited-with clause. This
17141         is use to avoid the circularity check.
17143         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
17144         unit as a consequence of parsing a limited-with clause. This is used
17145         to avoid the circularity check.
17147         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
17148         (Analyze_Context): Limited-with clauses are now allowed
17149         in more compilation units.
17150         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
17151         againts previously reported critical errors in context clauses
17152         (Install_Limited_Withed_Unit): Code cleanup plus static detection
17153         of two further errors: renamed subprograms and renamed packages
17154         are not allowed in limited with clauses.
17155         (Install_Siblings): Do not install private_with_clauses on the package
17156         declaration for a non-private child unit.
17157         (Re_Install_Parents): When a parent of the subunit is reinstalled,
17158         reset visibility of child units properly.
17159         (Install_Withed_Unit): When a child unit appears in a with_clause of its
17160         parent, it is immediately visible.
17162 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17163             Emmanuel Briot  <briot@adacore.com>
17165         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
17166         declared within an inlined body as referenced, to prevent spurious
17167         warnings.
17168         (Output_One_Ref): If an entity renames an array component, indicate in
17169         the ALI file that this aliases (renames) the array. Capture as well
17170         function renamings that rename predefined operations.
17171         Add information about generic parent for package and subprogram
17172         instances.
17173         (Get_Type_Reference): For a subtype that is the renaming of an actual in
17174         an instantiation, use the first_subtype to ensure that we don't generate
17175         cross-reference information for internal types.
17176         For objects and parameters of a generic private type, retain the '*'
17177         indicator to distinguish such an entity from its type.
17179         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
17180         to store information about instantiated entities.
17182         * ali.adb (Scan_ALI): Add support for parsing the reference to the
17183         generic parent
17185         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
17186         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
17187         information.
17189 2005-06-10  Doug Rupp  <rupp@adacore.com>
17190             Arnaud Charlet  <charlet@adacore.com>
17191             Olivier Hainque  <hainque@adacore.com>
17192             Jose Ruiz  <ruiz@adacore.com>
17194         * Make-lang.in: Add initialize.o when needed.
17195         Remove obsolete references to RT_FLAGS.
17196         Add missing dependencies for sdefault.o
17198         * initialize.c: New file.
17200         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
17201         [VMS] cond_signal_table: Fix problem in declaration.
17202         [VMS] __gnat_error_handler: rewrite.
17203         Move all __gnat_initialize() routines to initialize.c
17204         Specialize the former "hpux" section to "hppa hpux", as this is what the
17205         section really is here for and we now have other hpux ports that need
17206         different contents.
17207         (__gnat_adjust_context_for_raise) i386-linux: First version of this
17208         function for this target. Adjust PC by one in the machine context. This
17209         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
17210         it is more reliable to do that in the signal handler itself.
17211         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
17212         flags, so that the handler is passed the context structure to adjust
17213         prior to the raise.
17214         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
17215         SA_SIGINFO sigaction should look like. Call
17216         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
17217         Machine_State_Operations stuff.
17218         Add conditional code so that the x86_64 is also supported.
17220 2005-06-14  Pascal Obry  <obry@adacore.com>
17222         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
17223         the library name.
17225 2005-06-14  Robert Dewar  <dewar@adacore.com>
17227         * opt.ads, opt.adb: New flags for persistent_bss mode
17228         Add Ada_Version_Explicit, for implementation of AI-362
17229         Add Assertions_Enabled_Config and associated handling
17230         Needed since setting can be changed with Assertion_Policy pragma
17231         Add new flag Warn_On_Ada_2005_Compatibility
17233         * switch-c.adb: Recognize -gnatwy/Y
17234         Set Ada_Version_Explicit, for implementation of AI-362
17235         The -gnatg switch now includes -gnatyu
17237         * usage.adb: Add -gnatwy/Y
17238         Remove wrong asterisk on -gnatwX line
17239         Add line for -gnatyu switch
17241 2005-06-14  Vincent Celier  <celier@adacore.com>
17243         * osint.adb (Add_Default_Search_Dirs): Put source and object
17244         directories of project files before directories coming from
17245         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
17247 2005-06-14  Robert Dewar  <dewar@adacore.com>
17249         PR ada/15613
17250         * par-ch2.adb (Scan_Pragma_Argument): New procedure
17251         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
17253 2005-06-14  Vincent Celier  <celier@adacore.com>
17255         * prep.adb (Preprocess): Ignore error when scanning the first token of
17256         a line.
17258 2005-06-14  Vincent Celier  <celier@adacore.com>
17260         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
17261         (Check_Stand_Alone_Library): If the specified reference symbol file does
17262         not exist, only issue a warning when the symbol policy is not
17263         Controlled. And, when symbol policy is Compliant, set the symbol
17264         policy to Autonomous.
17266 2005-06-14  Vincent Celier  <celier@adacore.com>
17268         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
17269         when the project file in a with clause is not the last one, that is the
17270         project file name is followed by a comma.
17271         * prj-pp.adb: (First_With_In_List): New Boolean global variable
17272         (Print): Issue list of project files separated by commas in with clauses
17273         according to the values returned by Is_Not_Last_In_List.
17274         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
17275         (Set_Is_Not_Last_In_List): New procedure
17277 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
17279         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
17281 2005-06-14  Robert Dewar  <dewar@adacore.com>
17283         * scng.adb: Add call to new Check_EOF routine
17284         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
17285         Add some comments regarding wide character handling
17287         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
17289         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
17291         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
17292         characters are now considered graphic characters and hence yield false
17293         in this call.
17295         * nmake.adt: Modify header so that xnmake does not generate output
17296         files with multiple blank lines.
17298         * treeprs.adt: Remove a blank line so that output from xtreeprs does
17299         not have an extra blank line
17301 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
17303         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
17304         expression when the component type is an anonymous access type to
17305         ensure that appropriate accessibility checks are done.
17307         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
17308         expression of an assignment when the target object is of an anonymous
17309         access type. This ensures that required accessibility checks are done.
17310         (One_Bound): Move the check for type Universal_Integer to
17311         Process_Bounds.
17312         (Process_Bounds): Check whether the type of the preanalyzed range is
17313         Universal_Integer, and in that case set Typ to Integer_Type prior
17314         to setting the type of the original range and the calls to One_Bound.
17316 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17318         * sem_case.adb (Expand_Others_Choice): Improve warning.
17320 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17322         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
17323         constraint of full view if present, when other type is discriminated.
17324         (Eval_Relational_Op): Recognize tests of pointer values against Null,
17325         when the pointer is known to be non-null, and emit appropriate warning.
17327 2005-06-14  Robert Dewar  <dewar@adacore.com>
17328             Ed Schonberg  <schonberg@adacore.com>
17330         PR ada/10671
17331         * sem_prag.adb: Implement pragma Persistent_BSS
17332         Remove obsolete pragma Persistent_Data, Persistent_Object
17333         Set Ada_Version_Explicit, for implementation of AI-362
17334         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
17335         Add processing for pragma Pure_05 and Preelaborate_05
17336         Add processing for Assertion_Policy pragma
17337         Add pragma identifiers for Assert
17338         (Analyze_Pragma, case Assert): Check number of arguments
17339         (Process_Inline): Additional guard against an illegal program, where the
17340         argument of the pragma is undefined, and warnings on redundant
17341         constructs are enabled.
17342         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
17343         Ada_05 to this pragma, specifying that the pragma is only active in
17344         Ada_05 mode.
17345         (Check_Arg_Order): New procedure
17346         Add appropriate calls to this procedure throughout
17347         Also throughout, check entity name before doing any other checks
17349         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
17350         Remove obsolete pragma Persistent_Data, Persistent_Object
17351         Add entries for pragma Pure_05 and Preelaborate_05
17352         Add entries for Assertion_Policy pragma and associated names
17353         Add some names for pragma argument processing
17355         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
17357 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17359         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
17360         appears within a negation (either from source or as a rewriting of
17361         inequality) adjust text of warning accordingly.
17363 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17365         * s-strxdr.adb: Follow AI95-00132
17367 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
17369         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
17371 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
17372             Jose Ruiz  <ruiz@adacore.com>
17374         * s-tposen.adb, s-tpobop.adb
17375         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
17376         the exception id.
17377         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
17378         there is no violation of the Max_Entry_Queue_Length restriction (if it
17379         has been set); Program_Error is raised otherwise.
17380         (Requeue_Call): Before requeuing the task on the target entry queue we
17381         check that there is no violation of the Max_Entry_Queue_Length
17382         restriction (if it has been set); Program_Error is raised otherwise.
17384 2005-06-14  Robert Dewar  <dewar@adacore.com>
17386         * styleg.adb: Fix several remaining problems in -gnatyu switch
17387         Blank line count not reset at start
17388         Scanning outside source buffer in some cases
17389         Confusing message for blanks at end of file
17390         Non-empty blank lines not recognized
17392         * nmake.adt: Modify header so that xnmake does not generate output
17393         files with multiple blank lines.
17395         * treeprs.adt: Remove a blank line so that output from xtreeprs does
17396         not have an extra blank line
17398 2005-06-14  Sergey Rybin  <rybin@adacore.com>
17400         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
17402 2005-06-14  Doug Rupp  <rupp@adacore.com>
17403             Vincent Celier  <celier@adacore.com>
17405         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
17406         Update copyright.
17408         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17409         Remove "Library" command.
17410         Change keyword for style check -gnatyd from NOCRLF to
17411         DOS_LINE_ENDINGS.
17412         Remove useless second style check keyword NONE
17413         Remove help documentation for inexistent style check keyword
17414         RM_COLUMN_LAYOUT.
17415         Add help documentation for style check keywords DOS_LINE_ENDINGS,
17416         UNNECESSARY_BLANK_LINES and XTRA_PARENS
17417         Add UNNECESSARY_BLANK_LINES for -gnatyu
17418         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
17420         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17422 2005-06-14  Vincent Celier  <celier@adacore.com>
17424         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
17425         gprmake was invoked with -d.
17426         (Compile_Sources): If -d was used, output the "completed ..." message
17427         for each compilation.
17428         (Scan_Arg): Recognize new switch -d
17429         When -c and at least one main is specified, set
17430         Unique_Compile to True to guarantee that no other sources will be
17431         compiled.
17433 2005-06-14  Matthew Heaney  <heaney@adacore.com>
17435         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
17436         * a-swuwha.ads, a-swuwha.adb: New files
17438         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
17439         * a-szuzha.ads, a-szuzha.adb: New files.
17441         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
17442         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
17443         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
17444         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
17445         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
17446         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
17447         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
17448         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
17449         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
17450         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
17451         Ada 2005 RM.
17453 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
17454             Olivier Hainque  <hainque@adacore.com>
17455             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17456             Pascal Obry  <obry@adacore.com>
17458         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
17460         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
17461         making a temporary around a procedure call because of non-addressable
17462         actual parameter.
17463         (process_freeze_entity): If entity is a private type, capture size
17464         information that may have been computed for the full view.
17465         (tree_transform, case N_Allocator): If have initializing expression,
17466         check type for Has_Constrained_Partial_View and pass that to
17467         build_allocator.
17468         (tree_transform, case N_Return_Statement): Pass extra arg to
17469         build_allocator.
17471         * decl.c (annotate_value): Remove early return if -gnatR is not
17472         specified.
17473         (gnat_to_gnu_field): Don't make a packable type for a component clause
17474         if the position is byte aligned, the field is aliased, and the clause
17475         size isn't a multiple of the packable alignment. It serves no useful
17476         purpose packing-wise and would be rejected later on.
17477         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
17479         PR ada/20515
17480         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
17481         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
17482         instead.
17483         (create_concat_name): Idem.
17485 2005-06-10  Robert Dewar  <dewar@adacore.com>
17486             Eric Botcazou  <ebotcazou@adacore.com>
17487             Ben Brosgol  <brosgol@adacore.com>
17488             Cyrille Comar  <comar@adacore.com>
17489             Sergey Rybin  <rybin@adacore.com>
17490             Pascal Obry  <obry@adacore.com>
17492         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
17493         Document second argument (Ada_05) of pragma Obsolescent
17494         Add note that call to subprogram marked with pragma Obsolescent
17495         is now considered to be a violation of program Restrictions
17496         (No_Obsolescent_Features).
17497         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
17498         that only machine-dependent attributes are supported.
17500         * gnat_ugn.texi:
17501         Commented out menu lines and empty section for gnatclean examples
17502         Document -gnatwy/Y
17503         Fix some over long lines
17504         Clarify and enhance documentation of ADA_PROJECT_PATH.
17505         Rework section 2.11.2(3) about linking with a non-GNU compiler.
17506         Mention new switch -fcallgraph-info.
17507         Mention new switch -fstack-usage.
17508         For gnatpp, replace '-notab' with '-N' and add this option to Index
17509         Corrected VMS example.
17510         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
17511         Minor reformatting
17512         Add documentation for -gnatyu switch (unnecessary blank lines)
17513         Document new switch -U for GNAT PRETTY and GNAT METRIC
17514         Add note about Stdcall being handled as C convention on non Windows OS.
17515         Remove some junk typo in description of gnatbind -S switch
17516         Remove reference to Extensions_Allowed pragma
17517         Document the new order of the directories to be searched (source and
17518         object directories of project files before directories in ADA_*_PATH
17519         environment variables.
17521         * g-trasym.ads: Document that IRIX is supported
17523 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
17525         * Makefile.in: Add initialize.o when needed.
17526         Adapt to new VMS package body Symbols and subunits
17527         No specialized version of a-sytaco is needed for VxWorks.
17529         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
17530         * a-zchara.ads, a-widcha.ads: New files.
17532         * system-hpux-ia64.ads: New file.
17534         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
17535         is imported from the VxWorks kernel.
17537 2005-06-14  Robert Dewar  <dewar@adacore.com>
17539         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
17540         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
17541         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
17542         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
17543         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
17544         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
17545         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
17546         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
17547         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
17548         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
17549         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
17550         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
17552 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17554         * xeinfo.adb: Fix typo in comment
17556 2005-06-14  Javier Miranda  <miranda@adacore.com>
17558         * repinfo.ads: Fix typo in comment
17560 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
17562         * s-finimp.adb (Parent_Tag): Delete this imported function (function
17563         Parent_Tag is now in the visible part of Ada.Tags).
17564         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
17565         using imported function.
17567 2005-06-14  Bernard Banner  <banner@adacore.com>
17569         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
17570         also apply for handling support for VxSim 653.
17572 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
17574         * xsnames.adb: Add automatic generation of snames.h.
17576 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17578         * gen-soccon.c: Add IP_MULTICAST_IF constant
17579         Minor reformatting and adjustments to prevent warnings.
17581 2005-06-14  Pascal Obry  <obry@adacore.com>
17583         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
17585 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
17587         * trans.c (gnat_gimplify_expr): Call
17588         recompute_tree_invarant_for_addr_expr when we change
17589         the operand of the ADDR_EXPR.
17591 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17593         * misc.c: Don't include errors.h.
17595 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17597         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
17599 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
17601         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
17602         comment typos.
17603         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
17605 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
17607         PR ada/20270
17608         * Makefile.in: Make TGT_LIB behave correctly.
17610 2005-04-23  DJ Delorie  <dj@redhat.com>
17612         * misc.c: Adjust warning() callers.
17614 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
17616         PR ada/18847
17617         * a-nudira.adb (Value): Check for valid string.
17618         * a-nuflra.adb (Value): Likewise.
17620 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
17622         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
17624 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
17626         * adaint.c, init.c, tracebak.c: Fix comment typos.
17627         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
17629 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
17630             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17632         * Makefile.in: Add make ifeq define for hppa linux tasking support.
17633         * system-hpux.ads: Define Signed_Zeros to be True.
17634         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
17636 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
17638         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
17639         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
17640         typos.
17642 2005-03-30  Tom Tromey  <tromey@redhat.com>
17644         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
17646 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17648         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
17650 2005-03-29  Robert Dewar  <dewar@adacore.com>
17652         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
17653         fixed-point expression has value that is not a multiple of the Small
17654         value.
17656         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
17658         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
17659         nanoseconds.
17661         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
17663 2005-03-29  Vincent Celier  <celier@adacore.com>
17665         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
17666         (Build_Dynamic_Library.Version_String): Return the empty string when
17667         Lib_Version is empty or when the symbol policy is not Autonomous.
17669         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
17670         a symbol is not in the reference symbol file, increase the Major ID
17671         and set the Minor ID to 0.
17672         Use gsmatch=lequal instead of gsmatch=equal
17674 2005-03-29  Doug Rupp  <rupp@adacore.com>
17676         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
17677         name and translate.
17679 2005-03-29  Javier Miranda  <miranda@adacore.com>
17681         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
17682         (Inherit_DT): The first formal has been redefined as a Tag.
17683         This allows us the removal of the subprogram Get_TSD.
17684         (TSD): Replace the call to Get_TSD by the actual code.
17686         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
17687         (Make_DT): Upgrade the call to Inherit_TSD according to the
17688         new interface: the first formal is now a Tag.
17690         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
17691         redefined as a Tag.
17692         This change allows us to remove the subprogram Get_TSD.
17693         (CPP_Get_TSD): Subprogram removed.
17694         (TSD): Replace the call to CPP_Get_TSD by the actual code.
17696         * rtsfind.ads: Remove support to call the run-time
17697         subprogram Get_TSD
17699 2005-03-29  Robert Dewar  <dewar@adacore.com>
17701         * errutil.adb, errout.adb:
17702         Minor comment updates on Line_Terminator references
17704         * par-ch10.adb: Add ??? comment about line terminator
17706         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
17707         (check dos line terminator).
17708         (Check_Line_Max_Length): New procedure, split off from the existing
17709         Check_Line_Terminator routine. Separating this out allows -gnatyf to
17710         be properly recognized.
17712         * styleg.adb: Add ??? comment for line terminator reference
17714         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
17715         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
17717         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
17718         (check dos line terminator).
17719         (Check_Line_Max_Length): New procedure, split off from the existing
17720         Check_Line_Terminator routine. Separating this out allows -gnatyf to
17721         be properly recognized.
17723         * stylesw.ads, stylesw.adb:
17724         Add handling for new -gnatyd switch (check dos line terminator)
17726         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
17727         Recognize -gnatwb/-gnatwB switches
17728         Include Warn_On_Bad_Fixed_Value for -gnatg
17730         * usage.adb:
17731         Add line for new -gnatyd switch (check dos line terminator)
17733         * usage.adb: Add lines for -gnatwb/-gnatwB
17735         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
17737         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
17739         * gnat_ugn.texi: Fix overlong lines
17740         Document new -gnatyd switch
17741         Document new -gnatwb/-gnatwB switches
17743 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17745         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
17746         order to retrieve the component list of the type, before examining
17747         individual components.
17749         * sem_type.adb (Covers): Types are compatible if one is the base type
17750         of the other, even though their base types might differ when private
17751         views are involved.
17753 2005-03-29  Thomas Quinot  <quinot@adacore.com>
17755         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
17756         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
17757         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
17758         analyzed if expansion is disabled (which could otherwise cause spurious
17759         error messages if expansion has been disabled due to previous
17760         (unrelated) errors).
17762         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
17763         is disabled, the entity denoted by the argument is the access type
17764         itself, not an underlying record type, so there is no need to go back
17765         to the Corresponding_Remote_Type.
17767 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
17768             Robert Dewar  <dewar@adacore.com>
17770         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
17771         expand a call to an instance of
17772         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
17773         Constructor actual of the instance. A class-wide membership
17774         check is also generated, to ensure that the tag passed to the instance
17775         denotes a type in the class.
17776         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
17777         of Name_Generic_Dispatching_Constructor.
17779         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
17780         05 unit for AI-260-02).
17782         * a-tgdico.ads: New file.
17784         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
17785         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
17787         * snames.ads, snames.adb (Preset_Names): Add entry for
17788         Generic_Dispatching_Constructor.
17790         PR ada/20300
17791         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
17792         character type cases.
17793         (Analyze_Subprogram_Renaming): Add special handling for
17794         the case of renaming of stream attributes when the renaming denotes a
17795         generic formal subprogram association for an abstract formal subprogram.
17796         Check that the attribute is a primitive stream attribute (and not
17797         a class-wide stream attribute) and then rewrite the attribute name
17798         as the name of the appropriate compiler-generated stream primitive.
17800 2005-03-29  Robert Dewar  <dewar@adacore.com>
17802         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
17803         recursive calls.
17804         (Is_Possibly_Unaligned_Object): Correct typo that
17805         resulted in inaccurate result for unaligned scalars within records.
17807 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17809         * freeze.adb (Freeze_Record_Type): If the type of the component is an
17810         itype whose parent is controlled and not yet frozen, do not create a
17811         freeze node for the itype if expansion is disabled.
17813 2005-03-29  Vincent Celier  <celier@adacore.com>
17815         * make.adb (Gnatmake): Don't fail if the main project file is declared
17816         as having no Ada sources. Do not display message "no sources to
17817         compile" in quiet output.
17819 2005-03-29  Doug Rupp  <rupp@adacore.com>
17821         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
17822         extra tools.
17824 2005-03-29  Robert Dewar  <dewar@adacore.com>
17826         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
17827         child.
17829 2005-03-29  Robert Dewar  <dewar@adacore.com>
17831         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
17832         missing TYPE Improve the error message generated when compiling a
17833         limited interface in Ada83 or Ada95 mode.
17835 2005-03-29  Robert Dewar  <dewar@adacore.com>
17837         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
17838         rather than proceed ahead using a junk attribute name.
17840 2005-03-29  Vincent Celier  <celier@adacore.com>
17842         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
17844         * prj-part.adb (Parse_Single_Project): Set the location of a project
17845         on its defining identifier, rather than on the reserved word "project".
17847         * prj-proc.adb (Expression): Adapt to the fact that default of external
17848         references may be string expressions, not always literal strings.
17849         (Recursive_Process): Set Display_Name equal to Name
17850         when Location is No_Location, that is when there is no actual file.
17851         Get the Display_Name of the project from the source, when it is not a
17852         virtual project.
17853         (Process): Use the Display_Name in error messages
17855         * prj-strt.adb (External_Reference): Allow default to be string
17856         expressions, not only literal strings.
17858 2005-03-29  Vincent Celier  <celier@adacore.com>
17860         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
17861         file and the reference symbol file to be the same file.
17863 2005-03-29  Thomas Quinot  <quinot@adacore.com>
17865         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
17866         forbid conversion of a local access-to-subprogram type to a remote one.
17868         * sem_util.adb (Wrong_Type): For a record type that is the expanded
17869         equivalent type for a remote access-to-subprogram type, go back to the
17870         original RAS entity when displaying an error message, so the casing is
17871         the original source casing.
17873 2005-03-29  Robert Dewar  <dewar@adacore.com>
17875         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
17876         on param update.
17878 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17880         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
17881         subtype if code is being pre-analyzed, to prevent un-expanded
17882         references to protected formals, among others.
17883         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
17884         interpretation that can be a call, include the result of the call as a
17885         possible interpretation of the dereference.
17887         * sem_ch5.adb (Process_Bounds): Determine type of range by
17888         pre-analyzing a copy of the original range, and then analyze the range
17889         with the expected type.
17891         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
17892         with an overloaded prefix where not all interpretations yield an
17893         access to subprogram, do not rewrite node as a call.
17894         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
17895         the node as a call once the context identifies the interpretation of
17896         the prefix whose call yields the context type.
17897         (Valid_Conversion): For the case of a conversion between
17898         local access-to-subprogram types, check subtype conformance using
17899         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
17900         detailed error message.
17902 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17904         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
17905         indicator, indicate that the formal can never be null.
17906         (Process_Formals): If a formal has a non_null indicator, insert the
17907         resulting subtype immediately before the enclosing subprogram decl,
17908         and not at the beginning of the corresponding declarative part, to
17909         prevent access before elaboration (Ada2005).
17911 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17913         PR ada/19956
17914         * utils.c (finish_record_type): Use variable_size when setting sizes.
17916 2005-03-29  Robert Dewar  <dewar@adacore.com>
17918         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
17919         guarantee Unix style line terminators for the output files, even when
17920         running on windows.
17922 2005-03-29  Robert Dewar  <dewar@adacore.com>
17924         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
17925         buffer if an exception is raised.
17927 2005-03-29  Ed Falis  <falis@adacore.com>
17929         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
17930         VxWorks 653 1.4
17932 2005-03-29  Robert Dewar  <dewar@adacore.com>
17934         * sem_util.ads: Minor reformatting
17935         * gnat_rm.texi: Minor editing.
17937 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
17939         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17940         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17942 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17944         * adaint.c (__gnat_portable_spawn): Adjust cast.
17946 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
17948         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
17950 2005-03-17  Pascal Obry  <obry@adacore.com>
17952         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
17953         used.
17955         * expect.c (__gnat_waitpid): Moved here from adaint.c.
17956         Reimplement under Win32 using Win32 API.
17958         (__gnat_kill) [Win32]: Properly close the process handle before leaving
17959         this routine.
17961 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
17963         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
17964         (DECL_RENAMED_OBJECT): New accessor macro.
17965         (SET_DECL_RENAMED_OBJECT): New setter macro.
17967         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
17968         object in all cases.  Attach the renamed object to the VAR_DECL.
17969         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
17970         field is not prescribed.
17972         * misc.c (gnat_handle_option): Handle -gnatO separately.
17973         (gnat_print_decl) <VAR_DECL>: New case.
17974         Print the DECL_RENAMED_OBJECT node.
17976         * lang.opt:  Declare separate -gnatO option.
17978         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
17979         pointer, replace it with the renamed object.
17980         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
17981         pointer type if the source is not a fat pointer type whose underlying
17982         array has the same non-zero alias set as that of the destination array.
17984 2005-03-17  Javier Miranda  <miranda@adacore.com>
17986         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
17987         (Get_Inheritance_Depth): Removed.
17988         (Set_Inheritance_Depth): Removed.
17990         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
17991         subprogram Get_Expanded_Name because it is not referenced by the
17992         frontend.
17994         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
17995         (CPP_Get_Inheritance_Depth): Removed.
17996         (CPP_Set_Inheritance_Depth): Removed.
17998         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
18000 2005-03-17  Robert Dewar  <dewar@adacore.com>
18002         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
18003         3, since we now expect GCC 3 to do all the work.
18005 2005-03-17  Javier Miranda  <miranda@adacore.com>
18007         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
18008         of one barrier to avoid wrong usage of this attribute.
18010         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
18011         First_Private_Entity.
18013         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
18014         the subprogram against wrong usage.
18015         Adapt the code to traverse the entities in the
18016         scope of a record_type because in addition to its usage regarding
18017         packages, this subprogram is also called by Expand_N_Freeze_Entity
18018         to install the visible declarations of the enclosing scope of a
18019         record_type_with_private to establish the proper visibility before
18020         freezing the entity and related subprograms.
18022 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
18024         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
18025         entry formals.
18027 2005-03-17  Thomas Quinot  <quinot@adacore.com>
18029         * exp_ch3.adb (Check_Attr): New subprogram.
18030         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
18031         into a new Check_Attr subprogram, in order to provide a more
18032         explanatory error message (including the name of the missing attribute).
18033         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
18034         subprogram determines whether a default implementation exists for a
18035         given stream attribute.
18036         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
18037         Determine whether to generate a default implementation for each stream
18038         attribute separately, as this depends on the specific attribute.
18040         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
18041         limited extension where a stream attribute is missing for a limited
18042         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
18043         generate a bogus reference to the missing attribute to prevent
18044         cascaded errors. Instead, generate a null statement.
18046         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
18047         available for a limited type if it has been specified for an ancestor
18048         of the type.
18050 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
18052         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
18053         entity is an operator.
18055 2005-03-17  Thomas Quinot  <quinot@adacore.com>
18057         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
18058         spec, to make this predicate available to other units.
18060         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
18061         reimplementing it.
18063         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
18064         when no distribution runtime library is available.
18066         * sem_res.adb, sem_dist.adb: Disable expansion of remote
18067         access-to-subprogram types when no distribution runtime library is
18068         available.
18069         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
18070         predicate available to other units.
18072         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
18073         spec, to make this predicate available to other units.
18075 2005-03-17  Vincent Celier  <celier@adacore.com>
18077         * make.adb (Insert_Project_Sources): Make sure the Q is always
18078         initialized.
18080         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
18081         the default for the tree, not the global default naming.
18083         * prj-proc.adb (Recursive_Process): No need to put the default naming
18084         in the project data, it's already there.
18086 2005-03-17  Doug Rupp  <rupp@adacore.com>
18088         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
18090         * 5xcrtl.ads: Renamed to...
18091         * s-crtl-vms64.ads: ...this new file
18093 2005-03-17  Robert Dewar  <dewar@adacore.com>
18095         PR ada/19519
18096         * namet.adb (Copy_One_Character): Set proper wide character encoding
18097         for upper half character if we have upper half encoding.
18099 2005-03-17  Robert Dewar  <dewar@adacore.com>
18101         * par.adb (Par): Improved msg for attempt to recompile predefined unit
18103 2005-03-17  Thomas Quinot  <quinot@adacore.com>
18105         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
18106         tagged limited type, the TSS is a newly built renaming declaration:
18107         insert it using Set_TSS, not Copy_TSS.
18109 2005-03-17  Javier Miranda  <miranda@adacore.com>
18111         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
18112         Try_Object_Operation): Analyze the object that is accessible
18113         through the prefix of the subprogram call before we apply
18114         the transformation of the object-operation notation.
18116 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
18118         * s-taprob.adb (Initialize_Protection): Initialize the protected
18119         object's owner to Null_Task.
18120         (Lock): If pragma Detect_Blocking is in effect and the caller of this
18121         procedure is already the protected object's owner then Program_Error
18122         is raised. In addition the protected object's owner is updated.
18123         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
18124         of this procedure is already the protected object's owner then
18125         Program_Error is raised.
18126         In addition the protected object's owner is updated.
18127         (Unlock): Remove the ownership of the protected object.
18129         * s-taprob.ads (Protection): Add the field Owner, used to store the
18130         protected object's owner.
18131         This component is needed for detecting one type of potentially blocking
18132         operations (external calls on a protected subprogram with the same
18133         target object as that of the protected action). Document the rest of
18134         the components.
18136         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
18137         Initialize the protected object's owner to Null_Task.
18138         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
18139         caller of this procedure is already the protected object's owner then
18140         Program_Error is raised.
18141         Do not raise Program_Error when this procedure is called from a
18142         protected action.
18143         (Unlock_Entries): Remove the ownership of the protected object.
18144         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
18145         of this procedure is already the protected object's owner then
18146         Program_Error is raised.
18147         Do not raise Program_Error when this procedure is called from
18148         a protected action.
18150         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
18151         used to store the protected object's owner.
18153         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
18154         effect and this procedure (a potentially blocking operation) is called
18155         from whithin a protected action, Program_Error is raised.
18156         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
18157         and this procedure (a potentially blocking operation) is called from
18158         whithin a protected action, Program_Error is raised.
18160 2005-03-17  Vincent Celier  <celier@adacore.com>
18161             Nicolas Setton  <setton@adacore.com>
18163         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
18164         switch, not supported by the linker on Darwin. Add '_' before
18165         <library>init, as this character is added unconditionally by the
18166         compiler.
18167         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
18168         correct one ".dylib". This fixes detection of the archive files when
18169         building library projects.
18171 2005-03-17  Vincent Celier  <celier@adacore.com>
18173         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
18174         -gnat83, -gnat95 and -gnat05.
18176 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
18178         * gnat_ugn.texi: Document gnatmem restriction
18180 2005-03-17  Thomas Quinot  <quinot@adacore.com>
18182         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
18183         cleanup
18185 2005-03-17  Robert Dewar  <dewar@adacore.com>
18187         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
18188         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
18189         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
18191         * casing.adb: Comment improvements
18193 2005-03-17  Pascal Obry  <obry@adacore.com>
18195         * g-expect.adb: Minor reformatting.
18197 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
18199         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
18200         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
18201         to dependencies.
18203 2005-03-15  Vincent Celier  <celier@adacore.com>
18205         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
18206         Add new parameter In_Tree to specify the project tree: needed
18207         by the project manager. Adapt to changes in project manager
18208         using new parameter In_Tree.
18210 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
18212         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
18213         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
18214         ada/bldtools to avoid make -jN failures.
18216 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18218         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
18219         to NULL_TREE on entry.
18221 2005-03-15  Robert Dewar  <dewar@adacore.com>
18223         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18224         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18225         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18226         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18227         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18228         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
18229         system-interix.ads, system-solaris-sparc.ads,
18230         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18231         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
18232         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
18233         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
18234         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
18235         Compiler_System_Version to be False.
18237         * opt.ads: Add new flag Opt.Address_Is_Private
18239         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
18240         Add new parameter Compiler_System_Version to avoid checking for
18241         completeness of parameters when compiler is compiling itself.
18242         Allows old versions of GNAT to be compiled with new compiler.
18244 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18246         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
18247         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
18248         calling thread.
18249         (Stack_Base_Available): New flag.
18250         (Get_Page_Size): New overloaded functions imported from C.
18251         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
18252         PROT_ON, PROT_OFF): New constants.
18253         (mprotect): New function imported from C.
18254         (pthread_teb_t): New record type.
18256         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
18257         (Create_Task): Account for the Yellow Zone and the guard page.
18259 2005-03-15  Vincent Celier  <celier@adacore.com>
18261         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18262         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18263         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
18264         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
18265         Library_File_Name_For): Add new parameter In_Tree
18266         to specify the project tree: needed by the project manager.
18267         Adapt to changes in project manager using new parameter In_Tree.
18268         Remove local imports, use functions in System.CRTL.
18270         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
18271         to use the project manager.
18273         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
18274         In_Tree to designate the project tree. Adapt to changes in the project
18275         manager, using In_Tree.
18277         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
18278         Copy_Interface_Sources): Add new parameter In_Tree to specify the
18279         project tree: needed by the project manager.
18280         (Build_Library): Check that Arg'Length >= 6 before checking if it
18281         contains "--RTS=...".
18283         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
18284         Library_File_Name_For): Add new parameter In_Tree to specify the
18285         project tree: needed by the project manager.
18287         * prj.ads, prj.adb: Major modifications to allow several project trees
18288         in memory at the same time.
18289         Change tables to dynamic tables and hash tables to dynamic hash
18290         tables. Move tables and hash tables from Prj.Com (in the visible part)
18291         and Prj.Env (in the private part). Move some constants from the visible
18292         part to the private part. Make other constants deferred.
18293         (Project_Empty): Make it a variable, not a function
18294         (Empty_Project): Add parameter Tree. Returns the data with the default
18295         naming data of the project tree Tree.
18296         (Initialize): After updating Std_Naming_Data, copy its value to the
18297         component Naming of Project Empty.
18298         (Register_Default_Naming_Scheme): Use and update the default naming
18299         component of the project tree, instead of the global variable
18300         Std_Naming_Data.
18301         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
18302         Tree is not defaulted, return the default naming data of the Tree.
18303         (Initial_Buffer_Size): Constant moved from private part
18304         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
18305         variables initialized in procedure Initialize.
18306         (Add_To_Buffer): Add two in out parameters to replace global variables
18307         Buffer and Buffer_Last.
18308         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
18309         functions.
18310         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
18311         hash tables.
18312         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18313         for the project tree.
18314         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
18315         constant at the beginning of the package spec, so that they cane be used
18316         in subprograms before their full declarations.
18317         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
18318         (Empty_Project): Add parameter of type Project_Node_Ref
18319         (Private_Project_Tree_Data): Add component Default_Naming of type
18320         Naming_Data.
18321         (Buffer, Buffer_Last): remove global variables
18322         (Add_To_Buffer): Add two in out parameters to replace global variables
18323         Buffer and Buffer_Last.
18324         (Current_Packages_To_Check): Remove global variable
18325         (Empty_Name): Move to private part
18326         (No-Symbols): Make it a constant
18327         (Private_Project_Tree_Data): New type for the private part of the
18328         project tree data.
18329         (Project_Tree_Data): New type for the data of a project tree
18330         (Project_Tree_Ref): New type to designate a project tree
18331         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18332         for the project tree.
18334         * prj-attr.ads: Add with Table; needed, as package Prj no longer
18335         imports package Table.
18337         * prj-com.adb: Remove empty, no longer needed body
18339         * prj-com.ads: Move most of the content of this package to package Prj.
18341         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
18342         designate the project node tree and Packages_To_Check to replace
18343         global variable Current_Packages_To_Check.
18344         Add new parameters In_Tree and Packages_To_Check to local subprograms,
18345         when needed. Adapt to changes in project manager with project node tree
18346         In_Tree.
18348         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
18349         project tree to most subprograms. Move tables and hash tables to
18350         private part of package Prj.
18351         Adapt to changes in project manager using project tree In_Tree.
18353         * prj-makr.adb (Tree): New constant to designate the project node tree
18354         Adapt to change in project manager using project node tree Tree
18356         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
18357         display the Library_Src_Dir and the Library_Dir.
18358         Add new parameter In_Tree to designate the project node tree to most
18359         subprograms. Adapt to changes in the project manager, using project tree
18360         In_Tree.
18361         (Check_Naming_Scheme): Do not alter the casing on platforms where
18362         the casing of file names is not significant.
18363         (Check): Add new parameter In_Tree to designate the
18365         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
18366         designate the project tree.
18367         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
18369         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
18370         to replace those that were in the private part of package Prj.
18371         Add new parameter In__Tree to designate the project node tree to most
18372         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18373         (Post_Parse_Context_Clause): When specifying the project node of a with
18374         clause, indicate that it is a limited with only if there is "limited"
18375         in the with clause, not necessarily when In_Limited is True.
18376         (Parse): Add new parameter In_Tree to designate the project node tree
18378         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
18379         designate the project node tree. Adapt to change in Prj.Tree with
18380         project node tree In_Tree.
18382         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
18383         tree In_Tree in the call to function Empty_Process to give its initial
18384         value to the project data Processed_Data.
18385         Add new parameters In_Tree to designate the project tree and
18386         From_Project_Node_Tree to designate the project node tree to several
18387         subprograms. Adapt to change in project manager with project tree
18388         In_Tree and project node tree From_Project_Node_Tree.
18390         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
18391         to replace those that were in the private part of package Prj.
18392         Add new parameter In_Tree to designate the project node tree to most
18393         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18395         * prj-tree.ads, prj-tree.adb: Add new parameter of type
18396         Project_Node_Tree_Ref to most subprograms.
18397         Use this new parameter to store project nodes in the designated project
18398         node tree.
18399         (Project_Node_Tree_Ref): New type to designate a project node tree
18400         (Tree_Private_Part): Change table to dynamic table and hash tables to
18401         dynamic hash tables.
18403         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
18404         the project tree to most subprograms. Adapt to changes in project
18405         manager using project tree In_Tree.
18407         * makegpr.adb (Project_Tree): New constant needed to use project
18408         manager.
18410 2005-03-15  Olivier Hainque  <hainque@adacore.com>
18412         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
18413         for sigactions with SA_SIGINFO set. Call
18414         __gnat_adjust_context_for_raise before raising, to perform the
18415         potentially required adjustments to the machine context for the GCC
18416         unwinder.
18418         * raise.h (__gnat_adjust_context_for_raise): New prototype.
18420         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
18421         Adjust PC by one in the provided machine context.
18422         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
18423         so that the handler is passed the context structure to adjust prior to
18424         the raise.
18425         (__gnat_error_handler) HPUX: Adjust the signature to match what an
18426         SA_SIGINFO sigaction should look like. Call
18427         __gnat_adjust_context_for_raise before actually raising.
18428         (__gnat_adjust_context_for_raise): Default noop to help PC
18429         adjustments before raise from signal handlers.
18430         (__gnat_error_handler): Indirectly call a predicate function to
18431         determine if a condition should be resignaled or not.
18432         (__gnat_set_resignal_predicate): User interface to modify the predicate.
18433         (__gnat_default_resignal_p): Default GNAT predicate.
18435 2005-03-15  Doug Rupp  <rupp@adacore.com>
18437         * adaint.c: Prefix #include of VMS system header files with vms/
18438         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
18439         Do not define a dummy function "convert_addresses" under Darwin,
18440         not needed.
18442         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
18443         with vms/
18445 2005-03-15  Nicolas Setton  <setton@adacore.com>
18447         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
18448         PPC/AIX.
18450 2005-03-15  Robert Dewar  <dewar@adacore.com>
18452         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
18453         AI-386.
18455         * a-retide.ads: Minor comment changes
18457 2005-03-15  Robert Dewar  <dewar@adacore.com>
18459         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
18460         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
18461         Realloc_For_Chunk to private part of package.
18462         New subprograms for AI-301
18464         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
18465         Get_Line procedure.
18466         Avoid unnecessary use of Get/Set_Wide_String
18468 2005-03-15  Robert Dewar  <dewar@adacore.com>
18470         PR ada/13470
18471         * a-stunau.ads, a-stunau.adb:
18472         Change interface to allow efficient (and correct) implementation
18473         The previous changes to allow extra space in unbounded strings had
18474         left this interface a bit broken.
18476         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
18478         * g-spipat.ads, g-spipat.adb: New interface for Get_String
18479         Minor reformatting (function specs)
18481         * g-spitbo.adb: New interface for Get_String
18483         * g-spitbo.ads: Minor reformatting
18485         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
18487         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
18489 2005-03-15  Javier Miranda  <miranda@adacore.com>
18490             Robert Dewar  <dewar@adacore.com>
18491             Thomas Quinot  <quinot@adacore.com>
18492             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18494         * atree.ads, atree.adb: Add support for Elist24 field
18496         * atree.h: Fix wrong definition of Field27
18497         Add support for Elist16 field
18498         Add support for Elist24 field
18500         * einfo.ads, einfo.adb (Abstract_Interfaces,
18501         Set_Abstract_Interfaces): New subprograms.
18502         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
18503         subprograms.
18504         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
18505         entities rather than a single node.
18506         (Is_Interface, Set_Is_Interface): New subprogram
18507         (First_Tag_Component): New syntesized attribute
18508         (Next_Tag_Component): New synthesized attribute
18509         (Write_Entity_Flags): Upgraded to write Is_Interface
18510         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
18511         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
18512         (Task_Body_Procedure): New subprogram to read this attribute.
18513         (Set_Task_Body_Procedure): New subprogram to set this attribute.
18514         (Has_Controlled_Component): Now applies to all entities.
18515         This is only a documentation change, since it always worked to apply
18516         this to other than composite types (yielding false), but now this is
18517         official.
18518         Update documentation on Must_Be_Byte_Aligned for new spec
18520         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
18521         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
18522         uses of the Access_Disp_Table attribute to reference the first dispatch
18523         table associated with a tagged type. As
18524         part of the implementation of abstract interface types,
18525         Access_Disp_Table has been redefined to contain a list of dispatch
18526         tables (rather than a single dispatch table).
18527         Similarly, upgrade all the references to Tag_Component by the
18528         new attribute First_Tag_Component.
18529         (Find_Inherited_TSS): Moved to exp_tss.
18530         Clean up test in Expand_N_Object_Declaration for cases
18531         where we need to do a separate assignment of the initial value.
18532         (Expand_N_Object_Declaration): If the expression in the
18533         declaration of a tagged type is an aggregate, no need to generate an
18534         additional tag assignment.
18535         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
18536         is to be deleted.
18537         Bit packed array ops are only called if operands are known to be
18538         aligned.
18539         (Component_Equality): When returning an N_Raise_Program_Error statement,
18540         ensure that its Etype is set to Empty to avoid confusing GIGI (which
18541         expects that only expressions have a bona fide type).
18542         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
18543         determine the amount of data to be copied.
18545         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
18546         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
18547             INTERFACE_TYPE_DEFINITION ::=
18548               [limited | task | protected | synchronized] interface
18549                 [AND interface_list]
18551         * par-ch3.adb (P_Type_Declaration): Modified to give support to
18552         interfaces.
18553         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
18554         interfaces.
18555         (P_Interface_Type_Definition): New subprogram that parses the new
18556         syntax rule of Ada 2005 interfaces
18557         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
18558         messages by the correct RENAMES (quotes removed).
18560         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
18561         attribute First_Tag_Component.
18563         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
18564         (Interface_List, Set_Interface_List): New subprograms.
18565         (Interface_Present, Set_Interface_Present): New subprograms.
18566         (Limited_Present, Set_Limited_Present): Available also in derived
18567         type definition nodes.
18568         (Protected_Present, Set_Protected_Present): Available also in
18569         record type definition and
18570         derived type definition nodes.
18571         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
18572         (Task_Present, Set_Task_Present): New subprogram.
18573         (Task_Body_Procedure): Removed.
18574         (Set_Task_Body_Procedure): Removed.
18575         These subprogram have been removed because the attribute
18576         Task_Body_Procedure has been moved to the corresponding task type
18577         or task subtype entity to leave a field free to store the list
18578         of interfaces implemented by a task (for AI-345)
18579         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
18580         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
18581         expression flag Do_Range_Check
18582         (Exception_Junk): Change to Flag7 to accomodate above change
18583         (Box_Present, Default_Name, Specification, Set_Box_Present,
18584         Set_Default_Name, Set_Specification): Expand the expression
18585         "X in N_Formal_Subprogram_Declaration" into the corresponding
18586         two comparisons. Required to use the csinfo tool.
18588         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
18589         "with string" given.
18591         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
18592         expression given.
18594         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
18595         in 2005 mode
18597         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
18598         attribute Task_Body_Procedure rather than the old semantic field that
18599         was available in the task_type_declaration node.
18601         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
18602         interface type definitions.
18603         (P_Formal_Derived_Type_Definition): Modified to handle the list of
18604         interfaces.
18606         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
18607         task type declaration.
18608         (P_Protected): Modified to handle the list of interfaces in a
18609         protected type declaration.
18611 2005-03-15  Doug Rupp  <rupp@adacore.com>
18612             Vincent Celier  <celier@adacore.com>
18614         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
18615         (Gen_Output_File_C): Likewise.
18616         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
18618 2005-03-15  Thomas Quinot  <quinot@adacore.com>
18620         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
18621         is an N_Raise_Constraint_Error node, create a new copy of it without
18622         going through a call to Duplicate_Subexpr.
18624 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18625             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18626             Nicolas Setton  <setton@adacore.com>
18627             Ed Schonberg  <schonberg@adacore.com>
18629         PR ada/19900
18630         PR ada/19408
18631         PR ada/19140
18632         PR ada/20255
18633         * decl.c (gnat_to_gnu_field): Reject aliased components with a
18634         representation clause that prescribes a size not equal to the rounded
18635         size of their types.
18636         (gnat_to_gnu_entity, case E_Component): Always look at
18637         Original_Record_Component if Present and not the entity.
18638         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
18639         of tagged extension types by not making field for components that are
18640         inside the parent.
18641         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
18642         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
18643         expression to the type of the object when the object is constant.
18644         Reverse defer_debug_incomplete_list before traversing it, so that trees
18645         are processed in the order at which they were added to the list. This
18646         order is important when using the stabs debug format.
18647         If we are deferring the output of debug information, also defer this
18648         output for a function return type.
18649         When adding fields to a record, prevent emitting debug information
18650         for incomplete records, emit the information only when the record is
18651         complete.
18652         (components_to_record): New parameter defer_debug.
18653         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
18654         (gnat_to_gnu_field_decl): New function.
18655         (substitution_list, annotate_rep): Call it.
18656         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
18657         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
18658         No longer update discriminants to not be a COMPONENT_REF.
18659         (copy_alias_set): Strip padding from input type; also handle
18660         unconstrained arrays properly.
18662         * gigi.h (write_record_type_debug_info): New function.
18663         Convert to use ANSI-style prototypes. Remove unused
18664         declarations for emit_stack_check, elab_all_gnat and
18665         set_second_error_entity.
18666         (gnat_to_gnu_field_decl): New decl.
18668         * utils.c (write_record_type_debug_info): New function.
18669         (finish_record_type): Delegate generation of debug information to
18670         write_record_type_debug_info.
18671         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
18672         (update_pointer_to): Fix pasto.
18673         (convert) <UNION_TYPE>: Accept slight type variations when
18674         converting to an unchecked union type.
18676         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
18677         replace the N_Freeze_Entity with a null statement.
18679         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
18680         within a constrained subcomponent of an enclosing record, place the
18681         freeze nodes in the scope stack entry for the enclosing record.
18682         (Undelay_Type): New Subprogram.
18683         (Set_Small_Size): Pass T, the type to modify; all callers changed.
18684         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
18685         within records; allow them to have freeze nodes if their base types
18686         aren't frozen yet.
18688         * exp_util.adb (Remove_Side_Effects): Properly test for
18689         Expansion_Delayed and handle case when it's inside an
18690         N_Qualified_Expression.
18692         * sem_ch3.adb (Derived_Type_Declaration): New predicate
18693         Comes_From_Generic, to recognize accurately that the parent type in a
18694         derived type declaration can be traced back to a formal type, because
18695         it is one or is derived from one, or because its completion is derived
18696         from one.
18697         (Constrain_Component_Type): If component comes from source and has no
18698         explicit constraint, no need to constrain in in a subtype of the
18699         enclosing record.
18700         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
18701         Minor change to propagate Is_Ada_2005 flag
18703         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
18704         Expansion_Delayed is False.
18705         (assoc_to_constructor): Ignore fields that have a
18706         Corresponding_Discriminant.
18707         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
18708         function returns "by target", dereference the target pointer using the
18709         type of the actual return value.
18710         <all>: Be prepared for a null gnu_result.
18711         (processed_inline_subprograms): Check flag_really_no_inline
18712         instead of flag_no_inline.
18713         (set_second_error_entity): Remove unused function.
18714         (gnat_to_gnu, case N_Selected_Component): Call
18715         gnat_to_gnu_field_decl.
18716         (assoc_to_constructor): Likewise.
18718 2005-03-15  Robert Dewar  <dewar@adacore.com>
18719             Ed Schonberg  <schonberg@adacore.com>
18720             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18722         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
18723         Must_Be_Byte_Aligned for cases where we do not need to use a
18724         System.Pack_nn unit.
18726         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
18727         as procedures.
18728         Needed now that we do some processing for IN parameters as well. This
18729         may well fix some unrelated errors.
18730         (Expand_Call): Handle case of unaligned objects (in particular those
18731         that come from packed arrays).
18732         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
18733         renamed entity is an inherited operation, re-expand the call using the
18734         original operation, which is the one to call.
18735         Detect attempt to inline parameterless recursive subprogram.
18736         (Represented_As_Scalar): Fix to work properly with private types
18737         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
18738         accurate estimate. Yields True in far fewer cases than before,
18739         improving the quality of code that depends on this test.
18741         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
18742         over both visible and private declarations to remove them from tree,
18743         and mark subprograms declared in package as eliminated, to prevent
18744         spurious use in subsequent compilation of generic units in the context.
18746         * exp_util.ads: Minor cleanup in variable names
18748         * sem_eval.ads, sem_eval.adb: Minor reformatting
18749         (Compile_Time_Known_Bounds): New function
18751 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18753         * exp_ch7.adb (Convert_View): Use base types of underlying types when
18754         determining whether an unchecked conversion is needed for the argument
18755         of an initialization call.
18757 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18759         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
18760         that appears in the instantiation rather than the internal subtype
18761         generated in the wrapper package, to avoid anomalies in gigi when the
18762         target is derived from a private type whose full view is an access type.
18764 2005-03-15  Robert Dewar  <dewar@adacore.com>
18766         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
18767         not needed.
18768         Add documentation to replace the use of this flag
18769         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
18770         the x86_64.
18772 2005-03-15  Thomas Quinot  <quinot@adacore.com>
18774         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
18775         here from exp_attr so it can be shared between exp_attr and exp_dist.
18776         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
18777         all TSS names, not a subset thereof, and the previous name introduced
18778         an unnecessarily confusion that a distinction might exist between
18779         "OK" TSS names and some "not OK" TSS names.
18781 2005-03-15  Doug Rupp  <rupp@adacore.com>
18783         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
18784         Command_Name.
18786 2005-03-15  Pascal Obry  <obry@adacore.com>
18787             Eric Botcazou  <ebotcazou@adacore.com>
18789         PR ada/20226
18790         PR ada/20344
18791         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
18792         when IN_RTS. This is to work around a bootstrap path problem.
18794         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
18795         table and pass it to __gnat_install_SEH_handler().
18796         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
18798         * lang.opt: Fix specification of -fRTS=.
18800 2005-03-15  Doug Rupp  <rupp@adacore.com>
18801             Bernard Banner  <banner@adacore.com>
18802             Vincent Celier  <celier@adacore.com>
18803             Arnaud Charlet  <charlet@adacore.com>
18805         PR ada/6852
18806         This change works fine when gnatlib is built from the gcc directory,
18807         but does not work when using the libada Makefile, since GCC_FOR_TARGET
18808         is not passed to ada/Makefile.in, so more work is needed by a
18809         Makefile/configure expert.
18811         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
18812         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
18813         Setup gnatlink switch -M for x86_64 linux, as it is already setup
18814         for Linux x86.
18815         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
18816         Run ranlib on libgccprefix.a
18817         Define PREFIX_OBJS for Darwin, to build libgccprefix.
18818         (ADA_INCLUDE_SRCS): Split Ada packages.
18820 2005-03-15  Robert Dewar  <dewar@adacore.com>
18822         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
18824         * impunit.adb: Add GNAT.UTF_32
18826         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
18828         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
18829         now uses GNAT.UTF_32).
18831         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
18832         capabilities for categorizing characters using Unicode categories
18834 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18836         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
18837         instantiation that has been rewritten as a package body, retrieve spec
18838         to generate proper name for implicit_with_clause.
18839         (Install_Parents): Recognize a parent that is an instantiation but has
18840         been rewritten as a package declaration during analysis.
18842 2005-03-15  Javier Miranda  <miranda@adacore.com>
18843             Ed Schonberg  <schonberg@adacore.com>
18845         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
18846         parameter reported some error we immediately return. This improves the
18847         behaviour of the frontend in case of errors.
18848         (Install_Parent, Remove_Parent): Introduce new flag
18849         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
18850         ancestor of a generic child unit, when the child is being instantiated.
18851         (Inline_Instance_Body): If we are compiling the private
18852         part or the body of a child unit, restore the proper visibility of the
18853         parents after compiling the instance body.
18855 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18856             Javier Miranda  <miranda@adacore.com>
18858         PR ada/15608
18859         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
18860         of a private type, in which case it is underlying_type that denotes
18861         the proper task. Also modified to use the new entity attribute
18862         that is directly available in the task type and task subtype entities
18863         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
18864         arrays when other dimensions than the first are constrained by
18865         discriminants of an enclosing record.
18866         (Insert_Explicit_Dereference): If the prefix is an indexed component or
18867         a combination of indexed and selected components, find ultimate entity
18868         and generate the appropriate reference for it, to suppress spurious
18869         warnings.
18870         (Note_Possible_Modification): If an entity name has no entity, return.
18871         (Is_Variable): A function call never denotes a variable.
18872         (Requires_Transient_Scope): For record types, recurse only on
18873         components, not on internal subtypes that may have been generated for
18874         constrained components.
18876 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18878         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
18879         Eliminated as candidates for resolution. Both efficient, and avoids
18880         anomalies with operators declared in deleted code.
18881         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
18882         expansion is disabled (as when compiling a generic) to prevent spurious
18883         warnings on prefixes of selected components.
18885 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18887         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
18888         attached to a list before checking whether it appears in the private
18889         declarations of the current package.
18890         (Make_Inequality_Operator): Insert declaration in proper declarative
18891         list rather than just setting the Parent field, so that
18892         Is_Private_Declaration can handle it properly.
18894 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18896         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
18897         a renaming a body, check that the renamed subprogram in not intrinsic.
18898         (Find_Direct_Name): If several use_visible entities hide
18899         each other, and the context is a predefined file compiled through
18900         rtsfind, keep only the entity that comes from a predefined file.
18902 2005-03-15  Geert Bosch  <bosch@adacore.com>
18904         * s-fatgen.adb (Valid): Extend special exceptions to account for long
18905         long float padding to also cover AMD64 and IA64.
18907 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
18909         * s-imgwch.adb: Add with and use of Interfaces.
18910         (Img_Wide_Character): Change type of Val to Unsigned_16.
18911         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
18913 2005-03-15  Matthew Gingell  <gingell@adacore.com>
18915         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
18917 2005-03-15  Robert Dewar  <dewar@adacore.com>
18919         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
18921         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
18923         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
18925 2005-03-15  Robert Dewar  <dewar@adacore.com>
18927         * s-bitops.adb, s-bitops.ads,
18928         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
18929         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
18930         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
18931         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
18932         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
18933         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
18934         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
18935         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
18936         reformatting.
18938 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18940         * utils2.c (build_binary_op): Fix typo.
18942 2005-03-15  Doug Rupp  <rupp@adacore.com>
18944         * s-crtl.ads (popen,pclose): New imports.
18946 2005-03-15  Cyrille Comar  <comar@adacore.com>
18948         * comperr.adb (Compiler_Abort): remove references to obsolete
18949         procedures in the bug boxes for various GNAT builds.
18951 2005-03-15  Vincent Celier  <celier@adacore.com>
18953         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
18955 2005-03-15  Geert Bosch  <bosch@adacore.com>
18956             Arnaud Charlet  <charlet@adacore.com>
18957             Robert Dewar  <dewar@adacore.com>
18958             Cyrille Comar  <comar@adacore.com>
18959             Sergey Rybin  <rybin@adacore.com>
18961         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
18962         too specific and long-winded to be appropriate for the GNAT User's
18963         Guide.
18964         Warn about use of GCC switches not documented in the GNAT User's Guide,
18965         as these may cause generated code to not conform to Ada semantics.
18966         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
18967         Add documentation for -gnat95 and -gnat05 switches
18968         Remove paragraph documenting obsolete way to refer to third party
18969         libraries.
18970         Add a few references to Ada_05 that were missing.
18971         Update documentation on -gnatZ/-gnatL.
18972         Document limitation when using -m64 under Solaris.
18973         Change the "Name Casing" subsection of the pretty-printer section
18974         according to the changes in the dictionary processing.
18976         * gnat_rm.texi: Document the Ada_05 pragma.
18977         Section on record representation clauses describes the new more
18978         relaxed rules about placement of large packed bit array components.
18979         Add documentation of GNAT.UTF_32
18981 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
18983         * misc.c (gnat_post_options): Turn off structural
18984         aliasing for now.
18986 2005-03-08  Laurent Guerby <laurent@guerby.net>
18988         * system-linux-sparc.ads: Fix typo in previous commit.
18990 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
18991             Laurent Guerby <laurent@guerby.net>
18993         PR ada/20035
18994         * system-linux-sparc.ads: New.
18995         * Makefile.in: Add sparc linux entry.
18997 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
18999         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
19000         parameters as unused.
19002 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
19003         Partial merge from libada-gnattools-branch:
19005         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
19006         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
19007         into code in gnattools/Makefile.in.  Remove direct dependencies on
19008         stamp-tools by tools clauses.
19009         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
19010         * config-lang.in: Add gnattools to $lang_dirs.
19012 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
19014         PR ada/19942
19015         * utils.c (gnat_type_for_mode): Return null instead of ICE because
19016         we asked for an unknown mode.
19018 2005-02-12  Richard Henderson  <rth@redhat.com>
19020         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
19021         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
19023 2005-02-10  Andreas Jaeger  <aj@suse.de>
19025         * init.c (__gnat_initialize): Mark parameter as unused.
19027 2005-02-09  Doug Rupp  <rupp@adacore.com>
19029         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
19030         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
19032 2005-02-09  Doug Rupp  <rupp@adacore.com>
19034         * gnatchop.adb (dup, dup2),
19035         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
19037         * gnatlbr.adb (mkdir),
19038         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
19040         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
19042 2005-02-09  Doug Rupp  <rupp@adacore.com>
19044         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
19046 2005-02-09  Robert Dewar  <dewar@adacore.com>
19047             Thomas Quinot  <quinot@adacore.com>
19048             Javier Miranda  <miranda@adacore.com>
19049             Pascal Obry  <obry@adacore.com>
19050             Ed Schonberg  <schonberg@adacore.com>
19051             Doug Rupp  <rupp@adacore.com>
19052             Gary Dismukes  <dismukes@adacore.com>
19053             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19055         * g-zstspl.ads: New file.
19057         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
19059         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
19060         Ada 95 mode
19061         Add definition of Wide_Wide_Space for AI-285
19063         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
19064         interface (to support Ada 95 and Ada 2005 units).
19065         Add Unbounded_IO files
19066         Add entries for Wide_Wide packages for AI-285
19067         Add list of containers packages to Ada 2005 unit list
19069         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
19070         support new Unbounded_IO package cleanly.
19072         * g-utf_32.ads, g-utf_32.adb: New files.
19074         * Makefile.rtl: Add entry for g-utf_32
19075         Add new files for Unbounded_IO
19076         Adjust make file for new AI-285 wide wide packages
19077         Add AI-302 containers to the run time.
19079         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
19080         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
19081         subprograms for AI-301.
19083         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
19085         * a-stunau.ads: Minor comment correction
19087         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
19088         etc.
19089         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
19090         (Check_RPC): Update to match changes in expanded code.
19091         Clean up unused entity.
19093         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
19094         was not taken into account.
19095         This includes proper initialization with Normalize_Scalars.
19096         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
19097         normalize scalars cases (particularly the latter) to do a better job
19098         of finding invalid representations.
19100         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
19102         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
19103         used
19105         * exp_dist.adb: Add support for wide wide character type
19106         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
19107         private part, generate stub bodies at the end of the private part,
19108         not the visible part.
19109         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
19110         PolyORB support.
19111         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
19112         generic wrapper to execute final processing after completing the
19113         expansion of the RPC receiver for an RACW.
19115         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
19116         packages and attributes.
19117         (Preset_Names): Addition of the new reserved words of Ada 2005,
19118         that is interface, overriding and synchronized.
19119         (Get_Pragma_Id): Give support to the use of the new reserved word
19120         "interface" as a pragma name.
19121         (Is_Pragma_Name): Give support to the use of the new reserved word
19122         "interface" as a pragma name.
19123         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
19124         attribute implementation.
19126         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
19127         checks to entities that are output parameters of Asm operations.
19128         Handle the Stream_Size attribute.
19129         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
19131         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
19133         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
19134         for second parameter being 0.0.
19135         Add support for wide wide character type.
19136         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
19138         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
19139         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
19140         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
19141         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
19142         for wide wide character cases.
19144         * cstand.adb: Create entities for Wide_Wide_Character and
19145         Wide_Wide_String.
19147         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
19148         accordance with AI-258.
19149         Add new declarations for 16/32 bit C character types (Part of AI285)
19151         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
19152         (Obsolescent_Warning): New field
19153         (Rep_Clause): New local subprogram used to share code. Returns the rep
19154         clause for which the name is given in parameter.
19155         (Has_Stream_Size_Clause): New routine.
19156         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
19157         (Address_Clause): Implementation is now using Rep_Clause.
19158         (Alignment_Clause): Idem.
19159         (Size_Clause): Idem.
19161         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
19162         entity in non-Ada 2005 mode and generate warning.
19164         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
19165         (Prag): Code cleanup. Remove old gnat pragma "overriding"
19167         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
19168         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
19169         on the named unit if the pragma is not in the current compilation unit,
19170         so that elaboration calls in the current unit can set up an elaboration
19171         dependency on the named unit, as needed.
19172         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
19173         subprogram as well as for subprograms declared within a package.
19174         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
19175         pragma overriding.
19177         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
19178         to z) to avoid some instances of duplication for Wide_Wide packages.
19180         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
19181         characters.
19183         * scn.adb: Char_Literal_Value field is now a Uint
19185         * scng.adb: Significant rewrite to handle new Ada 2005 features
19186         allowing wide and wide wide characters in program text, e.g. for
19187         identifiers, as described in AI-285.
19188         (Set_Reserved): New procedure, makes setting up keywords cleaner.
19189         (Initialize_Scanner): Register the new reserved words of Ada 2005.
19190         (Scan): Give support to the new reserved words.
19192         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
19193         warning notifying that interface, overriding, and synchronized are
19194         new reserved words.
19195         (P_Pragma): Allow the use of the new reserved word "interface" as
19196         a pragma name.
19198         * gnatls.adb, gnatbind.adb,
19199         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
19200         identifiers named "interface" to "SAL_Interface".
19202         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
19203         (Structured Exception handling).
19204         (Gen_Main_C): Idem.
19206         * bindgen.adb:
19207         (Gen_Main_Ada): Set the default exit code if specified.
19208         (Gen_Main_C): Likewise.
19209         Part of *DC20-006.
19210         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
19211         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
19213         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
19214         new -Xnnn switch.
19216         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
19217         has a collision with the new Ada 2005 "interface" reserved word.
19219         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
19220         generate a warning notifying that interface, overriding, and
19221         synchronized are new reserved words.
19223         * scans.ads (Token_Type): Addition of the tokens corresponding to the
19224         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
19225         and Tok_Synchronized.
19227         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
19228         "dispatching" rather than "primitive" operations, since dispatching
19229         calls are now allowed to abstract formal subprograms (which are not
19230         primitive).
19231         Char_Literal_Value field is now a Uint
19232         (Resolve_Slice): If the prefix is an access to an unconstrained array,
19233         compute the actual subtype of the designated object to impose the proper
19234         index constraints.
19235         (Resolve_Selected_Component): Do not insert an access check if the
19236         prefix is an access type: such a node is expanded into an explicit
19237         dereference, on which the access check is performed anyway. Removes
19238         expensive duplicate checks.
19239         (Resolve_Call): Use new flag Is_Obsolescent and field
19240         Obsolescent_Warning so that pragma Obsolescent works on library
19241         subprograms.
19242         Add support for wide wide character type
19243         (Resolve_Allocator): Replace the error message on wrong null-exclusion
19244         value by a warning message.
19245         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
19246         as fixed-point, and one of the operands is non-static and universal, it
19247         can only be an illegal exponentiation operation, in which case there is
19248         no real value to retrieve.
19250         * exp_strm.adb: Add support for wide wide character type
19251         (Build_Elementary_Input_Call): Compute the size of the stream element by
19252         querying the rep chain to find the Stream_Attribute attribute value.
19253         (Build_Elementary_Write_Call): Ditto.
19255         * sem_aggr.adb: Char_Literal_Value field is now a Uint
19256         Add support for wide wide character type
19257         Replace the error messages on wrong null-exclusion value by warnings
19258         as described in Ada 2005.
19259         (Resolve_Extension_Aggregate): Document the fact that the error
19260         message on class-wide expressions in extensions aggregates.
19262         * sem_case.adb: Add support for wide wide character type
19264         * sem_ch13.adb: Add support for wide wide character type
19265         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
19267         * sem_ch3.adb: Add support for wide wide character type
19268         (Process_Subtype): If constraint is illegal for the type, set Ekind of
19269         now-useless Itype, to prevent cascaded errors on a compiler built
19270         without -gnatp.
19272         * sem_ch8.adb: Add with and use of Sem_Disp.
19273         (Analyze_Subprogram_Renaming): Replace unclean uses of
19274         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
19275         of Corresponding_Spec to Empty).
19276         (Attribute_Renaming): Replace use of Corresponding_Spec with
19277         Corresponding_ Formal_Spec and simplify condition.
19278         (Use_One_Package): Check that scope of homonym of identifier is defined,
19279         before checking whether it is a wrapper package.
19280         Add support for wide wide character type
19282         * sem_eval.adb: Add support for wide wide character type.
19283         (Eval_Arithmetic_Op): Check for compile time known signed integer
19284         overflow in the non-static case.
19285         (Subtypes_Statically_Match): A formal scalar type and its base type do
19286         not statically match.
19288         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
19289         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
19290         subtype).
19291         (Unit_Declaration_Node): Ditto.
19292         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
19293         has a packed array type, the prefix has been rewritten into a type
19294         conversion. Determine variable-ness from the converted expression.
19295         Handle wide wide character cases.
19297         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
19299         * stringt.ads, stringt.adb: Handle full UTF-32 range.
19300         Remove ["0A"] from comment, since it can look like a line terminator.
19301         Currently we don't permit this, but this is under discussion by the
19302         ARG, and it is easy enough to use a different example.
19304         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
19305         handling UTF-32 encoding for wide wide character.
19306         Implement new brackets coding ["hhhhhhhh"]
19307         Add UTF-8 encodings for full UTF-32 range
19309         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
19311         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
19312         bit range Add full UTF-32 support.
19313         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
19314         notify that constraint error will be raised at run-time
19315         because a null value is assigned to a null-excluding object.
19316         Remove some obsolete declarations and make Char_Code
19317         unsigned.
19319         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
19320         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
19321         Rcheck subprograms.
19323         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
19324         wrong null-exclusion value by a warning message.
19325         (Enable_Range_Check): Do range check if the prefix is an
19326         explicit dereference whose designated object is an unconstrained array.
19327         Current algorithm for removing duplicate checks is over-eager in this
19328         case.
19330         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
19331         null-exclusion value by a warning message
19333         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
19334         completely. Add support for Uint2 field
19336         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
19337         exp_prag.adb: Char_Literal_Value field is now a Uint.
19339         * exp_util.adb (Insert_Actions): Replace
19340         N_Formal_Subprogram_Declaration by
19341         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
19342         Char_Literal_Value field is now a Uint.
19344         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
19345         defined for subprogram renaming declarations. When set, the field
19346         indicates the defining entity of a corresponding formal subprogram
19347         when the renaming corresponds to a formal subprogram association in an
19348         instantiation.
19349         (Set_Corresponding_Formal_Spec): New procedure to return
19350         Corresponding_Formal_Spec field.
19351         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
19352         (which is now a subtype).
19353         Char_Literal_Value field is now a Uint
19355         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
19356         pointer to the base of the dispatch table.
19357         Minor changes to comments.
19358         (Controlling_Type): New function for determining the tagged type
19359         associated with a tagged primitive subprogram.
19360         (Expand_Dispatching_Call): Add support for a controlling actual that is
19361         directly a value of type Ada.Tag rather than a tagged object.
19363         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
19364         describing the new layout.
19365         (Dispatch_Table): The expander computes the actual array size, allocates
19366         the Dispatch_Table record accordingly, and generates code that displaces
19367         the base of the record after the Typeinfo_Ptr component. The access to
19368         these components is done by means of local functions.
19369         (Offset_To_Top): New function.
19370         (Typeinfo_Ptr): New function.
19371         (Get_TSD): Modified to access the new position of the TSD.
19372         (Set_TSD): Modified to save the TSD in its new position.
19374         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
19375         case of formal abstract subprograms. Add check and message for -gnat05.
19376         Update comments.
19378         * sem_ch12.adb: Add with and use for Sem_Disp.
19379         (Analyze_Associations): Minor change from "=" to "in" for use of
19380         N_Formal_Subtype_Declaration (which is now a subtype).
19381         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
19382         N_Formal_Subtype_Declaration (which is now a subtype).
19383         (Analyze_Formal_Subprogram): Add handling for
19384         N_Formal_Abstract_Subprogram, marking the formal as abstract and
19385         dispatching, setting the controlling status of the formal parameters
19386         and result, and issuing an error if there is no controlling type for
19387         the formal subprogram.
19388         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
19389         which is an unclean use of that field, we set the new field
19390         Corresponding_Formal_Spec to make the formal subprogram available to
19391         processing in Analyze_Subprogram_Declaration.
19392         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
19393         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
19394         Constrained, so that it is is does not statically match its anonymous
19395         base type.
19397         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
19398         abstract formal subprograms in error check for functions returning
19399         abstract types. Set scope of new designator for
19400         a parameterless subprogram, so that it is available when checking the
19401         body for nested subprograms, before full analysis of said body.
19402         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
19403         subprogram only if inner one comes from source.
19404         (Analyze_Function_Call): If the call is given in object notation, the
19405         analysis of the name rewrites the node and analyzes it with the proper
19406         argument list. After analyzing the name, if the call has been rewritten
19407         and the result type is set, no further analysis is needed.
19408         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
19409         mark in function specification, in a context where the formals are
19410         visible and hide outer homographs.
19412         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
19413         as the tagged type for the cases of abstract formal subprograms and
19414         renamings of those.  Clean up spec comments.
19415         (Check_Dispatching_Context): Add error message to indicate "abstract
19416         procedure", covering the case of a call to a formal abstract procedure
19417         that has statically tagged operands.
19418         (Check_Dispatching_Call): Check for the case of an actual given by
19419         a tag-indeterminate function call whose type is an ancestor of the
19420         containing call's associated tagged type. This situation can occur
19421         for inherited primitives with function defaults. In this case we
19422         use the tagged type's tag directly as the controlling argument for
19423         the calls.
19424         (Expand_Call): Name change on call to Expand_Dispatch_Call.
19426         * sprint.adb (Sprint_Node_Actual): Split
19427         N_Formal_Subprogram_Declaration into two alternatives for the new
19428         cases N_Formal_Abstract_Subprogram_Declaration and
19429         N_Formal_Concrete_Subprogram_Declaration.
19430         Char_Literal_Value field is now a Uint.
19432         * trans.c: Get rid of junk Uint2 reference.
19433         Char_Literal_Value field is now a Uint.
19434         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
19435         (gigi): Correct third arg to gimplify_body.
19437         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
19438         (TYPE_LANG_FLAG_0): Check for record or union.
19440         * treepr.adb: Char_Literal_Value field is now a Uint
19442         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
19443         UI_From_CC.
19445         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
19446         Add full UTF-32 support
19447         Char_Code is now 32 bits
19449         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
19450         wide character UTF_32 line terminators.
19451         Initialize Main_Source_File to avoid error when no main
19452         source is loaded.
19454         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
19455         (Main_Source_File) when no main source has been loaded, to avoid
19456         potential crash.
19458 2005-02-09  Robert Dewar  <dewar@adacore.com>
19460         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
19461         Fix name of Set routine
19463         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
19464         fixed packages.
19466         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
19467         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
19468         fixed packages
19470         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
19471         forms of Get_Line subprograms for AI-301.
19473         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
19474         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
19475         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
19476         a-stwima.ads: Minor reformatting.
19478 2005-02-09  Doug Rupp  <rupp@adacore.com>
19479             Thomas Quinot  <quinot@adacore.com>
19481         * adaint.c, adaint.h
19482         [VMS] (to_ptr32): New function.
19483         (MAYBE_TO_PTR32): New macro.
19484         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
19485         for pointer size.
19486         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
19487         [VMS] (#define fork()): Remove since unneccessary.
19488         (__gnat_set_close_on_exec): New routine to support
19489         GNAT.OS_Lib.Set_Close_On_Exec.
19491         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
19492         the parent side as close-on-exec so that they are not inherited by the
19493         child.
19495         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
19496         set or clear the FD_CLOEXEC flag on a file descriptor.
19498 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
19499             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19501         PR ada/19386
19502         * decl.c:
19503         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
19504         on the field if Pragma Component_Alignment (Storage_Unit).
19505         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
19506         side-effects as if it were a constant; also make SAVE_EXPR to protect
19507         side-effects.
19508         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
19509         UNION_TYPE.
19510         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
19511         (components_to_record): Test it.
19512         Fix improper usage of REFERENCE_CLASS_P.
19514         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
19515         RECORD_TYPE.
19517         * utils2.c: Minor reformatting.
19519         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
19520         handle other cases like RECORD_TYPE.
19522         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
19524 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19526         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
19527         component of an array of arrays in an assignment context, and the
19528         aggregate has component associations that require sliding on
19529         assignment, force reanalysis of the aggregate to generate a temporary
19530         before the assignment.
19531         (Must_Slide): Make global to the package, for use in Gen_Assign.
19533 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19535         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
19536         unchecked union with no inferable discriminants, return a
19537         Raise_Program_Error node, rather than inserting it at the point the
19538         type is frozen.
19539         (Expand_Record_Equality, Component_Equality): Handle properly the case
19540         where some subcomponent is an unchecked union whose generated equality
19541         code raises program error.
19543 2005-02-09  Doug Rupp  <rupp@adacore.com>
19545         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
19546         [VMS] (#define exit hack): Remove.
19548 2005-02-09  Pascal Obry  <obry@adacore.com>
19549             Arnaud Charlet <charlet@adacore.com>
19551         * init.c (__gnat_initialize): Add a new parameter eh which contains the
19552         address of the exception registration. The Win32 version of this
19553         routine calls __gnat_install_SEH_handler() to initialize the SEH
19554         (Structured Exception Handling) handler.
19555         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
19556         SEH (Structured Exception Handling) now.
19557         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
19558         (__gnat_initialize for ppc-vxworks): Adjust comments and the
19559         preprocessor condition protecting the call to the extra eh setup
19560         subprogram, which is only available for the ppc target.
19561         (__gnat_clear_exception_count): replaced reference to
19562         variable taskIdCurrent by call to taskIdSelf(), cleaner.
19564         * seh_init.c: New file.
19566         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
19567         (GNATBIND_OBJS): Idem.
19569         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
19570         routine takes a new parameter (a pointer to the exception registration
19571         for the SEH (Structured Exception Handling) support.
19573         * raise.h: (__gnat_install_SEH_handler): New prototype.
19574         Update copyright notice.
19576         * s-tassta.adb (Task_Wrapper): Declare the exception registration
19577         record and initialize it by calling __gnat_install_SEH_handler.
19579 2005-02-09  Vincent Celier  <celier@adacore.com>
19581         * make.adb (Gnatmake): Do not fail when the main project has no object
19582         directory.
19584 2005-02-09  Doug Rupp  <rupp@adacore.com>
19586         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
19587         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
19588         [VMS]: Add translations for g-enblsp.adb.
19590         * s-asthan-vms.adb: Removed.
19591         * s-asthan-vms-alpha.adb: Added.
19593 2005-02-09  Pascal Obry  <obry@adacore.com>
19595         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
19596         (LIBGNAT_OBJS): Add seh_init.o.
19598 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19600         PR ada/16592
19601         * Makefile.in: Link all gnat tools with -static-libgcc, since
19602         -shared-libgcc is now used by default on some systems (e.g. linux with
19603         recent binutils).
19604         Remove references to Makefile.prolog/generic, no longer used.
19606 2005-02-09  Vincent Celier  <celier@adacore.com>
19608         * prj-makr.adb (Process_Directory): Put file name in canonical case
19609         before matching against the patterns.
19610         If gnatname has been invoked as <prefix>-gnatname
19611         then invoke the compiler as <prefix>-gcc, not just "gcc".
19613 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19615         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
19616         with expansion disabled. The actual subtype is needed among other
19617         places when the selected component appears in the context of a loop
19618         bound, and denotes a packed array.
19619         (Operator_Check): Always use the first subtype in the
19620         error message, to avoid the appearance of internal base types.
19621         (Transform_Object_Operation): Copy each actual in full
19622         to the parameter associations of the constructed call, rather than
19623         using the shallow copy mechanism of New_Copy_List. This ensures that
19624         the chaining of named associations is done properly.
19625         (Complete_Object_Operation): Rewrite node, rather than
19626         replacing it, so that we can trace back to the original selected
19627         component.
19629         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
19630         and calls that use object notation, if the called function is not
19631         declared  in a withed unit, place the elaboration constraint on the
19632         unit in the context that makes the function accessible.
19633         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
19634         imposes an elaboration constraint between two packages.
19636 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19638         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
19639         views of a private type after handling its private dependents, to
19640         maintain proper stack discipline between entry and exit from the
19641         package.
19643 2005-02-09  Cyrille Comar  <comar@adacore.com>
19645         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
19646         Minor reformatting.
19648 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19650         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
19651         fields for foreign threads.
19653 2005-02-09  Doug Rupp  <rupp@adacore.com>
19655         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
19656         recursion warnings when compiled with -gnatdm.
19658 2005-02-09  Robert Dewar  <dewar@adacore.com>
19660         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
19661         Slight fix to documentation of -gnaty with no parameters
19663         * xr_tabls.ads: Add ??? comment for missing overall comment
19665         * xsinfo.adb: Make default file name be sinfo.h, since this is what
19666         we now use by default.
19668         * xsnames.adb: Adjust end of file test to look for five space followed
19669         by '#' instead of six spaces. The format of xsnames.adb was modified
19670         in the last update.
19672         * a-numeri.ads: Add reference to AI-388 for greek letter pi
19673         identifier.
19675         * clean.adb: Minor reformatting.
19677         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
19678         gnatname.adb: Minor reformatting
19679         Add 2005 to copyright output when utility is run
19681         * csets.adb: Eliminate obsolete comment
19683         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
19684         Update comments.
19686         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
19688 2005-02-09  Sergey Rybin  <rybin@adacore.com>
19690         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
19691         the difference between compact and incompact layout and add the record
19692         representation clause to the example illustrating different layouts.
19693         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
19694         component clauses").
19696 2005-02-09  Florian Villoing  <villoing@adacore.com>
19698         * gnat_ugn.texi: Fix typos.
19699         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
19700         @file.
19701         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
19702         in the generated documentation.
19704 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19706         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
19707         longer supported.
19708         Update linker wrapper when linking with non GNU C++.
19710 2005-02-09  Pascal Obry  <obry@adacore.com>
19712         * gnat_ugn.texi:
19713         Document the procedure to debug the DllMain routine on Windows.
19714         Add note about -funwind-tables and mixed Ada and C/C++ programming in
19715         ZCX mode.
19716         Document new BIND qualifer /RETURN_CODES=VMS.
19718 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
19720         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
19721         Edited gnatmetric chapter
19723 2005-02-09  Robert Dewar  <dewar@adacore.com>
19725         * gnat_rm.texi:
19726         Changes to document new wide wide character support
19727         For AI-285
19728         Update documentation on Normalize_Scalars and Initialize_Scalars
19730 2005-02-09  Pascal Obry  <obry@adacore.com>
19732         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
19734 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
19736         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
19737         from the VxWorks kernel) that is needed for getting the active
19738         priority of the different tasks.
19740         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
19741         Use a pragma Elaborate_Body in the spec file instead.
19742         Noticed by code reading.
19744 2005-02-09  Thomas Quinot  <quinot@adacore.com>
19746         * exp_util.ads: Minor correction in comment.
19748 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19750         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
19751         since this procedure is now too complex to be worth inlining.
19753 2005-02-09  Richard Henderson  <rth@redhat.com>
19755         * utils.c (gnat_define_builtin): Remove.
19756         (gnat_install_builtins): Use build_common_builtin_nodes.
19758 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19760         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19761         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
19762         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
19763         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
19764         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
19765         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
19766         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
19767         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
19768         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
19769         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19770         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
19771         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
19772         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
19773         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
19774         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
19775         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
19776         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
19777         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
19778         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
19779         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
19780         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
19781         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
19782         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
19783         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
19784         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
19785         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
19786         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
19787         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
19788         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
19789         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
19790         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
19791         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
19792         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
19793         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
19794         library.
19796 2005-01-27  Laurent GUERBY <laurent@guerby.net>
19798         * Makefile.in: Fix a-intnam.ads from previous commit,
19799         add 2005 to copyright.
19800         * a-intman-rtems.ads: Renamed to...
19801         * a-intnam-rtems.ads:
19803 2005-01-27  Laurent GUERBY <laurent@guerby.net>
19805         * Makefile.in: Rename GNAT RTEMS specific files.
19806         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
19807         5rosinte.ads, 5rparame.adb: Replaced by files below.
19808         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
19809         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
19811 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
19812             Laurent GUERBY <laurent@guerby.net>
19814         PR ada/19488
19815         * 5rosinte.ads: Add No_Key constant.
19816         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
19817         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
19819 2005-01-26  Laurent GUERBY <laurent@guerby.net>
19821         PR ada/19414
19822         * i-cobol.adb (Valid_Numeric): Handle zero length case.
19824 2005-01-20  Richard Henderson  <rth@redhat.com>
19826         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
19827         a-intnam-linux.ads and system-linux-alpha.ads.
19828         * a-intnam-linux-alpha.ads: Remove file.
19829         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
19830         * system-linux-alpha.ads: New file.
19832 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
19834         PR ada/13470
19835         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
19836         set to the new string.
19838 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
19840         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
19841         to True.
19843 2005-01-18  Richard Henderson  <rth@redhat.com>
19845         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
19846         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
19847         for alpha-linux.
19848         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
19850 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
19852         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
19853         (GCC_ZCX_Support): Likewise.
19855 2005-01-11  Bastian Blank  <waldi@debian.org>
19857         * system-linux-s390.ads: Define Preallocated_Stacks.
19858         * system-linux-s390x.ads: Likewise.
19860 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
19862         * gnat_ugn.texi: Fix texi errors with null variables.
19864 2005-01-03  Thomas Quinot  <quinot@adacore.com>
19866         * gen-soccon.c: New utility program to generate g-soccon.ads
19867         automatically.
19869         * socket.c, gsocket.h: Split inclusion of system header files into a
19870         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
19872         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
19873         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19874         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
19875         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
19876         should not be edited by hand anymore, but should be regenerated using
19877         gen-soccon.
19879 2005-01-03  Robert Dewar  <dewar@adacore.com>
19880             Ed Schonberg  <schonberg@adacore.com>
19881             Vincent Celier  <celier@adacore.com>
19883         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
19884         on/off, since this is an obsolescent feature, for which we now generate
19885         a warning.
19887         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
19888         warning mode is set and obsolescent usage of this attribute occurs.
19889         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
19890         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
19891         predates, and partly motivates, the adoption of the AI.
19892         Implement new Ada 2005 attribute Mod
19894         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
19895         attribute Mod.
19897         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
19899         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
19900         pragma restrictions.
19901         New entry for Ada 2005 attribute Mod.
19903         * par-prag.adb:
19904         Add recognition of new pragma Restrictions No_Dependence
19905         Recognize restriction No_Obsolescent_Features at parse time
19907         * bcheck.adb: Add circuitry for checking for consistency of
19908         No_Dependence restrictions.
19910         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
19911         restrictions.
19913         * restrict.ads, restrict.adb: Add subprograms to deal with
19914         No_Dependence restrictions.
19916         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
19917         restrictions.
19919         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
19920         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
19922         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
19923         dummy parameter to scng instantiation.
19924         Needed for new restriction No_Obsolescent_Features
19926         * scn.adb: (Obsolescent_Check): New procedure
19927         Needed for new restriction No_Obsolescent_Features
19929         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
19930         specified by AI-285, needed for implementation of AI-388 (adding greek
19931         pi to Ada.Numerics).
19932         Add new generic formal to scng, needed for new restriction
19933         No_Obsolescent_Features.
19935         * s-rident.ads: Add new restriction No_Obsolescent_Features.
19937         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
19938         restrictions lines.
19939         (Scan_ALI): When finding an unexpected character on an R line, raise
19940         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19941         Ignore_Errors is True, default restrictions are set and scanning of the
19942         ALI file continues with the next line. Also, when Bad_R_Line is raised
19943         and Ignore_Errors is True, skip to the end of le line.
19945         * sem_ch10.adb: Check that explicit with's do not violate
19946         No_Dependence restrictions.
19947         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
19948         illegal context clauses containing child units of instance.
19950         * sem_prag.adb: Processing and checking for new No_Dependence
19951         restrictions.
19952         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
19953         analyze and check the External argument.
19955         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
19957 2005-01-03  Robert Dewar  <dewar@adacore.com>
19959         * atree.adb: Add a fifth component to entities
19960         This allows us to add 32 flags and four new fields
19962         * atree.ads: Add a fifth component to entities
19963         This allows us to add 32 flags and four new fields
19965         * einfo.ads, einfo.adb: Document new fields and new flags now available
19966         Add routines for printing new fields
19968         * treepr.adb: Call routines to print out additional fields if present
19970 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
19972         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
19973         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
19975         * Makefile.in: Add support to build shared Ada libraries on solaris x86
19976         Remove gpr2make, replaced by gprmake.
19977         Remove references to gnatmem and libaddr2line.
19978         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
19979         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
19980         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
19981         a-numaux-darwin.ads and a-numaux-darwin.adb
19982         Enable mlib-tgt-lynxos.adb on lynxos.
19984         * Make-lang.in: Remove rules for gpr2make.
19985         When generating sdefault.adb, do not call Relocate_Path
19986         on S3 for function Target_Name, as it is not a path.
19987         Remove references to gnatmem and libaddr2line.
19989         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
19990         files.
19992 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
19994         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
19995         address is incompatible with its base type alignment constraints when
19996         this can be decided statically.
19998 2005-01-03  Olivier Hainque  <hainque@adacore.com>
20000         * decl.c (compatible_signatures_p): New function. The intended purpose
20001         is to check if two function signatures for a call-site and a callee are
20002         compatible enough for the call to be valid. The underlying purpose is
20003         to check if a call to a mapped builtin is using the right interface.
20004         The current code actually does not check antyhing - this a placeholder
20005         for future refinements.
20006         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
20007         builtin calls for convention Intrinsic.
20009         * gigi.h (builtin_decl_for): Declare (new function).
20011         * utils.c (gnat_install_builtins): Install the target specific builtins.
20012         (builtin_decl_for): New function, provide a dummy body for now.
20014 2005-01-03  Geert Bosch  <bosch@adacore.com>
20016         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
20017         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
20018         (Pred): Implement in terms of Succ.
20020         * trans.c (convert_with_check): Reimplement conversion of float to
20021         integer.
20023 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
20024             Vincent Celier  <celier@adacore.com>
20026         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
20027         bounds can be negative, and must be declared Int, not Nat.
20029         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
20030         array is checked after using the index in the array.
20032         * makegpr.adb (Add_Switches): Check if there is a package for the
20033         processor. If there is no package, do not look for switches.
20035 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
20037         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
20038         generation of predefined stream operations (specs and bodies) should
20039         proceed. Under various restrictions these subprograms must not be
20040         generated.
20042 2005-01-03  Thomas Quinot  <quinot@adacore.com>
20044         * exp_dist.adb:
20045         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
20046         amount of PCS-specific code in RACW stubs generation.
20047         (Copy_Specification): Set Etype on copied formal parameter entities, as
20048         this information is needed for PolyORB stubs generation.
20049         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
20050         variable Dynamic_Async.
20051         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
20052         (Build_RPC_Receiver_Specification): Make generic again, as recent
20053         changes have allowed RPC receivers to have the same profile for both
20054         variants of the PCS.
20055         Reorganise RPC receiver generation to reduce differences between the
20056         structure of GARLIC and PolyORB RPC receivers.
20057         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
20058         PCS-specific.
20059         Simplify elaboration code for RCI packages.
20061         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
20062         generation to reduce differences between the structure of GARLIC and
20063         PolyORB RPC receivers.
20065         * s-stratt.adb: Fix typo in comment.
20067 2005-01-03  Thomas Quinot  <quinot@adacore.com>
20069         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
20070         copied from Make_Init_Call).
20072         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
20073         reads and assignments on a temporary variable declared with appropriate
20074         discriminants.
20076 2005-01-03  Robert Dewar  <dewar@adacore.com>
20078         * i-c.adb (To_C): Raise CE if string is null and Append_Null
20080 2005-01-03  Robert Dewar  <dewar@adacore.com>
20082         * i-cstrin.adb (Update): Do not append a null in form called with a
20083         String. This avoids unintended behavior.
20085 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
20087         PR ada/17527
20088         * init.c: Fix warnings on Free BSD section.
20090 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
20092         PR ada/16949
20093         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
20094         xsinfo.adb).
20096 2005-01-03  Vincent Celier  <celier@adacore.com>
20098         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
20099         libraries when Unique_Compile is True (-u switch).
20100         (Gnatmake): ditto.
20102 2005-01-03  Robert Dewar  <dewar@adacore.com>
20104         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
20105         upper case letter or underscore after W, as allowed by spec.
20107 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
20109         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
20110         darwin port by using proper type definitions from header files.
20111         Use SIGTERM instead of SIGABRT for SIGADAABORT.
20113 2005-01-03  Robert Dewar  <dewar@adacore.com>
20115         * par.adb: Enhance error message handling for configuration file
20116         pragmas.
20118 2005-01-03  Robert Dewar  <dewar@adacore.com>
20120         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
20121         removed during the previous update (test properly for case of dividing
20122         largest negative number by -1, which generates overflow).
20124 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
20125             Sergey Rybin  <rybin@adacore.com>
20127         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
20128         to use as the defining identifier for a formal package.
20129         (Remove_Parent): If the instance takes place within (an instance of)
20130         a sibling, preserve private declarations of common parent.
20132 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
20134         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
20135         to determine whether one of the operands is a fixed-point type for
20136         which a user-defined multiplication or division operation might be
20137         defined.
20139         * sem_res.adb (Valid_Conversion): The legality rules for conversions
20140         of access types are symmetric in Ada 2005: either designated type can
20141         be unconstrained.
20143 2005-01-03  Vincent Celier  <celier@adacore.com>
20145         * s-fileio.adb (Temp_File_Record): Change length of string component
20146         Name from L_tmpnam + 1 to max_path_len + 1.
20148 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
20150         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
20151         Self_Id.Deferral_Level = 0.
20152         (Do_Pending_Action): Move this function to the spec.
20154         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
20155         Do_Pending_Action explicitely when needed, in case we're using
20156         No_Abort restrictions.
20158         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
20159         deferral level since it will not get changed by the generated code.
20160         Keeping a default value of 1 would prevent some operations (e.g.
20161         select or delay) to proceed successfully.
20163 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
20164             Robert Dewar  <dewar@adacore.com>
20165             Cyrille Comar  <comar@adacore.com>
20167         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
20168         porting guide chapter (vms version).
20169         Revised doc title (removed "for native platforms") and subtitle.
20170         Add discussion on warning flag for obsolescent features. First we
20171         note that it applies to obsolete GNAT features, which was previously
20172         omitted. Second we contrast the behavior with that of the new
20173         Ada 2005 AI-368 restriction No_Obsolescent_Features.
20174         Preliminary rewriting of GNAT & libraries chapter in order to take
20175         into account default project locations & new project manager
20176         capabilities.
20178 2005-01-03  Robert Dewar  <dewar@adacore.com>
20180         * cstand.adb (Create_Operators): Clean up format and documentation of
20181         unary and binary operator result tables. No change in code, just
20182         reformatting and addition of comments.
20184         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
20185         sem_ch2.adb: Minor reformatting
20187         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
20188         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
20189         comments for Tree_Read and Tree_Write.
20191 2005-01-03  Pascal Obry  <obry@adacore.com>
20193         * exp_attr.ads: Minor reformatting.
20195 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
20197         * comperr.adb (Compiler_Abort): Add specialized message for GAP
20198         versions.
20200 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
20202         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
20203         whether the ancestor type is private, as may be the case with nested
20204         instantiations.
20206 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
20208         PR ada/19128
20209         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
20211 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
20213         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
20214         * utils2.c (build_unary_op): Likewise.
20216 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20218         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
20220 2004-12-19  Richard Henderson  <rth@redhat.com>
20222         * trans.c (gigi): Update gimplify_body call.
20224 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
20226         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
20228 2004-12-07  Ed Falis  <falis@adacore.com>
20230         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
20231         current task being suspended.
20233         * init.c (__gnat_clear_exception): added to reset VxWorks exception
20234         count.
20235         (__gnat_map_signal): removed test for current task being suspended.
20237 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
20239         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
20240         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
20241         targets (such as AAMP).
20243 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20245         * atree.adb (Visit_Itype): Create a new name for the generated itype,
20246         because the back-end may otherwise treat it as a redefinition of the
20247         old symbol.
20249 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
20251         * back_end.adb (Scan_Back_End_Switches): Accept --param.
20253         * lang-specs.h: Accept --param.
20255 2004-12-07  Vincent Celier  <celier@adacore.com>
20257         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
20258         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
20259         Current_Body_Suffix => Ada_Body_Suffix).
20260         Take into account Externally_Built attribute.
20262         * clean.adb (In_Extension_Chain): Always return False when one of the
20263         parameter is No_Project.
20264         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
20265         Ada_Language_Index).
20266         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
20267         Process_Languages for procedure Parse).
20269         * gnatcmd.adb (Carg_Switches): New table.
20270         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
20271         Adapt to name changes in package Prj (Current_Spec_Suffix =>
20272         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
20274         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
20275         Header_Num and function Hash are now declared in package Prj,
20276         not Prj.Com.
20278         * prj.adb (Suffix_Of): New function.
20279         (Set (Suffix)): New procedure.
20280         (Hash): One function moved from Prj.Com
20281         (Is_Present, Language_Processing_Data_Of): New functions
20282         (Set): Two new procedures
20283         (Add_Language_Name, Display_Language_Name): New procedures
20285         * prj.ads: (Suffix_Of): New function
20286         (Set (Suffix)): New procedure
20287         Add several types and tables for multi-language support.
20288         (Header_Num): Type moved from Prj.Com
20289         (Hash): Two functions moved from Prj.Com
20290         (Is_Present, Language_Processing_Data_Of): New functions
20291         (Set): Two new procedures
20292         (Add_Language_Name, Display_Language_Name): New procedures
20293         (Naming): Component name changes:
20294         Current_Spec_Suffix => Ada_Spec_Suffix,
20295         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
20296         Impl_Suffixes, Supp_Suffixes.
20297         (Project_Data): New components: Externally_Built, Supp_Languages,
20298         First_Language_Processing, Supp_Language_Processing, Default_Linker,
20299         Default_Linker_Path.
20301         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
20302         new package Language_Processing with its attributes (Compiler_Driver,
20303         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
20304         Binder_Driver, Default_Linker).
20306         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
20307         (Header_Num): Type moved to package Prj
20309         * prj-env.adb: Adapt to name changes in package Prj
20310         (Current_Spec_Suffix => Ada_Spec_Suffix,
20311         Current_Body_Suffix => Ada_Body_Suffix).
20313         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
20314         default to the project path, except the "-" is one of the directories
20315         in env var ADA_PROJECT_PATH.
20316         (Current_Project_Path): Global variable, replacing Project_Path
20317         that was in the body of Prj.Part.
20318         (Project_Path): New function
20319         (Set_Project_Path): New procedure
20320         Initialize Current_Project_Path during elaboration of the package
20321         Remove dependency on Prj.Com, no longer needed
20323         * prj-ext.ads (Project_Path): New function
20324         (Set_Project_Path): New procedure
20326         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
20327         suffix is defined for language <lang>.
20328         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
20329         accessing directly the components of Naming.
20330         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
20331         Reorganise of this package.
20332         Break procedure Check in several procedures.
20334         * prj-nmsc.ads: Replace all procedures (Ada_Check,
20335         Other_Languages_Check and Language_Independent_Check) with a single
20336         procedure Check.
20338         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
20339         Process_Languages, no longer needed.
20341         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
20342         Current_Project_Path.
20343         Remove elaboration code, moved to the body of Prj.Ext
20344         Use new function Prj.Ext.Project_Path instead of old variable
20345         Project_Path.
20346         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
20347         When comparing with project paths on the stack, first put the resolved
20348         path in canonical case.
20349         (Parse_Single_Project): Set the path name of the project file in the
20350         tree to the normalized path.
20352         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
20353         parameter Process_Languages, no longer needed.
20354         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
20355         Other_Languages_Check.
20357         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
20358         to store the resolved canonical path of the project file.
20359         Remove dependency to Prj.Com, no longer needed
20361         * prj-util.adb: Adapt to name changes in package Prj
20362         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
20363         Ada_Body_Suffix).
20365         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
20366         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
20367         Externally_Built, Include_Option, Language_Processing.
20369         * makegpr.adb: Numerous changes due to changes in packages
20370         Prj and Prj.Nmsc.
20372         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
20373         default to the project path, except whe "-" is one of the directories
20374         in env var ADA_PROJECT_PATH.
20375         (Gnatls): In verbose mode, add the new section "Project Search Path:"
20377 2004-12-07  Robert Dewar  <dewar@adacore.com>
20379         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
20381         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
20382         set -gnatR3m mode.
20384         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
20385         flag. No longer needed now that we handle this in gnat1drv.adb.
20387         * repinfo.ads: Minor reformatting
20389 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20390             Olivier Hainque  <hainque@adacore.com>
20391             Eric Botcazou  <ebotcazou@adacore.com>
20393         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
20394         TYPE_SIZE_UNIT of result type if SIZE is not specified.
20395         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
20396         of a bitfield, which we know is useless and causes trouble because of
20397         alignment implications.
20399         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
20400         BSS sections.
20401         (process_attributes): Clear DECL_COMMON again when a section attribute
20402         is present.
20403         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
20404         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
20405         (create_field_decl): Special case ADDRESSABLE negative to mean
20406         "no bitfield creation", to be used by make_aligning_type. Don't
20407         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
20408         fields claimed addressable still have to be bitfields. Use
20409         value_factor_p instead of a raw binop construction to check for the
20410         position's alignment.
20412 2004-12-07  Geert Bosch  <bosch@adacore.com>
20414         * eval_fat.adb: Revert previous change.
20416 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20417             Ed Schonberg  <schonberg@adacore.com>
20419         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
20420         with an implicit dereference as its prefix, use
20421         Insert_Explicit_Dereference instead of merely rewriting the prefix into
20422         an explicit dereference. This ensures that a reference to the original
20423         prefix is generated, if appropriate.
20425         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
20426         dereference is rewritten to an explicit one, generate a reference to
20427         the entity denoted by its prefix using the original prefix node, so
20428         the dereference can be properly recorded as a read of the denoted
20429         access value, if appropriate.
20431         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
20432         emitting 'assigned but never read' warning on a variable on the basis
20433         that it has an access type.
20434         (Check_References): Emit unreferenced warning when the scope is a
20435         subprogram body.
20437 2004-12-07  Robert Dewar  <dewar@adacore.com>
20438             Ed Schonberg  <schonberg@adacore.com>
20440         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
20441         intrinsic
20443         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
20444         leaving call unchanged.
20445         This deals with the case where the pragma Import specified
20446         an external name, to be handled by the back end.
20448         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
20449         subprogram which is Imported with convention Intrinsic if an
20450         External_Name argument is specified.
20451         (Process_Import_Or_Interface): Properly diagnose link name argument.
20452         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
20453         with Sem_Ch6.Cannot_Inline.
20454         (Process_Inline): Provide separate warning for inapplicable inline
20455         pragma.
20456         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
20457         treatment is uniform on different targets.
20459 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20461         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
20462         construct is rewritten, preserve end label to permit source navigation.
20464 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20466         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
20467         Specific_Build_Stub_Target): New subprograms.
20468         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
20469         the PCS implementation used, using the above PCS-customized subprograms.
20470         Minor reformatting.
20471         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
20472         for generation of DSA code targeted to the PolyORB PCS.
20473         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
20474         implementation of the partition communication subsystem in ancillary
20475         subprograms.
20476         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
20477         PolyORB_Support.Build_Stub_Type): New subrograms containing the
20478         PCS-specific part of Add_Stub_Type.
20479         (Insert_Partition_Check): Use runtime library function to perform
20480         E.4(19) check.
20482         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
20483         (RE_Same_Partition): New entity, from s-parint.
20485         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
20487 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
20489         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
20490         Output the copyright message on a separate line from the version
20491         message.
20493 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
20495         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
20496         compile-time warning.
20498 2004-12-07  Robert Dewar  <dewar@adacore.com>
20500         * g-regpat.adb: (Match): Change a misuse of or to or else
20502 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20504         * lib-xref.adb:
20505         (Generate_Reference): Handle properly a reference to an entry formal,
20506          when an accept statement has a pragma Unreferenced for it.
20508         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
20509         and the Has_Pragma_Unreferenced flag for each formal before analyzing
20510         the body, to ensure that warnings are properly emitted for each accept
20511         statement of a given task entry.
20513 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
20515         * Makefile.in: Add support for foreign threads on VMS.
20517 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20519         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
20520         Remove.
20521         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
20523         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
20525         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
20526         exception.
20527         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
20529 2004-12-07  Robert Dewar  <dewar@adacore.com>
20531         * nlists.adb (Prepend_Debug): Remove parameters and nest within
20532         Prepend.
20533         (Remove_Next_Debug): Same fix
20535         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
20536         maintain back pointers now, though we did not used to, and comments
20537         were out of date).
20538         (Prepend): Remove pragma Inline.
20539         (Remove_Next): Same cleanup
20541 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20543         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
20544         used to record an implicit dereference as a read operation on its
20545         prefix when operating under -gnatc. Necessary to avoid spurious
20546         'variable assigned but never read' warnings in that mode.
20547         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
20548         is a non-overloaded implicit dereference, call the above subprogram to
20549         ensure proper recording of references.
20551 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
20553         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
20554         to be resolved later as part of Analyze_Iteration_Scheme's call to
20555         Make_Index.
20557 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20559         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
20560         prefix is not a scalar type, place error message on prefix, not on
20561         type entity.
20563 2004-12-07  Bernard Banner  <banner@adacore.com>
20565         * vxaddr2line.adb: Add support for x86 vxworks
20567 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20569         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
20570         documentation of the behaviour of these functions when passed an IP
20571         address that has no record in the system hosts database and no reverse
20572         record in the DNS.
20574         * cstand.adb, a-tags.ads: Fix typos in comment.
20576 2004-12-07  Robert Dewar  <dewar@adacore.com>
20578         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
20579         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
20580         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
20581         s-poosiz.ads: Minor reformatting
20583         * make.adb: Minor reformatting
20584         Add some ??? comments asking for more comments
20586         * s-poosiz.adb: Minor reformatting
20587         Add comments on alignment requirement
20589         * sinfo.ads: Remove obsolete comment and fix typo.
20591 2004-12-07  Vincent Celier  <celier@adacore.com>
20592             Sergey Rybin  <rybin@adacore.com>
20594         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
20595         Files" with the new tool and package names.
20596         Reformatting to suppress most of the warnings for line too long
20597         Document the new section "Project Search Path:" in the output of
20598         gnatls -v.
20599         Add gnatmetric section
20601 2004-12-07  Vincent Celier  <celier@adacore.com>
20603         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
20604         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
20605         and -eit to -ept. Added qualifier
20606         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
20608 2004-11-27  Andreas Schwab  <schwab@suse.de>
20610         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
20612 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
20614         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
20615         internal implementation unit GNAT.Sockets.Thin,
20616         as their usage for sockets is non-portable (using the read and write
20617         functions from the system runtime library is fine on UNIX but won't
20618         work under Windows).
20620         * mingw32.h: Update copyright notice.
20622 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
20624         * ada-tree.h: Minor reformatting of previous change to avoid lines
20625         longer than 79 characters.
20627 2004-11-25  Olivier Hainque  <hainque@adacore.com>
20629         * tb-gcc.c: GCC infrastructure based implementation of
20630         __gnat_backtrace.
20632 2004-11-24  Steven Bosscher  <stevenb@suse.de>
20634         * misc.c (gnat_post_options): Don't clear
20635         flag_inline_functions.
20637 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
20639         PR ada/17986
20640         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
20641         tree.
20643 2004-11-21  Andreas Jaeger  <aj@suse.de>
20645         * stylesw.adb: Change Style_Check_Subprogram_Order to
20646         Style_Check_Order_Subprograms.
20648 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
20650         * adaint.h, adaint.c
20651         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
20652         to avoid warnings.
20653         Add also a cast to kill another warning.
20654         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
20655         parameter with the priority class of the parent process instead of
20656         always using the NORMAL_PRIORITY_CLASS.
20657         (__gnat_dup): New function.
20658         (__gnat_dup2): New function.
20659         (__gnat_is_symbolic_link): Enable the effective body of this
20660         function when __APPLE__ is defined.
20662         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
20663         Update comments.
20665 2004-11-18  Olivier Hainque  <hainque@adacore.com>
20667         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
20668         address of which may be used to represent "others" and "all others"
20669         choices in exception tables, instead of the current harcoded
20670         (void *)0 and (void *)1.
20671         (Setup_Exception): Do nothing in the GNAT SJLJ case.
20673         * gigi.h (others_decl, all_others_decl): New decls representing the
20674         new Others_Value and All_Others_Value objects.
20675         (struct attrib): Rename "arg" component as "args", since GCC expects a
20676         list of arguments in there.
20678         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
20679         corresponding objects exported by a-exexpr, instead of hardcoded dummy
20680         addresses.
20682         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
20683         others_decl and all_others_decl instead of hardcoded dummy addresses
20684         to represent "others" and "all others" choices, which is cleaner and
20685         more flexible with respect to the possible eh pointer encoding policies.
20687         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
20688         (process_attributes): Account for the naming change of the "args"
20689         attribute list entry component.
20691         * decl.c (build_attr_list): Rename into prepend_attributes to allow
20692         cumulating attributes for different entities into a single list.
20693         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
20694         attributes for the current entity and propagate first subtype
20695         attributes to other subtypes.
20696         <E_Procedure>: Attribute arguments are attr->args and not
20697         attr->arg any more.
20698         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
20699         argument provided, as this is what GCC expects. Use NULL_TREE instead
20700         of 0 for trees.
20702 2004-11-18  Robert Dewar  <dewar@adacore.com>
20704         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
20705         Minor reformatting througout (including new function specs)
20706         Add ??? comments asking for clarification.
20708 2004-11-18  Thomas Quinot  <quinot@adacore.com>
20710         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
20711         incomplete duplicate implementation of this subprogram from butil.
20713 2004-11-18  Thomas Quinot  <quinot@adacore.com>
20715         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
20716         procedures factors the common processing for building an RPC receiver
20717         for an RCI package or an RACW type.
20718         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
20719         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
20720         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
20721         in use.
20722         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
20723         Add_RACW_Features.
20724         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
20725         Add_RAST_Features.
20726         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
20727         distribution subprogram identifiers that are either subprogram numbers
20728         or strings.
20729         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
20730         string distribution identifiers assigned to a given subprogram.
20731         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
20732         (Add_RAS_Dereference_TSS): Add comments.
20733         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
20734         is not referenced yet because it will be used by the PolyORB DSA
20735         implementation.
20736         (Insert_Partition_Check): Remove fossile code.
20737         (First_RCI_Subprogram_Id): Document this constant.
20738         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
20739         RAS_Access TSS.
20740         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
20741         replaced with calls to Get_Library_Unit_Name_String. Previously there
20742         were several instances of the same code in different locations in the
20743         compiler; this checkin completes the replacement of all of these
20744         instances with calls to a common subprogram.
20745         Minor reformatting.
20747         * sem_dist.adb: Remove comment noting that RPC receiver generation
20748         should be disabled for RACWs that implement RASs.
20749         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
20751         * sem_util.ads, sem_util.adb (Has_Stream): New function
20752         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
20753         qualified name of a library unit into the name buffer.
20754         (Note_Possible_Modification): Generate a reference only
20755         if the context comes from source.
20757         * snames.ads (PCS_Names): New subtype corresponding to names of
20758         supported implementations of the Partition Communication Subsystem
20759         (PCS) (i.e. the runtime library support modules for the distributed
20760         systems annex).
20762 2004-11-18  Robert Dewar  <dewar@adacore.com>
20763             Ed Schonberg  <schonberg@adacore.com>
20765         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
20766         (Has_Rep_Pragma): New function
20767         (Has_Attribute_Definition_Clause): New function
20768         (Record_Rep_Pragma): Moved here from sem_ch13.adb
20769         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
20771         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
20773         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
20774         (Expand_Pragma_Psect_Object): New procedure
20775         These procedures contain the revised and cleaned up processing for
20776         these two pragmas. This processing was formerly in Sem_Prag, but
20777         is more appropriately moved here. The cleanup involves making sure
20778         that the pragmas are properly attached to the tree, and that no
20779         nodes are improperly shared.
20781         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
20782         pragmas to Exp_Prag, which is more appropriate.
20783         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
20784         check for duplicates Remove use of Is_Psected flag, no longer needed.
20785         Use new Make_String_Literal function with string.
20787         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
20788         that are functions return universal values, that have to be converted
20789         to the context type.
20790         Use new Make_String_Literal function with string.
20791         (Get_Stream_Convert_Pragma): New function, replaces the use of
20792         Get_Rep_Pragma, which had to be kludged to work in this case.
20794         * freeze.adb: Use new Has_Rep_Pragma function
20796         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
20797         function with string.
20798         Use new Has_Rep_Pragma function.
20800         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
20801         string argument.
20803 2004-11-18  Robert Dewar  <dewar@adacore.com>
20805         * errout.ads, errout.adb: (First_Sloc): New function
20807         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
20808         check (-gnatyx) instead of being included as a redundant construct
20809         warning.
20811         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
20812         Style_Check_Order_Subprograms.
20814         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
20815         stylesw.adb: Add Style_Check_Xtra_Parens
20817         * usage.adb: Add line for -gnatyx (check extra parens)
20819         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
20821 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
20822             Robert Dewar  <dewar@adacore.com>
20824         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
20825         discriminant of a constrained subtype, analyze the copy of the
20826         corresponding constraint, because in some cases it may be only
20827         partially analyzed.
20828         Removes long-lived ??? comments.
20830         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
20831         handled controlled or secondary-stack expressions within the
20832         iteration_scheme of a loop.
20834         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
20835         bounds that may contain functions calls, to prevent memory leaks when
20836         the bound contains a call to a function that uses the secondary stack.
20837         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
20838         generate temporaries for loop bounds that might contain function calls
20839         that require secondary stack and/or finalization actions.
20841         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
20842         selected component and the selector is overloadable (not just a
20843         function) treat as function call, Analyze_Call will disambiguate if
20844         necessary.
20845         (Analyze_Selected_Component): Do not generate an actual subtype for the
20846         selected component if expansion is disabled. The actual subtype is only
20847         needed for constraint checks.
20848         (Analyze_Allocator): If restriction No_Streams is set, then do
20849         not permit objects to be declared of a stream type, or of a
20850         composite type containing a stream.
20852         * restrict.ads: Remove the a-stream entry from Unit_Array, since
20853         No_Streams no longer prohibits with'ing this package.
20855         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
20856         discriminants, but the parent base has unknown discriminants, there is
20857         no discriminant constraint to inherit. Such a discrepancy can arise
20858         when the actual for a formal type with unknown discriminants is a
20859         similar private type whose full view has discriminants.
20860         (Analyze_Object_Declaration): If restriction No_Streams is set, then
20861         do not permit objects to be declared of a stream type, or of a
20862         composite type containing a stream.
20864 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
20866         * exp_dbug.ads: Update documentation to reflect simpler encoding for
20867         protected operations.
20869         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
20870         generated name, it complicates decoding in gdb and hinders debugging
20871         of protected operations.
20872         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
20873         flag for the protected entry barrier function.
20874         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
20875         flag for the protected entry function.
20877 2004-11-18  Nicolas Setton  <setton@adacore.com>
20879         * expect.c: Define __unix__ when __APPLE__ is defined.
20881         * Makefile.in: Inform the value of the variable GMEM_LIB in the
20882         Darwin-specific section.
20884         * lang-specs.h: Change the placement of the %1 marker.
20885         Works around the fact that gcc adds -fPIC by default under Darwin.
20887 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
20889         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
20890         type of the object with the packed array type, set the Analyzed flag
20891         on the object if it is an entity or simple indexed component, to avoid
20892         spurious type errors.
20894 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
20896         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
20897         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
20898         separate line from the version message.
20900 2004-11-18  Ed Falis  <falis@adacore.com>
20902         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
20903         vthreads.
20904         (init_float): Eliminate initialization of floating point status for
20905         AE653. The instructions have no effect for vThreads.
20907 2004-11-18  Vincent Celier  <celier@adacore.com>
20909         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
20910         gnatbind is invoked with -shared.
20912 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
20914         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
20915         for Detect_Blocking which is redundant with the check done within the
20916         procedure Protected_Single_Entry_Call.
20917         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
20918         Detect_Blocking which is redundant with the check done within the
20919         procedure Protected_Single_Entry_Call.
20921 2004-11-18  Vincent Celier  <celier@adacore.com>
20923         * makegpr.adb (Compile): Put the compiling switches (in package
20924         Compiler and on the command line) immediately after "-c", instead of
20925         at the end of the command line invocation of the compiler, when
20926         compiling a non-Ada file.
20927         (Build_Global_Archive): When there is no need to rebuild the archive,
20928         set Global_Archive_Exists, so that the archive is passed to the linker
20929         if one is needed.
20931 2004-11-18  Robert Dewar  <dewar@adacore.com>
20932             Sergey Rybin  <rybin@adacore.com>
20934         * gnat_ugn.texi:
20935         Remove extra paren check from list of checks for redundant constructs
20936         Add documentation of new -gnatyx style check (check extra parens)
20937         Remove paragraph about gnatelim debug options.
20939         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20940         objects rather than forbidding dependencies on the package Ada.Streams.
20942         * sinfo.ads: Add ??? note that we should document pragmas passed to
20943         back end.
20945         * g-expect.ads: Fix a few typos in the comments.
20947 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
20949         * misc.c (gnat_handle_option): Use %< and %> for quoting in
20950         warning message.
20952 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20954         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
20956 2004-11-07  Andreas Schwab  <schwab@suse.de>
20958         * Makefile.in (install-gnatlib): Remove spurious hyphen.
20960 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
20962         PR ada/18228
20963         * Makefile.in (darwin): Set soext to .dylib.
20965 2004-10-26  Vincent Celier  <celier@gnat.com>
20966             Thomas Quinot   <quinot@act-europe.fr>
20968         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
20969         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
20970         there is no use of GNAT.Sockets.Constants.
20971         Remove remaining pragma Import for C_Write
20972         Remove C_Read and C_Write from internal implementation unit
20973         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
20974         the read and write functions from the system runtime library is fine
20975         on UNIX but won't work under Windows).
20977         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
20978         (Check_Selector): Use C_Recv instead of C_Read.
20979         Selectors are the GNAT.Sockets abstraction to perform a select()
20980         call on a set of descriptors. To allow abortion of an ongoing
20981         select operation, some data is written to a dedicated socket that
20982         is always monitored.
20983         Under Windows, the write and read library functions cannot operate
20984         on sockets, so we need to use send and recv instead, which is portable
20985         across all supported platforms.
20987         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
20988         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
20989         (using the read and write functions from the system runtime library is
20990         fine on UNIX but won't work under Windows).
20992 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
20994         * mlib-tgt-darwin.adb: New file.
20996         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20997         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20998         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20999         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
21000         subprogram body.
21002         * Makefile.in: Add support for building shared libraries under Darwin.
21003         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
21004         the low level EH init subprogram to be called from __gnat_initialize.
21006         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
21007         indicates which options to pass to the archive indexer.
21009         * mlib-utl.adb: Add support for calling ranlib with additional
21010         options. This is needed for instance under Mac OS X.
21011         (Ranlib_Options): New global variable, used to store the potential
21012         options to pass to ranlib.
21013         (Ar): Use Ranlib_Options when spawning ranlib.
21014         (Initialize): Set the value of ranlib option.
21016 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
21018         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
21019         instead of 8K, to reflect the real potential needs for stack-checking
21020         in the ZCX case.
21022 2004-10-26  Pascal Obry  <obry@gnat.com>
21024         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
21026         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
21027         Windows only the initial thread stack size can be set so it is good to
21028         start we a low stack size.
21029         The OS will adjust the size as needed.
21031 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
21032             Nicolas Setton  <setton@act-europe.fr>
21034         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
21035         "__unix__" instead of "unix".
21036         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
21037         sections were just mistakenly ignored. The former is
21038         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
21039         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
21040         of hpux. This prevents an unwanted definition of the symbol
21041         convert_addresses in adaint.o.
21043 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
21045         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
21046         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
21048 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
21050         * a-filico.ads, a-filico.adb: fix incorrect header.
21052 2004-10-26  Javier Miranda  <miranda@gnat.com>
21054         * a-ststio.ads: Fix typo in identifier
21056 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
21058         * sem_ch4.adb: Minor reformatting.
21060 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21062         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
21063         enabled, check the result of unary and binary operations when the
21064         expression is the right-hand side of an assignment.
21066 2004-10-26  Vincent Celier  <celier@gnat.com>
21068         * clean.adb (Delete): Do not output warnings when in quiet output and
21069         not in verbose mode.
21070         (Force_Deletions): New Boolean flag, defaulted to False
21071         (Delete): Only delete a file if it is writable, and when
21072         Force_Deletions is True.
21073         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
21074         (Usage): Line for new switch -f
21075         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
21076         own.
21078 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
21080         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
21081         JM type only if its size matches that of the wrapper.  When a size is
21082         prescribed and the field is not aliased, remove the wrapper of a JM
21083         type only if the size is not greater than that of the packed array.
21084         (gnat_to_gnu_entity): Change the extension of packed array wrappers
21085         from LJM to JM.
21087 2004-10-26  Geert Bosch  <bosch@gnat.com>
21089         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
21090         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21091         (Pred): Implement in terms of Succ.
21093 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21095         * exp_aggr.adb (Safe_Component): An aggregate component that is an
21096         unchecked conversion is safe for in-place use if the expression of the
21097         conversion is safe.
21098         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
21099         be expandable in place even if the aggregate does not come from source.
21100         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
21101         designated object of an allocator in place, rather than building it
21102         first on the stack. The previous scheme forces a full copy of the array,
21103         and may be altogether unsusable if the size of the array is too large
21104         for stack allocation.
21106 2004-10-26  Robert Dewar  <dewar@gnat.com>
21108         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
21109         compares if the component is atomic.
21111         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
21112         array assignment if the component type is atomic.
21114 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21115             Eric Botcazou  <ebotcazou@act-europe.fr>
21117         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
21118         is aliased and is a by_reference type, do not pass by copy.
21119         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
21120         detect whether the call is in the right side of an assignment or
21121         the expression of an object declaration.  Recurse on component
21122         association within aggregates.
21123         Call it in the condition that determines whether the temporary is
21124         necessary for correct stack-checking.
21126 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
21128         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
21129         RACW_Type, used in the PolyORB version.
21130         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
21131         version and the GARLIC version.
21133         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
21134         Rename RCI_Info to RCI_Locator for better consistency between the
21135         GARLIC and PolyORB versions of the distributed systems annex.
21136         (DSA_Implementation_Name): This enumeration lists the possible
21137         implementations of the Partition Communication Subsystem for the
21138         Distributed Systems Annex (DSA). The three available implementations
21139         are the dummy stub implementation (No_DSA), and two versions based on
21140         two different distribution runtime libraries: GARLIC and PolyORB. Both
21141         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
21142         technology.
21143         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
21144         that organization.
21146         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
21147         between the GARLIC and PolyORB versions of the distributed systems
21148         annex.
21149         Remove RE_Unbounded_Reclaim_Pool since it is unused.
21151 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
21153         * gnat1drv.adb: Suppress calling the back end when
21154         Frontend_Layout_On_Target is true.
21156 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
21158         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
21159         Set_Read_Only): New subprograms.
21160         These new routines allow the user to set or unset the Owner execute
21161         and Owner write permission flags on a file.
21163         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
21164         GNAT.OS_Lib.Set_Executable instead of rolling our own.
21166 2004-10-26  Matthew Gingell  <gingell@gnat.com>
21168         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
21170 2004-10-26  Pascal Obry  <obry@gnat.com>
21172         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
21173         memory before the faulting page we properly test the process read
21174         access for this address using appropriate Win32 routine.
21175         (HPUX sections): guard with "__hpux__" instead of "hpux".
21177 2004-10-26  Robert Dewar  <dewar@gnat.com>
21179         * lib-xref.adb (Generate_Reference): Don't complain about reference to
21180         entry parameter if pragma Unreferenced set, since we do not properly
21181         handle the case of multiple parameters.
21183 2004-10-26  Vincent Celier  <celier@gnat.com>
21185         * prj-env.adb: (Contains_ALI_Files): New Boolean function
21186         (Ada_Objects_Path.Add): For a library project, add to the object path
21187         the library directory only if there is no object directory or if the
21188         library directory contains ALI files.
21189         (Set_Ada_Paths.Add.Recursive_Add): Ditto
21191 2004-10-26  Vincent Celier  <celier@gnat.com>
21193         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
21194         extension of library projects.
21196         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
21197         path defaults to ".:<prefix>/lib/gnat".
21198         (Parse): For an extending all project, allow direct import of a project
21199         that is virtually extended.
21201         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
21202         the specified name is directly imported, return its ID. Otherwise, if
21203         an extension of this project is imported, return the ID of the
21204         extension.
21206 2004-10-26  Robert Dewar  <dewar@gnat.com>
21208         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
21209         (Sub3): New procedure, used by Scaled_Divide
21210         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
21211         correct more than one instance of failure to propagate carries
21212         correctly.
21213         (Double_Divide): Handle overflow case of largest negative number
21214         divided by minus one.
21216         * s-arit64.ads (Double_Divide): Document that overflow can occur in
21217         the case of a quotient value out of range.
21218         Fix comments.
21220 2004-10-26  Robert Dewar  <dewar@gnat.com>
21222         * s-bitops.adb (Bit_Eq): Remove redundant check.
21224         * s-bitops.ads: Minor comment updates
21225         Change some occurrences of Address to System.Address
21227         * s-carsi8.ads: Fix minor cut-and-paste error in comments
21229 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21231         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
21232         accessibility check to prefix that is a protected operation.
21234 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21236         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
21237         empty, post message on stub.
21239 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21240             Javier Miranda  <miranda@gnat.com>
21242         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
21243         current instance appears within a unit that is directly in the context
21244         of the main unit.
21245         Used to determine whether the body of the instance should be analyzed
21246         immediately after its spec, to make its subprogram bodies available
21247         for front-end inlining.
21248         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
21249         constraint is not allowed on the component type (AARM 12.5.3(3))
21251 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
21253         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
21254         'Storage_Pool): enhance, document & limit detection of non-sharable
21255         internal pools.
21257         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
21259         * s-pooglo.ads: Add more documentation now that this pool is properly
21260         documented.
21262 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21264         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
21265         or protected type with discriminants, do not constrain the
21266         corresponding record type if the subtype declaration has no
21267         discriminant constraints. This can be the case in source code, or in
21268         the subtype declaration created to rename an actual type within an
21269         instantiation.
21271 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21273         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
21274         different kind of stub (possibly wrong name for file), do not check
21275         for conformance.
21276         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
21277         includes call to some function that returns an unconstrained type, do
21278         not inline.
21280 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21282         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
21283         appear in the code for the main unit. Dependencies among units in the
21284         context of the main unit are established when those other units are
21285         compiled. Otherwise spurious elaboration constraints can generate
21286         incorrect elaboration circularities.
21288 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
21289             Ed Schonberg   <schonberg@gnat.com>
21291         * sem_util.adb (Is_Aliased_View): Defend against the case where this
21292         subprogram is called with a parameter that is not an object name. This
21293         situation arises for some cases of illegal code, which is diagnosed
21294         later, and in this case it is wrong to call Is_Aliased, as that might
21295         cause a compiler crash.
21296         (Explain_Limited_Type): Refine previous fix to include
21297         inherited components of derived types, to provide complete information.
21299         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
21300         is the prival for a protected object.
21301         It is necessary to mark this entity as a variable, in addition to
21302         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
21303         modified to avoid checking the Aliased flag on entities that are not
21304         objects. (Checking that flag for non-objects is erroneous and could
21305         lead to a compiler crash).
21307 2004-10-26  Robert Dewar  <dewar@gnat.com>
21309         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
21310         X_Frac = 0.5, then we know that the number X must be positive.
21311         (Succ): Remove the same redundant test, and also fix the primary test
21312         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
21313         Minor reformatting
21314         (Decompose): Add fuller comments to spec
21316 2004-10-26  Pascal Obry  <obry@gnat.com>
21318         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
21319         validity (process must have read access). Set to 0 in all other cases.
21320         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
21321         violation on Win32.
21322         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
21323         segmentation violation.
21325 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
21327         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
21328         whose type is a constructed subtype of an aliased object with an
21329         unconstrained nominal subtype, convert the actual to the constructed
21330         subtype before taking its address.
21332 2004-10-26  Vincent Celier  <celier@gnat.com>
21334         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
21335         (Is_Path_Name_Case_Sensitive): New function
21337         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
21338         (Base_Name, Simple_Name, Current_Directory, Compose,
21339         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
21340         the result.
21342 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
21343             Vasiliy Fofanov  <fofanov@act-europe.fr>
21344             Vincent Celier   <celier@gnat.com>
21346         * gnat_ugn.texi: Generalize "finding memory problems" section into a
21347         "memory management issues" section and document some of the useful
21348         memory pools provided as part of the GNAT library.
21349         Remove "virtual" from declaration of A::method2 in
21350         the simple example of Ada/C++ mixed system.
21351         Library Projects may be virtually extended: their virtual extensions
21352         are not Library Projects.
21353         Added section on extending project hierarchies.
21355 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
21357         * adaint.c (__gnat_get_libraries_from_registry): Cast value
21358         to LPBYTE.
21359         (__gnat_portable_spawn): Remove const.
21361         * mingw32.h (MAXPATHLEN): Check for previous definition.
21363 2004-10-17  Matthias Klose  <doko@debian.org>
21365         * gnatvsn.ads: Set gnat library version to 4.0.
21367 2004-10-05  Vincent Celier  <celier@gnat.com>
21369         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
21371 2004-10-04  Laurent GUERBY <laurent@guerby.net>
21373         PR ada/15156
21374         * Makefile.in: Define and use RANLIB_FLAGS.
21376 2004-10-04  Pascal Obry  <obry@gnat.com>
21378         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
21379         other x86 platforms).
21381 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
21383         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
21384         in general and triggers stack alignment adjustment for thread entry
21385         points on targets where this is necessary.
21387 2004-10-04  Bernard Banner  <banner@gnat.com>
21389         PR ada/13897
21390         * Makefile.in: Add section for powerpc linux
21391         Add variant i-vxwork-x86.ads
21393         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
21395 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
21397         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
21398         table registration calls when need be. Ensures no reference to the crt
21399         ctors symbol are issued in the SJLJ case, which avoids possible
21400         undefined symbol errors in the case of modules to be statically linked
21401         with the kernel.
21403 2004-10-04  Javier Miranda  <miranda@gnat.com>
21405         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
21406         in-line the code corresponding to subprogram Analyze_Actuals. In
21407         addition, analyze the actuals only in case of subprogram call.
21409 2004-10-04  Ed Falis  <falis@gnat.com>
21411         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
21413 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
21415         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
21416         in the documentation.
21418 2004-10-04  Robert Dewar  <dewar@gnat.com>
21420         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
21421         IF and CASE.
21422         (Analyze_Block_Statement): Add circuitry to detect following dead code
21423         (Check_Unreachable_Code): Handle case of block exit
21425 2004-10-04  Robert Dewar  <dewar@gnat.com>
21427         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
21428         (XMatchD): Avoid warning for Logic_Error call
21430 2004-10-04  Robert Dewar  <dewar@gnat.com>
21432         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
21433         consider expressions buried within a procedure actual to be an actual.
21434         This caused some blowups with uses of packed slices within a procedure
21435         actual.
21437 2004-10-04  Robert Dewar  <dewar@gnat.com>
21439         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
21440         longer need to be initialized to zero.
21441         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
21442         initialized to zero.
21444         * checks.adb (Expr_Known_Valid): Packed arrays are now always
21445         considered valid, even if the representation is modular. That's correct
21446         now that we no longer initialize packed modular arrays to zero.
21448         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
21449         suffixes. These are now documented as the only cases in which the
21450         debugger ignores outer records.
21451         Previously, the spec allowed arbitrary suffixes for this purpose.
21452         Change name of LJM to JM for packed array pad records
21453         Create separate section on packed array handling, and add a whole new
21454         set of comments to this section describing the situation with packed
21455         modular types and justification requirements depending on endianness.
21457 2004-10-04  Robert Dewar  <dewar@gnat.com>
21459         * a-except.adb: Add a comment for last change
21461         * einfo.ads: Minor spelling correction in comment
21463         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
21465         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
21466         messages.
21468         * sem_util.ads: Minor comment update
21470 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21472         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
21473         Inline_Always when in Configurable_Run_Time mode.
21475         * sem_prag.adb (Process_Convention): If entity is an inherited
21476         subprogram, apply convention to parent subprogram if in same scope.
21477         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
21478         when in Configurable_Run_Time mode.
21480 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21482         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
21483         class_wide type after component list has been inherited.
21485 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21487         * sem_ch12.adb (Check_Generic_Actuals): New predicate
21488         Denotes_Previous_Actual, to handle properly the case of a private
21489         actual that is also the component type of a subsequent array actual.
21490         The visibility status of the first actual is not affected when the
21491         second is installed.
21492         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
21493         make fully recursive the treatment of formals of packages declared
21494         with a box.
21495         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
21496         the above on exit from an instantiation.
21497         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
21498         current instantiation which is now complete.
21499         (Analyze_Package_Instantiation): No instantiated body is needed if the
21500         main unit is generic. Efficient, and avoid anomalies when a instance
21501         appears in a package accessed through rtsfind.
21503 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21505         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
21506         do not generate a declaration for a temporary if the call is part of a
21507         library-level instantiation.
21509 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21511         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
21512         searching for a limited component to flag.
21514         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
21515         expansion of Input, to account for the fact that the implicit call
21516         generated by the attribute reference must freeze the user-defined
21517         stream subprogram. This is only relevant to 'Input, because it can
21518         appear in an object declaration, prior to the body of the subprogram.
21520         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
21521         expansion can proceed and further errors uncovered.
21522         (Minor clean up): Fix cases of using | instead of \ for continuation
21523         messages.
21525 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21527         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
21529         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
21530         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
21531         Use gcc_assert and gcc_unreachable.
21533         * decl.c (gnat_to_gnu_entity, case object): Check and process a
21534         specified alignment before validating size.
21535         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
21536         stripped-down declaration for the type of the inner field when making
21537         a JM type.
21539         * utils.c (finish_record_type): Do not compute the size in units
21540         incrementally. Instead compute it once for the rep clause case.
21541         Use gcc_assert and gcc_unreachable.
21543 2004-10-04  Vincent Celier  <celier@gnat.com>
21545         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
21546         in file name.
21547         (Is_Valid_Path_Name): Take '/' as a directory separator.
21549 2004-10-04  Vincent Celier  <celier@gnat.com>
21551         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
21552         (Extended_Project) only if Extended_Project is defined, to avoid
21553         assertion error.
21554         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
21555         resolved path.
21556         (Parse_Single_Project): Ditto.
21558         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
21559         Add_To_Project_Path for virtual projects.
21561 2004-10-04  Vincent Celier  <celier@gnat.com>
21563         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21564         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21565         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
21566         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
21567         parameter Options_2.
21569         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
21570         Build_Dynamic_Library with an empty Options_2.
21572         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
21573         default anymore.
21575         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
21576         directory separator, if any.
21577         (Gprmake): Do not allow mains on the command line for library projects.
21578         Do not attempt to link when the project is a library project.
21579         (Library_Opts): New table to store Library_Options.
21580         (Build_Library): If Library_Options is specified, pass these options
21581         when building a shared library.
21583 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
21585         * s-tposen.adb (Service_Entry): The object must be always unlocked at
21586         the end of this procedure now that the unlock operation was inserted
21587         by the expander.
21589 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
21591         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
21592         corresponding to the Preallocated_Stacks flags in System.
21593         (Get_Target_Parameters): Including the processing for
21594         Preallocated_Stacks.
21596         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
21597         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
21598         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
21599         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
21600         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
21601         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21602         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
21603         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
21604         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21605         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21606         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
21607         used to signal whether the compiler creates the required stacks and
21608         descriptors for the different tasks (when True) or it is done by the
21609         underlying operating system at run time (when False).
21610         It is initially set to False in all targets.
21612         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
21613         if it is supported by the target.
21614         (Make_Task_Create_Call): Pass the stack address if it has been
21615         previously created. Otherwise pass a Null_Address.
21617         * snames.adb: Add _stack.
21619         * snames.ads: Add Name_uStack. Required to allow the expander to
21620         statically allocated task stacks.
21622         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
21623         Stack_Address argument.
21624         Check that its value is equal to Null_Address because this target does
21625         not support the static stack allocation.
21627 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
21629         * usage.adb: Change "pragma inline" to "pragma Inline" in information
21630         and error messages
21632 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
21634         * exp_dist.adb: Split declaration of asynchronous flag out of
21635         Add_RACW_Read_Attribute.
21636         Minor reformatting for better alignment with PolyORB version.
21637         Store the entity for the asynchronous flag of an RACW, rather than the
21638         expression, in the asynchronous flags table. This will allow this flag
21639         to be used in other subprograms beside Add_RACW_Read_Attribute.
21641 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
21643         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
21644         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21645         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
21646         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
21647         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
21648         sockets constant MSG_NOSIGNAL (Linux-specific).
21649         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
21650         all Send operations.
21651         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
21652         from trigerring SIGPIPE.
21653         Rename components to avoid clash with Ada 2005 possible reserved
21654         word 'interface'.
21655         (Check_Selector): When the select system call returns with an error
21656         condition, propagate Socket_Error to the caller.
21658 2004-10-01  Jan Hubicka  <jh@suse.cz>
21660         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
21662 2004-09-23  Robert Dewar  <dewar@gnat.com>
21664         PR ada/17540
21665         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
21666         instead do this at freeze time (we won't do it if there is an address
21667         clause).
21668         Change "pragma inline" to "pragma Inline" in information and error
21669         messages.
21670         Minor reformatting.
21672         * freeze.adb (Check_Address_Clause): Remove previous change, not the
21673         right way of doing things after all.
21674         (Freeze_Entity): For object, set Is_Public for imported entities
21675         unless there is an address clause present.
21677 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
21679         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
21680         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
21681         ensures proper handling of types with rep clauses, which might have
21682         their TYPE_SIZE set already.
21684 2004-09-21  Robert Dewar  <dewar@gnat.com>
21686         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
21687         packed array types in both little- and big-endian cases. This change
21688         ensures that we no longer count on the unused bits being initialized
21689         for such types (and in particular ensures that equality testing will
21690         only read the relevant bits).
21691         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21692         These changes mean that we no longer need to initialize small packed
21693         arrays.
21694         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
21695         optimization to an LJM field as to its parent field.
21697         * ada-tree.h, trans.c, utils.c, utils2.c:
21698         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21700 2004-09-20  Jan Hubicka  <jh@suse.cz>
21702         * utils.c (gnat_finalize): Remove.
21703         (end_subprog_body): Directly call cgraph_finalize_function;
21704         do not lower the nested functions.
21706 2004-09-20  Robert Dewar  <dewar@gnat.com>
21708         PR ada/17540
21709         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
21710         if an address clause is present, since that means that the Import
21711         should be ignored.
21713 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
21715         * 5tsystem.ads: Removed, no longer used.
21717 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
21718             Zack Weinberg  <zack@codesourcery.com>
21720         * ada-tree.def: Use tree_code_class enumeration constants
21721         instead of code letters.
21722         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
21723         Update for new tree-class enumeration constants.
21725 2004-09-17  Vincent Celier  <celier@gnat.com>
21727         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
21728         capabilities of the general project manager.
21730 2004-09-09  Vincent Celier  <celier@gnat.com>
21732         * a-direct.ads: Add pragma Ada_05
21733         (Directory_Entry_Type): Give default value to component Kind to avoid
21734         not initialized warnings.
21736         * a-direct.adb (Current_Directory): Remove directory separator at the
21737         end.
21738         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
21739         an existing directory.
21740         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
21741         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
21742         Convert the result to File_Size.
21744         * prj.ads: (Project_Error): New exception
21746         * prj-attr.adb: Except in procedure Initialize, Fail comes from
21747         Prj.Com, not from Osint.
21748         (Attrs, Package_Attributes): Tables moved to private part of spec
21749         (Add_Attribute, Add_Unknown_Package): Moved to new child package
21750         Prj.Attr.PM.
21751         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
21752         Prj.Project_Error after call to Fail.
21753         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
21754         Fail. Check that package name is not already in use.
21756         * prj-attr.ads: Comment updates to indicate that all subprograms may be
21757         used by tools, not only by the project manager, and to indicate that
21758         exception Prj.Prj_Error may be raised in case of problem.
21759         (Add_Unknown_Package, Add_Attribute): Moved to new child package
21760         Prj.Attr.PM.
21761         (Attrs, Package_Attributes): Table instantiations moved from the body to
21762         the private part to be accessible from Prj.Attr.PM body.
21764         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
21765         from new package Prj.Attr.PM.
21766         (Parse_Attribute_Declaration): Call Add_Attribute from new package
21767         Prj.Attr.PM.
21769         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
21771         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
21772         instead of Elaboration_Checks).
21774         * a-calend.adb: Minor reformatting
21776 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21778         * gigi.h (maybe_pad_type): New declaration.
21779         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
21781         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
21783         * cuintp.c: Convert to use buildN.
21785         * decl.c (maybe_pad_type): No longer static.
21786         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
21787         target pointer.
21788         Convert to use buildN.
21790         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
21791         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
21792         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
21793         RHS.
21794         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
21795         (gnat_gimplify_expr, case ADDR_EXPR): New case.
21796         Convert to use buildN.
21798         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
21799         TREE_READONLY for const.
21800         Convert to use buildN.
21802         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
21803         (create_var_decl): Refine when TREE_STATIC is set.
21804         Convert to use buildN.
21806 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
21808         * gnat_ugn.texi: Delete text relating to checking of ali and object
21809         consistency.
21811         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
21812         routines.
21814 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
21816         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
21817         pragmas recognized by GNAT.
21819         * gnat_rm.texi: Document pragma Detect_Blocking.
21821         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
21822         raise Program_Error if called from a protected operation.
21824         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
21825         the protected action nesting level.
21826         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
21827         protected action nesting level.
21828         (Unlock): When pragma Detect_Blocking is active decrease the protected
21829         action nesting level.
21831         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
21832         Protected_Action_Nesting.
21834         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
21835         Common_ATCB record. It contains the dynamic level of protected action
21836         nesting for each task. It is needed for checking whether potentially
21837         blocking operations are called from protected operations.
21838         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
21839         Detect_Blocking is active or not in the partition.
21841         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
21842         raise Program_Error if called from a protected operation.
21843         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
21844         Program_Error if called from a protected operation.
21845         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
21846         Program_Error if called from a protected operation.
21848         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
21849         raise Program_Error if called from a protected operation.
21851         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
21852         raise Program_Error if called from a protected operation, and increase
21853         the protected action nesting level.
21854         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
21855         Program_Error if called from a protected operation, and increase the
21856         protected action nesting level.
21857         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
21858         protected action nesting level.
21860         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
21861         raise Program_Error if called from a protected operation, and increase
21862         the protected action nesting level.
21863         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
21864         Program_Error if called from a protected operation, and increase the
21865         protected action nesting level.
21866         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
21867         raise Program_Error if called from a protected operation.
21868         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
21869         active, raise Program_Error if called from a protected operation.
21870         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
21871         protected action nesting level.
21873         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
21874         insertion of the statement raising Program_Error. The run time
21875         contains the required machinery for handling that.
21877         * sem_util.ads: Change comment associated to procedure
21878         Check_Potentially_Blocking_Operation.
21879         This procedure does not insert a call for raising the exception because
21880         that is currently done by the run time.
21882         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
21884         * init.c: Add the global variable __gl_detect_blocking that indicates
21885         whether pragma Detect_Blocking is active (1) or not (0). Needed for
21886         making the pragma available at run time.
21887         (__gnat_set_globals): Pass and update the detect_blocking parameter.
21889         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
21890         pragma Detect_Blocking is active.
21892         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
21894         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
21895         DB is found in the ali file. Any unit compiled with pragma
21896         Detect_Blocking active forces its effect in the whole partition.
21898         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
21899         Detect_Blocking is active and delay is called from a protected
21900         operation.
21902         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
21903         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
21904         Detect_Blocking is active (0 otherwise).
21905         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
21906         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
21907         otherwise).
21909 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
21911         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
21912         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
21913         package.
21915         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
21916         (Register_Receiving_Stub): Add Subp_Info formal parameter.
21917         Update API in placeholder implemetation of s-parint to reflect changes
21918         in distribution runtime library.
21920         * sem_ch3.adb (Expand_Derived_Record): Rename to
21921         Expand_Record_Extension.
21923         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
21924         primitive operations of potentially distributed object types that have
21925         non-controlling anonymous access formals.
21927         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
21928         subprogram.
21929         New implementation of expansion for remote access-to-subprogram types,
21930         based on the RACW infrastructure.
21931         This version of sem_dist is compatible with PolyORB/DSA as well as
21932         GLADE.
21934         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
21935         Asynchrronous that applies to a remote access-to-subprogram type, mark
21936         the underlying RACW type as asynchronous.
21938         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21939          __gnat_using_gnu_linker to 1.
21941         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21942         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21943         GNAT.Perfect_Hash_Generators, and remove the empty
21944         GNAT.Perfect_Hash package.
21946         * atree.adb: Minor reformatting
21948         * exp_ch3.adb (Expand_Derived_Record): Rename to
21949         Expand_Record_Extension.
21950         (Build_Record_Init_Proc.Build_Assignment): The default expression in
21951         a component declaration must remain attached at that point in the
21952         tree so New_Copy_Tree copies it if the enclosing record type is derived.
21953         It is therefore necessary to take a copy of the expression when building
21954         the corresponding assignment statement in the init proc.
21955         As a side effect, in the case of a derived record type, we now see the
21956         original expression, without any rewriting that could have occurred
21957         during expansion of the ancestor type's init proc, and we do not need
21958         to go back to Original_Node.
21960         * exp_ch3.ads (Expand_Derived_Record): Rename to
21961         Expand_Record_Extension.
21963         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
21964         Returns the RACW type used to implement a remote access-to-subprogram
21965         type.
21966         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
21967         New subprograms. Used to create a proxy tagged object for a remote
21968         subprogram. The proxy object is used as the designated object
21969         for RAS values on the same partition (unless All_Calls_Remote applies).
21970         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
21971         System.Partition_Interface.Get_Unique_Remote_Pointer.
21972         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
21973         Renamed from Add_RAS_*_Attribute.
21974         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
21975         subprograms.
21976         New implementation of expansion for remote access-to-subprogram types,
21977         based on the RACW infrastructure.
21979         * exp_dist.ads (Copy_Specification): Update comment to note that this
21980         function can copy the specification from either a subprogram
21981         specification or an access-to-subprogram type definition.
21983 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
21985         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
21986         in an instance, between an explicit subprogram an one inherited from a
21987         type derived from an actual.
21989         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
21990         add a polling call if the subprogram is to be inlined by the back-end,
21991         to avoid repeated calls with multiple inlinings.
21993         * checks.adb (Apply_Alignment_Check): If the expression in the address
21994         clause is a call whose name is not a static entity (e.g. a dispatching
21995         call), treat as dynamic.
21997 2004-09-09  Robert Dewar  <dewar@gnat.com>
21999         * g-trasym.ads: Minor reformatting
22001         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
22002         packed arrays, since unused bits are expected to be zero for a
22003         comparison.
22005 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
22007         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
22008         comment.
22010 2004-09-09  Pascal Obry  <obry@gnat.com>
22012         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
22013         enable map file generation. Add the right option to generate the map
22014         file if Map_File is set to True.
22016         * gnatdll.adb (Gen_Map_File): New variable.
22017         (Syntax): Add info about new -m (Map_File) option.
22018         (Parse_Command_Line): Add support for -m option.
22019         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
22020         Minor reformatting.
22022 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
22024         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
22025         new gnatdist implementation.
22026         Define a subpackage isolating the output routines specific to this
22027         verbose mode.
22029 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
22031         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
22033         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
22035 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
22037         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
22038         internal unit.
22040         * opt.ads: Add Ada_Version_Runtime constant used to decide which
22041         version of the language is used to compile the run time.
22043 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
22045         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
22046         of variable length temporaries for function return now that the
22047         back-end and gigi support it.
22049 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22051         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
22053         * trans.c (struct stmt_group): Delete field GLOBAL.
22054         (gnat_init_stmt_group): Do not initialize it.
22055         (call_to_gnu): Use save_expr, not protect_multiple_eval.
22056         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
22057         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
22058         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
22059         (start_stmt_group): Likewise.
22060         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
22062         * utils2.c (ggc.h): Include.
22063         (build_call_raise): Call build_int_cst, not build_int_2.
22065         * utils.c (gnat_init_decl_processing): Fix arg to
22066         build_common_tree_nodes.
22067         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
22068         (gnat_define_builtin): Set built_in_decls.
22069         (init_gigi_decls): Call build_int_cst, not build_int_2.
22071         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
22072         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
22073         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
22074         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
22075         SET_TYPE_MODULE): Use them.
22076         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
22077         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
22078         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
22079         SET_TYPE_ADA_SIZE): Likewise.
22080         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
22081         (DECL_CONST_CORRESPONDING_VAR,
22082         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
22083         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
22084         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
22085         (TYPE_RM_SIZE_NUM): New macro.
22086         (TYPE_RM_SIZE): Modified to use above.
22088         * cuintp.c: (build_cst_from_int): New function.
22089         (UI_To_gnu): Use it.
22091         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
22092         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
22093         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
22094         MIN_EXPR for the size, copy it into new.
22096 2004-09-01  Robert Dewar  <dewar@gnat.com>
22098         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
22099         packed indexed component where array is an IN OUT formal. This
22100         generated garbage code previously.
22102         * gnat_ugn.texi: Document -fverbose-asm
22104         * gnat-style.texi: Minor updates (note that boolean constants and
22105         variables are joined with AND/OR rather than short circuit forms).
22107 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
22109         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
22110         it is an upward conversion of an untagged type with no representation
22111         change.
22113 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
22115         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
22116         System.Partition_Interface.
22118         * checks.adb (Apply_Access_Checks): Do not generate checks when
22119         expander is not active (but check for unset reference to prefix of
22120         dereference).
22122         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
22123         pragma Debug as an if statement with a constant condition, for
22124         consistent treatment of entity references contained within the
22125         enclosed procedure call.
22127 2004-09-01  Vincent Celier  <celier@gnat.com>
22129         * bindgen.adb: (Set_EA_Last): New procedure
22130         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
22131         Set_EA_Last.
22132         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
22133         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
22134         linked without errors.
22135         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
22136         ST and EA.
22137         (Gen_Exception_Table_C): Correct same bugs
22139         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
22141         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
22142         on Windows, make sure that the drive letter is in upper case.
22144         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
22145         Windows, when the drive letter is added and Case_Sensitive is True, the
22146         drive letter is forced to upper case.
22148         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
22149         to Options_2 for the call to MLib.Utl.Gcc.
22151         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
22152         directory separator when defining BASE_DIR.
22154 2004-09-01  Pascal Obry  <obry@gnat.com>
22156         * gprcmd.adb (Extend): Do not output trailing directory separator. This
22157         is not needed and it confuses Windows GNU/make which does not report
22158         directory terminated by a slash as a directory.
22159         (gprcmd): Idem for "pwd" internal command.
22161         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
22162         target names rewrite to fix regressions with recent version of
22163         GNU/make. Starting with GNU/make 3.80 the pipe character was not
22164         handled properly anymore.
22166 2004-09-01  Andreas Schwab  <schwab@suse.de>
22168         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
22169         * raise.c [!IN_RTS]: Undef abort.
22171 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
22173         * utils2.c (build_allocator): Use ssize_int.
22175         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
22177 2004-08-27  Andreas Schwab  <schwab@suse.de>
22179         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
22181 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
22182             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22184         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
22186 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
22188         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
22189         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22190         * utils.c (init_gigi_decls): Likewise.
22191         * utils2.c (build_call_raise, build_allocator): Likewise.
22193 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
22195         * utils.c (gnat_init_decl_processing): Adjust
22196         build_common_tree_nodes call.
22198 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
22200         * utils2.c (build_allocator): Use build_int_cst for negative
22201         size types.
22203 2004-08-18  Richard Henderson  <rth@redhat.com>
22205         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
22207 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
22209         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
22210         call.s
22211         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
22212         (gnat_to_gnu): Likewise.
22214 2004-08-16  Pascal Obry  <obry@gnat.com>
22216         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
22217         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
22218         option and not mdll anymore. Update comment.
22220 2004-08-16  Pascal Obry  <obry@gnat.com>
22222         * bld.adb (Put_Include_Project): Properly handle directory separators
22223         on Windows.
22225 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
22227         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
22228         decreasing the number of allocated junk nodes while searching for the
22229         appropriate subprogram.
22231 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
22233         * cuintp.c (UI_To_gnu): Use build_int_cst..
22234         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22235         * utils.c (init_gigi_decls): Likewise.
22236         * utils2.c (build_call_raise): Likewise.
22238 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
22240         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
22241         for a global aliased object with a variable size and an unconstrained
22242         nominal subtype, pretend there is no initializer if the one we have is
22243         incomplete, and avoid referencing an inexistant component in there. The
22244         part we have will be rebuilt anyway and the reference may confuse
22245         further operations.
22247 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
22249         * einfo.ads: Minor reformatting
22251         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
22252         restrictions in the ALI if we only want to warn about violations.
22254 2004-08-13  Vincent Celier  <celier@gnat.com>
22256         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
22257         when creating a new Unit_Record in table Units.
22259         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
22260         that are violated, if any.
22262         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
22263         add directory separator if path already ends with a directory separator.
22265 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
22267         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
22268         unit, this is an attempt to inline a construct that is not available in
22269         the current restricted mode, so abort rather than trying to continue.
22271         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
22272         discriminants that rename those of the parent, recover names of
22273         original discriminants for the constraint on the full view of the
22274         parent.
22275         (Complete_Private_Subtype): Do not create a subtype declaration if the
22276         subtype is an itype.
22278         * gnat_rm.texi: Added section on implementation of discriminated
22279         records with default values for discriminants.
22281 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
22283         PR ada/15601
22284         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
22285         the second operand is overloaded.
22287 2004-08-10  Richard Henderson  <rth@redhat.com>
22289         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
22290         add __builtin_alloca.
22292 2004-08-10  Richard Henderson  <rth@redhat.com>
22294         * config-lang.in (boot_language): Yes.
22296 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
22298         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
22299         from complaining on potential uninitialized reference.
22300         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
22301         new specification and test explicitly for non-zero return value.
22303         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
22304         returning C.int, to avoid using a derived boolean type.
22306         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
22307         Duplicate_Subexpr_No_Checks in preference to direct use of
22308         Remove_Side_Effects and New_Copy_Tree.
22309         Clear Comes_From_Source on prefix of 'Size attribute reference.
22311         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
22312         g-socthi-vxworks.adb: Change calls to
22313         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
22314         and test explicitly for non-zero return value.
22316         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
22317         (Is_Socket_In_Set): Declare imported function as returning C.int, to
22318         avoid using a derived boolean type.
22320 2004-08-09  Albert Lee  <lee@gnat.com>
22322         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
22324 2004-08-09  Pascal Obry  <obry@gnat.com>
22326         * gnat_ugn.texi: Document new way to build DLLs on Windows using
22327         GCC's -shared option.
22329         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
22330         Options_2 parameter (options put after object files).
22332 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
22334         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
22335         ignore overflows on low and high bounds of an index to also account for
22336         differences in signedness between sizetype and gnu_index_subtype.
22337         These are as legitimate as the ones caused by a lower TYPE_PRECISION
22338         on sizetype.
22340 2004-08-09  Robert Dewar  <dewar@gnat.com>
22342         * s-solita.ads, s-solita.adb: Minor reformatting
22344         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
22345         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
22346         obsolescent section
22347         Add note that No_Implicit_Conditionals does not suppress
22348         run time constraint checks.
22350         * vms_conv.ads: Minor reformatting
22352         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
22353         and necessary for following change).
22354         (Mark): Return new format Mark_Id containing sec stack address
22355         (Release): Use sec stack address from Mark_Id avoiding Self call
22357         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
22358         pointer (cleanup and necessary for following change).
22359         Define Mark_Id as record containing address of secondary stack, that way
22360         Release does not need to find the stack again, decreasing the number of
22361         calls to Self and improving efficiency.
22363         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
22365         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
22366         case variable into the individual case branches when possible.
22368         * sem_ch11.adb: Minor reformatting
22370         * prj.ads: Correct spelling of suffixs
22372         * prj-nmsc.adb: Minor reformatting
22373         Correct spelling suffixs throughout (also in identifiers)
22375         * freeze.adb: Minor spelling correction
22377         * exp_ch2.adb: Cleanups to handling of Current_Value
22378         (no functional effect).
22380         * bld.adb: Correct spelling of suffixs
22382         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
22384 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
22386         PR ada/15408
22387         * sem_ch7.adb (Install_Private_Declarations): In the body of the
22388         package or of a child, private entities are both immediately_visible
22389         and not hidden.
22391 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
22393         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
22394         there are no range checks on the value of the literal.
22396         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
22397         wrapped is the triggering alternative of an asynchronous select, action
22398         statements mustbe inserted before the select itself.
22400         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
22401         case where the prefix is a protected function call.
22402         (Resolve_Attribute, case 'Access): The attribute reference on a
22403         subprogram is legal in a generic body if the subprogram is declared
22404         elsewhere.
22406 2004-08-09  Vincent Celier  <celier@gnat.com>
22408         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
22409         languages, otherwise building the library may fail with unresolved
22410         symbols.
22411         (Compile_Sources): Do not build libraries if -c switch is used
22413         * gnatlink.adb (Process_Args): New switches -M and -Mmap
22414         (Write_Usage): If map file creation is supported, output new switches
22415         -M and -Mmap.
22416         (Gnatlink): When -M is specified, add the necessary switch(es) to the
22417         gcc call, when supported.
22419         * Makefile.in: Added indepsw.o to the object list for gnatlink
22420         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
22422         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
22423         indepsw.adb, indepsw.ads: New files.
22425 2004-08-09  Bernard Banner  <banner@gnat.com>
22427         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
22429         * Makefile.in: add section for vxworks x86
22431 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
22433         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
22434         per-object constrained components where the discriminant is of an
22435         Access type.
22436         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
22437         the parent initialization procedure for derived Unchecked_Unions.
22438         Instead, derived Unchecked_Unions build their own initialization
22439         procedure.
22440         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
22441         Check the body of the subprogram for details.
22442         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
22443         functions for derived Unchecked_Union types by introducing a condition.
22444         Allow the creation of TSS equality functions for Unchecked_Unions.
22445         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
22446         Add formal parameter Discr to function signature. Discr is used to
22447         control the generated case statement for Unchecked_Union types.
22448         (Make_Eq_If): Rename formal parameter Node to E in function signature.
22450         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
22451         Unchecked_Unions.
22452         Check the body of the subprogram for details.
22453         (Expand_Composite_Equality): Augment composite type equality to include
22454         correct handling of Unchecked_Union components.
22455         (Expand_N_In): Add condition to detect illegal membership tests when the
22456         subtype mark is a constrained Unchecked_Union and the expression lacks
22457         inferable discriminants, and build a Raise_Program_Error node.
22458         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
22459         to detect types that contain components of unconstrained Unchecked_Union
22460         subtype. Add condition to detect equality between types that have an
22461         unconstrained Unchecked_Union component, and build a Raise_Program_Error
22462         node. Add condition to detect equality between Unchecked_Union types
22463         that lack inferable discriminants, and build a Raise_Program_Error node.
22464         Otherwise build a TSS equality function call.
22465         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
22466         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
22467         with the operand lacking inferable discriminants, and build a Raise_
22468         Program_Error node.
22469         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
22470         composite equality.
22471         (Has_Inferable_Discriminants): Implement new predicate for objects and
22472         expressions of Unchecked_Union type. Check the body of subprogram for
22473         details.
22474         (Has_Unconstrained_UU_Components): Add function
22475         Component_Is_Unconstrained_UU. It is used to detect whether a single
22476         component is of an unconstrained Unchecked_Union subtype. Add function
22477         Variant_Is_Unconstrained_UU. It is used to detect whether a single
22478         component inside a variant is of an unconstrained Unchecked_Union type.
22480         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
22481         inferred discriminant values. Add condition to generate a case
22482         statement with an inferred discriminant as the switch.
22483         (Make_Component_List_Assign): Introduce a Boolean flag that determines
22484         the behaviour of the subprogram in the presence of an Unchecked_Union.
22485         Add condition to trigger the usage of the inferred discriminant value
22486         as the generated case statement switch.
22487         (Make_Field_Assign): Introduce a Boolean flag that determines the
22488         behaviour of the subprogram in the presence of an Unchecked_Union. Add
22489         condition to trigger the usage of the inferred discriminant value as
22490         the right-hand side of the generated assignment.
22492         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
22493         parameter generation when dealing with Unchecked_Unions.
22495         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
22496         checks for Unchecked_Unions.
22498         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
22500         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
22501         Raise_Program_Error nodes for the execution of Read and Write
22502         attributes of Unchecked_Union types and the execution of Input and
22503         Output attributes of Unchecked_Union types that lack default
22504         discriminant values.
22506         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
22507         Unchecked_Union. Add procedure Check_Component. It is used to inspect
22508         per-object constrained components of Unchecked_Unions for being
22509         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
22510         check individual components withing a variant.
22512         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
22513         comparison of Unchecked_Unions.
22514         (Resolve_Equality_OP): Remove guard that prevents equality between
22515         Unchecked_Unions.
22517         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
22518         of component subtypes for Unchecked_Union components.
22519         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
22520         since it is the actual subtype.
22522         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
22523         pass of Unchecked_Union subtypes as generic actuals to formal types
22524         that lack known_discriminant_parts or that are derived Unchecked_Union
22525         types, and do nothing. In any other case, produce an error message.
22527         * sem_ch3.adb (Analyze_Component_Declaration): Add function
22528         Contains_POC. It determines whether a constraint uses the discriminant
22529         of an enclosing record type.
22530         Add condition to detect per-object constrained component and set the
22531         appropriate flag.
22532         (Derived_Type_Declaration): Remove guard that prevents derivation from
22533         Unchecked_Union types.
22534         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
22535         Union subtypes.
22537         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
22538         references to Unchecked_Union discriminants.
22540         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
22541         formal generation when dealing with Unchecked_Unions.
22542         (Set_Actual_Subtypes): Add condition to prevent generation of actual
22543         subtypes for Unchecked_Unions.
22545         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
22546         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
22547         completions of discriminated partial views by Unchecked_Unions and
22548         produce an error message.
22550 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22552         * trans.c (struct stmt_group): New field, GLOBAL.
22553         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
22554         (struct elab_info): New struct.
22555         (elab_info_list, gnu_elab_proc_stack): New variables.
22556         (Compilation_Unit_to_gnu): New procedure.
22557         (gigi): Call it and also handle elaboration procs we've saved.
22558         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
22559         global field from parent.
22560         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
22561         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
22562         (start_stmt_group): Initialize global field from parent.
22563         (add_decl_expr): Set to global for current statement group.
22564         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
22565         post.
22567         * utils.c (global_bindings_p): True when no current_function_decl; no
22568         longer check current_binding_level.
22570 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
22572         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
22573         choice.
22575         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
22577 2004-08-06  Andreas Schwab  <schwab@suse.de>
22579         * utils.c (gnat_define_builtin): Remove second parameter of
22580         make_decl_rtl.
22581         (begin_subprog_body): Likewise.
22583 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
22585         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
22586         optimization, not supported by the tree-ssa back-end.
22588 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
22590         * s-mastop-irix.adb: Update comments.
22592         * a-except.adb (Exception_Information): Raise Constraint_Error if
22593         exception Id is Null_Id.
22594         This is required behavior, which is more reliably and clearly checked
22595         at the top level interface level.
22597 2004-07-26  Javier Miranda  <miranda@gnat.com>
22599         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
22600         call if a component has no default_expression and the box is used.
22602         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
22603         default_expression and you use box, it behaves as if you had declared a
22604         stand-alone object.
22605         (Resolve_Record_Aggregate): If a component has no default_expression and
22606         you use box, it behaves as if you had declared a stand-alone object.
22608         * sem_ch10.adb (Install_Siblings): Do not make visible the private
22609         entities of private-with siblings.
22611 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
22613         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
22614         for a component of an itype, set the parent pointer for analysis,
22615         there is no list in which to insert it.
22617         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
22618         bona-fide renamings, not for inherited operations.
22620         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
22621         actual for a formal that is an access parameter, create local
22622         finalization list even if the expression is not an aggregate.
22624 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
22626         PR ada/16213
22627         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
22628         Diagnose properly illegal subprogram renamings that are library units.
22630 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
22632         PR ada/15588
22633         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
22634         conversion rewritten as an unchecked conversion, check that original
22635         expression is a variable.
22637         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
22638         unchecked_conversion, create new node rather than rewriting in place,
22639         to preserve original construct.
22641 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22643         * gigi.h (gnat_expand_body): Deleted.
22645         * Make-lang.in: (trans.o): Depends on function.h.
22647         * misc.c: (gnat_expand_body): Moved to here.
22649         * trans.c (gnat_expand_body_1): Deleted.
22650         (gnat_expand_body): Moved from here.
22651         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
22652         (add_stmt): Check for marked visited with global_bindings_p.
22653         (gnat_gimplify_expr, case COMPONENT_REF): New case.
22654         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
22656         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
22657         VIEW_CONVERT_EXPR if not operation type.
22659         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
22660         fat pointer.
22662         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
22663         changes: reformatting of negation operators, removing unneeded
22664         inequality comparison with zero, converting equality comparisons with
22665         zero to negations, changing int/0/1 to bool/false/true, replace calls
22666         to gigi_abort with abort, and various other similar changes.
22668 2004-07-26  Vincent Celier  <celier@gnat.com>
22670         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
22671         "setup".
22673         * make.adb (Gnatmake): Fail when a library is not present and there is
22674         no object directory.
22676         * mlib-prj.adb (Check_Library): No need to check if the library needs
22677         to be rebuilt if there is no object directory, hence no object files
22678         to build the library.
22680         * opt.ads (Setup_Projects): New Boolean flag.
22682         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
22683         Location.
22684         Create directory when Kind /= "" and in "gnat setup". Report error if
22685         directory cannot be created.
22686         (Ada_Check): Create library interface copy dir if it does not exist
22687         and we are in "gnat setup".
22688         (Find_Sources): No error if in "gnat setup" and no Ada sources were
22689         found.
22690         (Language_Independent_Check): Create object directory, exec directory
22691         and/or library directory if they do not exist and we are in
22692         "gnat setup".
22694         * vms_conv.ads: (Command_Type): New command Setup.
22696         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
22698         * vms_data.ads: Add qualifiers/switches for new built-in command
22699         "setup".
22701 2004-07-25  Richard Henderson  <rth@redhat.com>
22703         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
22704         DECL_IGNORED_P on RESULT_DECL.
22706 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
22708         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
22709         allocation and potentially overflowing update with
22710         Tailored_Exception_Information. Use the sec-stack free procedural
22711         interface to output Exception_Information instead.
22713         * a-except.adb (To_Stderr): New subprogram for character, and string
22714         version moved from a-exextr to be visible from other separate units.
22715         (Tailored_Exception_Information): Remove the procedural version,
22716         previously used by the default Last_Chance_Handler and not any more.
22717         Adjust various comments.
22719         * a-exexda.adb: Generalize the exception information procedural
22720         interface, to minimize the use of secondary stack and the need for
22721         local buffers when the info is to be output to stderr:
22722         (Address_Image): Removed.
22723         (Append_Info_Character): New subprogram, checking for overflows and
22724         outputing to stderr if buffer to fill is of length 0.
22725         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
22726         (Append_Info_Address, Append_Info_Exception_Name,
22727         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
22728         Append_Info_Basic_Exception_Traceback,
22729         Append_Info_Exception_Information): New subprograms.
22730         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
22731         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
22732         Exception_Info_Maxlength, Exception_Name_Length,
22733         Exception_Message_Length): New subprograms.
22734         (Exception_Information): Use Append_Info_Exception_Information.
22735         (Tailored_Exception_Information): Use
22736         Append_Info_Basic_Exception_Information.
22737         Export services for the default Last_Chance_Handler.
22739         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
22740         other separate units.
22742 2004-07-20  Vincent Celier  <celier@gnat.com>
22744         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
22746 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
22748         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
22749         emit itype references for the designated types of component types that
22750         are declared outside of the full record declaration, and that may
22751         denote a partial view of that record type.
22753 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
22755         PR ada/15607
22756         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
22757         which is the designated type in an access component declaration, to the
22758         list of incomplete dependents of the parent type, to avoid elaboration
22759         issues with out-of-scope subtypes.
22760         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
22761         full view of the parent.
22763 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
22765         PR ada/15610
22766         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
22767         entities that are hidden, such as references to generic actuals
22768         outside an instance.
22770 2004-07-20  Javier Miranda  <miranda@gnat.com>
22772         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
22773         support to the new notation.
22774         (Analyze_Selected_Component): Add call to Try_Object_Operation.
22776 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
22778         * s-taprob.adb: Adding the elaboration code required for initializing
22779         the tasking soft links that are common to the full and the restricted
22780         run times.
22782         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
22783         restricted run time has been moved to the package
22784         System.Soft_Links.Tasking.
22786         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
22787         restricted run time has been moved to the package
22788         System.Soft_Links.Tasking.
22790         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
22792         * s-solita.ads, s-solita.adb: New files.
22794 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22796         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
22797         Case_Statement_to_gnu): Split off from gnat_to_gnu.
22798         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
22799         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
22800         Exception_Handler_to_gnu_zcx): Likewise.
22802 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
22804         * gigi.h (builtin_function): Declare.
22806 2004-07-15  Robert Dewar  <dewar@gnat.com>
22808         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
22809         reformatting
22811         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
22812         access values as an example of a warning.
22814         * gnat_rm.texi: Document new attribute Has_Access_Values
22816         * gnat-style.texi: Document that box comments belong on nested
22817         subprograms
22819         * sem_util.ads (Has_Access_Values): Improved documentation
22821         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
22823         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
22824         (Process_Interface_Name): Call to this new procedure
22825         (Set_Extended_Import_Export_External_Name): Call to this new procedure
22827         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
22829         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
22831         * einfo.ads: Minor comment typo fixed
22833 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
22835         * snames.adb: Add _atcb.
22837         * snames.ads: Add Name_uATCB.
22839         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
22840         (in the expanded code) when using the restricted run time.
22842         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
22843         a in parameter in order to allow ATCBs to be preallocated (in the
22844         expanded code).
22846         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
22847         order to allow ATCBs to be preallocated. In case of error, the ATCB is
22848         deallocated in System.Tasking.Stages.
22850         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
22851         order to allow ATCBs to be preallocated.
22853         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
22854         here. It was previously done in Initialize_ATCB.
22856         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
22858         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
22859         Restricted run time.
22861         * exp_ch3.adb: When using the Restricted run time, pass the
22862         preallocated Ada_Task_Control_Block when creating a task.
22864 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
22866         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
22867         function call that is itself an actual in an enclosing call, diagnose
22868         problem here rather than assuming that resolution will catch it.
22870         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
22871         the local copy of a generic unit for a formal package, and the generic
22872         is a child unit, install private part of ancestors before compiling
22873         private part of spec.
22875         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
22876         use scope entities rather than tree structures, to handle properly
22877         parent units that are instances rewritten as bodies for inlining
22878         purposes.
22880         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
22881         Remove_Parents): Handle properly a parent unit that is an
22882         instantiation, when the unit has been rewritten as a body for inlining
22883         purposes.
22885         * par.adb (Goto_List): Global variable to collect goto statements in a
22886         given unit, for use in detecting natural loops.
22888         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
22889         use in detecting natural loops.
22891         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
22892         backwards goto's, and rewrite as a infinite loop, to improve locality
22893         of temporaries.
22895         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
22896         subcomponent that includes an indexed reference, to prevent the
22897         generation of copies that would miscompile the desired assignment
22898         statement.
22899         (Build_Task_Image_Decls): Add a numeric suffix to
22900         generated name for string variable, to avoid spurious conflicts with
22901         the name of the type of a single protected object.
22903         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
22904         loop with an explicit exit statement, to avoid generating an
22905         out-of-range value with 'Succ leading to spurious constraint_errors
22906         when compiling with -gnatVo.
22908 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
22910         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
22911         might not be analyzed yet, even if its Etype is already set (case of an
22912         unchecked conversion built using Unchecked_Convert_To, for example).
22913         If the prefix has already been analyzed, this will be a nop anyway.
22915         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
22916         controller type, or an assignment of a record type with controlled
22917         components, copy only user data, and leave the finalization chain
22918         pointers untouched.
22920 2004-07-15  Vincent Celier  <celier@gnat.com>
22922         * make.adb (Collect_Arguments): Improve error message when attempting
22923         to compile a source not part of any project, when -x is not used.
22925         * prj.ads: (Defined_Variable_Kind): New subtype
22927         * prj-attr.adb (Register_New_Package): Two new procedures to register
22928         a package with or without its attributes.
22929         (Register_New_Attribute): Mew procedure to register a new attribute in a
22930         package.
22931         New attribute oriented subprograms: Attribute_Node_Id_Of,
22932         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22933         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22934         Next_Attribute.
22935         New package oriented subprograms: Package_Node_Id_Of,
22936         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22938         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22939         type.
22940         (Package_Node_Id): Now a private, self initialized type
22941         (Register_New_Package): New procedure to register a package with its
22942         attributes.
22943         New attribute oriented subprograms: Attribute_Node_Id_Of,
22944         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22945         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22946         Next_Attribute.
22947         New package oriented subprograms: Package_Node_Id_Of,
22948         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22950         * prj-dect.adb (Parse_Attribute_Declaration,
22951         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
22953         * prj-makr.adb (Make): Parse existing project file before creating
22954         other files. Fail if there was an error during parsing.
22956         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
22957         new spec of Prj.Attr.
22959         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
22960         to new spec of Prj.Attr.
22962 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22964         * utils2.c: Fix typo in comment.
22966 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22968         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
22969         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
22971 2004-07-14  Andreas Schwab  <schwab@suse.de>
22973         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
22975 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22977         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
22978         object type.
22979         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
22980         TYPE_STUB_DECL.
22982         * misc.c (gnat_types_compatible_p): New function.
22983         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
22984         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
22986         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
22987         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
22988         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
22989         (mark_visited): Don't mark dummy type.
22990         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
22991         parameter, we must remove any LJM building from GNU_NAME.
22992         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
22993         (pos_to_constructor): Use int_const_binop.
22994         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
22995         PARM_DECL.
22997         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
22998         (gnat_pushlevel): Set TREE_USE on BLOCK node.
22999         (gnat_install_builtins): Add __builtin_memset.
23001 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
23003         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
23004         for a renaming, stabilize the initialization expression if we are at a
23005         local level.  At the local level, uses of the renaming may be performed
23006         by a direct dereference of the initializing expression, and we don't
23007         want possible variables there to be evaluated for every use.
23009         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
23010         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
23011         them on the way.  Account for the fact that we may introduce side
23012         effects in the process.
23014 2004-07-13  Richard Henderson  <rth@redhat.com>
23016         * misc.c (default_pass_by_ref): Use pass_by_reference.
23018 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
23020         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
23021         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23023 2004-07-08  Richard Henderson  <rth@redhat.com>
23025         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
23026         commentary.
23028 2004-07-06  Vincent Celier  <celier@gnat.com>
23030         * vms_conv.ads: Minor reformatting.
23031         Alphabetical order for enumerated values of type Command_Type, to have
23032         the command in alphabetical order for the usage.
23034         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
23035         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
23037         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
23039         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
23040         (Add_Archive_Path): Only add the global archive if there is one.
23041         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
23042         or not any object file to put in the global archive, and don't build
23043         a global archive if there is none.
23044         (X_Switches): New table
23045         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
23046         in the X_Switches table, if any.
23047         (Initialize): Make sure the X_Switches table is empty
23048         (Scan_Arg): Record -X switches in table X_Switches
23050         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
23052         * make.adb: Minor comment fix
23054         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
23055         invoked with directory information, add the directory in front of the
23056         path.
23058         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
23059         invoked with directory information, add the directory in front of the
23060         path.
23062         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
23063         when Keep_Temporary_Files is False.
23064         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
23065         directory information, add the directory in front of the path.
23066         When not on VMS, handle new switch -dn before the command to set
23067         Keep_Temporary_Files to True.
23068         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
23069         everywhere.
23071         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
23072         invoked with directory information, add the directory in front of the
23073         path.
23075 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
23077         * snames.ads, snames.adb (Name_Stub): New name for the distributed
23078         systems annex.
23080         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
23081         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
23083         * g-socket.adb (To_Timeval): Fix incorrect conversion of
23084         Selector_Duration to Timeval for the case of 0.0.
23086         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
23087         documentation from Evolve_And_Then.
23089 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
23091         * s-taprop-tru64.adb, s-taprop-os2.adb,
23092         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
23094 2004-07-06  Robert Dewar  <dewar@gnat.com>
23096         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
23097         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
23098         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
23099         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
23100         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
23101         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
23102         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
23103         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
23104         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
23105         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
23106         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
23107         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
23108         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
23109         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
23110         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
23111         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
23112         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
23113         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
23114         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
23115         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
23116         vms_data.ads: Minor reformatting,
23117         Fix bad box comment format.
23119         * gnat_rm.texi: Fix minor grammatical error
23121         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
23123         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
23124         more cases of discriminated records to be recognized as not needing a
23125         secondary stack.
23126         (Has_Access_Values): New function.
23128         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
23130         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
23131         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
23132         with LRM terminology).
23133         Change terminology in comments primitive type => elementary type.
23135 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
23137         PR ada/15602
23138         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
23139         parameters do not impose any requirements on the presence of a body.
23141 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
23143         PR ada/15593
23144         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
23145         compilation unit and is in an open scope at the point of instantiation,
23146         assume that a body may be present later.
23148 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
23150         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
23151         Improve error message when specified size is not supported.
23153         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
23154         is never a primitive operation.
23156 2004-07-05  Andreas Schwab  <schwab@suse.de>
23158         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
23159         RECORD_OR_UNION_CHECK.
23160         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
23162 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
23164         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
23165         dependency on xgnatugn, instead build it via a submake.
23166         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
23168 2004-07-04  Richard Henderson  <rth@redhat.com>
23170         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
23172 2004-07-01  Richard Henderson  <rth@redhat.com>
23174         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
23175         * utils.c (max_size): Likewise.
23177 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23179         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
23180         and rest_of_type_compilation; add arg to create_*_decl.
23181         (annotate_decl_with_node): Deleted.
23182         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
23183         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
23184         (get_current_block_context, gnat_pushdecl): New declarations.
23185         (gnat_init_stmt_group): Likewise.
23186         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
23187         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
23188         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
23189         (gnat_init): Call gnat_init_stmt_group.
23190         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
23191         (gnu_pending_elaboration_list): Deleted.
23192         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
23193         (gigi): Rearrange initialization calls and move some to last above.
23194         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
23195         Delete calls to add_decl_expr; add arg to create_*_decl.
23196         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
23197         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
23198         begin_subprog_body and call it.
23199         Don't push and pop ggc context.
23200         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
23201         (add_stmt): Remove handling of DECL_EXPR from here.
23202         If not in function, mark visited.
23203         (add_decl_expr): Put global at top level.
23204         Check for cases of DECL_INITIAL we have to handle here.
23205         (process_type): Add extra arg to create_type_decl.
23206         (build_unit_elab): Rework to just gimplify.
23207         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
23208         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
23209         (get_pending_elaborations, pending_elaborations_p): Likewise.
23210         (push_pending_elaborations, pop_pending_elaborations): Likewise.
23211         (get_elaboration_location, insert_elaboration_list): Likewise.
23212         (gnat_binding_level): Renamed from ada_binding_level.
23213         (init_gnat_to_gnu): Don't clear pending_elaborations.
23214         (global_bindings_p): Treat as global if no current_binding_level.
23215         (set_current_block_context): New function.
23216         (gnat_pushdecl): Renamed from pushdecl; major rework.
23217         All callers changed.
23218         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
23219         (finish_record_type): Call call pushdecl for stub decl.
23220         (function_nesting_depth): Deleted.
23221         (begin_subprog_body): Delete obsolete code.
23222         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
23224 2004-06-28  Robert Dewar  <dewar@gnat.com>
23226         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23227         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
23228         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
23229         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23230         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
23232         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
23233         deal with problem of inefficient slices on machines with strict
23234         alignment, when the slice is a component of a composite.
23236         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
23237         machines, we need the check there as well.
23239 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
23241         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
23242         determine safe copying direction for overlapping slice assignments
23243         when component is controlled.
23245         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
23246         formal derived type in the actual for a formal package are visible in
23247         the enclosing instance.
23249 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
23251         PR ada/15600
23252         * sem_util.adb (Trace_Components): Diagnose properly an illegal
23253         circularity involving a private type whose completion includes a
23254         self-referential component.
23255         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
23256         renaming or an instantiation from an implicit derived operation.
23258 2004-06-28  Pascal Obry  <obry@gnat.com>
23260         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
23261         DLL.
23262         (Library_File_Name_For): Idem.
23264 2004-06-28  Matthew Gingell  <gingell@gnat.com>
23266         * g-traceb.ads: Add explanatory note on the format of addresses
23267         expected by addr2line.
23269 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
23271         * Makefile.in: Force debugging information on s-tasdeb.adb,
23272         a-except.adb and s-assert.adb needed by the debugger.
23274 2004-06-28  Vincent Celier  <celier@gnat.com>
23276         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
23277         Need_To_Build_Lib.
23278         (Gnatmake): Ditto.
23280         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
23282         * prj.adb: Minor reformatting
23283         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
23285         * prj.ads: Comment updates
23286         Minor reformatting
23287         (Project_Data): Change Flag1 to Need_To_Build_Lib.
23288         Remove Flag2: not used.
23290         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
23291         declaration.
23293         * gnat_ugn.texi: Put a "null;" declaration in one project file example
23295         * gnat_rm.texi: Document Empty declarations "null;".
23297         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
23298         front of the linker options.
23299         (Link_Foreign): Put the global archives and the libraries in front of
23300         the linker options.
23302 2004-06-28  Javier Miranda  <miranda@gnat.com>
23304         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
23305         (RTU_Loaded): Code cleanup
23306         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
23307         withed predefined units.
23309         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
23310         explicitly withed predefined units.
23311         Fix typo in comment
23313         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
23314         explicitly withed predefined units.
23316 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23318         * ada-tree.def (DECL_STMT): Deleted.
23319         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
23320         (DECL_STMT_VAR): Deleted.
23321         * decl.c: add_decl_stmt now add_decl_expr.
23322         * gigi.h: Likewise.
23323         * trans.c: Likewise.
23324         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23325         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
23326         (add_stmt): Only handle padded type here.
23327         (add_stmt_with_node): Allow gnat_node to not be present.
23328         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
23329         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
23330         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
23331         make a SAVE_EXPR for the entire fat pointer.
23332         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
23333         (create_index_type): Make a DECL_EXPR.
23334         (end_subprog_body): Don't call allocate_struct_function here but
23335         do clear cfun.
23337 2004-06-25  Pascal Obry  <obry@gnat.com>
23339         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
23340         Relocatable from Build_Dynamic_Library call.
23342         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
23343         Relocatable are now synonym.
23345         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
23347         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
23348         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
23349         call.
23351         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
23352         Lib_Address and Relocatable.
23353         (Default_DLL_Address): Removed.
23355         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23356         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23357         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
23358         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
23359         (Default_DLL_Address): Removed.
23361         * mlib-tgt-mingw.adb: Ditto.
23362         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
23364         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
23365         the initial thread stack size.
23367         * a-strmap.ads: Move package L to private part as it is not used in
23368         the spec. Found while reading code.
23370 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
23372         * tracebak.c: Introduce support for a GCC infrastructure based
23373         implementation of __gnat_backtrace.
23375         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
23376         any more. Use accessors instead. This eases maintenance and relaxes
23377         some alignment constraints.
23378         (_GNAT_Exception structure): Remove the Ada specific fields
23379         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
23380         a-exexpr.adb.
23381         (is_handled_by, __gnat_eh_personality): Replace component references to
23382         exception structure by use of the new accessors.
23384         * init.c (__gnat_initialize): Adjust comments to match the just
23385         reverted meaning of the -static link-time option.
23387         * adaint.c (convert_addresses): Arrange not to define a stub for
23388         mips-irix any more, as we now want to rely on a real version from a
23389         recent libaddr2line.
23391         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
23392         the personality routine can use them and not have to rely on a C
23393         counterpart of the record anymore. This simplifies maintenance and
23394         relaxes the constraint of having Standard'Maximum_Alignment match
23395         BIGGEST_ALIGNMENT.
23396         Update comments, and add a section on the common header alignment issue.
23398 2004-06-25  Geert Bosch  <bosch@gnat.com>
23400         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
23401         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
23403 2004-06-25  Robert Dewar  <dewar@gnat.com>
23405         * gnat_rm.texi: Fix section on component clauses to indicate that the
23406         restriction on byte boundary placement still applies for bit packed
23407         arrays.
23408         Add comment on stack usage from Initialize_Scalars
23410         * gnat_ugn.texi: Add documentation for -gnatyLnnn
23412         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
23413         limiting nesting level.
23415         * usage.adb: Add line for -gnatyLnnn switch
23417         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
23418         sem_ch13.adb, exp_aggr.adb: Minor reformatting
23420         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
23421         type as well as on the subtype. This corrects a problem in freeze in
23422         setting alignments of atomic types.
23424         * sem_eval.ads: Minor comment typo fixed
23426         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
23427         level.  Minor reformatting.
23429         * fname.adb (Is_Predefined_File_Name): Require a letter after the
23430         minus sign. This means that file names like a--b.adb will not be
23431         considered predefined.
23433         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
23434         record Test new flag and give diagnostic for bad component clause.
23435         (Freeze_Entity): Set alignment of array from component alignment in
23436         cases where this is safe to do.
23438         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
23439         arrays.
23441         * cstand.adb: (Create_Standard): Set alignment of String to 1
23443         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
23445         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
23446         code in the common constrained array cases.
23448         * a-storio.adb: Change implementation to avoid possible alignment
23449         problems on machines requiring strict alignment (data should be moved
23450         as type Buffer, not type Elmt).
23452         * checks.adb (Apply_Array_Size_Check): Improve these checks by
23453         killing the overflow checks which we really do not need (64-bits is
23454         enough).
23456 2004-06-25  Vincent Celier  <celier@gnat.com>
23458         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
23459         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
23460         inconditionally for the main project.
23461         (Recursive_Add_Archives.Add_Archive_Path): New procedure
23462         (Link_Executables.Check_Time_Stamps): New procedure
23463         (Link_Executables.Link_Foreign): New procedure
23464         Changes made to reduce nesting level of this package
23465         (Check): New procedure
23466         (Add_Switches): When not in quiet output, check that a switch is not
23467         the concatenation of several valid switches. If it is, issue a warning.
23468         (Build_Global_Archive): If the global archive is rebuilt, linking need
23469         to be done.
23470         (Compile_Sources): Rebuilding a library archive does not imply
23471         rebuilding the global archive.
23472         (Build_Global_Archive): New procedure
23473         (Build_Library): New name for Build_Archive, now only for library
23474         project
23475         (Check_Archive_Builder): New procedure
23476         (Create_Global_Archive_Dependency_File): New procedure
23477         (Gprmake): Call Build_Global_Archive before linking
23478         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
23479         throughout.
23480         (Scan_Arg): Display the Copyright notice when -v is used
23482         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
23483         for gnatls.
23485         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
23486         COMPILE.
23487         Add new GNAT LIST qualifier /FILES=
23488         Added qualifier /DIRECTORY= to GNAT METRIC
23489         Added qualifier /FILES= to GNAT METRIC
23490         Added qualifier /FILES to GNAT PRETTY
23492         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
23493         to take into account both versions of the switch.
23495         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
23496         always be the last switch to the gcc driver. Disable switch storing so
23497         that switches automatically added by the gcc driver are not put in the
23498         ALI file.
23500         * prj.adb (Project_Empty): Take into account changes in components of
23501         Project_Data.
23503         * prj.ads (Languages_Processed): New enumaration value All_Languages.
23505         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
23506         used. Split Boolean component Ada_Sources_Present in two Boolean
23507         components Ada_Sources_Present and Other_Sources_Present.
23508         Minor reformatting
23510         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
23511         instead of Sources_Present.
23512         (Set_Ada_Paths.Add.Recursive_Add): Ditto
23514         * prj-nmsc.adb: Minor reformatting
23515         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
23516         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
23517         Check_Ada_Naming_Scheme.
23518         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
23519         throughout.
23521         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
23522         In_Limited.
23523         Make sure that all cycles where there is at least one "limited with"
23524         are detected.
23525         (Parse_Single_Project): New Boolean parameter In_Limited
23527         * prj-proc.adb (Recursive_Check): When Process_Languages is
23528         All_Languages, call first Prj.Nmsc.Ada_Check, then
23529         Prj.Nmsc.Other_Languages_Check.
23531         * prj-proc.adb (Process): Use Ada_Sources_Present or
23532         Other_Sources_Present (instead of Sources_Present) depending on
23533         Process_Languages.
23535         * lang-specs.h: Keep -g and -m switches in the same order, and as the
23536         last switches.
23538         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
23539         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
23540         False.
23541         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
23542         False.
23544         * lib.ads (Disable_Switch_Storing): New procedure.
23546         * make.adb: Modifications to reduce nesting level of this package.
23547         (Check_Standard_Library): New procedure
23548         (Gnatmake.Check_Mains): New procedure
23549         (Gnatmake.Create_Binder_Mapping_File): New procedure
23550         (Compile_Sources.Compile): Add switch -gnatez as the last option
23551         (Display): Never display -gnatez
23553         * Makefile.generic:
23554         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
23556         * gnatcmd.adb (Check_Project): New function
23557         (Process_Link): New procedure to reduce nesting depth
23558         (Check_Files): New procedure to reduce the nesting depth.
23559         For GNAT METRIC, include the inherited sources in extending projects.
23560         (GNATCmd): When GNAT LS is invoked with a project file and no files,
23561         add the list of files from the sources of the project file. If this list
23562         is too long, put it in a temp text files and use switch -files=
23563         (Delete_Temp_Config_Files): Delete the temp text file that contains
23564         a list of source for gnatpp or gnatmetric, if one has been created.
23565         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
23566         in the project file is too large, create a temporary text file that
23567         list them and pass it to the tool with "-files=<temp text file>".
23568         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
23570         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
23571         generated file is in not in Ada.
23573         * gnatls.adb: Remove all parameters And_Save that are no longer used.
23574         (Scan_Ls_Arg): Add processing for -files=
23575         (Usage): Add line for -files=
23577         * g-os_lib.adb (On_Windows): New global constant Boolean flag
23578         (Normalize_Pathname): When on Windows and the path starts with a
23579         directory separator, make sure that the resulting path will start with
23580         a drive letter.
23582         * clean.adb (Clean_Archive): New procedure
23583         (Clean_Project): When there is non-Ada code, delete the global archive,
23584         the archive dependency files, the object files and their dependency
23585         files, if they exist.
23586         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
23588 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
23590         * sinfo.ads: Fix typo in comment.
23592         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
23593         the TSS for remote access-to-subprogram types, since these TSS are
23594         always present once the type has been analyzed.
23595         (RAS_E_Dereference): Same.
23597         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
23598         reference raises Bad_Attribute, mark the reference as analyzed so the
23599         node (and any children resulting from rewrites that could have occurred
23600         during the analysis that ultimately failed) is not analyzed again.
23602         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
23604         * exp_dist.adb: Minor comment fix.
23606         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
23607         type is an anonymous access type, no unchecked deallocation of the
23608         allocated object can occur. If the object is controlled, attach it with
23609         a count of 1. This allows attachment to the Global_Final_List, if
23610         no other relevant list is available.
23611         (Get_Allocator_Final_List): For an anonymous access type that is
23612         the type of a discriminant or record component, the corresponding
23613         finalisation list is the one of the scope of the type.
23615 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
23617         * sem_ch3.adb (Replace_Type): When computing the signature of an
23618         inherited subprogram, use the first subtype if the derived type
23619         declaration has no constraint.
23621         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
23622         before applying previous optimization. Minor code cleanup.
23624         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
23625         placed at the beginning of an unpacked record without explicit
23626         alignment, a slice of it will be aligned and does not need a copy when
23627         used as an actual.
23629 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
23631         PR ada/15591
23632         PR ada/15592
23633         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
23634         reference is written with expressions mimicking parameters.
23636 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
23638         PR ada/15589
23639         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
23640         STEP 2a. The constraints of a full type declaration of a derived record
23641         type are checked for conformance with those declared in the
23642         corresponding private extension declaration. The message
23643         "not conformant with previous declaration" is emitted if an error is
23644         detected.
23646 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
23648         * g-traceb.ads: Document the need for -E binder switch in the spec.
23650         * g-trasym.ads: Document the need for -E binder switch in the spec.
23652 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
23654         * sem_prag.adb: Add handling of pragma Detect_Blocking.
23656         * snames.h, snames.ads, snames.adb: Add entry for pragma
23657         Detect_Blocking.
23659         * s-rident.ads: Change reference to pragma Detect_Blocking.
23661         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
23662         system.ads.
23664         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
23665         to indicate whether pragma Detect_Blocking is active.
23667         * par-prag.adb: Add entry for pragma Detect_Blocking.
23669         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
23670         of not handling WITH.
23671         Note that this replaces the previous update which was incorrect.
23673 2004-06-25  Javier Miranda  <miranda@gnat.com>
23675         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
23676         use-clauses to have a clean environment.
23678         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
23679         the installation of the use-clauses to stablish a clean environment in
23680         case of compilation of a separate unit; otherwise the call to
23681         use_one_package is protected by the barrier Applicable_Use.
23683         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
23684         the installation of the use-clauses to stablish a clean environment in
23685         case of compilation of a separate unit.
23686         (End_Use_Clauses): Minor comment cleanup.
23688 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
23690         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
23692 2004-06-23  Richard Henderson  <rth@redhat.com>
23694         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
23696 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23698         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
23699         now bool instead of int.
23700         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
23701         * trans.c (gnu_switch_label_stack): New function.
23702         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
23703         elaboration of renamed entity returns.
23704         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
23705         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
23706         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
23707         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
23708         DECL_SIZE_UNIT and simplify variable-sized case.
23709         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23710         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
23711         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
23712         (build_unit_elab): Disable for now.
23713         * utils.c (mark_visited): New function.
23714         (pushdecl): Walk tree to call it for global decl.
23715         (update_pointer_to): Update all variants of pointer and ref types.
23716         Add arg to COMPONENT_REF.
23717         (convert): Likewise.
23718         Move check for converting between variants lower down.
23719         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
23720         (build_allocator): Don't force type of MODIFY_EXPR.
23721         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
23722         put_var_into_stack.
23724 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23726         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
23727         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
23728         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
23729         subprograms.
23730         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
23731         all callers changed.
23732         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
23733         the way that EXIT_STMT finds the loop label.
23734         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
23735         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
23736         (add_stmt): Use annotate_with_locus insted of setting directly.
23737         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
23738         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
23739         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
23740         (build_vms_descriptor): Add extra args to ARRAY_REF.
23741         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
23742         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
23743         New cases.
23744         (build_binary_op): Don't make explicit CONVERT_EXPR.
23745         Add extra rgs to ARRAY_REF.
23747 2004-06-14  Pascal Obry  <obry@gnat.com>
23749         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
23750         Windows.  Fix minor typo.
23752         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
23753         which is now supported on Windows. With this implementation using the
23754         Library Project feature is no different on Windows than on UNIX.
23756 2004-06-14  Vincent Celier  <celier@gnat.com>
23758         * makegpr.adb (Compile_Sources): Nothing to do when there are no
23759         non-Ada sources.
23761         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
23763         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
23764         found, show the project name and the path of the previously parsed
23765         project file.
23767 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
23769         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
23770         array, avoid copying the actual before the call.
23772 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
23774         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
23775         Instead, allocate memory on worst-case alignment assumptions, and then
23776         return an aligned address within the allocated zone.
23778 2004-06-14  Robert Dewar  <dewar@gnat.com>
23780         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
23781         elab entities in predefined units in No_Run_Time_Mode.
23782         (Gen_Adainit_C): Same fix
23783         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
23784         units in No_Run_Time_Mode
23785         (Gen_Elab_Calls_C): Same fix
23787         * symbols-vms-alpha.adb: Minor reformatting
23789         * g-debpoo.ads: Minor reformatting
23791         * lib.adb (In_Same_Extended_Unit): Version working on node id's
23793         * lib.ads (In_Same_Extended_Unit): Version working on node id's
23795         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
23796         working on nodes.
23798         * make.adb: Minor reformatting
23800         * par-ch12.adb: Minor reformatting
23802         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
23804         * prj-strt.adb: Minor reformatting
23806         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
23807         be more general.
23809         * sem_attr.adb: Minor reformatting
23811         * sem_ch7.adb: Minor reformatting
23813         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
23814         for type in the same unit as the object declaration.
23816         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
23817         static string expressions and not just string literals.
23818         Minor reformatting
23819         (Set_Warning): Reset restriction warning flag for restriction pragma
23820         Implement pragma Profile_Warnings
23821         Implement pragma Profile (Restricted)
23822         Give obolescent messages for old restrictions and pragmas
23824         * snames.h, snames.ads, snames.adb: Add new entry for pragma
23825         Profile_Warnings.
23827         * s-rident.ads: Add declarations for restrictions required by profile
23828         Restricted and profile Ravenscar.
23830         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
23832         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
23833         configuration pragmas.
23835 2004-06-11  Vincent Celier  <celier@gnat.com>
23837         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
23838         gnatsym, when symbol policy is Restricted.
23840         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
23841         gnatsym, when symbol policy is Restricted.
23843         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
23844         read the symbol file.
23845         (Finalize): Fail in symbol policy Restricted if a symbol in the original
23846         symbol file is not in the object files. Do not create a new symbol file
23847         when symbol policy is Restricted.
23849         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
23850         in Scng.
23852         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
23853         Restricted.
23854         (Usage): Line for new switch -R
23856         * make.adb (Initialize): When the platform is not VMS, add the
23857         directory where gnatmake is invoked in the front of the path, if
23858         gnatmake is invoked with directory information.  Change the Scan_Args
23859         while loop to a for loop.
23860         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
23861         if Depth is equal or greater than the proposed depth, there is nothing
23862         to do.
23863         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
23864         instead of 0.
23866         * prj.ads: Add new symbol policy Restricted.
23868         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
23869         with the new parameters Check_All_Labels and Case_Location.
23871         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
23872         (Library_Symbol_File needs to be defined).
23874         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
23875         and Case_Location If Check_All_Labels is True, check that all values of
23876         the string type are used, and output warning(s) if they are not.
23878         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
23879         and Case_Location.
23881         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
23883         * gnat_ugn.texi: Update documentation about the library directory in
23884         Library Projects.
23886         * makegpr.adb (Display_Command): In verbose mode, also display the
23887         value of the CPATH env var, when the compiler is gcc.
23888         (Initialize): Change the Scan_Args while loop to a for loop
23889         (Compile_Individual_Sources): Change directory to object directory
23890         before compilations.
23892         * symbols.ads: New symbol policy Restricted.
23894 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
23896         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
23897         is now taken care of internally in the Exception_Propagation package
23898         and does not require clients assistance any more.
23900         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
23901         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
23902         functions. Helpers to maintain a predicate required in the handling of
23903         occurrence transfer between tasks.
23904         This is now handled internally and does not require clients assistance
23905         for the setup/propagate separation anymore.
23906         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
23907         allocation strategy, handle the Setup_And_Not_Propagated predicate and
23908         document.
23910         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
23911         raise_after_setup, now that everything is handled internally within the
23912         setup/propagation engine.
23914 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
23916         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
23917         Add additional conditions for the case of an actual being a simple
23918         name or literal. Improve inlining by preventing the generation
23919         of temporaries with a short lifetime (one use).
23921 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
23923         PR ada/15587
23924         * einfo.ads: Minor comment updates for Has_Completion and
23925         E_Constant list of flags.
23927         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
23928         and constant redeclarations now set the Has_Completion flag of their
23929         defining identifiers.
23931         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
23932         Inspect_Deferred_Constant_Completion.
23933         Used to detect private deferred constants that have not been completed
23934         either by a constant redeclaration or pragma Import. Emits error message
23935         "constant declaration requires initialization expression".
23937         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
23938         completes a deferred constant.
23940 2004-06-11  Geert Bosch  <bosch@gnat.com>
23942         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23944         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23945         calculating exponent for scaling denormal numbers.
23946         (Leading_Part): Properly raise Constraint_Error for zero or negative
23947         Adjustment.
23948         (Remainder): Properly raise Constraint_Error for zero divisor.
23950 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
23952         * sem_util.adb: Minor reformatting.
23954         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
23955         dereference when accessing the entry parameter record.
23956         (Check_Array_Type): Always check for possible implicit dereference.
23957         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23958         Abort if a pointer is still present (denoting that an implicit
23959         dereference was left in the tree by the front-end).
23961         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
23962         dereference when accessing the entry parameter record.
23963         (Check_Array_Type): Always check for possible implicit dereference.
23964         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23965         Abort if a pointer is still present (denoting that an implicit
23966         dereference was left in the tree by the front-end).
23968 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
23970         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
23971         message, like the compiler itself does. Easier to parse the output.
23973         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
23975         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
23976         be base names, and not includes directories.
23978 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
23980         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
23981         so that dependencies are properly taken into account by make.
23983 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
23985         PR ada/15622
23986         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
23987         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
23989 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
23991         * Makefile.in (install-gnatlib): install target-specific run-time files.
23993         * Make-lang.in: Remove obsolete targets.
23995 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
23997         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
23998         specification, to catch misuses of program unit names.
24000         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
24001         superfluous conversions in an instance.
24003 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
24005         PR ada/15403
24006         * sem_ch12.adb (Save_References): If operator node has been folded to
24007         enumeration literal, associated_node must be discarded.
24009 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
24011         * s-stchop-vxworks.adb: Add required pragma Convention to
24012         Task_Descriptor because it is updated by a C function.
24014 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
24016         PR ada/15568
24017         * Makefile.in: Remove target specific SO_OPT on IRIX
24019 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24021         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
24022         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
24023         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
24024         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
24025         (STMT_STMT, USE_STMT): New statement codes.
24026         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
24027         * ada-tree.h: Reflect above changes.
24028         (struct tree_loop_id): Deleted.
24029         (union lang_tree_node, struct lang_decl, struct lang_type):
24030         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
24031         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
24032         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
24033         (IS_ADA_STMT): New macro.
24034         * decl.c (annotate_decl_with_node): New function.
24035         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
24036         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
24037         Call add_stmt_with_node to do needed assignments.
24038         Add call to update setjmp buffer directly, not via EXPR_STMT.
24039         (maybe_variable): Argment GNAT_NODE deleted.
24040         * gigi.h (maybe_variable): Likewise.
24041         (make_transform, add_stmt_with_node, set_block_for_group): New.
24042         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
24043         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
24044         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
24045         (set_lineno, set_lineno_from_sloc): Likewise.
24046         (record_code_position, insert_code_for): Likewise.
24047         (gnat_poplevel): Now returns void.
24048         (end_subprog_body): Now takes argument.
24049         * misc.c (cgraph.h, tree-inline.h): New includes.
24050         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
24051         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
24052         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
24053         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
24054         (gnat_parse_file): Don't set immediate_size_expand.
24055         Call cgraph functions.
24056         (gnat_expand_expr): Remove most cases.
24057         (record_code_position, insert_code_for): Remove from here.
24058         * trans.c (toplev.h, tree-gimple.h): Now included.
24059         (discard_file_names): Deleted.
24060         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
24061         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
24062         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
24063         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
24064         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
24065         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
24066         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
24067         (set_block_for_group, add_stmt_list): Likewise.
24068         (start_stmt_group): Renamed from start_block_stmt.
24069         (end_stmt_group): Likewise, from end_block_stmt.
24070         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
24071         (gigi): Don't set discard_file_names or call set_lineno.
24072         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
24073         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
24074         Numerous changes throughout to reflect new names and complete
24075         function-at-a-time implementation.
24076         (gnat_expand_stmt): Delete or comment out all cases.
24077         (process_inlined_subprograms): Use add_stmt.
24078         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
24079         call set_lineno; also remove unneeded block handling.
24080         (process_type): Remove unneeded block handling.
24081         (build_unit_elab): Remove calls to deleted functions.
24082         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
24083         (tree-dump.h): Likewise.
24084         (struct ada_binding_level): Add field jmpbuf_decl.
24085         (gnat_define_builtin, gnat_install_builtins): New.
24086         (gnat_gimplify_function, gnat_finalize): Likewise.
24087         (gnat_poplevel): No longer return BLOCK, set it instead.
24088         Remove code dealing with nested functions.
24089         (gnat_init_decl_processing): Also set size_type_node.
24090         Call gnat_install_builtins.
24091         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
24092         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
24093         Remove special-case for "main".
24094         (end_subprog_body): Add arg and rework for tree-ssa.
24095         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
24096         Add case for BOOLEAN_TYPE.
24097         * utils2.c (rtl.h): Now include.
24098         (build_call_raise): Test Debug_Flag_NN directly.
24099         (build_call_alloc_dealloc): Don't use local stack allocation for now.
24100         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
24101         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
24103 2004-06-07  Robert Dewar  <dewar@gnat.com>
24105         * a-direct.ads, einfo.ads: Minor comment updates
24107         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
24108         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24109         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
24110         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
24111         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
24113         * s-interr-sigaction.adb: Remove unreferenced variable
24114         (Attached_Interrupts).  Minor reformatting.
24115         Avoid use of variable I (replace by J).
24117         * par-ch10.adb: Fix text of one error message
24119         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
24120         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
24121         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
24122         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
24123         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
24124         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
24125         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
24126         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
24127         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
24128         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
24129         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
24130         2005 support.
24132 2004-06-07  Doug Rupp  <rupp@gnat.com>
24134         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
24136         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
24138         * mlib-tgt-vms-ia64.adb: New file.
24140         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
24141         Add mlib-tgt-vms-ia64.adb
24142         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
24143         Move to alpha specific ifeq section.
24144         Add VMS specific versions of symbols.adb
24145         Renaming of 5q vms files.
24147         * 5qsystem.ads renamed to system-vms_64.ads.
24149 2004-06-07  Vincent Celier  <celier@gnat.com>
24151         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
24152         explain that when a time of day corresponding to the non existing hour
24153         on the day switching to DST is specified, Split may return a different
24154         value for Seconds.
24156         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
24157         to GNAT PRETTY.
24159         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
24160         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
24162         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
24163         to False.
24164         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
24165         the linking options.
24166         (Build_Library.Check_Libs): On VMS, if there is a dependency on
24167         g-trasym.ads, set Gtrasymobj_Needed to True.
24169         * prj-attr.adb: Add new package Metrics for gnatmetric
24171         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
24172         canonical case to take into account files with upper case characters on
24173         Windows.
24174         (Ada_Check): Load the reference symbol file name in the name buffer to
24175         check it, not the symbol file name.
24177         * snames.ads, snames.adb: Add standard name Metrics (name of project
24178         file package for gnatmetric).
24180         * vms_conv.ads: Add Metric to Comment_Type
24182         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
24184         * vms_data.ads: Add qualifiers for GNAT METRIC
24186         * makegpr.adb (Link_Executables): Take into account the switches
24187         specified in package Linker of the main project.
24189 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
24191         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
24192         the index of the last element is Units.Last, not Units.Table'Last
24193         (which is usually not a valid index within the actually allocated
24194         storage for the table).
24196         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
24197         determines whether to generate a call to a checked storage pool
24198         Dereference action.
24199         Generate such a call only for a dereference that either comes from
24200         source, or is the result of rewriting a dereference that comes from
24201         source.
24203 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
24205         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
24207 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
24209         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
24210         file level, elaborate the stride for inner dimensions in alignment
24211         units, not bytes.
24213         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
24214         in a comment.
24216 2004-06-07  Javier Miranda  <miranda@gnat.com>
24218         * exp_ch6.adb: Correct wrong modification in previous patch
24220 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
24222         * g-trasym.ads: Corrected comment to properly reflect level of support
24223         on VMS.
24225 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
24227         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
24228         includes case of a variable referenced on the left hand side of an
24229         assignment, therefore remove redundant code. Variables and prefixes of
24230         indexed or selected components are now marked as referenced on left
24231         hand side. Warnings are now properly emitted when variables or prefixes
24232         are assigned but not read.
24234         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
24235         left hand side referenced variables. Private access types do not
24236         produce the warning "variable ... is assigned but never read".
24237         Add also additional checks to left hand side referenced variables.
24238         Aliased, renamed objects and access types do not produce the warning
24239         "variable ... is assigned but never read" since other entities may read
24240         the memory location.
24242 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
24244         * Makefile.in: In the powerpc/vxworks-specific section, restore
24245         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
24246         by mistake).
24248 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
24250         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
24251         predefined operators.
24252         Removes spurious type errors from g-trasym-vms.adb.
24254         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
24255         distinct from the operator appearing in the source, call appropriate
24256         routine to insert conversions when needed, and complete resolution of
24257         node.
24258         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
24259         interpretations for rewritten right operand.
24260         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
24261         the other operand is overloaded and the context is a type conversion.
24263 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24265         * ada-tree.def (BLOCK_STMT): Now has two operands.
24266         (BREAK_STMT): New.
24268         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
24270         * gigi.h: (gnat_poplevel): Now returns a tree.
24272         * trans.c (end_block_stmt): Add arg; all callers changed.
24273         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
24274         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
24275         (add_stmt): Set TREE_TYPE.
24276         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
24277         (gnat_expand_stmt, case BREAK_STMT): New case.
24279         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
24281 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
24283         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
24284         procedure Set_Stack_Size that is not needed.
24286 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
24288         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
24289         used for gnatpp input file and for the files upon which it depends
24291 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
24293         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24295 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
24297         * gnatvsn.ads: Bump version numbers appropriately.
24298         Add new build type.
24300 2004-06-07  Pascal Obry  <obry@gnat.com>
24302         * gnat_ugn.texi: Improve comments about imported names and link names
24303         on Windows. Add a note about the requirement to use -k gnatdll's option
24304         when working with a DLL which has stripped stdcall symbols (no @nn
24305         suffix).
24307 2004-05-27  Vincent Celier  <celier@gnat.com>
24309         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
24310         COMMENTS_LAYOUT=UNTOUCHED
24312         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
24313         symbols-vms-alpha.adb
24315 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
24317         * sem.ads: Clarify documentation on checks suppression.
24319         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
24321 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
24323         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
24324         the case of multiple derivations.
24325         (Is_Object_Reference): For a selected component, verify that the prefix
24326         is itself an object and not a value.
24328         * sem_ch12.adb (Same_Instantiated_Constant): New name for
24329         Same_Instantiated_Entity.
24330         (Same_Instantiated_Variable): Subsidiary to
24331         Check_Formal_Package_Instance, to recognize actuals for in-out generic
24332         formals that are obtained from a previous formal package.
24333         (Instantiate_Subprogram_Body): Emit proper error when
24334         generating code and the proper body of a stub is missing.
24336         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
24337         has a universal interpretation, do the disambiguation here.
24339         * exp_ch4.adb (Expand_N_Type_Conversion,
24340         Expand_N_Unchecked_Type_Conversion): Special handling when target type
24341         is Address, to avoid typing anomalies when Address is a visible integer
24342         type.
24344         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
24345         to determine whether a subprogram should not be marked Pure, even when
24346         declared in a pure package.
24348 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
24350         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
24352         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
24353         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
24354         Update the documentation about the Ravenscar profile, following the
24355         definition found in AI-249.
24357         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
24358         setting the Profile (Ravenscar). This must be done in addition to
24359         setting the required restrictions.
24361         * rtsfind.ads: Add the set of operations defined in package
24362         Ada.Interrupts.
24364         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
24365         restriction.
24367 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
24369         lang-specs.h: Always require -c or -S and always redirect to /dev/null
24370         if -gnatc or -gnats is passed.
24372 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
24374         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
24375         a significant reference. Warnings are now properly emitted when a
24376         discriminated type is not referenced.
24378         * lib-xref.adb (Generate_Reference): A deferred constant completion,
24379         record representation clause or record type discriminant does not
24380         produce a reference to its corresponding entity. Warnings are now
24381         properly emitted when deferred constants and record types are not
24382         referenced.
24384 2004-05-27  Geert Bosch  <bosch@gnat.com>
24386         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
24387         Fixes ACATS Annex G tests.
24389 2004-05-27  Robert Dewar  <dewar@gnat.com>
24391         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
24392         handling WITH
24394 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
24396         * s-interr.adb (Server_Task): Take into account case of early return
24397         from sigwait under e.g. linux.
24399 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
24401         * gnat_ugn.texi: Add description for the new gnatpp options:
24402          -rnb - replace the original source without creating its backup copy
24403          -c0 - do not format comments
24405 2004-05-24  Geert Bosch  <bosch@gnat.com>
24407         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
24408         with 192 bits of precision, sufficient to reduce a double-extended
24409         arguments X with a maximum relative error of T'Machine_Epsilon, for X
24410         in -2.0**32 .. 2.0**32.
24411         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
24412         reduction by the processor, which only uses a 68-bit approximation of
24413         Pi.
24414         (Tan): Always reduce arguments and compute function either using
24415         the processor's fptan instruction, or by dividing sin and cos as needed.
24417 2004-05-24  Doug Rupp  <rupp@gnat.com>
24419         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
24420         gcc error on 32/64 bit VMS.
24422 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
24424         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
24425         since this is what we get for stack overflows although not documented
24426         as such.
24427         Document the issues which may require adjustments to our signal
24428         handlers.
24430 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
24432         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
24433         enclosing dynamic scope if the instantiation is within a generic unit.
24435 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
24437         * exp_dbug.ads: Fix typo.
24439         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
24440         Rename it to its proper name: system-linux-ia64.ads
24441         (stamp-gnatlib1): Remove extra target specific run time files when
24442         setting up the rts directory.
24444 2004-05-24  Javier Miranda  <miranda@gnat.com>
24446         * einfo.ads, einfo.adb (Limited_Views): Removed.
24447         (Limited_View): New attribute that replaces the previous one. It is
24448         now a bona fide package with the limited-view list through the
24449         first_entity and first_private attributes.
24451         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
24452         limited-private-with clause.
24453         (Install_Limited_Withed_Unit): Install the private declarations of a
24454         limited-private-withed package. Update the installation of the shadow
24455         entities according to the new structure (see Build_Limited_Views)
24456         (Build_Limited_Views): Replace the previous implementation of the
24457         limited view by a package entity that references the first shadow
24458         entity plus the first shadow private entity (required for limited-
24459         private-with clause)
24460         (New_Internal_Shadow_Entity): Code cleanup.
24461         (Remove_Limited_With_Clause): Update the implementation to undo the
24462         new work carried out by Build_Limited_Views.
24463         (Build_Chain): Complete documentation.
24464         Replace Ada0Y by Ada 0Y in comments
24465         Minor reformating
24467         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
24468         types the level of accessibility depends on the enclosing type
24469         declaration.
24471         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
24472         entities. Complete documentation of previous change.
24474 2004-05-24  Robert Dewar  <dewar@gnat.com>
24476         * namet.adb: Minor reformatting
24477         Avoid use of name I (replace by J)
24478         Minor code restructuring
24480         * sem_ch6.adb: Minor reformatting
24482         * lib-writ.adb: Do not set restriction as active if this is a
24483         Restriction_Warning case.
24485         * sem_prag.adb: Reset restriction warning flag if real pragma
24486         restriction encountered.
24488         * s-htable.adb: Minor reformatting
24489         Change rotate count to 3 in Hash (improves hash for small strings)
24491         * 5qsystem.ads: Add comments for type Address (no literals allowed).
24493         * gnat_ugn.texi: Add new section of documentation "Code Generation
24494         Control", which describes the use of -m switches.
24496 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
24498         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
24499         through the DECL_INITIAL for renamed variables.
24501 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
24503         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
24505 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
24507         * exp_dbug.ads: Correct comments concerning handling of overloading,
24508         since we no longer use $ anymore.
24510 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
24512         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
24513         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
24514         with illegal subunits.
24516 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
24518         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
24519         body with front-end inlining enabled, check whether an inline pragma
24520         appears immediately after the body and applies to it.
24522         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
24523         enabled and the pragma appears after the body of the subprogram.
24525 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24527         Part of function-at-a-time conversion
24529         * misc.c (adjust_decl_rtl): Deleted.
24530         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
24531         Define.
24533         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
24534         (add_decl_stmt, add_stmt, block_has_vars): New functions.
24535         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
24537         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
24538         when making a decl.
24539         (gnat_to_gnu_entity): Likewise.
24540         Use add_stmt to update setjmp buffer.
24541         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
24542         flush_addressof.
24543         No longer call adjust_decl_rtl.
24544         (DECL_INIT_BY_ASSIGN_P): New macro.
24545         (DECL_STMT_VAR): Likewise.
24547         * trans.c (gigi): Call start_block_stmt to make the outermost
24548         BLOCK_STMT.
24549         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
24550         Call start_block_stmt and end_block_stmt temporarily.
24551         Use gnat_expand_stmt instead of expand_expr_stmt.
24552         (add_decl_stmt): New function.
24553         (tree_transform): Call it.
24554         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
24555         (end_block_stmt): Set type and NULL_STMT.
24556         (gnat_expand_stmt): Make recursize call instead of calling
24557         expand_expr_stmt.
24558         (gnat_expand_stmt, case DECL_STMT): New case.
24559         (set_lineno_from_sloc): Do nothing if global.
24560         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
24561         (start_block_stmt, add_stmt, end_block_stmt): New functions.
24562         (build_block_stmt): Call them.
24563         (gnat_to_code): Don't expand NULL_STMT.
24564         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
24565         args.
24566         (tree_transform): Likewise.
24567         (tree_transform, case N_Null_Statement): Return NULL_STMT.
24568         (gnat_expand_stmt, case NULL_STMT): New case.
24569         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
24570         IF_STMT_TRUE.
24572         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
24573         TREE_ADDRESSABLE.
24575         * utils.c (create_var_decl): Do not call expand_decl or
24576         expand_decl_init.
24577         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
24578         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
24579         here.
24580         (struct e_stack): Add chain_next to GTY.
24581         (struct binding_level): Deleted.
24582         (struct ada_binding_level): New struct.
24583         (free_block_chain): New.
24584         (global_binding_level, clear_binding_level): Deleted.
24585         (global_bindings_p): Rework to see if no chain.
24586         (kept_level_p, set_block): Deleted.
24587         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
24588         new data structure and work directly on BLOCK node.
24589         (gnat_poplevel): Similarly.
24590         (get_decls): Look at BLOCK_VARS.
24591         (insert_block): Work directly on BLOCK node.
24592         (block_has_var): New function.
24593         (pushdecl): Rework for new binding structures.
24594         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
24595         poplevel.
24596         (build_subprog_body): Likewise.
24597         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
24599         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
24601         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
24602         (DECL_STMT_VAR): Likewise.
24604 2004-05-17  Robert Dewar  <dewar@gnat.com>
24606         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
24607         procedure
24609         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
24610         of restriction synonyums by using
24611         Restrict.Process_Restriction_Synonyms.
24613         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
24615         * s-restri.ads (Tasking_Allowed): Correct missing comment
24617         * s-rident.ads: Add entries for restriction synonyms
24619         * ali.adb: Fix some problems with badly formatted ALI files that can
24620         result in infinite loops.
24622         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
24623         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
24624         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24625         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
24626         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
24627         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
24628         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
24629         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
24630         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
24631         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
24632         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
24633         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
24634         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
24635         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
24636         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24637         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24638         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
24639         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24640         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
24641         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
24642         to Task_Id (minor cleanup).
24644 2004-05-17  Vincent Celier  <celier@gnat.com>
24646         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
24647         directory separator.
24649         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
24650         project being extended, if Languages is not declared in extending
24651         project.
24653 2004-05-17  Javier Miranda  <miranda@gnat.com>
24655         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
24656         limited view of a visible sibling.
24658 2004-05-14  Robert Dewar  <dewar@gnat.com>
24660         * gnat_ugn.texi: Minor change to -gnatS documentation
24662         * sprint.adb: Remove some instances of Assert (False) and for this
24663         purpose replace them by output of a ??? string.
24665         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
24666         Assert (False).
24668         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
24669         flag processing. This was suppressing required dependencies in
24670         No_Run_Time mode and is not needed since the binder does not generate
24671         references for things in libgnat anyway.
24673         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
24674         warning.
24676 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
24678         * gnat_ugn.texi: Document AIX-specific issue with initialization of
24679         resolver library.
24681         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
24682         action for the case of an actual parameter in an init proc call.
24684 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
24686         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
24687         subtype, check visible entities in base type.
24689         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
24690         actions if the object is a renaming.
24692         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
24693         Check_Formal_Package_Instance, to determine more precisely when the
24694         formal and the actual denote the same entity.
24696 2004-05-14  Javier Miranda  <miranda@gnat.com>
24698         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
24700         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
24701         corresponding to a private_with must be removed from visibility; it
24702         will be made visible later, just before we analyze the private part of
24703         the package.
24704         (Check_Private_Child_Unit): Allow private_with clauses in public
24705         siblings.
24706         (Install_Siblings): Make visible the private entities of private-withed
24707         siblings.
24708         (Install_Withed_Unit): Do not install the private withed unit if we
24709         are compiling a package declaration and the Private_With_OK flag was
24710         not set by the caller. These declarations will be installed later,
24711         just before we analyze the private part of the package.
24713         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
24714         during the evaluation of the expression that initializes the object,
24715         decorate it with the expected type to avoid cascade errors.
24716         Code cleanup.
24718         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
24719         subprogram we have to install the private_with clauses after its
24720         specification has been analyzed (as documented in AI-262.TXT).
24722         * sem_ch8.adb (Has_Private_With): New function. Determines if the
24723         current compilation unit has a private with on a given entity.
24724         (Find_Direct_Name): Detect the Beaujolais problem described in
24725         AI-262.TXT
24727         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
24728         provides the functionality of the function Is_Ancestor that was
24729         previously available in sem_ch10. It has been renamed to avoid
24730         overloading.
24732         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
24734 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24736         * utils.c (build_vms_descriptor): Use SImode pointers.
24738 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
24740         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
24742 2004-05-14  GNAT Script  <nobody@gnat.com>
24744         * Make-lang.in: Makefile automatically updated
24746 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
24748         Renaming of target specific files for clarity
24750         * Makefile.in: Rename GNAT target specific files.
24752         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
24753         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
24754         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
24755         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
24756         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
24757         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
24758         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
24759         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
24760         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
24761         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
24762         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
24763         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
24764         51osinte.adb, 51osinte.ads, 51system.ads,
24765         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
24766         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
24767         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
24768         56tpopsp.adb, 57system.ads, 58system.ads,
24769         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
24770         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
24771         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
24772         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
24773         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
24774         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
24775         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
24776         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
24777         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
24778         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
24779         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
24780         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
24781         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
24782         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
24783         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
24784         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
24785         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
24786         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
24787         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
24788         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
24789         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
24790         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
24791         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
24792         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
24793         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
24794         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
24795         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
24796         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
24797         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
24798         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
24799         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
24800         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
24801         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
24802         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
24803         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
24804         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
24805         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
24806         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
24807         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
24808         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
24810         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
24811         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
24812         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
24813         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
24814         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
24815         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
24816         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
24817         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
24818         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
24819         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
24820         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
24821         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
24822         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
24823         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
24824         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
24825         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
24826         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
24827         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
24828         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
24829         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
24830         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
24831         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
24832         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
24833         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
24834         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
24835         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
24836         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
24837         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
24838         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
24839         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
24840         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
24841         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
24842         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
24843         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
24844         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
24845         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
24846         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
24847         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
24848         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
24849         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
24850         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
24851         s-osinte-vms.ads, s-osinte-vxworks.adb,
24852         s-osinte-vxworks.ads, s-osprim-mingw.adb,
24853         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
24854         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
24855         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
24856         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
24857         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
24858         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24859         s-stchop-vxworks.adb, s-taprop-dummy.adb,
24860         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
24861         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
24862         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
24863         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
24864         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
24865         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
24866         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
24867         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
24868         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
24869         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
24870         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
24871         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
24872         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
24873         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
24874         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
24875         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
24876         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
24877         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
24878         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
24879         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
24880         system-irix-o32.ads, system-linux-x86_64.ads,
24881         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24882         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
24883         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
24884         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
24885         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
24886         system-vxworks-mips.ads, system-vxworks-ppc.ads,
24887         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
24888         above.
24890 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
24892         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
24894 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
24896         Merge from tree-ssa-20020619-branch.
24898         * config-lang.in (boot_language, build_by_default): Set
24899         to no.
24900         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
24901         (max_size): Add static chain op for call_expr.
24903 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
24905         PR target/15331
24906         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
24908 2004-05-11  Roger Sayle  <roger@eyesopen.com>
24910         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
24911         COND_EXPR.
24913 2004-05-10  Doug Rupp  <rupp@gnat.com>
24915         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
24916         system.aux_dec.
24918         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
24920         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
24922         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
24923         Fixes undefined symbols in IA64 gnatlib.
24925         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
24927         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
24928         Short_Address). This will be moved to system.auxdec.
24930 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
24932         * sem_util.adb: Replace test for presence of a node that is always
24933         present with a call to Discard_Node.
24935         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
24936         Analyze on the library unit node after generation of distribution stub
24937         constructs.  The call was a no-op because Unit_Node has already been
24938         Analyzed, and the tree fragments for the distribution stubs are
24939         analyzed as they are inserted in Exp_Dist.
24940         Update comment regarding to distribution stubs to reflect that we
24941         do not generate stub in separate files anymore.
24943         * einfo.ads: Clarify the fact that a tagged private type has the
24944         E_Record_Type_With_Private Ekind.
24946         * erroutc.adb: Minor reformatting
24948         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
24949         values if line length is increased using -gnatyM (noticed during code
24950         reading).
24952         * eval_fat.adb: Minor reformatting
24953         Put spaces around exponentiation operator
24955 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
24957         PR ada/15005
24958         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
24959         has been rewritten as an explicit dereference, retrieve type of
24960         original node to check for possibly unconstrained record type.
24962 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
24964         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
24965         overriding, use the operation of the parent unconditionally.
24967         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
24968         operation when either operand is a literal, to avoid further
24969         ambiguities.
24971         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
24972         overridden by a previous explicit declaration, mark the previous entity
24973         as overriding.
24975         * sem_disp.adb (Check_Dispatching_Operation): New predicate
24976         Is_Visibly_Controlled, to determine whether a declaration of a
24977         primitive control operation for a derived type overrides an inherited
24978         one. Add warning if the explicit declaration does not override.
24980 2004-05-10  Vincent Celier  <celier@gnat.com>
24982         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
24983         some cases when the sources are no longer present.
24985         * make.adb (Collect_Arguments): Fail if an external source, not part
24986         of any project need to be compiled, when switch -x has not been
24987         specified.
24989         * makeusg.adb: Document new switch -x
24991         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
24992         defaulted to False.
24994         * switch-m.adb (Scan_Make_Switches): New switch -x
24996         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
24997         gnatmake switch -x.
24999         * gnat_ugn.texi: Document new gnatmake switch -x
25001 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
25003         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
25005         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
25006         (process_attributes): Likewise.
25008 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
25010         * s-inmaop.ads: Fix spelling mistake in one of the comments.
25012 2004-05-10  Robert Dewar  <dewar@gnat.com>
25014         * gnat_ugn.texi: Document that for config pragma files, the maximum
25015         line length is always 32767.
25017         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
25018         literals is now allowed.
25020         * gnat-style.texi: Remove statement about splitting long lines before
25021         an operator rather than after, since we do not follow this rule at all.
25022         Clarify rule (really lack of rule) for spaces around exponentiation
25024         * sem_elim.adb: Allow concatenation of string literals as well as a
25025         single string literal for pragma arguments.
25027         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
25029         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
25030         written for append case.
25032         * frontend.adb: Changes to avoid checking max line length in config
25033         pragma files.
25035         * g-os_lib.ads: Minor reformatting
25037         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
25038         wrong in any case. Instead use standard value. Noticed during code
25039         reading.
25041         * opt.ads (Max_Line_Length): New field, used to implement removal of
25042         limitation on length of lines when scanning config pragma files.
25044         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
25045         makeutl.ads, makeutl.adb: Minor reformatting
25047         * scn.adb: Do not check line length while scanning config pragma files
25048         Do not check line length while scanning out license information
25050         * scng.adb: Changes to avoid line length checks while parsing config
25051         pragma files.
25053 2004-05-10  GNAT Script  <nobody@gnat.com>
25055         * Make-lang.in: Makefile automatically updated
25057 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
25059         * osint.adb (Find_Program_Name): Fix handling of VMS version
25060         number.
25062 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
25064         * g-os_lib.ads (Invalid_Time): New constant
25066         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
25067         return OS_Time instead of time_t to match what is imported by Ada.
25068         Now return -1 if the file doesn't exist, instead of a random value
25070 2004-05-05  Robert Dewar  <dewar@gnat.com>
25072         * usage.adb: Add line for -gnatR?s switch
25074         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
25076         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
25077         and for Match (Data_First, Data_last)
25079         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
25080         written when we are dealing with multi-unit files.
25082 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
25084         * Makefile.in: Remove unused targets and variables.
25086 2004-05-05  Vincent Celier  <celier@gnat.com>
25088         * switch-m.adb: New gnatmake switch -eI
25090         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
25091         of new gnatmake switch -eInnn.
25093         * makegpr.adb: Take into account new parameters Index and Src_Index in
25094         Prj.Util.
25096         * clean.adb: Implement support for multi-unit sources, including new
25097         switch -i.
25099         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
25100         Src_Index.
25102         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
25103         (Extract_From_Q): New out parameter Index
25104         (Mark, Is_Marked): Subprograms moved to Makeutl
25105         (Switches_Of): New parameter Source_Index
25106         (Add_Switch): New parameter Index
25107         (Check): New parameter Source_Index
25108         (Collect_Arguments): New parameter Source_Index
25109         (Collect_Arguments_And_Compile): New parameter Source_Index
25110         (Compile): New parameter Source_Index
25111         Put subprograms in alphabetical order
25112         Add support for multi-source sources, including in project files.
25114         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
25115         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
25116         Make.
25118         * makeusg.adb: New gnatmake switch -eInnn
25120         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
25121         Prj.Util.Value_Of.
25123         * opt.ads (Main_Index): New variable, defaulted to 0.
25125         * osint.ads, osinte.adb (Add_File): New parameter Index
25126         (Current_Source_Index): New function
25128         * prj.adb: Take into account new components Index and Src_Index
25130         * prj.ads (String_Element): New component Index
25131         (Variable_Value): New component Index
25132         (Array_Element): New component Src_Index
25134         * prj-attr.adb: Indicate that optional index may be specified for
25135         attributes Main, Executable, Spec, Body and some of Switches.
25137         * prj-attr.ads (Attribute_Kind): New values for optional indexes
25138         (Attribute_Record): New component Optional_Index
25140         * prj-com.ads (File_Name_Data): New component Index
25142         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
25144         * prj-env.adb (Put): Output optional index
25146         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
25147         attributes Spec and Body.
25149         * prj-nmsc.adb: Process optional indexes
25151         * prj-pp.adb: Ouput "at" for optional indexes
25153         * prj-proc.adb: Take into account optional indexes
25155         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
25156         Optional_Index. For string literal,
25157         process optional index when Optional_Index is True.
25158         (Parse_Expresion): New Boolean parameter Optional_Index
25160         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
25161         (Set_Source_Index_Of): New procedure
25163         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
25164         index.
25166         * prj-util.ads (Executable_Of): New parameter Index
25167         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
25168         New parameter Src_Index, defaulted to 0.
25170 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
25172         PR ada/15257
25173         * sem_ch3.adb (Access_Definition): If this is an access parameter
25174         whose designated type is imported through a limited_with clause, do
25175         not add the enclosing subprogram to the list of private dependents of
25176         the type.
25178 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
25180         PR ada/15258
25181         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
25182         a limited_with clause, and the other is its non-limited view.
25184 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
25186         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
25188         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
25189         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
25190         Stand.Boolean_Literals to produce references to entities
25191         Standard_False and Standard_True from compile-time computed boolean
25192         values.
25194         * stand.ads (Boolean_Literals): New variable, provides the entity
25195         values for False and True, for use by the expander.
25197 2004-05-05  Doug Rupp  <rupp@gnat.com>
25199         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
25200         5vinmaop.adb: Unchecked convert Short_Address vice Address
25202         * adaint.c, raise.c: Caste CRTL function return value
25203         to avoid gcc error on 32/64 bit IVMS.
25205         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
25206         target = IA64/VMS.
25208         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
25210         * 5qsystem.ads (Address): Declare as Long_Integer
25211         (Short_Address): Declare as 32 bit subtype of Address
25212         Declare  abstract address operations to avoid gratuitous ambiguities.
25214 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
25216         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
25217         instead of the old Boolean_Entry_Barriers.
25218         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
25220 2004-05-05  GNAT Script  <nobody@gnat.com>
25222         * Make-lang.in: Makefile automatically updated
25224 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
25226         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
25228 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
25230         PR ada/15152
25231         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
25232         alone. Replacing object references by literals is inappropriate in a
25233         so low level context.
25235 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
25237         * a-exexpr.adb: Add comments
25239 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
25241         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
25242         declare the Ancestor_Tags array in Type_Specific_Data with a small size
25243         without risking a bounds check error when accessing one of its
25244         components.
25245         (Type_Specific_Data): Define Ancestor_Tags as a small array.
25246         This prevents us from hitting a limitation during the debug info
25247         generation when using stabs.
25249         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
25250         small array.
25251         This prevents us from hitting a limitation during the debug info
25252         generation when using stabs.
25254 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
25256         lang-specs.h: Remove -gnatz* from specs.
25258 2004-05-03  Vincent Celier  <celier@gnat.com>
25260         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
25262         * Make-lang.in, Makefile.in: Add gprmake
25264 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
25266         * sem_aggr.adb: Fix typo in comment.
25268 2004-05-03  Robert Dewar  <dewar@gnat.com>
25270         * make.adb: Minor reformatting
25272         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
25274         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
25275         so that it works when address is not a private type.
25277         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
25278         properly with rewritten unchecked conversions. This prevents
25279         order-of-elaboration issues that can otherwise arise.
25280         (Minimum_Size): Don't check size of access types under VMS
25282         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
25283         interpretations of integer literals as type System.Address.
25285         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
25286         (Is_Descendent_Of): New function
25288 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
25290         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25291         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
25292         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
25294         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
25295         of the old Max_Entry_Queue_Depth.
25297         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25298         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
25299         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
25301         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
25302         New entry for proper handling of Max_Entry_Queue_Depth.
25303         New entry for proper handling of No_Dynamic_Interrupts.
25305         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
25306         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25307         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
25308         the GNAT specific restriction Max_Entry_Queue_Depth.
25309         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
25310         the GNAT specific restriction No_Dynamic_Interrupts.
25312         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
25313         instead of the old Boolean_Entry_Barriers.
25314         Use the new restriction No_Dynamic_Attachment instead of the old
25315         No_Dynamic_Interrupts.
25317         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
25318         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25320         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
25321         of the old Max_Entry_Queue_Depth.
25323 2004-05-03  GNAT Script  <nobody@gnat.com>
25325         * Make-lang.in: Makefile automatically updated
25327 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
25329         * checks.adb (Enable_Range_Check): If the prefix of an index component
25330         is an access to an unconstrained array, perform check unconditionally.
25332 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25334         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
25335         Component_Clause.
25337 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
25339         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
25340         alternate stack setting. There was no support for the tasking cases
25341         and the changes eventually caused a number of side-effect failures in
25342         the non-tasking case too.
25344 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
25346         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
25347         -gnats is passed.
25349 2004-04-29  Vincent Celier  <celier@gnat.com>
25351         * make.adb (Gnatmake): Increase max size of argument array for
25352         gnatbind for the potential addition of -F.
25353         If there are Stand-Alone Library projects, invoke gnatbind with -F to
25354         be sure that elaboration flags will be checked.
25356         * switch-c.adb: Correct call to Scan_Pos for -gnateI
25358 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
25360         * sem_warn.adb (Check_References): Move '<access-variable> may be
25361         null' warning out of under Warn_On_No_Value_Assigned.
25363 2004-04-29  Ed Falis  <falis@gnat.com>
25365         * gnat_ugn.texi: Fixed texi error
25367 2004-04-29  Robert Dewar  <dewar@gnat.com>
25369         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
25370         abstract operations if they come from predefined files.
25372         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
25373         Dynamic, not RM).
25375         * s-addope.adb: Correct obvious error in mod function
25377 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
25379         * Makefile.in: Add target pairs for powerpc darwin*
25380         tasking support.
25382         * a-intnam-darwin.ads, s-osinte-darwin.adb,
25383         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
25385 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
25387         * Makefile.in: Add target macro definitions for s390*-linux*.
25388         * system-linux-s390.ads: New file.
25389         * system-linux-s390x.ads: New file.
25391 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
25393         * gnat_ugn.texi: Correct argument to @setfilename.
25395 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
25397         * a-exexpr.adb (Unwind_Word): New data type.
25398         (Unwind_Exception): Use it as type of Private1 and Private2.
25400         * raise.c (db_action_for): Fix debug printf.
25402 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
25404         * a-wtmoio.ads: Formal type must be a modular type, not a signed
25405         integer type.
25407 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25409         * decl.c (gnat_to_gnu_entity, case object): Call
25410         __builtin_update_setjmp_buf.
25412         * gigi.h (update_setjmp_buf): Deleted.
25413         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
25415         * misc.c: (update_setjmp_buf): Deleted.
25417         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
25418         around block of RTL.
25420         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
25422 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
25424         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
25425         subprogram for which no pragma All_Calls_Remote applies, store the
25426         address of the real subprogram in the underlying record type, so local
25427         dereferences do not go through the PCS.
25429 2004-04-26  Robert Dewar  <dewar@gnat.com>
25431         * i-c.ads: Add some type qualifications to avoid ambiguities when
25432         compiling with s-auxdec.ads and a non-private address type.
25434 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
25436         * Makefile.rtl: Fix error in previous check-in:
25437         Add s-addope.o to non tasking object list (rather than tasking object
25438         list).
25440 2004-04-26  Javier Miranda  <miranda@gnat.com>
25442         * sem_aggr.adb: Fix typo in comments
25443         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
25444         Required to check the null-exclusion attribute.
25446         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
25447         case of anonymous access types in record and array components. For a
25448         component definition the level is the same of the enclosing composite
25449         type.
25451         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
25452         that are anonymous access types the level of accessibility depends on
25453         the enclosing type declaration. In order to have this information, set
25454         the scope of the anonymous access type to the enclosing record type
25455         declaration.
25456         (Array_Type_Declaration): In case of components that are anonymous
25457         access types the level of accessibility depends on the enclosing type
25458         declaration. In order to have this information, set the scope of the
25459         anonymous access type to the enclosing array type declaration.
25461         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
25462         access type.
25464         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
25465         renaming of anonymous access-to-constant types allowed if and only if
25466         the renamed object is access-to-constant.
25468         * sem_util.adb (Type_Access_Level): In case of anonymous access types
25469         that are component_definition or discriminants of a nonlimited type,
25470         the level is the same as that of the enclosing component type.
25472 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
25474         * sem_elim.adb: Some minor code reorganization from code reading. Fix
25475         misprint in the function name (File_Name_Match).
25477 2004-04-23  Laurent GUERBY <laurent@guerby.net>
25479         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
25480         install.
25482 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25484         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
25486 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
25488         * adaint.c (__gnat_try_lock): No longer requires that the parent
25489         directory be writable, the directory itself is enough.
25490         (gnat_is_absolute_path): Change profile, so that the call from
25491         GNAT.OS_Lib can be made more efficient.
25493         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
25494         from GNAT.OS_Lib can be made more efficient.
25496         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
25497         one copy of the file name. Found by code reading.
25499 2004-04-23  Vincent Celier  <celier@gnat.com>
25501         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
25502         Correct documentation on gnatmake switches transmitted to the compiler
25504         * ali.ads: Minor comment fix
25506 2004-04-23  Javier Miranda  <miranda@gnat.com>
25508         * sem_ch6.adb: (Confirming Types): Code cleanup
25510         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
25511         subprogram types: E_Anonymous_Access_Subprogram_Type and
25512         E_Anonymous_Access_Protected_Subprogram_Type.
25514 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
25516         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25517         whether a pragma All_Calls_Remote applies to the subprogram on which
25518         'Access is taken.
25519         No functional change is introduced by this revision; the new parameter
25520         will be used to allow calls to local RCI subprograms to be optimized
25521         to not use the PCS in the case where no pragma All_Calls_Remote applies,
25522         as is already done in the PolyORB implementation of the DSA.
25524         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25525         whether a pragma All_Calls_Remote applies to the subprogram on which
25526         'Access is taken.
25527         No functional change is introduced by this revision; the new parameter
25528         will be used to allow calls to local RCI subprograms to be optimized
25529         to not use the PCS in the case where no pragma All_Calls_Remote applies,
25530         as is already done in the PolyORB implementation of the DSA.
25532 2004-04-23  Robert Dewar  <dewar@gnat.com>
25534         * Makefile.rtl: Add entry for s-addope.o in run time library list
25535         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
25536         * s-addope.ads, s-addope.adb: New files.
25538         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
25539         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
25540         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
25541         System.Address to be non-private and signed.
25543         * sem_elim.adb: Minor reformatting (fairly extensive)
25544         Some minor code reorganization from code reading
25545         Add a couple of ??? comments
25547 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25549         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
25550         (tree_transform, case N_If_Statement): Remove non-determinism.
25552         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
25554 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
25556         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
25557         Eliminate' section.
25559         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
25560         no longer used as a parameter name for Eliminate pragma).
25562 2004-04-22  Laurent GUERBY <laurent@guerby.net>
25564         PR optimization/14984
25565         PR optimization/14985
25566         * trans.c (gigi): Fix non determinism leading to bootstrap
25567         comparison failures.
25569 2004-04-21  Pascal Obry  <obry@gnat.com>
25571         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
25572         passed to spawnvp() to properly handle program pathname with spaces on
25573         Win32.
25575 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
25577         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
25578         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
25579         unlocked in case of exceptions.
25581 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
25583         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
25584         This function does not exist anymore.
25586 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
25588         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
25590         * link.c: Move variables to the __gnat name space.
25592         * Makefile.in: list link.o explicitly when needed.
25594         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
25596 2004-04-21  Javier Miranda  <miranda@gnat.com>
25598         * einfo.adb (Original_Access_Type): New subprogram
25599         (Set_Original_Access_Type): New subprogram
25600         (Write_Field21_Name): Write the name of the new field
25602         * einfo.ads (Original_Access_Type): New field present in access to
25603         subprogram types.
25604         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
25605         E_Anonymous_Access_Protected_Subprogram_Type.
25607         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
25608         subprogram types.
25610         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
25611         to anonymous access to subprogram types.
25613         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
25614         to subprogram types.
25616         * sem_ch3.adb (Access_Definition): Complete decoration of entities
25617         corresponding to anonymous access to subprogram types.
25618         (Analyze_Component_Declaration): Add new actual to the call to
25619         subprogram replace_anonymous_access_to_protected_subprogram.
25620         (Array_Type_Declaration): Add new actual to the call to subprogram
25621         replace_anonymous_access_to_protected_subprogram.
25622         (Process_Discriminants): Add new actual to the call to subprogram
25623         replace_anonymous_access_to_protected_subprogram.
25624         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
25626         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25627         formal.
25629         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
25630         access to subprogram types.
25632         * sem_util.adb (Has_Declarations): Addition of package_specification
25633         nodes.
25635 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
25637         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
25638         inlined flags to renamed entity only if in current unit.
25640 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
25642         * s-parint.ads: Add DSA implementation marker.
25644         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
25645         value of System.Partition_Interface.DSA_Implementation to determine
25646         what version of the distributed systems annex is available (no
25647         implementation, GLADE, or PolyORB).
25649 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
25651         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
25653 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25655         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
25656         with new type if alias sets differ.
25657         Fixes ACATS c41103b.
25659 2004-04-21  Vincent Celier  <celier@gnat.com>
25661         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
25662         Add array Lang_Args for the language specific compiling argument
25663         switches.
25665         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
25667 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
25669         * gnat_rm.texi: Update the descripton of the Eliminate pragma
25670         according to the recent changes in the format of the parameters of the
25671         pragma (replacing Homonym_Number with Source_Location).
25673 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
25675         * 5isystem.ads: Removed, unused.
25677         * gnat_rm.texi: Redo 1.13 change.
25679 2004-04-19  Robert Dewar  <dewar@gnat.com>
25681         * s-stoele.ads: Clean up definition of Storage_Offset (the new
25682         definition is cleaner, avoids the kludge of explicit Standard operator
25683         references, and also is consistent with a visible System.Address with
25684         no visible operations.
25686         * s-geveop.adb: Add declarations to avoid assumption of visible
25687         operations on type System.Address (since these might not be available
25688         if Address is a non-private type for which the operations
25689         are made abstract).
25691         * sem_eval.adb: Minor reformatting
25693         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
25694         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
25695         reformatting (new function spec format).
25697         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
25698         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
25699         s-caun64.adb: Add declarations to avoid assumption of visible
25700         operations on type System.Address (since these might not be available
25701         if Address is a non-private type for which the operations are made
25702         abstract).
25704         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
25706         * exp_intr.adb: Minor comment update
25708         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
25710         * 5omastop.adb: Add declarations to avoid assumption of visible
25711         operations on type System.Address (since these might not be available
25712         if Address is a non-private type for which the operations
25713         are made abstract).
25715 2004-04-19  Vincent Celier  <celier@gnat.com>
25717         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
25719         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
25720         defaulted to Ada.
25722         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
25723         defaulted to Ada.
25724         Call Check with Process_Languages.
25725         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
25726         with Process_Languages.
25727         (Recursive_Check): New Boolean parameter Process_Languages. Call
25728         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
25729         Process_Languages.
25731         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
25733         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
25734         parameter Ada_Main, defaulted to True.
25735         Check for Ada specific characteristics only when Ada_Main is True.
25737         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
25739         * prj.adb: (Project_Empty): Add new Project_Data components.
25741         * prj.ads: New types and tables for non Ada languages.
25742         (Project_Data): New components Languages, Impl_Suffixes,
25743         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
25744         Include_Path, Include_Data_Set.
25746         * prj-env.ads, prj-env.adb: Minor reformatting
25748         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
25749         Put subprograms in alphabetical order
25751         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
25752         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
25753         Opt.Follow_Links.
25755         * mlib-prj.adb: Back out modification in last version, as they are
25756         incorrect.
25757         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
25759         * make.adb: (Mains): Moved to package Makeutl
25760         (Linker_Opts): Moved to package Makeutl
25761         (Is_External_Assignment): Moved to package Makeutl
25762         (Test_If_Relative_Path): Moved to package Makeutl
25763         (Gnatmake): Move sorting of linker options to function
25764         Makeutl.Linker_Options_Switches.
25766         * makeutl.ads, makeutl.adb: New files.
25768         * Makefile.in: Add makeutl.o to the object files for gnatmake
25770         * makeusg.adb: Add line for new switch -eL.
25772         * gnatls.adb (Image): New function.
25773         (Output_Unit): If in verbose mode, output the list of restrictions
25774         specified by pragmas Restrictions.
25776         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
25777         Text_IO.
25779         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
25780         needed, to put it in the range 1970 (included) - 2026 (excluded).
25781         (Time_Of): Do not shift Unix_Min_Year (1970).
25782         Shift the date by multiple of 56 years, if needed, to put it in the
25783         range 1970 (included) - 2026 (excluded).
25785         * adaint.h, adaint.c (__gnat_set_executable): New function.
25787 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25789         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
25790         and pop GC context.
25791         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
25792         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
25793         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
25794         (tree_transform, case N_Code_Statement): Likewise.
25795         (gnat_expand_stmt, case LABEL_STMT): Don't look at
25796         LABEL_STMT_FIRST_IN_EH.
25797         (gnat_expand_stmt, case ASM_STMT): New case.
25799         * utils2.c (build_unary_op): Properly set TREE_READONLY of
25800         UNCONSTRAINED_ARRAY_REF.
25802         * utils.c (poplevel): Temporarily push/pop GC context around inline
25803         function expansion.
25805         * decl.c (maybe_variable): Properly set TREE_READONLY of
25806         UNCONSTRAINED_ARRAY_REF.
25807         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
25809         * ada-tree.def: (ASM_STMT): New.
25811         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
25812         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
25813         ASM_STMT_INPUT): New.
25814         (ASM_STMT_CLOBBER): Likewise.
25816 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
25818         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
25819         general rcheck mechanism to raise Program_Error for E.4(18), instead
25820         of a custom raiser in System.Partition_Interface.
25821         Part of general cleanup work before PolyORB integration.
25823         * snames.ads, snames.adb: Add new runtime library entities and names
25824         for PolyORB DSA.
25826         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25827         exp_dist.
25828         (Build_Subprogram_Id): New subprogram provided by exp_dist
25829         Code reorganisation in preparation for PolyORB integration.
25831         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25832         exp_dist.
25833         (Build_Subprogram_Id): New subprogram provided by exp_dist
25835         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
25836         actual parameter types for call to dereference of an
25837         access-to-subprogram type.
25839         * rtsfind.ads: Add new runtime library entities and names for PolyORB
25840         DSA.
25842         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
25843         instead, which has the same behaviour here since we never pass it a
25844         NULL pointer.
25846         * link.c (run_path_option, Solaris case): Use -Wl, as for other
25847         platforms.
25849         * Makefile.in: adjust object file lists for gnatlink and gnatmake
25850         to account for new dependency upon Interfaces.C.Strings + link.o
25851         For x86 FreeBSD, use 86numaux.
25853         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
25854         from Mlib.Tgt to Mlib.
25856         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
25857         target-independent.
25859         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
25860         target-specific versions of this subprogram, now implemented as a
25861         target-independent function in Mlib.
25863         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
25864         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
25865         (Linker_Library_Path_Option): Remove target-specific versions of this
25866         subprogram, now implemented as a target-independent function in Mlib.
25868         * atree.adb: (Allocate_Initialize_Node): New subprogram.
25869         Factors out node table slots allocation.
25870         (Fix_Parents): New subprogram.
25871         Encapsulate the pattern of fixing up parent pointers for syntactic
25872         children of a rewritten node.
25873         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
25874         (Rewrite): Use New_Copy when creating saved copy of original node.
25875         (Replace): Use Copy_Node to copy nodes.
25877 2004-04-19  Javier Miranda  <miranda@gnat.com>
25879         * sprint.adb (Sprint_Node_Actual): Give support to the new
25880         Access_To_Subprogram node available in Access_Definition nodes. In
25881         addition, give support to the AI-231 node fields: null-exclusion,
25882         all-present, constant-present.
25884         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
25886         * sinfo.ads, sinfo.adb:
25887         New field Access_To_Subprogram_Definition in Access_Definition nodes
25889         * sem_ch6.adb (Process_Formals): Move here the code that creates and
25890         decorates internal subtype declaration corresponding to the
25891         null-excluding formal. This code was previously in Set_Actual_Subtypes.
25892         In addition, carry out some code cleanup on this code. In case of
25893         access to protected subprogram call
25894         Replace_Anonymous_Access_To_Protected_Subprogram.
25895         (Set_Actual_Subtypes): Code cleanup.
25897         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
25898         Find_Type in case of anonymous access renamings. Add warning in case of
25899         null-excluding attribute used in anonymous access renaming.
25901         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25902         subprogram
25904         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
25905         subprogram.
25906         (Access_Definition): In case of anonymous access to subprograms call
25907         the corresponding semantic routine to decorate the node.
25908         (Access_Subprogram_Declaration): Addition of some comments indicating
25909         some code that probably should be added here. Detected by comparison
25910         with the access_definition subprogram.
25911         (Analyze_Component_Declaration): In case of access to protected
25912         subprogram call Replace_Anonymous_Access_To_Protected.
25913         (Array_Type_Declaration): In case of access to protected subprogram call
25914         Replace_Anonymous_Access_To_Protected_Subprogram.
25915         (Process_Discriminants): In case of access to protected subprogram call
25916         Replace_Anonymous_Access_To_Protected_Subprogram.
25918         * par.adb (P_Access_Definition): New formal that indicates if the
25919         null-exclusion part was present.
25920         (P_Access_Type_Definition): New formal that indicates if the caller has
25921         already parsed the null-excluding part.
25923         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
25924         (P_Identifier_Declarations): Code cleanup and give support to renamings
25925         of anonymous access to subprogram types.
25926         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
25927         (P_Array_Type_Definition): Give support to AI-254.
25928         (P_Component_Items): Give support to AI-254.
25929         (P_Access_Definition): New formal that indicates if the header was
25930         already parsed by the caller.
25931         (P_Access_Type_Definition): New formal that indicates if the caller has
25932         already parsed the null-excluding part.
25934         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
25935         call to P_Access_Definition.
25937 2004-04-19  Geert Bosch  <bosch@gnat.com>
25939         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25940         the delicate semantics of floating-point to integer conversion.
25941         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25943         * eval_fat.adb (Machine_Mantissa): Moved to spec.
25944         (Machine_Radix): New function.
25946         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
25947         conversion checks.
25948         (Machine_Radix): New function also for use in conversion checks.
25950 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
25952         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
25954         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
25955         to decorate the access-to-protected subprogram and the equivalent type.
25957         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
25958         to anonymous access to subprogram types.
25960         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
25961         constant-folding, for legality checks in contexts that require an RM
25962         static expression.
25964         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
25965         temporary but stack checking is not enabled, increment serial number
25966         to so that symbol generation is consistent with and without stack
25967         checking.
25969         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
25970         independent on whether stack checking is enabled, caller must check
25971         the corresponding flag.
25973         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
25974         range checks.
25975         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
25976         parent if it has discriminants.
25977         (Build_Derived_Private_Type): Constructed full view does
25978         not come from source.
25979         (Process_Discriminants): Default discriminants on a tagged type are
25980         legal if this is the internal completion of a private untagged
25981         derivation.
25983         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
25984         no constraint checks, because it corresponds to an existing object.
25986         * sem_prag.adb (Process_Convention): Pragma applies
25987         only to subprograms in the same declarative part, i.e. the same unit,
25988         not the same scope.
25990         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
25991         ignore type mismatch on a numeric conversion if expression comes from
25992         expansion.
25994 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
25996         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
25997         Homonym_Number parameter, add processing for Source_Location parameter
25998         corresponding.
25999         (Check_Eliminated): Remove the check for homonym numbers, add the check
26000         for source location traces.
26002         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
26003         with Arg_Source_Location corresponding to the changes in the format of
26004         the pragma.
26006         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
26007         Eliminate pragma corresponding to the changes in the format of the
26008         pragma: Homonym_Number is replaced with Source_Location, two ways of
26009         distinguishing homonyms are mutially-exclusive.
26011 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
26013         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
26015         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
26016         No_Dollar_In_Label, no longer necessary, as it is always True.
26017         (Strip_Suffixes): Likewise.
26019 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
26021         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
26022         modulus for compatibility with size clause on targets with 16-bit
26023         Integer.
26025         * layout.adb (Discrimify): In the case of private types, set Vtyp to
26026         full type to fix type mismatches on calls to size functions for
26027         discriminant-dependent array components.
26029 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
26031         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
26032         lib.
26034 2004-04-19  Pascal Obry  <obry@gnat.com>
26036         * mdll-utl.adb (Locate): New version is idempotent.
26038 2004-04-17  Laurent Guerby <laurent@guerby.net>
26040         PR ada/14988 (partial)
26041         * impunit.adb: Fix typo.
26043 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
26045         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
26046         and install-rts-cert targets.  Remove all gnatlib and gnattools
26047         targets and all other rts-* targets (moved to libada).  Remove (now)
26048         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
26049         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
26051 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26053         * trans.c (tree_transform): Shortcut returning error_mark_node for
26054         statements in annotate_only_mode.
26055         (tree_transform, case N_Label, case N_Return_Statement,
26056         N_Goto_Statement): Make statement tree instead of generating code.
26057         (tree_transform, case N_Assignment_Statement): No longer check
26058         type_annotate_only.
26059         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
26060         RETURN_STMT): New.
26061         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
26062         New fcns.
26063         (gnat_to_gnu): Collect any RTL generated and deal with it.
26064         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
26065         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
26066         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
26068         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
26070         * ada-tree.def (EXPR_STMT): Fix typo in name.
26071         (BLOCK_STMT, IF_STMT): New nodes.
26073         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
26074         LABEL_STMT_FIRST_IN_EH): New macros.
26075         (RETURN_STMT_EXPR): Likewise.
26077         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
26078         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
26080 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
26082         * atree.ads: Correct documentation on extended nodes.
26084         * link.c: Set run_path_option for FreeBSD.
26086 2004-04-08  Vincent Celier  <celier@gnat.com>
26088         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
26089         one of the ALI file, do not link with DEC lib.
26091         * par.adb Remove the last two characters ("%s" or "%b") when checking
26092         if a language defined unit may be recompiled.
26094 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
26096         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
26097         removal of abstract operation leaves no possible interpretation for
26098         expression.
26100         * sem_eval.adb (Eval_Qualified_Expression): Use
26101         Set_Raises_Constraint_Error on node when needed, so that it does not
26102         get optimized away by subsequent optimizations.
26104         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
26105         operands even when they are not wrapped in a type conversion.
26107 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
26109         * sem_prag.adb (Set_Exported): Warn about making static as result of
26110         export only when the export is coming from source. This may be not
26111         be true e.g. on VMS where we expand export pragmas for exception codes
26112         together with imported or exported exceptions, and we don't want the
26113         user to be warned about something he didn't write.
26115 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
26117         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
26118         duplication between normal entities and those declared as renamings.
26119         No functional change.
26121         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
26122         inline functions returning an unconstrained result.
26124 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
26126         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
26127         conform to what other front-ends do.
26129 2004-04-08  Doug Rupp  <rupp@gnat.com>
26131         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
26132         libraries.
26134 2004-04-06  Pascal Obry  <obry@gnat.com>
26136         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
26138         * osint.adb (Program_Name): Do not look past a directory separator.
26140 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
26142         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
26144         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
26145         requirement for preserving a copy of the original assignment node.
26147         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
26149 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
26151         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
26152         when supported.
26154 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
26156         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
26157         operator calls in functional notation, and apply
26158         Universal_Interpretation to operands, not to their type.
26160 2004-04-06  Robert Dewar  <dewar@gnat.com>
26162         * 5wdirval.adb: Minor reformatting
26164 2004-04-06  Ed Falis  <falis@gnat.com>
26166         * gnat_rm.texi: Improve a reference to the GCC manual
26168 2004-04-05  Vincent Celier  <celier@gnat.com>
26170         * adaint.h, adaint.c: Add function __gnat_named_file_length
26172         * impunit.adb: Add Ada.Directories to the list
26174         * Makefile.in: Add VMS and Windows versions of
26175         Ada.Directories.Validity package body.
26177         * Makefile.rtl: Add a-direct and a-dirval
26179         * mlib-tgt.ads: Minor comment update.
26181         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
26182         a-direct.ads, a-direct.adb: New files.
26184 2004-04-05  Vincent Celier  <celier@gnat.com>
26186         PR ada/13620
26187         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
26188         just to the compiler.
26190 2004-04-05  Robert Dewar  <dewar@gnat.com>
26192         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
26193         returned string is 1.
26195         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
26197         * eval_fat.ads: Minor reformatting
26199         * g-curexc.ads: Document that lower bound of returned string values
26200         is always one.
26202         * gnatlink.adb: Add ??? comment for previous change
26203         (need to document why this is VMS specific)
26205         * s-stoele.ads: Minor reformatting
26207         * tbuild.ads: Minor reformatting throughout (new function specs)
26209         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
26210         after WITH.
26212         * scng.adb: Minor reformatting
26214 2004-04-05  Geert Bosch  <bosch@gnat.com>
26216         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
26217         (Leading_Part): Still perform truncation to machine number if the
26218         specified radix_digits is greater or equal to machine_mantissa.
26220 2004-04-05  Javier Miranda  <miranda@gnat.com>
26222         * par-ch3.adb: Complete documentation of previous change
26223         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
26224         (aliased must appear before constant).
26226         * par-ch4.adb: Complete documentation of previous change.
26228         * par-ch6.adb: Complete documentation of previous change.
26230         * sinfo.ads: Fix typo in commment.
26232 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
26234         * sem_ch3.adb (Inherit_Components): If derived type is private and has
26235         stored discriminants, use its discriminants to constrain parent type,
26236         as is done for non-private derived record types.
26238         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
26239         Ada 2005 AI-310: an abstract non-dispatching operation is not a
26240         candidate interpretation in an overloaded call.
26242         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
26243         expression is Null and target type is not an access type (e.g. a
26244         non-private address type).
26246 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
26248         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
26249         statement whose right-hand side is an inlined call, save a copy of the
26250         original assignment subtree to preserve enough consistency for
26251         Analyze_Assignment to proceed.
26253         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
26254         complete assignment subtree which is now unnecessary, as the expansion
26255         of inlined call has been improved to preserve a consistent assignment
26256         tree.  Note_Possible_Modification must be called only
26257         after checks have been applied, or else unnecessary checks will
26258         be generated.
26260         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
26261         of explicit dereferences that do not Come_From_Source:
26262          - be selective on cases where we must go back to the dereferenced
26263            pointer (an assignment to an implicit dereference must not be
26264            recorded as modifying the pointer);
26265          - do not rely on Original_Node being present (Analyze_Assignment
26266            calls Note_Possible_Modification on a copied tree).
26268         * sem_warn.adb (Check_References): When an unset reference to a pointer
26269         that is never assigned is encountered, prefer '<pointer> may be null'
26270         warning over '<pointer> is never assigned a value'.
26272 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
26274         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
26275         the ABI.
26277 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
26279         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
26280         libexc. We currently don't reference anything in this library and
26281         linking it in triggers linker warnings we don't want to see.
26283         * init.c: Update comments.
26285 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26287         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
26288         * utils.c (create_field_decl): Likewise.
26289         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
26291 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
26293         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
26294         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
26295         Add info directory entry and category.
26297 2004-04-02  Jan Hubicka  <jh@suse.cz>
26299         * utils.c: Include function.h
26300         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
26302 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
26304         PR ada/14150
26305         * Make-lang.in: Clean up generation of documentation
26307         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
26309         * xgnatug.adb: Removed, replaced by xgnatugn.adb
26311         * xgnatugn.adb: Replaces xgnatug.adb
26313         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
26315         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
26317         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26318         gnat_ug_wnt.texi: Removed.
26320 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
26322         * utils2.c: Update copyright notice.
26324 2004-04-01  Robert Dewar  <dewar@gnat.com>
26326         * checks.adb: Minor reformatting throughout
26327         Note that prev checkin added RM reference to alignment warning
26329 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
26331         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
26332         non-static when building aggregate for bit-packed array.
26334         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
26335         function call that is itself the actual in a procedure call, build
26336         temporary for it.
26338         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
26339         a string literal, create a temporary for it, constant folding only
26340         handles scalars here.
26342 2004-04-01  Vincent Celier  <celier@gnat.com>
26344         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
26345         Error_Msg_SP): New empty procedures to instantiate the Scanner.
26346         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
26347         tokens.
26348         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
26349         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
26350         and get the checksum.
26352         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
26353         already in the Q.
26354         Increase the Marking_Label at the end of the Multiple_Main_Loop,
26355         instead of at the beginning.
26357         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
26358         directly.
26359         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
26360         on VMS.
26362         * osint.ads (Multi_Unit_Index_Character): New Character global variable
26364         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
26365         not '~' directly.
26367         * par.adb: Remove test on file name to detect language defined units.
26368         Add test on unit name, after parsing, to detect language defined units
26369         that are not compiled with -gnatg (except System.RPC and its children)
26371         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
26372         following units without style checking.
26374         * switch-c.adb: Change -gnatC to -gnateI
26376         * usage.adb: Document new switch -gnateInnn
26378         * scng.adb (Accumulate_Token_Checksum): New procedure
26379         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
26380         word or literal number.
26381         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
26382         numbers.
26384 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
26386         * a-tasatt.adb,
26387         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
26388         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
26389         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
26390         5vtpopde.adb: Add missing 'constant' keywords.
26392 2004-04-01  Javier Miranda  <miranda@gnat.com>
26394         * par-ch4.adb: (P_Allocator): Code cleanup
26396         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
26397         attribute.
26399         * sinfo.ads: Complete documentation of previous change
26401 2004-04-01  Pascal Obry  <obry@gnat.com>
26403         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
26404         only on VMS.  This special handling was done because an old GNU/ld bug
26405         on Windows which has been fixed.
26407 2004-04-01  GNAT Script  <nobody@gnat.com>
26409         * Make-lang.in: Makefile automatically updated
26411 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26413         * decl.c (gnat_to_gnu_entity, make_type_from_size):
26414         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
26415         * trans.c (tree_transform, convert_with_check): Likewise.
26416         * utils.c (gnat_signed_or_unsigned_type): Likewise.
26417         (build_vms_descriptor, unchecked_convert): Likewise.
26418         * utils2.c (nonbinary_modular_operation): Likewise.
26420 2004-03-29  Javier Miranda  <miranda@gnat.com>
26422         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
26423         (Install_Null_Excluding_Check): Local subprogram that determines whether
26424         an access node requires a runtime access check and if so inserts the
26425         appropriate run-time check.
26426         (Apply_Access_Check): Call Install_Null_Excluding check if required
26427         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
26429         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
26431         * einfo.ads: Fix typo in comment
26433         * exp_ch3.adb (Build_Assignment): Generate conversion to the
26434         null-excluding type to force the corresponding run-time check.
26435         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
26436         type to force the corresponding run-time check.
26438         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
26439         the null-excluding type to force the corresponding run-time check.
26441         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
26442         case of access types unless they have the null-excluding attribute.
26444         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
26445         part.
26447         * exp_util.ads: Fix typo in comment
26449         * par.adb (P_Null_Exclusion): New subprogram
26450         (P_Subtype_Indication): New formal that indicates if the null-excluding
26451         part has been scanned-out and it was present
26453         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
26455         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
26456         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
26457         type to force the corresponding run-time check
26458         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
26459         components
26460         (Resolve_Array_Aggregate): Carry out some static checks
26461         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
26463         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
26464         attribute must be set only if specified by means of the null-excluding
26465         part. In addition, we must also propagate the access-constant attribute
26466         if present.
26467         (Access_Subprogram_Declaration, Access_Type_Declaration,
26468         Analyze_Component_Declaration, Analyze_Object_Declaration,
26469         Array_Type_Declaration, Process_Discriminants,
26470         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
26471         and carry out some static checks.
26472         (Build_Derived_Access_Type): Set the null-excluding attribute
26473         (Derived_Type_Declaration, Process_Subtype): Carry out some static
26474         checks.
26476         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
26478         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
26480         * sem_ch6.adb (Process_Formals): Carry out some static checks.
26481         (Set_Actual_Subtypes): Generate null-excluding subtype if the
26482         null-excluding part was present; it is not required to be done here in
26483         case of anonymous access types.
26484         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
26485         value.
26487         * sem_res.adb (Resolve_Actuals): Carry out some static check
26488         (Resolve_Null): Allow null in anonymous access
26490         * sinfo.adb: New subprogram Null_Exclusion_Present
26491         All_Present and Constant_Present available on access_definition nodes
26493         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
26494         object_declaration, derived_type_definition, component_definition,
26495         discriminant_specification, access_to_object_definition,
26496         access_function_definition, allocator, access_procedure_definition,
26497         access_definition, parameter_specification, All_Present and
26498         Constant_Present flags available on access_definition nodes.
26500 2004-03-29  Robert Dewar  <dewar@gnat.com>
26502         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
26503         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
26504         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
26505         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
26506         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
26507         sem_prag.adb: Updates to handle multiple units/file
26509         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
26511         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
26512         sem_util.adb: Minor reformatting
26514         * sem_ch12.adb: Add comment for previous change
26516 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
26518         * osint.adb (Executable_Prefix): Set Exec_Name to the current
26519         executable name when not initialized. Otherwise, use its current value.
26521         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
26522         initialize it to another executable name than the current one. This
26523         allows to configure paths for an executable name (gnatmake) different
26524         from the current one (gnatdist).
26526 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
26528         * exp_ch6.adb (Expand_Call): A call to a function declared in the
26529         current unit cannot be inlined if it appears in the body of a withed
26530         unit, to avoid order of elaboration problems in gigi.
26532         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
26533         information for protected (wrapper) operation as well, to simplify gdb
26534         use.
26536         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
26537         protected body, indicate that the entity for the generated spec comes
26538         from source, to ensure that references are properly generated for it.
26539         (Build_Body_To_Inline): Do not inline a function that returns a
26540         controlled type.
26542         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
26543         apply convention to homonyms that are declared explicitly.
26545         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
26546         that renames an equality operator and the operands are overloaded,
26547         resolve them with the declared formal types, before rewriting as an
26548         operator.
26550 2004-03-29  GNAT Script  <nobody@gnat.com>
26552         * Make-lang.in: Makefile automatically updated
26554 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
26556         * memtrack.adb: Log realloc calls, which are treated as free followed
26557         by alloc.
26559 2004-03-25  Vincent Celier  <celier@gnat.com>
26561         * prj-makr.adb (Process_Directories): Detect when a file contains
26562         several units. Do not include such files in the config pragmas or
26563         in the naming scheme.
26565         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
26566         Resolve links only when not in Trusted_Mode.
26567         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
26568         Do not resolve links for the display names.
26570         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
26571         resolve links when computing the display names.
26573 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
26575         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
26576         attribute reference does not denote a subtype, it can be any
26577         expression that has a classwide type, potentially after an implicit
26578         dereference.  In particular, the prefix can be a view conversion for
26579         a classwide type (for which Is_Object_Reference holds), but it can
26580         also be a value conversion for an access-to-classwide type. In the
26581         latter case, there is an implicit dereference, and the original node
26582         for the prefix does not verify Is_Object_Reference.
26584         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
26585         conversion of a discriminant-dependent component of a mutable object
26586         is one itself.
26588 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
26590         * freeze.adb (Freeze_Entity): When an inherited subprogram is
26591         inherited, has convention C, and has unconstrained array parameters,
26592         place the corresponding warning on the derived type declaration rather
26593         than the original subprogram.
26595         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
26596         indication on renaming declaration, if formal has a box and actual
26597         is absent.
26599         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
26600         determine whether to generate an implicit or explicit reference to
26601         the renamed entity.
26603         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
26604         subprogram renaming comes from a defaulted formal subprogram in an
26605         instance.
26607 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
26609         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
26610         value expressions to ensure that calls within a component definition
26611         will be checked (since those are evaluated during the record type's
26612         elaboration).
26614 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
26616         * s-tpobop.adb: Code clean up:
26617         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
26618         code.
26619         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
26621 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
26623         * Makefile.in: Clean up in the ravenscar run time.
26625 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26627         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
26628         of No_Strict_Aliasing to build_pointer_type_for_mode.
26629         * utils.c (update_pointer_to): Walk pointer and ref chains.
26631 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
26633         * ali.ads: Fix Comment about Dynamic_Elab.
26635         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
26636         Has_RACW, Is_Generic, etc.)
26637         (Output_Object, Gnatls): Take into account ALI files not attached to
26638         an object.
26640 2004-03-22  Vincent Celier  <celier@gnat.com>
26642         * gprep.adb: Change all String_Access to Name_Id
26643         (Is_ASCII_Letter): new function
26644         (Double_File_Name_Buffer): New procedure
26645         (Preprocess_Infile_Name): New procedure
26646         (Process_Files): New procedure
26647         (Gnatprep): Check if output and input are existing directories.
26648         Call Process_Files to do the real job.
26650 2004-03-22  Robert Dewar  <dewar@gnat.com>
26652         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
26653         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
26655 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
26657         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
26658         case when the source contains only comments.
26660 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
26662         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
26663         declaration for a child subprogram body that acts as a spec, indicate
26664         that the entity in the declaration needs debugging information.
26666         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
26667         full view if the subtype is created for a constrained record component;
26668         gigi has enough information to construct the record, and there is no
26669         place in the tree for the declaration.
26671         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
26672         serial number for the dummy body that is built for analysis, to avoid
26673         inconsistencies in the generation of internal names when compiling
26674         with -gnatN.
26676 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
26678         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
26679         object.
26681 2004-03-22  GNAT Script  <nobody@gnat.com>
26683         * Make-lang.in: Makefile automatically updated
26685 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26687         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26688         * trans.c (tree_transform, emit_index_check): Likewise.
26689         * utils.c (build_template): Likewise.
26690         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
26691         (maybe_unconstrained_array, unchecked_convert): Likewise.
26692         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
26693         (build_unary_op): Likewise.
26694         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26695         (fill_vms_descriptor): Likewise.
26696         (build_call_alloc_dealloc): Likewise.
26697         ALIGN is unsigned.
26698         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
26700 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
26702         PR other/14630
26703         * gnat_ug.texi: Add info directory category and entry.
26704         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26705         gnat_ug_wnt.texi: Regenerate.
26707 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
26709         * ada-tree.h: Update copyright notice.
26710         Minor reformatting.
26712 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
26714         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
26715         as regular exception objects and not as mere integers representing the
26716         condition code.  The latter approach required some dynamics to mask off
26717         severity bits, which did not fit well into the GCC table based model.
26718         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
26719         exception data objects. We don't it and it would conflict with the other
26720         external symbol we have to generate for such exceptions.
26722         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
26723         the special code for VMS exceptions, since these are now represented
26724         as regular exceptions objects.
26726 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26728         * decl.c (debug_no_type_hash): Remove.
26729         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
26730         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
26732 2004-03-19  Laurent Guerby <laurent@guerby.net>
26734         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
26735         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
26737 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26739         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
26740         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
26741         (TYPE_RM_SIZE_INT): Directly use type.values.
26742         (TREE_LOOP_ID): Clean up check.
26743         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
26744         TYPE_VALUES, not TYPE_FIELDS.
26745         * trans.c (convert_with_check): Delay access of bounds of basetype
26746         until sure is numeric.
26748 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
26750         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
26752         Code clean up:
26753         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
26754         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
26755         Specific.Set instead of direct call to e.g pthread_setspecific.
26757 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
26759         * adaint.c: Update comments.
26761         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
26762         GNATLIB_SHARED for FreeBSD.
26764 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
26766         * init.c [VxWorks]: Do not fix the stack size for the environment task.
26767         When needed (stack checking) the stack size is retrieved
26768         from the VxWorks kernel.
26770         * Makefile.in: Flag -nostdinc is required when building the run time
26771         for avoiding looking for files in the base compiler.
26772         Add the VxWorks specific version of the package body for
26773         System.Stack_checking.Operations (5zstchop.adb).
26775         * Make-lang.in: Add the object file for
26776         System.Stack_Checking.Operations.
26778         * Makefile.rtl: Add object file for the package
26779         System.Stack_Checking.Operations.
26781         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
26783         * s-stache.ads, s-stache.adb: Move the operations related to stack
26784         checking from this package to package System.Stack_Checking.Operations.
26785         This way, stack checking operations are only linked in the final
26786         executable when using the -fstack-check flag.
26788 2004-03-18  Doug Rupp  <rupp@gnat.com>
26790         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
26791         Reorganize ifeq's.
26793         * 5qsystem.ads, 5xcrtl.ads: New files.
26795 2004-03-18  Vincent Celier  <celier@gnat.com>
26797         * prj.adb (Reset): Reset hash table Files_Htable
26799         * prj-env.adb (Source_Paths, Object_Paths): New tables.
26800         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
26801         the procedures Add_To_Path_File.
26802         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
26803         making sure that each directory is present only once and, for object
26804         dirs, when a directory already present is added, the duplicate is
26805         removed and the directory is always put as the last in the table.
26806         Write the path files at the end of these accumulations.
26808         * prj-nmsc.adb (Record_Source): Add source file name in hash table
26809         Files_Htable for all sources.
26811         * prj-proc.adb (Process): Remove restrictions between not directly
26812         related extending projects.
26814 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
26816         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
26817         (Find_Sources): Minor speed optimization.
26819         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
26820         parameter Trusted_Mode.
26822 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
26824         * scn.adb (Determine_License): Take into account a degenerated case
26825         when the source contains only comments.
26827 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
26829         * sem_warn.adb (Check_References): For a warning on a selected
26830         component that does not come from source, locate an uninitialized
26831         component of the record type to produce a more precise error message.
26833 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
26835         * 3zsoccon.ads: Fix multicast options.
26837         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
26838         in the spec.
26840 2004-03-15  Robert Dewar  <dewar@gnat.com>
26842         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
26843         pragma used for a private type.
26845         * lib-xref.adb (Generate_Reference): Do not generate warning if
26846         reference is in a different unit from the pragma Unreferenced.
26848         * 5vtpopde.adb: Minor reformatting
26849         Fix casing of To_Task_ID
26851         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
26852         flag if we have an unchecked conversion to an access type in the same
26853         unit.
26855 2004-03-15  Geert Bosch  <bosch@gnat.com>
26857         * a-ngcoty.adb (Modulus): In alternate formula for large real or
26858         imaginary parts, use Double precision throughout.
26860         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
26861         we want to be able to compile run-time with -gnata for testing, but
26862         this may also be instantiated in user code that is compiled with -gnata.
26864 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
26866         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
26867         codes. Having a separate type for this is useful to enforce consistency
26868         throughout the various run-time units.
26869         (Exception_Data): Use Exception_Code for Import_Code.
26871         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
26872         Natural and Integer in various places.
26873         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
26874         with the severity bits masked off.
26875         (Register_VMS_Exception): Handle the additional exception data pointer
26876         argument.
26878         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
26879         component, now reflected by an exported accessor.
26880         (is_handled_by): New routine to compute whether the propagated
26881         occurrence matches some handler choice specification. Extracted out of
26882         get_action_description_for, and expanded to take care of the VMS
26883         specifities.
26884         (get_action_description_for): Use is_handled_by instead of an explicit
26885         complex condition to decide if the current choice at hand catches the
26886         propagated occurrence.
26888         * raise.h (Exception_Code): New type for C.
26890         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
26891         System.Standard_Library.Exception_Code, to allow references from the
26892         pragma import/export expander.
26894         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
26895         New accessors to allow easy access to GNAT exception data
26896         characteristics.
26897         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
26898         redundant Handled_By_Others component, helper for the personality
26899         routine which will now be able to call the appropriate exception data
26900         accessor instead.
26902         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
26903         component of Standard_Exception_Type to be the closest possible to
26904         Exception_Code in System.Standard_Library, that we cannot get at this
26905         point. Expand a ??? comment to notify that this type node should
26906         probably be rewritten later on.
26908         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
26909         registration call to include a pointer to the exception object in the
26910         arguments.
26912         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
26913         instead of int and explicit bitmasks.
26915 2004-03-15  Vincent Celier  <celier@gnat.com>
26917         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
26918         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
26920         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
26921         longer needed now that it is in the spec of
26922         System.Tasking.Task_Attributes.
26924         * adaint.h, adaint.c: (__gnat_create_output_file): New function
26926         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
26928         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
26930         * make.adb (Gnatmake): Do not check the executable suffix; it is being
26931         taken care of in Scan_Make_Arg.
26932         (Scan_Make_Arg): Add the executable suffix only if the argument
26933         following -o, in canonical case, does not end with the executable
26934         suffix.  When in verbose mode and executable file name does not end
26935         with executable suffix, output the executable name, in canonical case.
26937         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
26938         to avoid warnings when instantiating Ada.Task_Attributes.
26939         Minor reformating.
26941         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26942         in the correct order.
26944         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26945         redirect standard output and error to a file for the invocation of the
26946         compiler, then read the file.
26948         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
26949         directory, instead of the Value.
26950         (Find_Source_Dirs): Remove useless code & comments.
26952 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
26954         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
26955         tagged type is inherited, and the parent operation is not frozen yet,
26956         force generation of a freeze node for the inherited operation, so the
26957         corresponding dispatch entry is properly initialized.
26958         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
26959         when looking for user-defined equality operation.
26961         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
26962         boolean when locating primitive equality of tagged component.
26964         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
26965         bit-aligned field and the right-hand side a string literal, introduce
26966         a temporary before expanding assignment into a loop.
26968         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
26969         priority in full, to ensure that any expanded subepxressions of it are
26970         elaborated in the scope of the init_proc.
26972         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
26973         after object declaration, skipping over code that may have been
26974         generated for validity checks.
26976         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
26977         discriminants, ignore the known discriminants of its full view, if
26978         any, to check legality.
26980         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
26981         component if type has unknown discriminants.
26982         (Analyze_Private_Extension_Declaration): Discriminant constraint is
26983         null if type has unknown discriminants.
26985         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
26986         for end label when present.
26988         * s-fileio.adb (Open): When called with a C_Stream, use given name for
26989         temporary file, rather than an empty string.
26991 2004-03-15  Ed Falis  <falis@gnat.com>
26993         * s-thread.adb: Removed, no longer used.
26995 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26997         * decl.c (target.h): Now include.
26998         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
26999         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
27000         (validate_size): For POINTER_TYPE, get smallest size permitted on
27001         machine.
27003         * fe.h: Sort Einfo decls and add Set_Mechanism.
27005         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
27006         (ada/decl.o): Depends on target.h.
27008         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
27009         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
27011 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
27013         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
27015         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
27016         Insert_Dereference_Action when rewriting an implicit dereference into
27017         an explicit one, this will be taken care of during expansion of the
27018         explicit dereference.
27019         (Expand_N_Slice): Same. Always do the rewriting, even for the case
27020         of non-packed slices, since the dereference action generated by
27021         expansion of the explicit dereference is needed in any case.
27022         (Expand_N_Selected_Component): When rewriting an implicit dereference,
27023         analyze and resolve the rewritten explicit dereference so it is seen
27024         by the expander.
27025         (Insert_Dereference_Action): This procedure is now called only for the
27026         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
27027         dereferences that do not come from source (including explicit
27028         dereferences resulting from rewriting implicit ones), but do not
27029         recursively insert a check for the dereference nodes contained within
27030         the check.
27031         (Insert_Dereference_Action): Clarify and correct comment.
27033 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
27035         PR ada/14131
27036         Move language detection to the top level.
27037         * config-lang.in: Build by default.
27039 2004-03-05  Robert Dewar  <dewar@gnat.com>
27041         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
27043         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
27044         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
27045         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
27046         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
27047         unchecked conversion to spec to avoid warnings.
27049         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
27050         to Task_ID
27052         * 7stpopsp.adb: Correct casing in To_Task_ID call
27054         * a-strsea.ads, a-strsea.adb: Minor reformatting
27056         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
27058         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
27059         Adjust Max_Msg_Length to be clearly large enough.
27061         * fe.h: Define In_Same_Source_Unit
27063         * osint.adb: Add pragma Warnings Off to suppress warnings
27064         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
27065         aliasing warnings.
27067         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
27069         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
27071         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
27073         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
27075         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
27077         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
27078         node. We now do generate them for gcc back end.
27080         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
27081         warning.
27083         * sinput-c.adb: Fix bad name in header.
27084         Add pragma Warnings Off to suppress aliasing warning.
27086         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
27088         * snames.h, snames.ads, snames.adb: Add entry for pragma
27089         No_Strict_Aliasing.
27091 2004-03-05  Vincent Celier  <celier@gnat.com>
27093         * prj-com.ads: Add hash table Files_Htable to check when a file name
27094         is already a source of another project.
27096         * prj-nmsc.adb (Record_Source): Before recording a new source, check
27097         if its file name is not already a source of another project. Report an
27098         error if it is.
27100         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
27101         source file name, call gnatpp with all the sources of the main project.
27103         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
27104         of file names.
27106         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
27107         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
27108         /RUNTIME_SYSTEM=, converted to --RTS=
27109         /NOTABS, converted to -notabs
27111 2004-03-05  Pascal Obry  <obry@gnat.com>
27113         * make.adb: Minor reformatting.
27115 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
27117         Part of implemention of AI-262.
27118         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
27120         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
27121         procedure.
27123         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
27124         when component type is a partially constrained class-wide subtype.
27125         (Constrain_Discriminated_Type): If parent type has unknown
27126         discriminants, a constraint is illegal, even if full view has
27127         discriminants.
27128         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
27129         with unknown discriminants whose full view is a discriminated record.
27131         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
27132         flag, to handle properly derivations of tagged types with unknown
27133         discriminants.
27134         (Analyze_Package_Spec, Analyze_Package_Body): Install
27135         Private_With_Clauses before analyzing private part or body.
27137         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
27138         Has_Discriminants can be true for a given type (documentation).
27140 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
27142         * s-restri.ads: Fix license (GPL->GMGPL).
27144         * s-tassta.adb: Minor reformatting.
27146         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
27147         by calls to Exit_One_ATC_Level, since additional clean up is performed
27148         by this function.
27150         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
27151         by calls to Exit_One_ATC_Level, since additional clean up is performed
27152         by this function.
27154 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27156         * trans.c: Reflect GCC changes to fix bootstrap problem.
27157         Add warning for suspicious aliasing unchecked conversion.
27159 2004-03-05  GNAT Script  <nobody@gnat.com>
27161         * Make-lang.in: Makefile automatically updated
27163 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
27165         * ali.adb (Read_Instantiation_Instance): Do not modify the
27166         current_file_num when reading information about instantiations, since
27167         this corrupts files in later references.
27169 2004-03-02  Vincent Celier  <celier@gnat.com>
27171         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
27172         before checking if it is read-only.
27174         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
27175         of SRC_DIRS and eliminate duplicates.
27177         * gprcmd.adb: Replace command "path" with command "path_sep" to return
27178         the path separator.
27179         (Usage): Document path_sep
27181         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
27182         C++ compiler. No need for a script.
27183         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
27184         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
27185         subst.
27187         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
27188         where there are Ada sources.
27189         (Set_Ada_Paths): Only add to the include path the source dirs of project
27190         with Ada sources.
27191         (Add_To_Path): Add the Display_Values of the directories, not their
27192         Values.
27194         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
27195         data.
27197         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
27198         is not No_Name.
27199         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
27200         Value is canonicalized.
27201         (Language_Independent_Check): Do not copy Value to Display_Value when
27202         canonicalizing Value.
27204         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
27205         path to find limited with cycles.
27206         (Parse_Single_Project): Use canonical cased path to find the end of a
27207         with cycle.
27209 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
27211         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
27212         and not a child unit.
27214         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
27215         appear in a with_clause.
27217         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
27218         only happen in type_annotate mode, do not try to elaborate it.
27220         * exp_util.adb (Force_Evaluation): If expression is a selected
27221         component on the left of an assignment, use a renaming rather than a
27222         temporary to remove side effects.
27224         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
27225         inlined instance body, which is analyzed before the end of the
27226         enclosing scope.
27228 2004-03-02  Robert Dewar  <dewar@gnat.com>
27230         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
27231         sem_ch4.adb: Use new feature for substitution of keywords in VMS
27233         * errout.ads, errout.adb: Implement new circuit for substitution of
27234         keywords in VMS.
27236         * sem_case.adb (Analyze_Choices): Place message properly when case is
27237         a subtype reference rather than an explicit range.
27239         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
27241 2004-03-02  Doug Rupp  <rupp@gnat.com>
27243         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
27245 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
27247         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
27249 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27251         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
27252         BLKmode bitfield.
27254 2004-02-25  Robert Dewar  <dewar@gnat.com>
27256         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27257         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
27258         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
27259         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
27260         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
27261         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
27262         the defining instance of the type to avoid aliasing problems.
27263         Fix copyright header.  Fix bad comments in package header.
27265         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
27267 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
27269         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
27270         rewritten as references when aliased through an address clause.
27272         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
27273         whether call can be interpreted as an indirect call to the result of a
27274         parameterless function call returning an access subprogram.
27276 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
27278         Code clean up:
27279         * exp_ch7.adb (Make_Clean): Remove generation of calls to
27280         Unlock[_Entries], since this is now done by Service_Entries directly.
27282         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
27284         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
27285         Requeue_Call for better code readability. Change spec and update calls:
27286         PO_Service_Entries now unlock the PO on exit.
27287         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
27288         PO_Service_Entries.
27290         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
27292         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
27294 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
27296         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
27297         protected subprogram call and analyzing the result of such expanding
27298         in case when the called protected subprogram is eliminated.
27300         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
27301         names.
27303 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
27305         * Makefile.in: Clean ups.
27307 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
27309         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
27310         protected operations if original subprogram is flagged as eliminated.
27311         (Expand_N_Subprogram_Body): For a protected operation, create
27312         discriminals for next operation before checking whether the operation
27313         is eliminated.
27315         * exp_ch9.adb (Expand_N_Protected_Body,
27316         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
27317         for internal protected operations if the original subprogram is
27318         eliminated.
27320         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
27321         declared in a single protected object.
27323 2004-02-23  Vincent Celier  <celier@gnat.com>
27325         * prj-attr.adb: Make attribute Builder'Executable an associative array,
27326         case insensitive if file names are case insensitive, instead of a
27327         standard associative array.
27329         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
27330         them as case insensitive on platforms where the file names are case
27331         sensitive.
27333         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
27334         project file has already been parsed that canonical path are compared.
27336 2004-02-23  Robert Dewar  <dewar@gnat.com>
27338         * sinput-c.ads: Correct bad unit title in header
27340         * freeze.adb: Minor reformatting
27342 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27344         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
27345         nonaddressable COMPONENT_REF that is removing padding that we are
27346         taking the address of, take the address of the padded record instead
27347         if item is variable size.
27349 2004-02-20  Robert Dewar  <dewar@gnat.com>
27351         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
27353 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
27355         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
27356         itype references for the constrained designated type of a component
27357         whose base type is already frozen.
27359 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
27361         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
27362         avoid GCC warnings.
27364 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
27366         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
27367         identifier for a phantom package that rewrites the formal package
27368         declaration with a box. The Add semantic decorations for the defining
27369         identifier from the original node (that represents the formal package).
27371 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
27373         * Make-lang.in (ada/stamp-sdefault): Use the top level
27374         move-if-change.
27376 2004-02-19  Richard Henderson  <rth@redhat.com>
27378         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
27380 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
27382         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
27383         Scan_ALI can be used for multiple ALI files without reinitializing
27384         between calls.
27386 2004-02-18  Robert Dewar  <dewar@gnat.com>
27388         * debug.adb: Minor reformatting.
27390 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27392         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
27393         to zero if there is an address clause.
27395 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
27397         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
27399 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
27401         * layout.adb (Layout_Component_List): Revise generation of call to
27402         discriminant-checking function to pass selections of all of the type's
27403         discriminants rather than just the variant-controlling discriminant.
27405 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
27407         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
27408         fail in the current setup and triggers spurious system error messages.
27409         Pretend it occurred and failed instead.
27411 2004-02-18  Vincent Celier  <celier@gnat.com>
27413         * bld.adb: Mark FLDFLAGS as saved
27414         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
27415         it is not the root project.  Put each directory to be
27416         extended between double quotes to prevent it to be expanded on Windows.
27417         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
27418         the project file. Set them back to their initial values if they have not
27419         been set in the project file.
27421         * gprcmd.adb: (Gprdebug, Debug): New global variables
27422         (Display_Command): New procedure
27423         (Usage): Document new command "linkopts"
27424         Call Display_Command when env var GPRDEBUG has the value "TRUE"
27425         Implement new command "linkopts"
27426         Remove quotes that may be around arguments for "extend"
27427         Always call Normalize_Pathname with arguments formatted for the platform
27429         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
27430         Change @echo to @$(display) in target clean to be able to clean silently
27432         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
27434         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
27435         canonical case.
27437         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
27438         = Extending_All when current project is an extending all project.
27440         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
27441         set to True only for LINK command, after Unix switch -o.
27442         (Process_Arguments): Set Output_File_Expected to True for LINK command
27443         after Unix switch -o. When Output_File_Expected is True, never add an
27444         extension to a file name.
27446         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
27447         option file name, only to the --for-linker= switch.
27448         (Option_File_Name): If option file name do not end with ".opt", append
27449         "/OPTIONS".
27451 2004-02-18  GNAT Script  <nobody@gnat.com>
27453         * Make-lang.in: Makefile automatically updated
27455 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
27457         * Make-lang.in (stamp-sdefault): Do not depend on
27458         move-if-change.
27460 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
27462         * config-lang.in: Disable Ada by default until probe logic for
27463         a bootstrap Ada compiler can be moved to the top level configure
27464         script.
27466 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
27468         * decl.c (components_to_record): Don't claim that the internal fields
27469         we make to hold the variant parts are semantically addressable, because
27470         they are not.
27472         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
27473         adjust the comment describing the modular type form when we can use it.
27474         (Install_PAT): Account for the Esiz renaming.
27476         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
27477         sc_onstack context indication before raising the exception to which
27478         the signal is mapped. Allows better handling of later signals possibly
27479         triggered by the resumed user code if the exception is handled.
27481 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
27483         * 5zinit.adb: Removed, no longer used.
27485 2004-02-12  Robert Dewar  <dewar@gnat.com>
27487         * ali.adb: Remove separating space between parameters on R line. Makes
27488         format consistent with format used by the binder for Set_Globals call.
27490         * atree.ads, atree.adb: Minor reformatting (new function header format)
27492         * bindgen.adb: Add Run-Time Globals documentation section containing
27493         detailed documentation of the globals passed from the binder file to
27494         the run time.
27496         * gnatls.adb: Minor reformatting
27498         * init.c (__gnat_set_globals): Add note pointing to documentation in
27499         bindgen.
27501         * lib-writ.ads, lib-writ.adb: Remove separating space between
27502         parameters on R line.
27503         Makes format consistent with format used by the binder for Set_Globals
27504         call.
27506         * osint.ads: Add 2004 to copyright notice
27507         Minor reformatting
27509         * snames.ads: Correct capitalization of FIFO_Within_Priorities
27510         Noticed during code reading, documentation issue only
27512         * usage.adb: Remove junk line for obsolete C switch
27513         Noticed during code reading
27515 2004-02-12  Vincent Celier  <celier@gnat.com>
27517         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
27518         extend for each directory, so that multiple /** directories are
27519         extended individually.
27520         (Recursive_Process): Set the default for LANGUAGES to ada
27522         * gprcmd.adb: Define new command "ignore", to do nothing.
27523         Implement new comment "path".
27525         * Makefile.generic: Suppress output when SILENT is set
27526         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
27527         used, so that the correct compiler is invoked.
27528         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
27529         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
27531 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
27533         * Makefile.in: Clean ups and remove obsolete targets.
27535 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
27537         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
27538         predicate declared in exp_util.
27540         * exp_util.adb: Add comments.
27542         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
27543         visibility before compiling context of the subunit.
27545         * sem_res.adb (Check_Parameterless_Call): If the context expects a
27546         value but the name is a procedure, do not attempt to analyze as a call,
27547         in order to obtain more telling diagnostics.
27549         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
27550         'Access on parameterless function calls.
27551         (Normalize_Actuals): For a parameterless function call with missing
27552         actuals, defer diagnostic until resolution of enclosing call.
27554         * sem_util.adb (Wrong_Type): If the context type is an access to
27555         subprogram and the expression is a procedure name, suggest a missing
27556         'attribute.
27558 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
27559             Nathanael Nerode  <neroden@gcc.gnu.org>
27561         PR ada/6637
27562         PR ada/5911
27563         Merge with libada-branch:
27564         * config-lang.in: Build libada only when ada is built.
27566 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
27568         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
27569         for a tagged type, verify that both formals have the same type.
27571         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
27572         temporary when the formal is an in-parameter and the actual a possibly
27573         unaligned slice.
27575         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
27576         when expansion is disabled, to ensure proper name capture with
27577         overloaded literals.  Condition can be of any boolean type, resolve
27578         accordingly.
27580         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
27581         renaming is for a formal subprogram with a default operator name, and
27582         there is a usable operator that is visible at the point of
27583         instantiation.
27585 2004-02-09  Robert Dewar  <dewar@gnat.com>
27587         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
27588         rewrite to ignore errors in ali files, intended to allow tools downward
27589         compatibility with new versions of ali files.
27591         * ali.ads: Add new parameter Ignore_Errors
27593         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
27594         duplicating the error message giving the file with restrictions.
27596         * debug.adb: Add debug flag I for gnatbind
27598         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
27599         operators for the case where the operator is a defining operator.
27601         * exp_ch3.adb: Minor reformatting (new function spec format).
27603         * exp_ch4.adb: Add comment for previous change, and make minor
27604         adjustment to loop to always check for improper loop termination.
27605         Minor reformatting throughout (new function spec format).
27607         * gnatbind.adb: Implement -di debug flag for gnatbind
27609         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
27611         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
27613         * lib-load.adb: Fix bad assertion.
27614         Found by testing and code reading.
27615         Minor reformatting.
27617         * lib-load.ads: Minor reformatting.
27619         * lib-writ.adb: There is only one R line now.
27621         * lib-writ.ads: Add documentation on making downward compatible changes
27622         to ali files so old tools work with new ali files.
27623         There is only one R line now.
27624         Add documentation on format incompatibilities (with special GPS note)
27626         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
27628         * par-load.adb: Minor reformatting
27630         * sem_ch8.adb: Fix to error message from last update
27631         Minor reformatting and restructuring of code from last update
27633         * par-prag.adb, snames.adb, snames.ads, snames.h,
27634         sem_prag.adb: Implement pragma Profile.
27636         * stylesw.adb: Implement -gnatyN switch to turn off all style check
27637         options.
27639         * usage.adb: Add line for -gnatyN switch
27641         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
27643 2004-02-09  Albert Lee  <lee@gnat.com>
27645         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
27647 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
27649         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
27650         slices.
27652         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
27653         is nested in an instance that is not frozen yet, to avoid
27654         order-of-elaboration problems in gigi.
27656         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
27657         body the attribute is legal.
27659 2004-02-09  Robert Dewar  <dewar@gnat.com>
27661         * s-rident.ads: Minor comment correction
27663         * targparm.adb: Remove dependence on uintp completely. There was
27664         always a bug in Make in that it called Targparm before initializing
27665         the Uint package. The old code appeared to get away with this, but
27666         the new code did not! This caused an assertion error in gnatmake.
27668         * targparm.ads: Fix bad comment, restriction pragmas with parameters
27669         are indeed fully supported.
27671 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
27673         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
27675 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
27677         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
27678         with targetm.calls.promote_prototypes.
27680 2004-02-04  Robert Dewar  <dewar@gnat.com>
27682         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
27683         ali.ads, gprcmd.adb: Minor reformatting
27685         * bindgen.adb: Output restrictions string for new style restrictions
27686         handling
27688         * impunit.adb: Add s-rident.ads (System.Rident) and
27689         s-restri (System.Restrictions)
27691         * lib-writ.adb: Fix bug in writing restrictions string (last few
27692         entries wrong)
27694         * s-restri.ads, s-restri.adb: Change name Restrictions to
27695         Run_Time_Restrictions to avoid conflict with package name.
27696         Add circuit to read and acquire run time restrictions.
27698 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
27700         * restrict.ads, restrict.adb: Use the new restriction
27701         No_Task_Attributes_Package instead of the old No_Task_Attributes.
27703         * sem_prag.adb: No_Task_Attributes is a synonym of
27704         No_Task_Attributes_Package.
27706         * snames.ads, snames.adb: New entry for proper handling of
27707         No_Task_Attributes.
27709         * s-rident.ads: Adding restriction No_Task_Attributes_Package
27710         (AI-00249) that supersedes the GNAT specific restriction
27711         No_Task_Attributes.
27713 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
27715         * sem_prag.adb:
27716         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
27717          body, an identifier may be wrapped in an unchecked conversion.
27719 2004-02-04  Vincent Celier  <celier@gnat.com>
27721         * lib-writ.ads: Comment update for the W lines
27723         * bld.adb: (Expression): An empty string list is static
27725         * fname-uf.adb: Minor comment update
27727         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
27729         * gnatbind.adb: Initialize Cumulative_Restrictions with the
27730         restrictions on the target.
27732 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
27734         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
27735         gen_rtx.
27737 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
27739         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
27741 2004-02-02  Vincent Celier  <celier@gnat.com>
27743         * gprcmd.adb (Check_Args): If condition is false, print the invoked
27744         comment before the usage.
27745         Gprcmd: Fail when command is not recognized.
27746         (Usage): Document command "prefix"
27748         * g-md5.adb (Digest): Process last block.
27749         (Update): Do not process last block. Store remaining characters and
27750         length in Context.
27752         * g-md5.ads (Update): Document that several call to update are
27753         equivalent to one call with the concatenated string.
27754         (Context): Add fields to allow new Update behaviour.
27756         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
27757         defaulted to False.
27758         When May_Fail is True and no existing file can be found, return No_File.
27760         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
27761         functions.
27763         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
27764         spec file name instead on the W line.
27766 2004-02-02  Robert Dewar  <dewar@gnat.com>
27768         * ali.adb: Read and acquire info from new format restrictions lines
27770         * bcheck.adb: Add circuits for checking restrictions with parameters
27772         * bindgen.adb: Output dummy restrictions data
27773         To be changed later
27775         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
27776         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
27777         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
27778         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
27779         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
27781         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
27782         the warning message on access to possibly uninitialized variable S)
27783         Minor changes for new restrictions handling.
27785         * gnatbind.adb: Minor reformatting
27786         Minor changes for new restrictions handling
27787         Move circuit for -r processing here from bcheck (cleaner)
27789         * gnatcmd.adb, gnatlink.adb: Minor reformatting
27791         * lib-writ.adb: Output new format restrictions lines
27793         * lib-writ.ads: Document new R format lines for new restrictions
27794         handling.
27796         * s-restri.ads/adb: New files
27798         * Makefile.rtl: Add entry for s-restri.ads/adb
27800         * par-ch3.adb: Fix bad error messages starting with upper case letter
27801         Minor reformatting
27803         * restrict.adb: Major rewrite throughout for new restrictions handling
27804         Major point is to handle restrictions with parameters
27806         * restrict.ads: Major changes in interface to handle restrictions with
27807         parameters. Also generally simplifies setting of restrictions.
27809         * snames.ads/adb: New entry for proper handling of No_Requeue
27811         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
27812         restriction counting.
27813         Other minor changes for new restrictions handling
27815         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
27816         Restriction_Warnings now allows full parameter notation
27817         Major rewrite of Restrictions for new restrictions handling
27819 2004-02-02  Javier Miranda  <miranda@gnat.com>
27821         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
27822         syntax rule for object renaming declarations.
27823         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
27824         component definitions.
27826         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
27827         components.
27828         (Array_Type_Declaration): Give support to access components. In addition
27829         it was also modified to reflect the name of the object in anonymous
27830         array types. The old code did not take into account that it is possible
27831         to have an unconstrained anonymous array with an initial value.
27832         (Check_Or_Process_Discriminants): Allow access discriminant in
27833         non-limited types.
27834         (Process_Discriminants): Allow access discriminant in non-limited types
27835         Initialize the new Access_Definition field in N_Object_Renaming_Decl
27836         node.  Change Ada0Y to Ada 0Y in comments
27838         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
27839         equality operators.
27840         Change Ada0Y to Ada 0Y in comments
27842         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
27843         renamings Change Ada0Y to Ada 0Y in comments
27845         * sem_type.adb (Find_Unique_Type): Give support to the equality
27846         operators for universal access types
27847         Change Ada0Y to Ada 0Y in comments
27849         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
27851         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
27852         field.
27853         (N_Object_Renaming_Declaration): Addition of Access_Definition field
27854         Change Ada0Y to Ada 0Y in comments
27856         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
27857         component definition and object renaming nodes
27858         Change Ada0Y to Ada 0Y in comments
27860 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
27862         * restrict.adb: Use the new restriction identifier
27863         No_Requeue_Statements instead of the old No_Requeue for defining the
27864         restricted profile.
27866         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
27867         No_Requeue_Statements.
27869         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
27870         that supersedes the GNAT specific restriction No_Requeue. The later is
27871         kept for backward compatibility.
27873 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
27875         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
27876         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
27877         pragma and fix incorrect ones.
27879         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
27880         warning if the pragma is redundant.
27882 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
27884         * 5staprop.adb: Add missing 'constant' keywords.
27886         * Makefile.in: use consistent value for SYMLIB on
27887         platforms where libaddr2line is supported.
27889 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27891         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
27892         annotating types.
27894 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
27896         * init.c (__gnat_install_handler): Setup an alternate stack for signal
27897         handlers in the environment thread. This allows proper propagation of
27898         an exception on stack overflows in this thread even when the builtin
27899         ABI stack-checking scheme is used without support for a stack reserve
27900         region.
27902         * utils.c (create_field_decl): Augment the head comment about bitfield
27903         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
27904         here, because the former is not accurate enough at this point.
27905         Let finish_record_type decide instead.
27906         Don't make a bitfield if the field is to be addressable.
27907         Always set a size for the field if the record is packed, to ensure the
27908         checks for bitfield creation are triggered.
27909         (finish_record_type): During last pass over the fields, clear
27910         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
27911         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
27912         from DECL_BIT_FIELD.
27914 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
27916         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
27917         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
27918         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
27920 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27922         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
27924         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
27925         (ZCX_By_Default): Likewise.
27926         (Front_End_ZCX_Support): Likewise.
27928         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
27929         (Initialize_Lock): Mark Level unreferenced.
27930         (Sleep): Mark Reason unreferenced.
27931         (Timed_Sleep): Likewise.
27932         (Wakeup): Likewise.
27933         (Exit_Task): Use Result.
27934         (Check_No_Locks): Mark Self_ID unreferenced.
27936         * 5gtasinf.adb (New_Sproc): Make Attr constant.
27937         (Bound_Thread_Attributes): Make Sproc constant.
27938         (New_Bound_Thread_Attributes): Likewise.
27940 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
27942         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27943         one-dimensional array an slice assignments, when component type is
27944         controlled.
27946         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
27947         component type is controlled, and control_actions are in effect, use
27948         TSS procedure rather than generating inline code.
27950         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
27951         arrays with controlled components.
27953 2004-01-26  Vincent Celier  <celier@gnat.com>
27955         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
27956         command line for the non VMS case.
27958         * gnatlink.adb (Process_Binder_File): When building object file, if
27959         GNU linker is used, put all object paths between quotes, to prevent ld
27960         error when there are unusual characters (such as '!') in the paths.
27962         * Makefile.generic: When there are sources in Ada and the main is in
27963         C/C++, invoke gnatmake with -B, instead of -z.
27965         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
27966         from VMS_Conversion.
27967         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
27968         specification of argument file on the command line.
27970 2004-01-26  Bernard Banner  <banner@gnat.com>
27972         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
27974 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
27976         * snames.adb: Update copyright notice.
27977         Add info on slice assignment for controlled arrays.
27979 2004-01-23  Robert Dewar  <dewar@gnat.com>
27981         * exp_aggr.adb: Minor reformatting
27983         * exp_ch9.adb: Minor code clean up
27984         Minor reformatting
27985         Fix bad character in comment
27987         PR ada/13471
27988         * targparm.adb (Get_Target_Parameters): Give clean abort error on
27989         unexpected end of file, along with more detailed message.
27991 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27993         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
27994         PAT.
27996         * decl.c (copy_alias_set): New function.
27997         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
27999 2004-01-23  Doug Rupp  <rupp@gnat.com>
28001         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
28002         lib$${file} in case subsequent character is not a separator.
28004 2004-01-23  Vincent Celier  <celier@gnat.com>
28006         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
28007         when the GCC version is at least 3.
28009         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
28010         Remove all "Opt.", to prepare for opt split
28012         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
28013         Extends_All. Set to True when the project parsed is an extending all
28014         project. Fails for importing an extending all project only when the
28015         imported project is an extending all project.
28016         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
28017         depending on the value of Extends_All returned.
28019         * prj-proc.adb (Process): Check that no project shares its object
28020         directory with a project that extends it, directly or indirectly,
28021         including a virtual project.
28022         Check that no project extended by another project shares its object
28023         directory with another also extended project.
28025         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
28026         Kind = N_With_Clause
28028         * prj-tree.ads: Minor reformatting
28029         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
28031 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
28033         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
28034         applies to a type with an incomplete view, use full view in Name of
28035         clause, for consistency with uses of Get_Attribute_Definition_Clause.
28037 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
28039         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
28040         SCHED_RR, since other values are not supported by this policy.
28041         (Initialize): Move initialization of mutex attribute to package
28042         elaboration, to prevent early access to this variable.
28044         * Makefile.in: Remove mention of Makefile.adalib, unused.
28046         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
28047         1ssecsta.ads: Removed, unused.
28049 2004-01-21  Javier Miranda  <miranda@gnat.com>
28051         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
28052         entity if already built in the current scope.
28054         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
28055         reminder in internal scopes. Required for nested limited aggregates.
28057 2004-01-21  Doug Rupp  <rupp@gnat.com>
28059         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
28060         VMS. Replace all occurences of libgnat- and libgnarl- with
28061         libgnat$(hyphen) and libgnarl$(hyphen).
28062         Fixed shared library build problem on VMS.
28064 2004-01-21  Robert Dewar  <dewar@gnat.com>
28066         * mlib-prj.adb: Minor reformatting
28068 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
28070         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
28071         'constant' keywords for declaration of pointers that are not modified.
28073         * exp_pakd.adb: Fix English in comment.
28075 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
28077         PR ada/10889
28078         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
28079         copy all attributes of the parent, including the foreign language
28080         convention.
28082 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
28084         PR ada/10565
28085         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
28086         for 'delay until' statement.
28088 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
28090         * Make-lang.in: Replace $(docdir) with doc.
28091         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
28092         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
28093         to use consistent MAKEINFO rule.
28094         (ada.man, ada.srcman): Dummy entry.
28095         (ADA_INFOFILES): Define.
28096         (ada.info, ada.srcinfo): New rules.
28098 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
28100         * utils.c: Update copyright notice, missed in previous change.
28102 2004-01-19  Vincent Celier  <celier@gnat.com>
28104         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
28105         args if Bind is True. Set First_ALI, if not already done.
28106         (Build_Library): For Stand Alone Libraries, extract from one ALI file
28107         an eventual --RTS switch, for gnatbind, and all backend switches +
28108         --RTS, for linking.
28110 2004-01-19  Robert Dewar  <dewar@gnat.com>
28112         * sem_attr.adb, memtrack.adb: Minor reformatting
28114 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
28116         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
28117         that rename enumeration literals. This is properly done in sem_eval.
28119         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
28120         to functions that rename enumeration literals.
28122         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
28123         functions that rename enumeration literals.
28125 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
28127         * Make-lang.in (utils.o): Depend on target.h.
28128         * utils.c: Include target.h.
28129         (process_attributes): Use targetm.have_named_sections instead
28130         of ASM_OUTPUT_SECTION_NAME.
28132 2004-01-16  Andreas Jaeger  <aj@suse.de>
28134         * Makefile.in: Add $(DESTDIR).
28136 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
28138         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
28139         also when not defining if a Size clause applies. That information is
28140         not to be ignored.
28142 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
28144         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
28145         symbolic links for the shared gnat run time when needed.
28147 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
28149         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
28150         for writing, and terminate with an error message if not.
28152 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
28154         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
28155         warning on an access to subprogram in an instance, when the target
28156         type is declared in the same generic unit.
28157         (Eval_Attribute): If 'access is known to fail accessibility check,
28158         rewrite as a raise statement.
28160 2004-01-15  GNAT Script  <nobody@gnat.com>
28162         * Make-lang.in: Makefile automatically updated
28164 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
28166         * Make-lang.in (ada.srcextra): Dummy entry.
28168 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
28170         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
28172 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
28174         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
28175         components that are initialized with aggregates.
28177 2004-01-13  Vincent Celier  <celier@gnat.com>
28179         * gnatlink.adb (Process_Binder_File): To find directory of shared
28180         libgcc, if "gcc-lib" is not a subdirectory, look for the last
28181         subdirectory "lib" in the path of the shared libgnat or libgnarl.
28183         * make.adb (Gnatmake): If GCC version is at least 3, link with
28184         -shared-libgcc, when there is at least one shared library project.
28186         * opt.ads (GCC_Version): New integer constant.
28188         * adaint.c (get_gcc_version): New function.
28190 2004-01-13  Robert Dewar  <dewar@gnat.com>
28192         * sem_dist.adb, sem_res.adb, sem_util.adb,
28193         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
28194         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
28196 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
28198         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
28199         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
28200         declarations.
28202 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
28204         * misc.c: Remove trailing spaces.
28205         Update copyright notice missed in previous change.
28207         PR ada/13572
28208         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
28209         prefix/share/make
28211         * Makefile.generic: Update copyright.
28212         Add license notice.
28214         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
28215         of prefix/share/make.
28217         * Makefile.prolog: Update copyright.
28218         Add license notice.
28220 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
28222         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
28223         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
28224         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
28225         instead of String.
28227         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
28228         signature.
28230 2004-01-12  Javier Miranda  <miranda@gnat.com>
28232         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
28233         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
28234         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
28235         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
28236         Component_Definition node.
28238 2004-01-12  Ed Falis  <falis@gnat.com>
28240         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
28242 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
28244         * link.c: Change default libgnat kind to STATIC for FreeBSD.
28246 2004-01-12  Bernard Banner  <banner@gnat.com>
28248         * Makefile.in: map 86numaux to a-numaux for x86_64
28250 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
28252         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
28253         generated to rename a generic actual, go to the actual itself, the
28254         subtype is not a user-visible entity.
28256         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
28257         part is a private subtype, reset the visibility of its full view, if
28258         any, to be consistent.
28260         PR ada/13417
28261         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
28262         to use a generic package G as a formal package for another generic
28263         declared within G.
28265 2004-01-12  Robert Dewar  <dewar@gnat.com>
28267         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
28269         * usage.adb: Remove mention of obsolete -gnatwb switch
28270         Noticed during code reading
28272 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
28274         * 1ssecsta.adb: Minor changes for -gnatwa warnings
28276 2004-01-12  GNAT Script  <nobody@gnat.com>
28278         * Make-lang.in: Makefile automatically updated
28280 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
28282         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
28284 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28286         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
28288 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
28290         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
28291         Update comment and copyright date.
28292         * stamp-xgnatug: Delete.
28294 2004-01-05  Robert Dewar  <dewar@gnat.com>
28296         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
28297         be modified by the binder generated main program if the -D switch is
28298         used.
28300         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
28301         imported functions (since now we expect this to be done for imported
28302         functions)
28304         * 5vtaprop.adb: Add several ??? for sections requiring more comments
28305         Minor reformatting throughout
28307         * 5zinit.adb: Minor reformatting
28308         Add 2004 to copyright date
28309         Minor changes to avoid -gnatwa warnings
28310         Correct some instances of using OR instead of OR ELSE (noted while
28311         doing reformatting)
28313         * sprint.adb: Minor updates to avoid -gnatwa warnings
28315         * s-secsta.ads, s-secsta.adb:
28316         (SS_Get_Max): New function to obtain high water mark for ss stack
28317         Default_Secondary_Stack is not a constant since it may be modified by
28318         the binder generated main program if the -D switch is used.
28320         * switch-b.adb: New -Dnnn switch for binder
28322         * switch-c.adb:
28323         Make -gnatg imply all warnings currently in -gnatwa
28325         * vms_conv.adb: Minor reformatting
28326         Add 2004 to copyright notice
28327         Add 2004 to printed copyright notice
28329         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
28330         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
28331         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
28332         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
28333         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
28334         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
28335         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
28336         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
28337         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
28338         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
28339         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
28340         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
28341         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
28342         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
28343         checks.adb, clean.adb, cstand.adb, einfo.ads,
28344         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
28345         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
28346         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
28347         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
28348         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
28349         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
28350         Minor reformatting and code clean ups.
28351         Minor changes to prevent -gnatwa warnings
28353         * ali.adb: Minor reformatting and cleanup of code
28354         Acquire new SS indication of secondary stack use from ali files
28356         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
28357         (since now we expect this to be done for imported functions)
28359         * bindgen.adb: Generate call to modify default secondary stack size if
28360         -Dnnn switch given
28362         * bindusg.adb: Add line for new -D switch
28364         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
28365         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
28366         Add circuitry for both records and arrays to avoid gigi
28367         processing if the type involved has non-bit-aligned components
28369         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
28370         N_String_Literal node always references an E_String_Literal_Subtype
28371         entity. This may not be true in the future.
28372         (Possible_Bit_Aligned_Component): Move processing of
28373         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
28375         * exp_ch6.adb (Expand_Thread_Body): Pick up
28376         Default_Secondary_Stack_Size as variable so that we get value modified
28377         by possible -Dnnn binder parameter.
28379         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
28380         (Type_May_Have_Bit_Aligned_Components): New function.
28382         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
28383         (Type_May_Have_Bit_Aligned_Components): New function.
28385         * fe.h: (Set_Identifier_Casing): Fix prototype.
28386         Add declaration for Sem_Elim.Eliminate_Error_Msg.
28387         Minor reformatting.
28389         * freeze.adb (Freeze_Entity): Add RM reference to error message about
28390         importing constant atomic/volatile objects.
28391         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
28392         unless explicit Pure_Function pragma given, to avoid insidious bug of
28393         call to non-pure imported function getting eliminated.
28395         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
28396         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
28397         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
28398         Add 2004 to printed copyright notice
28400         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
28401         stack used.
28403         * Makefile.rtl: Add entry for g-sestin.o
28404         g-sestin.ads: New file.
28406         * mdll.adb: Minor changes to avoid -gnatwa warnings
28408         * mlib-tgt.adb: Minor reformatting
28410         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
28411         New switch Sec_Stack_Used (GNAT, GNATBIND)
28412         Make Default_Secondary_Stack_Size a variable instead of a constant,
28413         so that it can be modified by the new -Dnnn bind switch.
28415         * rtsfind.adb (Load_Fail): Give full error message in configurable
28416         run-time mode if all_errors mode is set. This was not done in the case
28417         of a file not found, which was an oversight.
28418         Note if secondary stack unit is used by compiler.
28420         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
28421         ineffective elaborate all pragmas on non-visible packages (this
28422         happened when a renamed subprogram was called). Now the elaborate all
28423         always goes on the package containing the renaming rather than the one
28424         containing the renamed subprogram.
28426         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
28427         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
28429         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
28430         has an Etype that references an E_String_Literal.
28431         (Eval_String_Literal): Avoid assumption that N_String_Literal node
28432         always references an E_String_Literal_Subtype entity. This may not
28433         be true in the future.
28435         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
28436         pragma location.
28438         * sem_res.adb (Resolve): Specialize msg for function name used in proc
28439         call.
28441 2004-01-05  Ed Falis  <falis@gnat.com>
28443         * g-debuti.adb: Replaced direct boolean operator with short-circuit
28444         form.
28446 2004-01-05  Vincent Celier  <celier@gnat.com>
28448         * bld.adb: Minor comment updates
28449         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
28450         of Item_Name).
28452         * make.adb (Gnatmake): Special process for files to compile/check when
28453         -B is specified. Fail when there are only foreign mains in attribute
28454         Main of the project file and -B is not specified. Do not skip bind/link
28455         steps when -B is specified.
28457         * makeusg.adb: Document new switch -B
28459         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
28461         * switch-m.adb: (Scan_Make_Switches): Process -B switch
28463         * vms_data.ads: Add new GNAT PRETTY qualifier
28464         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
28466 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28468         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
28469         case.
28471         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
28472         Set_Identifier_Casing.
28474         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
28475         has size that overflows.
28477 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
28479         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
28480         -gnatwa warning on static condition.
28482 2004-01-05  Doug Rupp  <rupp@gnat.com>
28484         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
28486 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
28488         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
28489         all attributes, including read-only attribute.
28491 2004-01-05  Pascal Obry  <obry@gnat.com>
28493         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
28494         library naming scheme.
28496         * mlib-prj.adb (Build_Library): Generate different names for the static
28497         or dynamic version of the GNAT runtime. This is needed to support the
28498         new shared library naming scheme.
28499         (Process_Binder_File): Add detection of shared library in binder file
28500         based on the new naming scheme.
28502         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
28503         scheme for the shared runtime libraries.
28505         * Makefile.in:
28506         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
28507         scheme.
28508         (install-gnatlib): Do not create symlinks for shared libraries.
28509         (gnatlib-shared-default): Idem.
28510         (gnatlib-shared-dual-win32): New target. Not used for now as the
28511         auto-import feature does not support arrays/records.
28512         (gnatlib-shared-win32): Do not create copy for the shared libraries.
28513         (gnatlib-shared-vms): Fix shared runtime libraries names.
28515         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
28516         dependent runtime shared library name.
28518 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
28520         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
28521         than the object.
28523 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
28525         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
28526         protected objects when allocator has a subtype indication, not a
28527         qualified expression. Note that qualified expressions may have to be
28528         checked when limited aggregates are implemented.
28530         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
28531         pure, emit warning.
28532         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
28533         subprogram is imported, remove warning.
28535 2004-01-05  Geert Bosch  <bosch@gnat.com>
28537         * s-poosiz.adb: Update copyright notice.
28538         (Allocate): Use Task_Lock to protect against concurrent access.
28539         (Deallocate): Likewise.
28541 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
28543         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
28544         comment.
28546 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
28548         * gnat_ug.texi: Force a CVS commit by updating copyright.
28549         * gnat_ug_vxw.texi: Regenerate.
28550         * gnat_ug_wnt.texi: Regenerate.
28551         * gnat_ug_vms.texi: Regenerate.
28552         * gnat_ug_unx.texi: Regenerate.
28554 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
28556         * trans.c: Remove uses of "register" specifier in
28557         declarations of local variables.
28559 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
28561         * stamp-xgnatug: New stamp file.
28562         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
28563         (ada/doctools/xgnatug): Add $(build_exeext).
28564         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
28565         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
28567 2003-12-17  Ed Falis  <falis@gnat.com>
28569         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
28570         eliminate warning.
28572         * a-exextr.adb: Add context clause for
28573         Ada.Exceptions.Last_Chance_Handler.
28575 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
28577         * cstand.adb (Create_Standard): Change the way how the declaration of
28578         the Duration type is created (making it the same way as it is for all
28579         the other standard types).
28581 2003-12-17  Robert Dewar  <dewar@gnat.com>
28583         * s-crtl.ads: Fix header format
28584         Change Pure to Preelaborate
28586 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
28588         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
28589         the expression type only if it is declared in the current unit.
28591         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
28592         are universal and already analyzed, as can occur in constrained
28593         subcomponents that depend on discriminants, when one constraint is a
28594         subtype mark.
28596         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
28597         type Any_Fixed is legal as the argument of a conversion, if only one
28598         fixed-point type is in context.
28600 2003-12-17  GNAT Script  <nobody@gnat.com>
28602         * Make-lang.in: Makefile automatically updated
28604 2003-12-15  Robert Dewar  <dewar@gnat.com>
28606         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
28607         sec stack size.
28609 2003-12-15  Vincent Celier  <celier@gnat.com>
28611         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
28612         (Gnatchop): Do not set failure status when reporting the number of
28613         warnings.
28615 2003-12-15  Doug Rupp  <rupp@gnat.com>
28617         * s-ctrl.ads: New file.
28619         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
28621         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
28622         (GNATBIND_OBJS): Add ada/s-crtl.o.
28624         * Makefile.in [VMS]: Clean up ifeq rules.
28626         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
28627         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
28628         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
28629         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
28630         s-tasdeb.adb: Update copyright.
28631         Import System.CRTL.
28632         Make minor modifications to use System.CRTL declared functions instead
28633         of importing locally.
28635 2003-12-15  GNAT Script  <nobody@gnat.com>
28637         * Make-lang.in: Makefile automatically updated
28639 2003-12-11  Ed Falis  <falis@gnat.com>
28641         * 5zinit.adb: Clean up.
28643         * 5zintman.adb (Notify_Exception): replaced case statement with a call
28644         to __gnat_map_signal, imported from init.c to support
28645         signal -> exception mappings that depend on the vxWorks version.
28647         * init.c:
28648         Created and exported __gnat_map_signal to support signal -> exception
28649         mapping that is dependent on the VxWorks version.
28650         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
28652 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
28654         * 5wosinte.ads: Link with -mthreads switch.
28656 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
28658         * init.c (__gnat_install_handler [NetBSD]): Set
28659         __gnat_handler_installed, as done on all other platforms.
28660         Remove duplicated code.
28662 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
28664         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
28666 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
28668         * sinfo.ads: Fix inconsistent example code in comment.
28670 2003-12-11  Robert Dewar  <dewar@gnat.com>
28672         * a-tiinau.adb: Add a couple of comments
28674         * sem_ch3.adb: Minor reformatting
28676         * sem_prag.adb:
28677         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
28678         Minor reformatting throughout
28680 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
28682         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
28683         bounds of a loop, create a separate block in order to generate proper
28684         cleanup actions to prevent memory leaks.
28686         * sem_res.adb (Resolve_Call): After a call to
28687         Establish_Transient_Scope, the call may be rewritten and relocated, in
28688         which case no further processing is needed.
28690         * sem_util.adb: (Wrong_Type): Refine previous fix.
28691          Fixes ACATS regressions.
28693         PR ada/13353
28694         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
28695         be inlined.
28697 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
28699         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
28700         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
28701         obsolete files.
28703         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
28704         (rts-zfp): Ditto.
28706 2003-12-08  Robert Dewar  <dewar@gnat.com>
28708         * 7sintman.adb: Minor reformatting
28710         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
28711         standard linker options to get standard libraries linked. We now plan
28712         to provide dummy versions of these libraries to match the appropriate
28713         configurable run-time (e.g. if a library is not needed at all, provide
28714         a dummy empty library).
28716         * targparm.ads: Configurable_Run_Time mode no longer affects linker
28717         options (-L parameters and standard libraries). What we plan to do is
28718         to provide dummy libraries where the libraries are not required.
28720         * gnatbind.adb: Minor comment improvement
28722 2003-12-08  Javier Miranda  <miranda@gnat.com>
28724         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
28725         aggregate in the parent. Otherwise constants with limited aggregates
28726         are not supported. Add new formal to pass the component type (Ctype).
28727         It is required to call the corresponding IP subprogram in case of
28728         default initialized components.
28729         (Gen_Assign): In case of default-initialized component, generate a
28730         call to the IP subprogram associated with the component.
28731         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
28732         of aggregate with default initialized components.
28733         (Has_Default_Init_Comps): Improve implementation to recursively check
28734         all the present expressions.
28736         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
28737         to indicate that the initialization call corresponds to a
28738         default-initialized component of an aggregate.
28739         In case of default initialized aggregate with tasks this parameter is
28740         used to generate a null string (this is just a workaround that must be
28741         improved later). In case of discriminants, this parameter is used to
28742         generate a selected component node that gives access to the discriminant
28743         value.
28745         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
28746         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
28747         allocated aggregates with default-initialized components.
28749         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
28750         the box notation is used in positional aggregates.
28752 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
28754         * lib.ads: Fix typo in comment
28756 2003-12-08  Vincent Celier  <celier@gnat.com>
28758         * prj.adb (Project_Empty): New component Unkept_Comments
28759         (Scan): Remove procedure; moved to Prj.Err.
28761         * prj.ads (Project_Data): New Boolean component Unkept_Comments
28762         (Scan): Remove procedure; moved to Prj.Err.
28764         * prj-dect.adb: Manage comments for the different declarations.
28766         * prj-part.adb (With_Record): New component Node
28767         (Parse): New Boolean parameter Store_Comments, defaulted to False.
28768         Set the scanner to return ends of line and comments as tokens, if
28769         Store_Comments is True.
28770         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
28771         comments are associated with these nodes. Store the node IDs in the
28772         With_Records.
28773         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
28774         With_Records.
28775         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
28776         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
28777         current project. Call Tree.Restore afterwards. Set the various nodes
28778         for comment storage (Next_End, End_Of_Line, Previous_Line,
28779         Previous_End).
28781         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
28782         defaulted to False.
28784         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
28785         to False. When Truncated is True, truncate the string, never go to the
28786         next line.
28787         (Write_End_Of_Line_Comment): New procedure
28788         (Print): Process comments for nodes N_With_Clause,
28789         N_Package_Declaration, N_String_Type_Declaration,
28790         N_Attribute_Declaration, N_Typed_Variable_Declaration,
28791         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
28792         Process nodes N_Comment.
28794         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
28795         without comments and there are some comments, set the flag
28796         Unkept_Comments to True.
28797         (Scan): If there are comments, set the flag Unkept_Comments to True and
28798         clear the comments.
28799         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
28800         (Next_End_Nodes: New table
28801         (Comment_Zones_Of): New function
28802         (Scan): New procedure; moved from Prj. Accumulate comments in the
28803         Comments table and set end of line comments, comments after, after end
28804         and before end.
28805         (Add_Comments): New procedure
28806         (Save, Restore, Seset_State): New procedures
28807         (There_Are_Unkept_Comments): New function
28808         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
28809         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
28810         procedures.
28811         (First_Comment_After, First_Comment_After_End): New functions
28812         (First_Comment_Before, First_Comment_Before_End): New functions
28813         (Next_Comment): New function
28814         (End_Of_Line_Comment, Follows_Empty_Line,
28815         Is_Followed_By_Empty_Line): New functions
28816         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
28817         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
28818         (Set_Next_Comment): New procedure
28819         (Default_Project_Node): Associate comment before if the node can store
28820         comments.
28822         * scans.ads (Token_Type): New enumeration value Tok_Comment
28823         (Comment_Id): New global variable
28825         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
28826         defaulted to False.
28827         (Scan): Store position of start of comment. If comments are tokens, set
28828         Comment_Id and set Token to Tok_Comment when scanning a comment.
28829         (Set_Comment_As_Token): New procedure
28831         * sinput-p.adb: Update Copyright notice
28832         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
28833         that no longer exists.
28835 2003-12-08  Javier Miranda  <miranda@gnat.com>
28837         * sem_aggr.adb: Add dependence on Exp_Tss package
28838         Correct typo in comment
28839         (Resolve_Aggregate): In case of array aggregates set the estimated
28840         type of the aggregate before calling resolve. This is needed to know
28841         the name of the corresponding IP in case of limited array aggregates.
28842         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
28843         in case of default initialized array components.
28845         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
28846         types. Required to give support to limited aggregates in generic
28847         formals.
28849 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
28851         * sem_ch3.adb (Check_Initialization): For legality purposes, an
28852         inlined body functions like an instantiation.
28853         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
28854         until bounds are analyzed, to diagnose premature use of type.
28856         * sem_util.adb (Wrong_Type): Improve error message when the type of
28857         the expression is used prematurely.
28859 2003-12-08  GNAT Script  <nobody@gnat.com>
28861         * Make-lang.in: Makefile automatically updated
28863 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
28865         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
28866         they are automatically generated by Make-lang.in and cause nothing but
28867         maintenance troubles.
28869 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
28871         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
28872         version of this unit).
28874 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
28876         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
28877         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
28878         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
28879         the body of System.Interrupt_Management common to several targets.
28880         Update copyright notice when appropriate.
28882         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
28883         constant.
28885         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
28886         to ensure that the kernel fills in the interrupted context structure
28887         before calling a signal handler, which is necessary to be able to
28888         unwind past it. Update the copyright notice.
28890 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
28892         * a-elchha.ads: New file.
28894         * a-elchha.adb: New default last chance handler. Contents taken from
28895         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
28897         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
28898         is moved to a-elchha.adb to provide a target-independent default last
28899         chance handler.
28901         * Makefile.rtl: Add a-elchha.o
28903         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
28905 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
28907         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
28908         declared in an instance, do not inline the call if the instance is not
28909         frozen yet, to prevent order of elaboration problems.
28911         * sem_prag.adb: Add comments for previous fix.
28913 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
28915         * g-table.adb: Use the right variable in Set_Item.
28916         Update copyright notice.
28918 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
28920         * Makefile.in: Remove unused rules.
28922 2003-12-05  Vincent Celier  <celier@gnat.com>
28924         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
28925         -nostdlib. Not needed here after all.
28927 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
28929         PR ada/11724
28930         * adaint.h, adaint.c, g-os_lib.ads:
28931         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
28932         on some platforms (including FreeBSD), it is a 64 bit value.
28933         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
28935 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
28937         * gnatvsn.ads (Library_Version): Now contain only the relevant
28938         version info.
28939         (Verbose_Library_Version): New constant.
28941         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28942         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28943         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28945         * gnatlbr.adb: Clean up: replace Library_Version by
28946         Verbose_Library_Version.
28948         * make.adb, lib-writ.adb, exp_attr.adb:
28949         Clean up: replace Library_Version by Verbose_Library_Version.
28951         * 5lintman.adb: Removed.
28953         * Makefile.in:
28954         Update and simplify computation of LIBRARY_VERSION.
28955         Fix computation of GSMATCH_VERSION.
28956         5lintman.adb is no longer used: replaced by 7sintman.adb.
28958 2003-12-03  Robert Dewar  <dewar@gnat.com>
28960         * exp_ch5.adb:
28961         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
28962         name. Modified to consider small non-bit-packed arrays as troublesome
28963         and in need of component-by-component assigment expansion.
28965 2003-12-03  Vincent Celier  <celier@gnat.com>
28967         * lang-specs.h: Process nostdlib as nostdinc
28969         * back_end.adb: Update Copyright notice
28970         (Scan_Compiler_Arguments): Process -nostdlib directly.
28972 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
28974         * Makefile.in:
28975         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
28976         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
28977         included in HIE_NONE_TARGET_PAIRS.
28979 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
28981         * sem_attr.adb:
28982         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
28983         is legal in an instance, because legality is cheched in the template.
28985         * sem_prag.adb:
28986         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
28987         appplied to an unchecked conversion of a formal parameter.
28989         * sem_warn.adb:
28990         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
28991         variables.
28993 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
28995         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
28996         routines. The second one is new functionality to deal with backtracing
28997         through signal handlers.
28998         (unwind): Split into the two separate subroutines above.
28999         Update the documentation, and deal properly with sizeof (REG) different
29000         from sizeof (void*).
29002 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
29004         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
29005         so that the debugger can reliably access the value of the parameter,
29006         and therefore is able to display the exception name when an exception
29007         breakpoint is reached.
29009 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
29011         * fmap.adb: Fix typo in warning message.
29013         * g-socket.ads, g-socket.adb: Make Free a visible instance of
29014         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
29016 2003-12-01  Vincent Celier  <celier@gnat.com>
29018         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
29019         ther is no Afile.
29020         (Build_Library): Get the switches only if Default_Switches is declared
29021         in package Binder.
29023 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
29025         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
29026         actuals that are indexed components, reanalyze actual to ensure that
29027         packed array references are properly expanded.
29029         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
29030         attempted assignment to a discriminant.
29032 2003-12-01  Robert Dewar  <dewar@gnat.com>
29034         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
29035         reformatting.
29037         * switch-c.adb: Minor reformatting of comments
29039 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
29041         * Makefile.in: Clean ups.
29043 2003-12-01  GNAT Script  <nobody@gnat.com>
29045         * Make-lang.in: Makefile automatically updated
29047 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
29049         * 5wsystem.ads: Disable zero cost exception, not ready yet.
29051 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
29053         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
29054         to force serialization.
29056 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
29058         * g-socket.ads, g-socket.adb:
29059         Clarify documentation of function Stream. Introduce a Free procedure
29060         to release the returned Stream once it becomes unused.
29062         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
29064 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
29066         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
29067         since NT 4 cannot handle timeout values that are too large,
29068         e.g. DWORD'Last - 1.
29070 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
29072         * exp_ch4.adb:
29073         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
29074         in procedure calls and whose expansion must be deferred.
29076         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
29077         is in exp_ch4.
29079         * sem_ch3.adb:
29080         (Build_Derived_Array_Type): Create operator for unconstrained type
29081         if ancestor is unconstrained.
29083 2003-11-26  Vincent Celier  <celier@gnat.com>
29085         * make.adb (Project_Object_Directory): New global variable
29086         (Change_To_Object_Directory): New procedure
29087         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
29088         of Change_Dir directly. Do not change working directory to object
29089         directory of main project after each compilation.
29090         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
29091         directly.
29092         Change to object directory of main project before binding step.
29093         (Initialize): Initialize Project_Object_Directory to No_Project
29095         * mlib-prj.adb:
29096         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
29097         binding a Stand-Alone Library.
29099         * output.adb: Update Copyright notice
29100         (Write_Char): Output buffer when full
29102 2003-11-26  Robert Dewar  <dewar@gnat.com>
29104         * sem_ch13.adb: (Check_Size): Reset size if size is too small
29106         * sem_ch13.ads:
29107         (Check_Size): Fix documentation to include bit-packed array case
29109         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
29111         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
29113         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
29115 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
29117         PR ada/13142
29118         * utils.c (init_gigi_decls): Change name of built-in setjmp to
29119         __builtin_setjmp, since this is apparently needed by recent
29120         non Ada changes.
29122 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29124         * adadecode.c: Only include ctype.h if not IN_GCC.
29125         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
29127 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
29129         * Makefile.in:
29130         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
29131         signals and interrupts.
29133         * 5zintman.ads: New File.
29135         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
29136         add exception signals to the set of unmasked signals.
29138         * 5ztaprop.adb:
29139         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
29140         between signals and interrupts.
29141         Add to Unblocked_Signal_Mask the set of signals that are in
29142         Keep_Unmasked.
29144         * 7sinmaop.adb:
29145         Adding a check to see whether the Interrupt_ID we want to unmask is in
29146         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
29147         reason is that the index type of the Keep_Unmasked array is not always
29148         Interrupt_ID; it may be a subtype of Interrupt_ID.
29150 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
29152         * exp_util.adb:
29153         (Remove_Side_Effects): Condition constantness of object created for a
29154          an unchecked type conversion on the constantness of the expression
29155          to ensure the correct value for 'Constrained when passing components
29156          of view-converted class-wide objects.
29158 2003-11-24  Robert Dewar  <dewar@gnat.com>
29160         * par-load.adb (Load): Improve handling of misspelled and missing units
29161         Removes several cases of compilation abandoned messages
29163         * lib.adb: (Remove_Unit): New procedure
29165         * lib.ads: (Remove_Unit): New procedure
29167         * lib-load.adb: Minor reformatting
29169 2003-11-24  Vincent Celier  <celier@gnat.com>
29171         * make.adb:
29172         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
29173         (Marking_Label): Label to mark processed source files. Incremented for
29174         each executable.
29175         (Gnatmake): Increase Marking_Labet for each executable
29176         (Is_Marked): Compare against marking label
29177         (Mark): Mark with marking label
29179 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
29181         * s-thread.ads:
29182         Move the declaration of the TSD for System.Threads to System.Soft_Links.
29183         Add some comments.
29185         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
29186         (rts-cert): build a single relocatable object for the run-time lib.
29187         Fix perms.
29189 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
29191         * Make-lang.in:
29192         Use gnatls rather than gcc to obtain the location of GNAT RTL for
29193         crosstools build.
29195 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
29197         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
29198         can not use it as before (that is, as a variable) when dumping it into
29199         the tree file. Add a local variable to store the result of this
29200         function and to be used as the string to be written into the tree.
29202         * scn.adb (Initialize_Scanner): Add comments explaining the recent
29203         changes.
29205         * sinput.adb (Source_First, Source_Last): In case of
29206         Internal_Source_File, replace returning attributes of
29207         Internal_Source_Ptr (which is wrong) with returning attributes of
29208         Internal_Source.
29210 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
29212         * sem_ch3.adb:
29213         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
29214         used for implicit concatenation operators.
29215         Code cleanup.
29217         * sem_elab.adb:
29218         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
29219         task bodies that are in the scope of a Suppress pragma.
29220         (Check_A Call): Use the flag to prevent spurious elaboration checks.
29222         * sinfo.ads, sinfo.adb:
29223         New flag No_Elaboration_Check on function/procedure calls, to properly
29224         suppress checks on calls in task bodies that are within a local suppress
29225         pragma.
29227         * exp_ch4.adb:
29228         (Expand_Concatenate_Other): Use the proper integer type for the
29229         expression for the upper bound, to avoid universal_integer computations
29230         when possible.
29232 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
29234         * .cvsignore: Delete.
29236 2003-11-21  Andreas Schwab  <schwab@suse.de>
29238         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
29240 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
29242         * 5wsystem.ads: Enable zero cost exception.
29244 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
29246         * 5ztiitho.adb: Remove an unreferenced variable.
29248 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
29250         * adaint.c: For FreeBSD, use mkstemp.
29252 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
29254         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
29256 2003-11-21  Robert Dewar  <dewar@gnat.com>
29258         * bld.adb: Remove useless USE of gnatvsn
29260         * gnatchop.adb: Minor reformatting
29261         Clean up version handling to be more consistent
29263         * gnatxref.adb: Minor reformatting
29265         * gprcmd.adb: Minor reformatting
29266         Fix output of copyright to be more consistent with other tools
29268 2003-11-21  Vincent Celier  <celier@gnat.com>
29270         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
29272 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
29274         * atree.adb (Initialize): Add initializations for global variables
29275         used in New_Copy_Tree.
29277         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
29278         Internal_Source_File as the actual).
29279         Put the set of statements creating Any_Character before the set of
29280         statements creating Any_Array to have Any_Character fully initialized
29281         when it is used in creating Any_Array.
29283         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
29284         not call Scan in case if the actual is Internal_Source_File
29285         Add 2003 to copyright note.
29287         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
29288         processing Internal_Source_File.
29290         * types.ads: Add the constant Internal_Source_File representing the
29291         source buffer for artificial source-code-like strings created within
29292         the compiler (the definition of Source_File_Index is changed).
29294 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
29296         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
29297         56system.ads: New file, FreeBSD version.
29299 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
29301         * Make-lang.in (ada.extraclean): Delete.
29303 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
29305         * gnatmem.adb: Clean up verbose output.
29307         * gprcmd.adb: Change copyright to FSF.
29309 2003-11-19  Vincent Celier  <celier@gnat.com>
29311         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
29312         and Version (ignored).
29314         * symbols.ads: (Policy): New type
29315         (Initialize): New parameter Reference, Symbol_Policy and
29316         Library_Version.
29317         Remove parameter Force.
29318         Minor reformatting.
29320         * snames.ads, snames.adbadb: New standard names
29321         Library_Reference_Symbol_File and Library_Symbol_Policy
29323         * mlib-prj.adb:
29324         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
29325         project.
29327         * mlib-tgt.adb:
29328         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
29330         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
29332         * prj.adb: (Project_Empty): New component Symbol_Data
29334         * prj.ads: (Policy, Symbol_Record): New types
29335         (Project_Data): New component Symbol_Data
29337         * prj-attr.adb:
29338         New attributes Library_Symbol_File, Library_Symbol_Policy and
29339         Library_Reference_Symbol_File.
29341         * prj-nmsc.adb:
29342         (Ada_Check): When project is a Stand-Alone library project, process
29343         attribute Library_Symbol_File, Library_Symbol_Policy and
29344         Library_Reference_Symbol_File.
29346         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29347         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
29348         5sml-tgt.adb (Build_Dynamic_Library): New parameter
29349         Symbol_Data (ignored).
29351         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
29352         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
29353         functions Option_File_Name and Version_String. Set new options of
29354         gnatsym related to symbol file, symbol policy and reference symbol
29355         file.
29357         * 5vsymbol.adb:
29358         Extensive modifications to take into account the reference symbol file,
29359         the symbol policy, the library version and to put in the symbol file the
29360         minor and major IDs.
29362         * bld.adb (Process_Declarative_Items): Put second argument of
29363         gprcmd to_absolute between single quotes, to avoid problems with
29364         Windows.
29366         * bld-io.adb: Update Copyright notice.
29367         (Flush): Remove last character of a line, if it is a back slash, to
29368         avoid make problems.
29370         * gnatsym.adb:
29371         Implement new scheme with reference symbol file and symbol policy.
29373         * g-os_lib.ads: (Is_Directory): Clarify comment
29375 2003-11-19  Robert Dewar  <dewar@gnat.com>
29377         * atree.adb: Move New_Copy_Tree global variables to head of package
29379         * errout.adb: Minor reformatting
29381 2003-11-19  Javier Miranda  <miranda@gnat.com>
29383         * sem_ch4.adb: (Diagnose_Call): Improve error message.
29384         Add reference to Ada0Y (AI-50217)
29386         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
29387         sem_util.adb: Add reference to AI-50217
29389         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
29391         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
29393         * sem_aggr.adb: Complete documentation of AI-287 changes
29395         * par-ch4.adb: Document previous changes.
29397         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
29398         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
29399         Ada0Y (AI-50217)
29401         * exp_aggr.adb: Add references to AI-287 in previous changes
29403 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
29405         * exp_ch6.adb:
29406         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
29407         in the rewriting is the result of an inlined call.
29409         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
29410         parameter is a type conversion, use original node to construct the
29411         post-call assignment, because expression may have been rewritten, e.g.
29412         if it is a packed array.
29414         * sem_attr.adb:
29415         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
29416         body, just as it is in an instance.
29417         Categorization routines
29419         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
29420         Instantiate_Object): Set proper sloc reference for message on missing
29421         actual.
29423 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
29425         * Makefile.in: Add FreeBSD libgnat pairs.
29427         * usage.adb: Fix typo in usage message.
29429 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
29431         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
29432         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
29433         pragma Thread_Body.
29434         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
29436         * s-thread.adb: This file is now a dummy implementation of
29437         System.Thread.
29439 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
29441         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
29443 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
29445         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29446         instanciation references in the parent type description.
29448 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29450         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
29452         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
29453         TYPE_PRECISION directly from esize.
29455 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
29457         * cstreams.c:
29458         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
29460         * init.c: Initialization routines for FreeBSD
29462         * link.c: Link info for FreeBSD
29464         * sysdep.c: Add the case of FreeBSD
29466 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
29468         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
29469         already called in System.Threads.
29471         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
29472         environment task, as it has been moved to System.Threads.Initialization.
29474 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
29476         * adaint.c (__gnatlib_install_locks): Only reference
29477         __gnat_install_locks on VMS, since other platforms can avoid using
29478         --enable-threads=gnat
29480 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29482         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
29484         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
29485         TYPE_PACKED_ARRAY_TYPE_P.
29486         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
29488         Part of PR ada/12806
29489         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
29490         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
29492 2003-11-17  Vincent Celier  <celier@gnat.com>
29494         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
29495         to False.
29496         Do not set exit status to Failure when Warning is True.
29497         (Gnatchop): Make errors "no compilation units found" and
29498         "no source files written" warnings only.
29500         * make.adb (Gnatmake): When using a project file, set
29501         Look_In_Primary_Dir to False.
29502         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
29503         and Local_Configuration_Pragmas in the project where they are declared
29504         not an extending project which might have inherited them.
29506         * osint.adb (Locate_File): If Name is already an absolute path, do not
29507         look for a directory.
29509         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
29510         -gnats (Check_Syntax) is used, issue only a warning, not an error.
29512         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
29513         in objects of type Variable_Value.
29515         * prj.ads: (Variable_Value): New component Project
29517         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
29518         is in a project extended by Project.
29520         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
29521         Project of Variable_Values to this new parameter value.
29522         (Expression): Set component Project of Variable_Values.
29523         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
29524         Set the component Project in array elements.
29526 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
29528         * errout.adb: (Initialize): Add initialization for error nodes.
29530         * sem_ch12.adb (Initialize): Add missing initializations for
29531         Exchanged_Views and Hidden_Entities.
29533 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
29535         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
29536         already instantiated tree for use in subsequent inlining.
29537         (Analyze_Associations, Instantiate_Formal_Subprogram,
29538         Instantiate_Object): improve error message for mismatch in
29539         instantiations.
29541         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
29542         instantiations of subprograms declared in instances.
29544 2003-11-17  Javier Miranda  <miranda@gnat.com>
29546         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
29547         executed only under the Extensions_Allowed flag.
29549 2003-11-17  Robert Dewar  <dewar@gnat.com>
29551         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
29552         zeroes suppressed.
29553         (Address_Image): Fix bug of returning 0x instead of 0x0
29554         Minor reformatting (function specs).
29556         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
29557         (missed case of 33-63)
29559         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
29561         * s-thread.adb: Add comments for pragma Restriction
29563         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
29564         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
29566 2003-11-17  Ed Falis  <falis@gnat.com>
29568         * s-thread.adb: Added No_Tasking restriction for this implementation.
29570 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
29572         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29573         instanciation references in the parent type description.
29575 2003-11-17  GNAT Script  <nobody@gnat.com>
29577         * Make-lang.in: Makefile automatically updated
29579 2003-11-16  Jason Merrill  <jason@redhat.com>
29581         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
29582         and TAGS files that include them for each front end.
29584 2003-11-14  Andreas Jaeger  <aj@suse.de>
29586         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
29587         is the canonical version.
29588         * misc.c (gnat_handle_option): Likewise.
29590         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
29592         * 5nsystem.ads: New file for x86_64-linux-gnu.
29594 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
29596         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
29598         * comperr.adb: Fix logic in previous change.
29600 2003-11-13  Vincent Celier  <celier@gnat.com>
29602         * 5bml-tgt.adb (Build_Dynamic_Library): Use
29603         Osint.Include_Dir_Default_Prefix instead of
29604         Sdefault.Include_Dir_Default_Name.
29606         * gnatlbr.adb: Update Copyright notice
29607         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
29608         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
29609         instead of Sdefault.Object_Dir_Default_Name
29611         * gnatlink.adb:
29612         (Process_Binder_File): Never suppress the option following -Xlinker
29614         * mdll-utl.adb:
29615         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
29616         Sdefault.Object_Dir_Default_Name.
29618         * osint.ads, osint.adb:
29619         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
29620         Minor reformatting.
29622         * vms_conv.ads: Minor reformating
29623         Remove GNAT STANDARD and GNAT PSTA
29625         * vms_conv.adb:
29626         Allow GNAT MAKE to have several files on the command line.
29627         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
29628         Sdefault.Object_Dir_Default_Name.
29629         Minor Reformating
29630         Remove data for GNAT STANDARD
29632         * vms_data.ads:
29633         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
29634         Remove data for GNAT STANDARD
29635         Remove options and documentation for -gnatwb/-gnatwB: these warning
29636         options no longer exist.
29638 2003-11-13  Ed Falis  <falis@gnat.com>
29640         * 5zthrini.adb: (Init_RTS): Made visible
29642         * 5zthrini.adb:
29643         (Register): Removed unnecessary call to taskVarGet that checked whether
29644          an ATSD was already set as a task var for the argument thread.
29646         * s-thread.adb:
29647         Updated comment to reflect that this is a VxWorks version
29648         Added context clause for System.Threads.Initialization
29649         Added call to System.Threads.Initialization.Init_RTS
29651 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
29653         * 5zthrini.adb:
29654         (Init_RTS): New procedure, for the initialization of the run-time lib.
29656         * s-thread.adb:
29657         Remove dependancy on System.Init, so that this file can be used in the
29658         AE653 sequential run-time lib.
29660 2003-11-13  Robert Dewar  <dewar@gnat.com>
29662         * bindgen.adb: Minor reformatting
29664 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
29666         * checks.adb:
29667         (Apply_Discriminant_Check): Do no apply check if target type is derived
29668         from source type with no applicable constraint.
29670         * lib-writ.adb:
29671         (Ensure_System_Dependency): Do not apply the style checks that may have
29672         been specified for the main unit.
29674         * sem_ch8.adb:
29675         (Find_Selected_Component): Further improvement in error message, with
29676         RM reference.
29678         * sem_res.adb:
29679         (Resolve): Handle properly the case of an illegal overloaded protected
29680         procedure.
29682 2003-11-13  Javier Miranda  <miranda@gnat.com>
29684         * exp_aggr.adb:
29685         (Has_Default_Init_Comps): New function to check the presence of
29686         default initialization in an aggregate.
29687         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
29688         extension aggregate of a limited record. In addition, a new formal
29689         was added to do not initialize the record controller (if any) during
29690         this recursive expansion of ancestors.
29691         (Init_Controller): Add support for limited record components.
29692         (Expand_Record_Aggregate): In case of default initialized components
29693         convert the aggregate into a set of assignments.
29695         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
29696         describing the new syntax.
29697         Nothing else needed to be done because this subprogram delegates part of
29698         its work to P_Precord_Or_Array_Component_Association.
29699         (P_Record_Or_Array_Component_Association): Give support to the new
29700         syntax for default initialization of components.
29702         * sem_aggr.adb:
29703         (Resolve_Aggregate): Relax the strictness of the frontend in case of
29704         limited aggregates.
29705         (Resolve_Record_Aggregate): Give support to default initialized
29706         components.
29707         (Get_Value): In case of default initialized components, duplicate
29708         the corresponding default expression (from the record type
29709         declaration). In case of default initialization in the *others*
29710         choice, do not check that all components have the same type.
29711         (Resolve_Extension_Aggregate): Give support to limited extension
29712         aggregates.
29714         * sem_ch3.adb:
29715         (Check_Initialization): Relax the strictness of the front-end in case
29716         of aggregate and extension aggregates. This test is now done in
29717         Get_Value in a per-component manner.
29719         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
29720         expression corresponds to a limited aggregate. This test is now done
29721         in Get_Value.
29723         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
29724         Box_Present flag.
29726         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
29727         present in an N_Component_Association node
29729 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
29731         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
29732         type-conformant entry only if they are homographs.
29734 2003-11-13  GNAT Script  <nobody@gnat.com>
29736         * Make-lang.in: Makefile automatically updated
29738 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29740         * adadecode.c: Use <> form of include for ctype.h.
29741         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
29743 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29745         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
29746         Works around PR middle-end/6552.
29748 2003-11-10  Ed Falis  <falis@gnat.com>
29750         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
29752         * 5zinit.adb: (Install_Handler): Moved back to spec
29753         (Install_Signal_Handlers): Deleted
29755         * 5zthrini.adb: Added context clause for System.Storage_Elements
29756         (Register): Only handles creation of taskVar; initialization moved to
29757         Thread_Body_Enter.
29758         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
29759         Added declaration of environment task secondary stack and
29760         initialization.
29762         * s-thread.adb: Implement bodies for thread body processing
29764         * s-thread.ads:
29765         Added comment identifying supported targets for pragma Thread_Body.
29767 2003-11-10  Pascal Obry  <obry@gnat.com>
29769         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
29770         GNAT_MAX_PATH_LEN.
29772         * s-fileio.adb:
29773         (Open): Properly check for string length before copying into the buffer.
29774         Raises Name_Error if buffer is too small. Note that this was a potential
29775         buffer overflow.
29777 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
29779         * bindgen.adb, comperr.adb: Code clean ups.
29780         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
29782 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
29784         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
29786 2003-11-10  Vincent Celier  <celier@gnat.com>
29788         * gprcmd.adb:
29789         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
29790         installation.
29792         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
29794         * prj.adb: (Project_Empty): Add new boolean component Virtual
29796         * prj.ads: (Virtual_Prefix): New constant string
29797         (Project_Data): New boolean component Virtual
29799         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
29800         a library project is extended by a virtual extending project.
29802         * prj-part.adb:
29803         Modifications throughout to implement extending-all project, including:
29804         (Virtual_Hash, Processed_Hash): New hash tables
29805         (Create_Virtual_Extending_Project): New procedure
29806         (Look_For_Virtual_Projects_For): New procedure
29808         * prj-proc.adb:
29809         (Process): After checking the projects, if main project is an
29810         extending-all project, set the object directory of all virtual extending
29811         project to the object directory of the main project.
29812         Adjust error message when a virtual extending project has the same
29813         object directory as an project being extended.
29814         (Recursive_Process): If name starts with the virtual prefix, set Virtual
29815         to True in the project data.
29817         * prj-tree.adb:
29818         (Default_Project_Node): Add new boolean component Extending_All
29819         (Is_Extending_All): New function
29820         (Set_Is_Extending_All): New procedure
29822         * prj-tree.ads: (Is_Extending_All): New function
29823         (Set_Is_Extending_All): New procedure
29824         (Project_Node_Record): New boolean component Extending_All
29826         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
29828         * vms_data.ads:
29829         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
29831         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
29832         "gprcmd prefix" to define it.
29834 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
29836         * einfo.ads: Fix a typo and remove an extraneous word in comments.
29838         * lib-load.adb:
29839         (Create_Dummy_Package_Unit): Set the scope of the entity for the
29840         created dummy package to Standard_Standard, not to itself, to
29841         defend other parts of the front-end against encoutering a cycle in
29842         the scope chain.
29844         * sem_ch10.adb:
29845         (Analyze_With_Clause): When setting the entities for the successive
29846         N_Expanded_Names that constitute the name of a child unit, do not
29847         attempt to go further than Standard_Standard in the chain of scopes.
29848         This case arises from the placeholder units created by
29849         Create_Dummy_Package_Unit in the case of a with_clause for a
29850         nonexistent child unit.
29852 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
29854         * exp_ch6.adb:
29855         (Expand_Thread_Body): Place subprogram on scope stack, so that new
29856         declarations are given the proper scope.
29858         * sem_ch13.adb:
29859         (Check_Expr_Constants): Reject an expression that contains a constant
29860         created during expansion, and that appears after the object to which
29861         the address clause applies.
29863         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
29864         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
29865         that uses 'Range of a function call with controlled components, so
29866         that the function result can be finalized before starting the loop.
29868         * sem_ch8.adb:
29869         (Find_Selected_Component): Improve error message when prefix is
29870         an implicit dereference of an incomplete type.
29872 2003-11-10  Robert Dewar  <dewar@gnat.com>
29874         * opt.ads: New Print_Standard flag for -gnatS switch
29876         * sem_ch13.adb: Remove some additional checks for unaligned arrays
29878         * cstand.adb (Create_Standard): Print out package standard if -gnatS
29879         switch set
29881         * debug.adb: Update doc for -gnatds to discuss relationship with new
29882         -gnatS flag
29884         * sinfo.adb: Add new field Entity_Or_Associated_Node
29886         * sinfo.ads: Add new field Entity_Or_Associated_Node
29887         Update documentation for Associated_Node and Entity fields to clarify
29888         relationship and usage.
29890         * sprint.adb:
29891         (Write_Id): Properly process Associated_Node field in generic template
29893         * switch-c.adb:
29894         Recognize new -gnatS switch for printing package Standard
29895         This replaces gnatpsta
29897         * usage.adb:
29898         Add line for  new -gnatS switch for printing package Standard
29899         This replaces gnatpsta
29901 2003-11-10  Andreas Jaeger  <aj@suse.de>
29903         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
29904         integer.
29906 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
29908         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
29909         by gnat1.
29911 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
29913         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
29914         no longer needed.
29916         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
29918         * sysdep.c: Add handling of cygwin.
29920 2003-11-10  GNAT Script  <nobody@gnat.com>
29922         * Make-lang.in: Makefile automatically updated
29924 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
29926         PR 12950
29927         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
29928         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
29929         Replace GNAT_ROOT by GCC_ROOT.
29931         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
29933 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
29935         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
29936         and update for changed meaning of GET_MODE_BITSIZE.
29938 2003-11-04  Doug Rupp  <rupp@gnat.com>
29940         * sysdep.c: Problem discovered during IA64 VMS port.
29941         [VMS] #include <unixio.h> to get proper prototypes.
29943         * adaint.c:
29944         Issues discovered/problems fixed during IA64 VMS port.
29945         [VMS] #define _POSIX_EXIT for proper semantics.
29946         [VMS] #include <unixio.h> for proper prototypes.
29947         [VMS] (fork): #define IA64 version.
29948         (__gnat_os_exit): Remove unnecessary VMS specific code.
29950 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29952         Part of PR ada/12806
29953         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
29954         tree, not integer.
29956         * decl.c:
29957         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
29958         not integer.
29960         * targtyps.c, decl.c, misc.c,
29961         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
29962         routines to work around change in FP sizing semantics in GCC.
29964         * utils.c:
29965         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
29967         * gigi.h: (enumerate_modes): New function.
29969         * Make-lang.in: (ada/misc.o): Add real.h.
29971         * misc.c: (enumerate_modes): New function.
29973 2003-11-04  Robert Dewar  <dewar@gnat.com>
29975         * 3vtrasym.adb: Minor reformatting
29976         Use terminology encoded/decoded name, rather than C++ specific notion
29977         of mangling (this is the terminology used throughout GNAT).
29979         * einfo.h: Regenerated
29981         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
29983         * exp_ch6.adb:
29984         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
29986         * par-prag.adb: Add dummy entry for Thread_Body pragma
29988         * rtsfind.ads:
29989         Add entries for System.Threads entities for thread body processing
29991         * sem_attr.adb:
29992         (Analyze_Pragma, Access attributes): Check these are not applied to a
29993         thread body, since this is not permitted
29995         * sem_prag.adb: Add processing for Thread_Body pragma.
29996         Minor comment fix.
29998         * sem_res.adb:
29999         (Resolve_Call): Check for incorrect attempt to call a thread body
30000          procedure with a direct call.
30002         * snames.ads, snames.adb: Add entry for Thread_Body pragma
30003         Add names associated with thread body expansion
30005         * snames.h: Add entry for Thread_Body pragma
30007         * s-thread.adb: Add entries for thread body processing
30008         These are dummy bodies so far
30010         * s-thread.ads: Add documentation on thread body handling.
30011         Add entries for thread body processing.
30013 2003-11-04  Javier Miranda  <miranda@gnat.com>
30015         * sem_ch10.adb:
30016         (Build_Limited_Views): Return after posting an error in case of limited
30017         with_clause on subprograms, generics, instances or generic renamings
30018         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
30019         on subprograms, generics, instances or generic renamings
30021 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
30023         * raise.c (setup_to_install): Correct mistake in last revision; two
30024         arguments out of order.
30026         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
30027         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
30028         notice, missed in previous change.
30029         Remove trailing blanks and other style errors introduced in previous
30030         change.
30032 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
30034         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
30035         rid of the wrapper for a LJM type, ensuring we don't do that if the
30036         field is addressable.  This avoids potential low level type view
30037         mismatches later on, for instance in a by-reference argument passing
30038         process.
30040 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30042         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
30043         aligned at byte boundary.
30045 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
30047         * decl.c (components_to_record): Do not delete the empty variants from
30048         the end of the union type.
30050 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
30052         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
30053         operation for a derived type, an explicit declaration may use a local
30054         subtype of Boolean.
30056 2003-11-04  Vincent Celier  <celier@gnat.com>
30058         * make.adb (Gnatmake): Allow main sources on the command line with a
30059         library project when it is only for compilation (no binding or
30060         linking).
30062 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30064         * Makefile.in: Remove many duplicate variables.
30066 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
30068         * Make-lang.in (dvi): Move targets to $(docobjdir).
30069         (gnat_ug_vms.dvi): Simplify rule and adjust target.
30070         (gnat_ug_wnt.dvi): Likewise.
30071         (gnat_ug_unx.dvi): Likewise.
30072         (gnat_ug_vxw.dvi): Likewise.
30073         (gnat_rm.dvi): Likewise.
30074         (gnat-style.dvi): Likewise.
30076 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
30078         * gigi.h: Missed commit from update for C90.
30080 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
30082         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
30084 2003-10-31  Andreas Schwab  <schwab@suse.de>
30086         * raise.c (get_action_description_for): Fix typo in last change.
30088 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
30090         PR ada/12761
30091         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
30092         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
30094 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
30096         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
30097         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
30098         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
30099         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
30100         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
30102 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
30104         * 3vtrasym.adb:
30105         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
30106         numbers when symbol name is too long.
30108 2003-10-30  Ed Falis  <falis@gnat.com>
30110         * g-signal.ads, g-signal.adb: New files
30112         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
30114         * Makefile.rtl: Introduce GNAT.Signals
30116 2003-10-30  Robert Dewar  <dewar@gnat.com>
30118         * freeze.adb: Minor reformatting
30120         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
30122         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
30123         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
30124         New handling of Id_Check parameter to improve recognition of keywords
30125         used as identifiers.
30126         Update copyright notice to include 2003
30128 2003-10-29  Robert Dewar  <dewar@gnat.com>
30130         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
30131         sem_ch10.adb: Minor reformatting
30133         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
30134         (Expand_Assign_Record): Test right hand side for bit unaligned as well
30136 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
30138         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
30139         Support for TBK$SYMBOLIZE-based symbolic traceback.
30141 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
30143         * exp_disp.adb:
30144         Revert previous change, that did not work well when pragma No_Run_Time
30145         was used in conjunction with a run-time other than ZFP.
30147 2003-10-29  Vincent Celier  <celier@gnat.com>
30149         * make.adb:
30150         (Gnatmake): When there are no Ada mains in attribute Main, disable the
30151          bind and link steps only is switch -z is not used.
30153 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
30155         * Makefile.generic: Remove duplicated setting of CC.
30157         * Makefile.prolog: Set CC to gcc by default, to override make's
30158         default (cc).
30160         * einfo.h: Regenerated.
30162 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
30164         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
30165         current body, after compiling subunit.
30167         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
30168         when in deleted code, because gigi needs properly ordered freeze
30169         actions to annotate types.
30171         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
30172         prevent the premature freezing of record type that contains
30173         subcomponents with a private type that does not yet have a completion.
30175 2003-10-29  Javier Miranda  <miranda@gnat.com>
30177         * sem_ch12.adb:
30178         (Analyze_Package_Instantiation): Check that instances can not be used in
30179         limited with_clauses.
30181         * sem_ch8.adb:
30182         (Analyze_Package_Renaming): Check that limited withed packages cannot
30183         be renamed. Improve text on error messages related to limited
30184         with_clauses.
30186         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
30188         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
30189         Update copyright notice.
30191         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
30192         (Install_Limited_Context_Clauses): New subprogram that isolates all the
30193         checks required for limited context_clauses and installs the limited
30194         view.
30195         (Install_Limited_Withed_Unit): Complete its documentation.
30196         (Analyze_Context): Check that limited with_clauses are only allowed in
30197         package specs.
30198         (Install_Context): Call Install_Limited_Context_Clauses after the
30199         parents have been installed.
30200         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
30201         package as 'From_With_Type'; this mark indicates that the limited view
30202         is installed. Used to check bad usages of limited with_clauses.
30203         (Build_Limited_Views): Do not add shadow entities to the scope's list
30204         of entities. Do not add real entities to the Non_Limited_Views chain.
30205         Improve error notification.
30206         (Remove_Context_Clauses): Remove context clauses in two phases:
30207         limited views first and regular views later (to maintain the
30208         stack model).
30209         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
30210         its visible entities.
30212 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
30214         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
30215         with any type that Is_Fixed_Point_Type.
30217         * sinfo.ads: Fix documentation for Associated_Node attribute.
30219 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
30221         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
30222         both '-gnatc' and '-gnatt' are specified.
30224         * atree.adb (Initialize): Add initialization for Node_Count (set to
30225         zero).
30227 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30229         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
30230         do not consider as Pure.
30232         Part of implementation of function-at-a-time:
30234         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
30235         (tree_transform): Add new argument to build_component_ref.
30236         (tree_transform, case N_Assignment_Statement): Make and return an
30237         EXPR_STMT.
30238         (tree_transform): If result IS_STMT, set flags and return it.
30239         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30241         * utils2.c (build_simple_component_ref, build_component_ref): Add new
30242         arg, NO_FOLD_P.
30243         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
30244         (build_allocator): Likewise.
30246         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
30247         Add new arg to build_component_ref.
30248         (maybe_unconstrained_array, unchecked_convert): Likewise.
30250         * ada-tree.def (EXPR_STMT): New code.
30252         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
30254         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
30255         build_component_ref calls.
30257         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
30259         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30260         (build_component_ref): Add new argument, NO_FOLD_P.
30262 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
30264         * Makefile.generic: Add missing substitution on object_deps handling.
30266         PR ada/5909
30267         * Make-lang.in (check-ada): Enable ACATS test suite.
30269 2003-10-27  Robert Dewar  <dewar@gnat.com>
30271         * exp_ch3.adb:
30272         (Freeze_Array_Type): We do not need an initialization routine for types
30273         derived from String or Wide_String. They should be treated the same
30274         as String and Wide_String themselves. This caused problems with the
30275         use of Initialize_Scalars.
30277         * exp_ch5.adb:
30278         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
30279         composites. This allows use of component clauses that are not byte
30280         aligned.
30282         * sem_prag.adb:
30283         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
30284         is an attempt to pack an array of atomic objects.
30286         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
30288 2003-10-27  Pascal Obry  <obry@gnat.com>
30290         * g-dirope.adb:
30291         (Basename): Check for drive letters in a pathname only on DOS based OS.
30293 2003-10-27  Vincent Celier  <celier@gnat.com>
30295         * make.adb:
30296         (Gnatmake): When unable to change dir to the object dir, display the
30297         content of the parent dir of the obj dir, to try to understand why this
30298         happens.
30300 2003-10-27  GNAT Script  <nobody@gnat.com>
30302         * Make-lang.in: Makefile automatically updated
30304 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
30306         * sem_ch12.adb:
30307         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
30308         should not be done in Save/Restore_Scope_Stack, because it is performed
30309         locally.
30311         * sem_ch8.adb:
30312         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30313         whether use clauses should be removed/restored.
30315         * sem_ch8.ads:
30316         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30317         whether use clauses should be removed/restored.
30319 2003-10-26  Andreas Jaeger  <aj@suse.de>
30321         * Makefile.in: Remove duplicated lines.
30323 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
30325         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
30326         minimize the differences with ACT tree.
30328         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
30329         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
30330         Gnatvsn.Gnat_Static_Version_String to reduce differences between
30331         ACT and FSF trees.
30333 2003-10-24  Pascal Obry  <obry@gnat.com>
30335         PR ada/12014
30336         * adadecode.c (ostrcpy): New function.
30337         (__gnat_decode): Use ostrcpy of strcpy.
30338         (has_prefix): Set first parameter a const.
30339         (has_suffix): Set first parameter a const.
30340         Update copyright notice. Fix source name in header.
30341         Removes a trailing space.
30343 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
30345         * exp_disp.adb:
30346         Remove the test against being in No_Run_Time_Mode before generating a
30347         call to Register_Tag. It is redundant with the test against the
30348         availability of the function Register_Tag.
30350 2003-10-24  Vincent Celier  <celier@gnat.com>
30352         * g-catiio.adb: (Month_Name): Correct spelling of February
30354         * make.adb: (Mains): New package
30355         (Initialize): Call Mains.Delete
30356         (Gnatmake): Check that each main on the command line is a source of a
30357         project file and, if there are several mains, each of them is a source
30358         of the same project file.
30359         (Gnatmake): When a foreign language is specified in attribute Languages,
30360         no main is specified on the command line and attribute Mains is not
30361         empty, only build the Ada main. If there is no Ada main, just compile
30362         the Ada sources and their closure.
30363         (Gnatmake): If a main is specified on the command line with directory
30364         information, check that the source exists and, if it does, that the path
30365         is the actual path of a source of a project.
30367         * prj-env.adb:
30368         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
30369         Full_Path is True, return the full path instead of the simple file name.
30370         (Project_Of): New function
30372         * prj-env.ads:
30373         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
30374         defaulted to False.
30375         (Project_Of): New function
30377 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
30379         * Makefile.generic:
30380         Ensure objects of main project are always checked and rebuilt if needed.
30381         Set CC to gcc by default.
30382         Prepare new handling of link by creating a global archive (not activated
30383         yet).
30385         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30386         stringt.h: Update copyright notice. Remove trailing blanks.
30387         Fix source name in header.
30389 2003-10-24  Robert Dewar  <dewar@gnat.com>
30391         * sem_ch12.adb: Minor reformatting
30393         * sem_ch3.adb:
30394         Minor reformatting (including new function return style throughout)
30396         * sem_ch3.ads:
30397         Minor reformatting (including new function return style throughout)
30399 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
30401         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30402         stringt.h: Update copyright notice. Remove trailing blanks.
30403         Fix source name in header.
30405 2003-10-24  GNAT Script  <nobody@gnat.com>
30407         * Make-lang.in: Makefile automatically updated
30409 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
30411         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
30412         stringt.h: Convert to ISO C90 declarations and definitions.
30414 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
30416         PR ada/11978
30417         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
30418         External_Tag attribute definition clauses.
30420 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
30422         PR ada/7613
30423         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
30424         child unit, generate a fully qualified name to avoid spurious errors
30425         when the context contains renamings of different child units with
30426         the same simple name.
30428         * exp_dbug.ads: Add documentation on name qualification for renamings
30429         of child units.
30431 2003-10-23  Robert Dewar  <dewar@gnat.com>
30433         * g-regpat.ads, g-regpat.adb: Minor reformatting
30435 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
30437         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
30439 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30441         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
30442         Machine call.
30444         * urealp.h: (Machine): Update to proper definition.
30446 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
30448         * init.c, adaint.c: Minor reformatting.
30450 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
30452         * adaint.c (w32_epoch_offset): Define static const at file level.
30453         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
30454         rather than t_create, t_access in call to GetFileTime. Use union
30455         to convert between FILETIME and  unsigned long long.
30456         (__gnat_file_time_name): Test for invalid file handle.
30457         (__gnat_set_filetime_name): Support win32 targets using
30458         w32api SetFileTime.
30460 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
30462         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
30464         * ctrl_c.c (__gnat_int_handler): Remove declaration.
30466         * decl.c (creat_concat_name):  Const-ify prefix.
30468         * adaint.c: Include ctype.h if __MINGW32__.
30469         (__gnat_readlink): Mark arguments as possibly unused.
30470         (__gnat_symlink): Likewise.
30471         (__gnat_is_symbolic_link): Likewise.
30472         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
30473         declaration
30474         (__gnat_file_time_name): Don't declare struct stat statbuf when
30475         not needed.
30476         (__gnat_is_absolute_path): Add parenthesis around condition of
30477         'if' statement to avoid warning.
30478         (__gnat_plist_init): Specify void as parameter.
30479         (plist_enter): Likewise.
30480         (plist_leave): Likewise.
30481         (remove_handle): Make static. Initialize prev.
30483 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
30485         PR ada/10110
30486         * Makefile.in: Disable build of gnatpsta.
30487         * cstreams.c (__gnat_full_name): Minor improvements and clean up
30488         of previous change.
30490 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30492         * tracebak.c (MAX): Avoid redefinition warning.
30494         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
30495         Change msg to const char *.
30496         (__gnat_install_handler): Remove ss, unused.
30497         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
30498         to const char *.
30499         * cstreams.c (__gnat_full_name): Declare p only when used.
30500         (__gnat_full_name) [sgi] Return buffer.
30502 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
30504         * mingw32.h: New file.
30505         * gnat_wrapper.adb: New file.
30507 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
30509         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
30510         string match a pre compiled regular expression (the corresponding
30511         version of the function working on a raw regular expression)
30512         Fix typos in various comments
30513         Update copyright notice in spec
30515 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
30517         * exp_ch3.adb:
30518         (Component_Needs_Simple_Initialization): Return False when the type is a
30519         packed bit array. Revise spec comments to document this case.
30521         * exp_prag.adb:
30522         (Expand_Pragma_Import): Set any expression on the imported object to
30523         empty to avoid initializing imported objects (in particular this
30524         covers the case of zero-initialization of bit arrays).
30525         Update copyright notice.
30527 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
30529         * sem_ch12.adb:
30530         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
30531         a subunit is missing.
30532         (Instantiate_Subprogram_Body): If body of function is missing, set type
30533         of return expression explicitly in dummy body, to prevent cascaded
30534         errors when a subunit is missing.
30535         Fixes PR 5677.
30537         * sem_ch3.adb:
30538         (Access_Subprogram_Declaration): Verify that return type is valid.
30539         Fixes PR 8693.
30541         * sem_elab.adb:
30542         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
30543         generic.
30544         Fixes PR 12318.
30546         * sem_util.adb:
30547         (Corresponding_Discriminant): If the scope of the discriminant is a
30548         private type without discriminant, use its full view.
30549         Fixes PR 8247.
30551 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
30553         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
30554         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
30555         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
30556         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
30557         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
30558         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
30559         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30560         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
30561         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
30562         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
30563         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
30564         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
30565         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
30566         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
30567         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
30568         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
30569         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
30570         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
30571         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
30572         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
30573         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
30574         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
30575         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
30576         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
30577         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
30578         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
30579         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
30580         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
30581         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
30582         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
30583         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
30584         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
30585         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
30586         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
30587         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
30588         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
30589         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
30590         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
30591         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
30592         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
30593         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
30594         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
30595         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
30596         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
30597         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
30598         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
30599         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
30600         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
30601         vms_conv.ads, vms_conv.adb, vms_data.ads,
30602         vxaddr2line.adb: Files added. Merge with ACT tree.
30604         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
30605         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
30606         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
30607         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
30608         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
30609         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
30610         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30611         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
30612         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
30613         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
30615         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30616         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30617         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30618         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30619         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
30620         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
30621         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30622         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
30623         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
30624         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
30625         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30626         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
30627         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
30628         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30629         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
30630         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
30631         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
30632         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30633         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
30634         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
30635         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
30636         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30637         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30638         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30639         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
30640         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
30641         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
30642         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30643         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
30644         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30645         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30646         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
30647         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
30648         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
30649         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
30650         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
30651         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
30652         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
30653         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
30654         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
30655         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
30656         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
30657         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
30658         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
30659         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
30660         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
30661         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
30662         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
30663         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
30664         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
30665         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
30666         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
30667         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
30668         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
30669         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
30670         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
30671         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
30672         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
30673         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
30674         checks.adb, checks.ads, cio.c, comperr.adb,
30675         comperr.ads, csets.adb, cstand.adb, cstreams.c,
30676         debug_a.adb, debug_a.ads, debug.adb, decl.c,
30677         einfo.adb, einfo.ads, errout.adb, errout.ads,
30678         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
30679         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
30680         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
30681         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
30682         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
30683         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
30684         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
30685         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
30686         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
30687         fe.h, fmap.adb, fmap.ads, fname.adb,
30688         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
30689         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
30690         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
30691         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30692         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30693         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30694         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
30695         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
30696         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
30697         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
30698         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
30699         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
30700         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
30701         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
30702         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
30703         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
30704         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
30705         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
30706         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
30707         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
30708         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
30709         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
30710         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
30711         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
30712         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
30713         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
30714         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
30715         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
30716         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
30717         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
30718         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
30719         layout.adb, lib.adb, lib.ads, lib-list.adb,
30720         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
30721         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30722         link.c, live.adb, make.adb, make.ads,
30723         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
30724         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
30725         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
30726         misc.c, mkdir.c, mlib.adb, mlib.ads,
30727         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
30728         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
30729         namet.adb, namet.ads, namet.h, nlists.ads,
30730         nlists.h, nmake.adt, opt.adb, opt.ads,
30731         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
30732         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
30733         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30734         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
30735         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
30736         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
30737         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
30738         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
30739         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
30740         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
30741         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
30742         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
30743         prj-util.adb, prj-util.ads, raise.c, raise.h,
30744         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
30745         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
30746         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
30747         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
30748         scans.ads, scn.adb, scn.ads, s-crc32.adb,
30749         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
30750         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
30751         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
30752         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
30753         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
30754         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30755         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30756         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
30757         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
30758         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
30759         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
30760         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
30761         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
30762         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
30763         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30764         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
30765         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
30766         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
30767         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
30768         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
30769         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
30770         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
30771         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
30772         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
30773         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
30774         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
30775         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
30776         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
30777         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
30778         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
30779         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
30780         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
30781         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
30782         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
30783         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
30784         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
30785         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
30786         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30787         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30788         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
30789         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
30790         stringt.adb, stringt.ads, stringt.h, style.ads,
30791         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
30792         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
30793         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
30794         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
30795         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
30796         table.adb, table.ads, targparm.adb, targparm.ads,
30797         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
30798         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
30799         ttypes.ads, types.ads, types.h, uintp.adb,
30800         uintp.ads, uintp.h, uname.adb, urealp.adb,
30801         urealp.ads, urealp.h, usage.adb, utils2.c,
30802         utils.c, validsw.adb, validsw.ads, widechar.adb,
30803         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
30804         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
30805         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
30806         gnatvsn.ads: Merge with ACT tree.
30808         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
30810 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
30812         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
30813         (gnat_ug_vmx.info): Likewise.
30814         (gnat_ug_vxw.info): Likewise.
30815         (gnat_ug_wnt.info): Likewise.
30816         (gnat_rm.info): Likewise.
30817         (gnat-style.info): Likewise.
30819         * Make-lang.in (ada.install-info): Remove target.
30820         (info): New target.
30821         (install-info): Likewise.
30822         (gnat_ug_unx.info): Simplify rule.
30823         (gnat_ug_vmx.info): Likewise.
30824         (gnat_ug_vxw.info): Likewise.
30825         (gnat_ug_wnt.info): Likewise.
30826         (gnat_rm.info): Likewise.
30827         (gnat-style.info): Likewise.
30829 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
30831         * Make-lang.in: Replace uses of $(target_alias) with
30832         $(target_noncanonical).
30833         * ada/Makefile.in: Remove unused mention of $(target_alias).
30835 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
30837         * Make-lang.in (ada.info): Replace with ...
30838         (info): ... this.
30839         (ada.dvi): Replace with ...
30840         (dvi): ... this.
30842 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
30844         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
30845         initialize dconstp5 and dconstmp5.
30847 2003-09-28  Richard Henderson  <rth@redhat.com>
30849         * trans.c (tree_transform): Update call to expand_asm_operands.
30851 2003-09-21  Richard Henderson  <rth@redhat.com>
30853         * trans.c, utils.c: Revert.
30855 2003-09-21  Richard Henderson  <rth@redhat.com>
30857         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
30858         change to const.
30860 2003-09-04  Michael Matz  <matz@suse.de>
30862         * misc.c: Include "target.h".
30863         * Make-lang.in (misc.o): Add dependency on target.h.
30865 2003-09-03  DJ Delorie  <dj@redhat.com>
30867         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
30868         hook.
30870 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
30872         * Makefile.in: Update substitutions to match changes to
30873         configure.  Use include directives instead of @-insertions
30874         to read in host and target fragments.  Add a rule to
30875         regenerate ada/Makefile.
30877 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
30879         * lang-options.h: Remove.
30880         * lang.opt: Add help text.
30882 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
30884         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
30885         calls.
30887 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
30889         * misc.c (gnat_handle_option): Don't handle filenames.
30891 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
30893         * Make-lang.in: Replace PWD with PWD_COMMAND.
30894         * Makefile.adalib: Likewise.
30895         * Makefile.in: Likewise.
30897 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
30899         * misc.c (gnat_argv): Revert last change.
30900         (gnat_handle_option, gnat_init_options): Copy arguments.
30902 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
30904         * misc.c (gnat_argv): Make const.
30906 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
30908         * misc.c (save_argc, save_argv): Keep non-static!
30910 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
30912         * misc.c (save_argc, save_argv): Make static.
30913         (gnat_init_options): New prototype.
30914         (gnat_init_options): Update.
30916 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
30918         * gnat_ug.texi: Remove unlikely characters from @vars.
30919         * gnat_ug_vms.texi: Regenerate.
30921 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
30923         * misc.c (record_code_position): Adjust emit_note call.
30925 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
30927         * misc.c (gnat_handle_option): Don't check for missing arguments.
30929 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
30931         * utils.c (end_subprog_body): Adjust expand_function_end call.
30933 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
30935         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
30936         Bind_Main_Program.
30938 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
30940         * lang.opt: Declare Ada.
30941         * misc.c (gnat_init_options): Update.
30943 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
30945         * utils.c (begin_subprog_body): Adjust init_function_start call.
30947 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
30949         * Make-lang.in: Update to use options.c and options.h.
30950         * misc.c: Include options.h not aoptions.h.
30951         (gnat_handle_option): Abort on unrecognized switch.
30952         (gnat_init_options): Request Ada switches.
30954 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
30956         * lang.opt: Add -Wall.
30957         * misc.c (gnat_handle_option): Handle it.
30959 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
30961         * misc.c (gnat_handle_option): Fix warnings.
30963 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
30965         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
30967 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
30969         * Make-lang.in: Update to handle command-line options.
30970         * lang.opt: New file.
30971         * misc.c: Include aoptions.h.
30972         (cl_options_count, cl_options): Remove.
30973         (gnat_handle_option): New.
30974         (gnat_decode_option): Remove.
30975         (LANG_HOOKS_DECODE_OPTION): Remove.
30976         (LANG_HOOKS_HANDLE_OPTION): Override.
30978 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
30980         * init.c, misc.c, trans.c, utils.c: Remove dead code.
30982 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
30984         * Makefile.in: Replace "host_canonical" with "host" for autoconf
30985         substitution.
30987 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
30989         * Make-lang.in: Update.
30990         * misc.c: Include opts.h. Define cl_options_count and cl_options.
30992 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
30994         * misc.c (gnat_init_options): Update.
30996 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
30998         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
30999         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
31000         __attribute__ ((__unused__)).
31002 2003-06-05  Jan Hubicka  <jh@suse.cz>
31004         * Make-lang.in:  Add support for stageprofile and stagefeedback
31006 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
31008         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
31009         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
31011 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
31013         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
31014         Remove non-VMS directive.
31015         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
31016         alternatives.
31017         (Examples of gnatls Usage): Remove VMS alternative.
31019 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
31021         PR ada/9953
31022         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
31023         and turn ZCX_By_Default back to False since the underlying support
31024         is not quite there yet.
31026 2003-06-01  Andreas Jaeger  <aj@suse.de>
31028         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
31029         and ROUND_TYPE_SIZE_UNIT.
31031 2003-05-22   Geert Bosch <bosch@gnat.com>
31033         * gnat_rm.texi : Remove reference to Ada Core Technologies.
31035 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
31037         * trans.c (tree_transform): Use location_t and input_location
31038         directly.
31039         (build_unit_elab): Likewise.
31040         * utils.c (create_label_decl): Likewise.
31042 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
31044         * trans.c (tree_transform, build_unit_elab,
31045         set_lineno): Rename lineno to input_line.
31046         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
31047         end_subprog_body): Likewise.
31048         * utils2.c (build_call_raise): Likewise.
31050 2003-05-01  Laurent Guerby <guerby@acm.org>
31052         PR ada/10546
31053         * 5iosinte.ads: Increase pthread_cond_t size to match recent
31054         LinuxThread and NPTL version, merge from ACT.
31056 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
31058         * utils.c (convert): No need to clear TREE_CST_RTL.
31060 2003-04-23   Geert Bosch <bosch@gnat.com>
31062         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
31063         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
31064         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
31065         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
31066         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
31067         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
31068         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
31069         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
31070         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
31071         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
31072         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
31073         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
31074         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
31075         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
31076         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
31077         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
31078         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
31079         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
31080         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
31081         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31082         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31083         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
31084         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
31085         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
31086         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
31087         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
31088         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
31089         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
31090         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
31091         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
31092         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
31093         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
31094         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
31095         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
31096         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
31097         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
31098         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
31099         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
31100         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
31101         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
31102         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
31103         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
31104         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
31105         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
31106         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
31107         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
31108         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
31109         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
31110         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
31111         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
31112         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
31113         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
31114         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
31115         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
31116         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
31117         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
31118         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
31119         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
31120         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
31121         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
31122         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
31123         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
31124         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
31125         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
31126         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
31127         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
31128         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
31129         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
31130         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
31131         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
31132         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
31133         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
31134         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
31135         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
31136         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
31137         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
31138         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
31139         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
31140         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
31141         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
31142         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
31143         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
31144         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
31145         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
31146         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
31147         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
31148         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
31149         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
31150         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
31151         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
31152         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
31153         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
31154         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
31155         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
31156         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
31157         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
31158         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
31159         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
31160         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
31161         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
31162         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
31163         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
31164         ali.adb, ali.ads, alloc.ads, argv.c,
31165         atree.adb, atree.ads, atree.h, aux-io.c,
31166         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
31167         binde.adb, binde.ads, binderr.adb, binderr.ads,
31168         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
31169         butil.adb, butil.ads, cal.c, calendar.ads,
31170         casing.adb, casing.ads, ceinfo.adb, checks.adb,
31171         checks.ads, cio.c, comperr.adb, comperr.ads,
31172         config-lang.in, csets.adb, csets.ads, csinfo.adb,
31173         cstand.adb, cstand.ads, cuintp.c, debug.adb,
31174         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
31175         dec-io.ads, dec.ads, deftarg.c, directio.ads,
31176         einfo.adb, einfo.ads, elists.adb, elists.ads,
31177         elists.h, errno.c, errout.adb, errout.ads,
31178         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
31179         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
31180         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
31181         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
31182         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
31183         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
31184         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
31185         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
31186         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
31187         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
31188         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
31189         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
31190         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
31191         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
31192         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
31193         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
31194         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
31195         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
31196         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
31197         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
31198         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
31199         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
31200         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
31201         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
31202         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
31203         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
31204         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
31205         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
31206         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
31207         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
31208         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
31209         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
31210         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
31211         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
31212         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
31213         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
31214         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
31215         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
31216         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
31217         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
31218         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
31219         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
31220         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
31221         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
31222         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
31223         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
31224         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
31225         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
31226         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
31227         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
31228         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
31229         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
31230         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
31231         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
31232         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
31233         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
31234         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
31235         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
31236         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
31237         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
31238         lib.adb, lib.ads, live.adb, live.ads,
31239         machcode.ads, make.adb, make.ads, makeusg.adb,
31240         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
31241         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
31242         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
31243         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
31244         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
31245         mlib.ads, namet.adb, namet.ads, nlists.adb,
31246         nlists.ads, opt.adb, opt.ads, osint-b.adb,
31247         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
31248         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
31249         osint.ads, output.adb, output.ads, par-ch10.adb,
31250         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
31251         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
31252         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
31253         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
31254         par-tchk.adb, par-util.adb, par.adb, par.ads,
31255         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
31256         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
31257         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
31258         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
31259         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
31260         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
31261         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
31262         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
31263         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
31264         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
31265         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
31266         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
31267         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
31268         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
31269         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
31270         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
31271         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
31272         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
31273         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
31274         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
31275         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
31276         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
31277         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
31278         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
31279         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
31280         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
31281         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
31282         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
31283         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
31284         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
31285         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
31286         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
31287         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
31288         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
31289         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
31290         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
31291         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
31292         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
31293         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
31294         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
31295         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
31296         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
31297         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
31298         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
31299         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
31300         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
31301         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
31302         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
31303         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
31304         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
31305         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
31306         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
31307         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
31308         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
31309         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
31310         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
31311         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
31312         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
31313         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
31314         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
31315         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
31316         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
31317         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
31318         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
31319         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
31320         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
31321         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
31322         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
31323         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
31324         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
31325         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
31326         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
31327         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
31328         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
31329         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
31330         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
31331         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
31332         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
31333         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
31334         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31335         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
31336         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
31337         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
31338         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31339         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
31340         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
31341         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
31342         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
31343         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
31344         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
31345         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
31346         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
31347         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
31348         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
31349         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
31350         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
31351         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
31352         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
31353         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
31354         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
31355         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
31356         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
31357         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
31358         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
31359         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
31360         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
31361         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
31362         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
31363         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
31364         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
31365         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
31366         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
31367         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
31368         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
31369         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
31370         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
31371         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
31372         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
31373         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
31374         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
31375         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
31376         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
31377         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
31378         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
31379         snames.ads, sprint.adb, sprint.ads, stand.adb,
31380         stand.ads, stringt.adb, stringt.ads, style.adb,
31381         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
31382         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
31383         switch-m.ads, switch.adb, switch.ads, system.ads,
31384         table.adb, table.ads, targparm.adb, targparm.ads,
31385         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
31386         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
31387         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
31388         ttypef.ads, ttypes.ads, types.adb, types.ads,
31389         uintp.adb, uintp.ads, uname.adb, uname.ads,
31390         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
31391         usage.adb, usage.ads, validsw.adb, validsw.ads,
31392         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
31393         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
31394         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
31395         formatting and other trivial changes from ACT.
31397 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
31399         * gigi.h, utils2.c (build_constructor):
31400         Rename gnat_build_constructor. Use build_constructor.
31401         * decl.c (gnat_to_gnu_entity)
31402         * trans.c (tree_transform, pos_to_constructor, extract_values)
31403         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
31404         (unchecked_convert)
31405         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
31406         (fill_vms_descriptor):
31407         Update to match.
31409 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
31411         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
31412         * misc.c (gnat_tree_size): New function.
31413         (LANG_HOOKS_TREE_SIZE): Override.
31415 2003-04-03  Jason Merrill  <jason@redhat.com>
31417         * misc.c (gnat_adjust_rli): #if 0.
31419 2003-03-31   Geert Bosch <bosch@gnat.com>
31421         PR ada/10020
31422         * link.c : Fix misspelled "const" keyword
31424 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
31426         PR c++/7086
31427         * utils2.c: Adjust calls to put_var_into_stack.
31429 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
31431         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
31433 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
31435         * misc.c (gnat_init): Update for new prototype.
31437 2003-03-05  Olivier Hainque  <hainque@gnat.com>
31439         ada/9961
31440         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
31441         warning, and fix return type for the IN_RTS && !SJLJ case.
31443 2003-03-04  Tom Tromey  <tromey@redhat.com>
31445         * Make-lang.in (ada.tags): New target.
31447 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
31449         ada/9911
31450         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
31451         wrapper, which name remains constant whatever underlying GCC
31452         scheme.
31454         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
31455         the stable interface needed for a-except.
31457 2003-03-02  Andreas Jaeger  <aj@suse.de>
31459         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31460         gnat_ug_wnt.texi: Regenerate.
31462 2003-03-02  Laurent Guerby <guerby@acm.org>
31464         * Makefile.in (install-gnatlib): Match previous change there
31465         so it works.
31467 2003-02-28  Andreas Schwab  <schwab@suse.de>
31469         * Make-lang.in (install-gnatlib): Change to ada directory before
31470         running make instead of using ada/Makefile directly.
31472 2003-02-18  Ben Elliston  <bje@redhat.com>
31474         Part of PR ada/9406
31475         * gnat_ug.texi (Binder output file): Grammar fix.
31477 2003-02-18  Ben Elliston  <bje@redhat.com>
31479         PR other/7350
31480         * 5qtaprop.adb (Sleep): Fix typo in comment.
31482 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
31484         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
31485         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31486         gnat_ug_wnt.texi: Regenerate.
31488 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
31490         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
31491         be created if necessary.
31492         (ada.install-common): Let $(DESTDIR)$(bindir) be created
31493         if necessary.  Remove erroneous and redundant gnatchop
31494         installation commands.  Test for gnatdll before attempting
31495         to install it.
31496         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
31497         and gnatdll from all plausible locations.
31499 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
31501         * utils2.c (build_unary_op): Don't check flag_volatile.
31502         * gnat_ug.texi: Remove -fvolatile from example.
31503         * gnat_ug_vxw.texi: Likewise.
31505 2003-01-29  Laurent Guerby <guerby@acm.org>
31507         PR ada/8344
31508         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
31509         * Makefile.in: match previous change.
31510         * Make-lang.in: match previous change.
31512 2003-01-29      Joel Sherrill <joel@OARcorp.com>
31514         * 5rosinte.ads: Add SIGXCPU.
31515         * 5rtpopsp.adb: New file.
31516         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
31517         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
31518         specific file 5rtpopsp.adb.
31519         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
31520         is likely needed for all newlib targets.
31521         * init.c: Add RTEMS specific version of __gnat_initialize().
31523 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31525         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
31527 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31529         * init.c (__gnat_error_handler): Make msg const.
31531         * gmem.c (convert_addresses): Move declaration ...
31532         * adaint.h: ... here.
31533         * adaint.c (convert_addresses): Adapt addrs type to match
31534         prototype.
31536         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
31538 2003-01-24  Andreas Schwab  <schwab@suse.de>
31540         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
31541         size_t to avoid warning.
31543 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
31545         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
31547 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
31549         * gnat_rm.texi: Remove RCS version number.
31551         * ada-tree.h (union lang_tree_node): Add chain_next option.
31553 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
31555         * Make-lang.in (ada.install-info, ada.install-common,
31556         ada.uninstall): Prepend $(DESTDIR) to the destination
31557         directory in all (un)installation commands.
31558         * Makefile.in (install-gnatlib, install-rts): Ditto.
31560 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
31562         * gnat_rm.texi, gnat_ug.texi: Use @copying.
31563         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31564         gnat_ug_wnt.texi: Regenerate.
31566 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
31568         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
31569         only.
31570         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
31571         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
31572         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
31573         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
31574         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
31575         $(srcdir)/doc/include/gcc-common.texi.
31577 2002-12-15   Geert Bosch <bosch@gnat.com>
31579         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
31581 2002-12-14   Geert Bosch <bosch@gnat.com>
31583         PR ada/5690
31584         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
31585         case of a body created for a Renaming_As_Body, on which
31586         conformance checks are not performed.
31588 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
31590         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
31591         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
31592         not already included.
31593         * Make-lang.in: Update dependencies.
31595 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
31596         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
31597         solution to buffer overflow bug on GNU/Linux.
31599 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
31601         PR ada/5856
31602         PR ada/6919
31603         * bindgen.adb: Remove all references to Public_Version.
31604         * comperr.adb: Remove all references to Public_Version and
31605         GNATPRO_Version; correct bug reporting instructions.
31606         * comperr.ads: Change to match bug box.
31607         * gnatvsn.ads: Remove all references to Public version and
31608         GNATPRO version.
31610 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
31612         PR ada/6919
31613         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
31614         GNU/Linux.
31616         PR ada/6558
31617         * config-lang.in: Remove diff_excludes.
31619 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
31621         PR ada/8358
31622         * trans.c (gnu_pending_elaboration_lists): New GC root.
31623         (build_unit_elab): Use..
31625 2002-10-30   Geert Bosch <bosch@gnat.com>
31627         PR ada/6558
31628         * misc.c : Include optabs.h
31630         * Make-lang.in (misc.o): Add dependency on optabs.h
31632 2002-10-29   Geert Bosch <bosch@gnat.com>
31634         PR ada/6558
31635         * Make-lang.in (gnatbind): Depend on CONFIG_H
31637 2002-10-29  Geert bosch  <bosch@gnat.com>
31639         PR ada/6558
31640         * misc.c: Unrevert misc.c (1.13)
31642 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
31644         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
31645         maintainership comments.
31647 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
31649         PR ada/5904
31650         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
31651         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
31652         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
31653         7staprop.adb: Correct statements in comments about
31654         maintainership of GNAT.
31656         PR ada/5904
31657         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
31658         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
31659         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
31660         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
31661         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
31662         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
31663         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
31664         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
31665         comments about maintainership of GNAT.
31667         PR ada/6919 (forward port of patch for PR ada/5904)
31668         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
31669         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
31670         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
31671         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
31672         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
31673         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
31674         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
31675         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
31676         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
31677         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
31678         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
31679         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
31680         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
31681         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
31682         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
31683         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
31684         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
31685         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
31686         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
31687         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
31688         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
31689         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
31690         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
31691         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
31692         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
31693         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
31694         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
31695         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
31696         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
31697         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
31698         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
31699         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
31700         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
31701         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
31702         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
31703         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
31704         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
31705         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
31706         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
31707         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
31708         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
31709         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
31710         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
31711         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
31712         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
31713         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
31714         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
31715         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
31716         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
31717         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
31718         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
31719         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
31720         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
31721         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
31722         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
31723         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
31724         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
31725         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
31726         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
31727         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
31728         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
31729         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
31730         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
31731         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
31732         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
31733         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
31734         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
31735         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
31736         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
31737         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
31738         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
31739         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
31740         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
31741         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
31742         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
31743         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
31744         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
31745         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
31746         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
31747         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
31748         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
31749         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
31750         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
31751         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
31752         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
31753         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
31754         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
31755         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
31756         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
31757         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
31758         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
31759         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
31760         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
31761         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
31762         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
31763         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
31764         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
31765         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
31766         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
31767         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
31768         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
31769         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
31770         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
31771         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
31772         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
31773         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
31774         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
31775         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
31776         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
31777         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
31778         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
31779         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
31780         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
31781         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
31782         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
31783         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
31784         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
31785         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
31786         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
31787         par-endh.adb par-labl.adb par-load.adb par-prag.adb
31788         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
31789         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
31790         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
31791         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
31792         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
31793         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
31794         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
31795         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
31796         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
31797         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
31798         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
31799         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
31800         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
31801         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
31802         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
31803         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
31804         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
31805         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
31806         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
31807         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
31808         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
31809         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
31810         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
31811         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
31812         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
31813         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
31814         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
31815         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
31816         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
31817         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
31818         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
31819         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
31820         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
31821         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
31822         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
31823         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
31824         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
31825         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
31826         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
31827         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
31828         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
31829         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
31830         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
31831         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
31832         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
31833         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
31834         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
31835         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
31836         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
31837         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
31838         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
31839         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
31840         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
31841         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
31842         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
31843         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
31844         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
31845         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
31846         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
31847         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
31848         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
31849         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
31850         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
31851         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
31852         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
31853         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
31854         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
31855         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
31856         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
31857         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
31858         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
31859         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
31860         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
31861         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
31862         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
31863         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
31864         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
31865         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
31866         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
31867         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
31868         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
31869         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
31870         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
31871         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
31872         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
31873         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
31874         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
31875         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
31876         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
31877         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
31878         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
31879         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
31880         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
31881         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
31882         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
31883         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
31884         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
31885         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
31886         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
31887         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
31888         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
31889         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
31890         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
31891         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
31892         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
31893         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
31894         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
31895         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
31896         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
31897         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
31898         stringt.ads stringt.h style.adb style.ads stylesw.adb
31899         stylesw.ads switch.adb switch.ads sysdep.c system.ads
31900         table.adb table.ads targparm.adb targparm.ads targtyps.c
31901         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
31902         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
31903         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
31904         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
31905         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
31906         usage.ads utils.c utils2.c validsw.adb validsw.ads
31907         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
31908         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
31909         xtreeprs.adb: Correct statements in comments about maintainership
31910         of GNAT.
31912 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
31914         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
31915         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
31916         * gnatvsn.ads: Gnat_Version_String is now a function.
31917         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
31918         copy the C version_string into a String and return it.
31919         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
31920         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
31921         Remove pragma Ident (Gnat_Version_String).  If this was the
31922         sole use of package Gnatvsn, remove the with statement too.
31923         * gnat1drv.adb: Tweak -gnatv output.
31925 2002-09-17  Richard Henderson  <rth@redhat.com>
31927         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
31928         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
31929         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
31930         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
31931         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
31932         and real_2expN instead of a loop.
31933         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
31934         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
31936 2002-08-25  Andre Leis <a.leis@gmx.net>
31937             David Billinghurst (David.Billinghurst@riotinto.com>
31939         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31941 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31943         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31944         Remove $(CONFIG_H) dependency.
31946 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
31948         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
31950 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31952         * adadecode.c (ada_demangle): Use xstrdup in lieu of
31953         xmalloc/strcpy.
31954         * misc.c (gnat_decode_option): Likewise.
31956 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
31958         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
31959         function approach did not work well because of a side effect (the
31960         function call could reallocate the table which was being indexed
31961         using its result). Fixes ada/4851. [RESURRECTED]
31963 2002-07-01  Roger Sayle  <roger@eyesopen.com>
31965         * ada/utils.c (builtin_function): Accept an additional parameter.
31967 2002-06-28  Andreas Jaeger  <aj@suse.de>
31969         PR ada/7144
31970         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
31971         <adi@thur.de>.
31973 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31975         * Makefile.in (SHELL): Set to @SHELL@.
31977 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31979         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
31980         array size calculation.
31982 2002-06-04  Andreas Jaeger  <aj@suse.de>
31984         * Make-lang.in (gnatbind): Readd rule that has been lost in last
31985         patch.
31987 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
31989         Merge from pch-branch:
31991         * config-lang.in (gtfiles): Add ada-tree.h.
31992         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
31993         (SET_TYPE_MODULUS): New.
31994         (SET_TYPE_INDEX): New.
31995         (SET_TYPE_DIGITS_VALUE): New.
31996         (SET_TYPE_RM_SIZE): New.
31997         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
31998         (SET_TYPE_ADA_SIZE): New.
31999         (SET_TYPE_ACTUAL_BOUNDS): New.
32000         (SET_DECL_CONST_CORRESPONDING_VAR): New.
32001         (SET_DECL_ORIGINAL_FIELD): New.
32002         (TREE_LOOP_ID): Correct typo.
32003         * decl.c: Use new macros.
32004         * utils.c: Include debug.h, use new macros.
32005         * utils2.c: Use new macros.
32007         * ada-tree.h: Update all macros for new tree description.
32008         (struct tree_loop_id): New.
32009         (union lang_tree_node): New.
32010         (struct lang_decl): New.
32011         (struct lang_type): New.
32012         * misc.c (gnat_mark_tree): Delete.
32013         (LANG_HOOKS_MARK_TREE): Delete.
32014         * trans.c (tree_transform): No longer any need to cast
32015         for TREE_LOOP_ID.
32017         * utils.c (struct language_function): New dummy structure.
32019         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
32020         (misc.o): Likewise.
32021         (utils.o): Likewise; also gtype-ada.h.
32022         * Make-lang.in (gnat1): Add dependency on s-gtype.
32023         (gnatbind): Add dependency on $(CONFIG_H).
32024         * utils.c: Correct last #include.
32025         (stuct e_stack): Remove unnecessary 'static'.
32026         (mark_e_stack): Remove unused prototype.
32028         * scn-nlit.adb: Remove whitespace after version number to
32029         keep lines under 80 chars.
32030         * snames.adb: Likewise.
32031         * treepr.ads: Likewise.
32033         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
32034         (misc.o): Likewise.
32035         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
32036         * config-lang.in (gtfiles): New.
32037         * decl.c: Use gengtype for roots.
32038         * gigi.h: Use gengtype for roots.
32039         * trans.c: Use gengtype for roots.
32040         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
32042 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
32044         * misc.c (gnat_init): Adjust setting of internal_error_function.
32046 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
32048         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
32049         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32050         gnat_ug_wnt.texi: Regenerate.
32052 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
32054         * 5ntaprop.adb (with System.OS_Primitives): Remove.
32056         * cstreams.c (max_path_len): Move from here ...
32057         * adaint.c (__gnat_max_path_len): ... to here.
32058         * adaint.c (__gnat_max_path_len): Declare.
32059         * g-dirope.adb (Max_Path): Adjust.
32060         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
32061         * i-cstrea.ads (max_path_len): Adjust.
32062         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
32063         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
32065         * Makefile.in, Make-lang.in: Documentation is now built in
32066         Make-lang.in.  Store Info and generated Texinfo files in the
32067         source directory.
32068         * gnat_ug.texi: Remove CVS keywords, correct version number.
32069         Set file name correctly.
32071         * gnat_ug_*.texi: Add.
32072         * .cvsignore: Ignore generated Texinfo files.
32074 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
32076         * ada.h: Add MI guard macro.
32077         (SUBTYPE): Define constants with an anonymous enum, not static
32078         const variables.
32079         (IN): Cast constants to appropriate type before use.
32081 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
32083         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
32084         (experimental)".
32086 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32088         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
32089         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
32090         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
32091         (ALL_ADA_CFLAGS): Likewise.
32092         (ADA_INCLUDES): Likewise.
32093         Adapt for new working dir.
32094         (GNATBIND): Use Makefile.in version.
32095         (.SUFFIXES): Copy from Makefile.in.
32096         (ada-warn): Define.
32097         (.adb.o, .ads.o): Copy from Makefile.in.
32098         Added $(OUTPUT_OPTION).
32099         (GNAT1_C_OBJS): Moved from Makefile.in.
32100         Prefix with ada subdir.
32101         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
32102         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
32103         Adapt for new working dir.
32104         (EXTRA_GNATBIND_OBJS): Likewise.
32105         (ADA_BACKEND): Moved from Makefile.in.
32106         Renamed to avoid conflict with global BACKEND.
32107         Use that one.
32108         (TARGET_ADA_SRCS): Moved from Makefile.in.
32109         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
32110         Use ADA_BACKEND.
32111         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
32112         (ada_extra_files): Moved from Makefile.in.
32113         Prefix with ada subdir.
32114         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
32115         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
32116         (ada/nmake.ads): Likewise.
32117         (update-sources): Moved from Makefile.in.
32118         Prefix with ada subdir.
32119         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
32120         (ADA_TREE_H): Likewise.
32121         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
32122         (ada/memtrack.o): Likewise.
32123         (ada/adadecode.o): Likewise.
32124         Update dependencies.
32125         (ada/adaint.o): New.
32126         (ada/argv.o): Moved from Makefile.in.
32127         Prefix with ada subdir.
32128         Update dependencies.
32129         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
32130         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
32131         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
32132         Prefix with ada subdir.
32133         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
32134         (GNAT DEPENDENCIES): Regenerate.
32135         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
32136         toplevel Makefile.in.
32137         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
32138         (TARGET_ADA_SRCS): Removed.
32139         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
32140         (GNATBIND_OBJS): Likewise.
32141         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
32142         (BACKEND): Removed.
32143         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
32144         (TREE_H): Likewise.
32145         (ada_extra_files): Likewise.
32146         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
32147         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
32148         (update-sources): Likewise.
32149         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
32150         (ADA_TREE_H): Likewise.
32151         (adadecoce.o): Likewise.
32152         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
32153         (GNAT DEPENDENCIES): Likewise.
32155 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32157         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
32158         * Makefile.in: Likewise.
32160 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32162         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
32163         Restore $(CONFIG_H) and prefix.o dependencies.
32164         (ada.stage[1-4]): Depend on stage?-start.
32166         * Makefile.in (b_gnatb.c): Depend on interfac.o.
32168 2002-05-02  Jim Wilson  <wilson@redhat.com>
32170         * utils.c (finish_record_type): Change record_size to record_type.
32172 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
32174         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
32175         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
32176         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
32178 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
32180         * misc.c (gnat_parse_file): Update.
32182 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
32184         * misc.c (gnat_init): Don't set lang_attribute_common.
32186 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
32188         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
32190 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
32192         * gnat_ug.texi: New file.
32194         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
32195         instead of gfdl.texi
32197         * xgnatug.adb, ug_words: New files.
32199         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
32200         gnat_rm and gnat-style manuals.
32202 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
32204         * gigi.h (incomplete_type_error): Remove.
32205         * utils.c (incomplete_type_error): Remove.
32207 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
32209         * trans.c (tree_transform): Add has_scope argument to
32210         expand_start_stmt_expr.
32212 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
32214         * gigi.h (truthvalue_conversion): Rename.
32215         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
32216         * trans.c (tree_transform): Update.
32217         * utils2.c (truthvalue_conversion): Rename, update.
32218         (build_binary_op, build_unary_op): Update.
32220 2002-04-04  Laurent Guerby  <guerby@acm.org>
32222         * make.adb: Implement -margs, remove restriction about file name placement.
32223         * makeusg.adb: Documentation update.
32224         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
32225         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
32227 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
32229         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
32230         (builtin_function): Similarly.
32232 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
32234         * decl.c (gnat_to_gnu_entity): Update.
32235         * gigi.h (mark_addressable): Rename.
32236         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
32237         * trans.c (tree_transform): Update.
32238         * utils.c (create_var_decl): Update.
32239         * util2.c (build_binary_op, build_unary_op,
32240         fill_vms_descriptor): Update.
32241         (mark_addressable): Rename, update.
32243 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
32245         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
32246         Rename.
32247         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
32248         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
32249         * trans.c (tree_transform, convert_with_check): Update.
32250         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
32251         Rename.
32253 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
32255         * gigi.h (finish_incomplete_decl): Rename.
32256         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
32257         * utils.c (gnat_init_decl_processing): Don't set hook.
32258         (finish_incomplete_decl): Rename.
32260 2002-03-29  Andreas Schwab  <schwab@suse.de>
32262         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
32263         directory.
32265 2001-03-28  Robert Dewar <dewar@gnat.com>
32267         * checks.ads:
32268         (Remove_Checks): New procedure
32270         * checks.adb:
32271         (Remove_Checks): New procedure
32273         * exp_util.adb:
32274         Use new Duplicate_Subexpr functions
32275         (Duplicate_Subexpr_No_Checks): New procedure
32276         (Duplicate_Subexpr_No_Checks_Orig): New procedure
32277         (Duplicate_Subexpr): Restore original form (checks duplicated)
32278         (Duplicate_Subexpr): Call Remove_Checks
32280         * exp_util.ads:
32281         (Duplicate_Subexpr_No_Checks): New procedure
32282         (Duplicate_Subexpr_No_Checks_Orig): New procedure
32283         Add 2002 to copyright notice
32285         * sem_util.adb: Use new Duplicate_Subexpr functions
32287         * sem_eval.adb:
32288         (Eval_Indexed_Component): This is the place to call
32289         Constant_Array_Ref and to replace the value. We simply merge
32290         the code of this function in here, since it is now no longer
32291         used elsewhere. This fixes the problem of the back end not
32292         realizing we were clever enough to see that this was
32293         constant.
32294         (Expr_Val): Remove call to Constant_Array_Ref
32295         (Expr_Rep_Val): Remove call to Constant_Array_Ref
32296         Minor reformatting
32297         (Constant_Array_Ref): Deal with string literals (patch
32298         suggested by Zack Weinberg on the gcc list)
32300 2001-03-28  Ed Schonberg <schonber@gnat.com>
32302         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
32303         Duplicate_Subexpr_Move_Checks.
32305         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
32306         Duplicate_Subexpr_Move_Checks.
32308         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
32309         value of array exists before retrieving it (it may a private
32310         protected component in a function).
32312 2002-03-28   Geert Bosch <bosch@gnat.com>
32314         * prj-pp.adb : New file.
32316         * prj-pp.ads : New file.
32318 2002-03-28  Andreas Jaeger  <aj@suse.de>
32320         * Makefile.in (stamp-sdefault): Fix path for Makefile.
32322 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
32324         * misc.c (gnat_expand_expr): Move prototype.
32326 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
32328         * misc.c (insert_default_attributes): Remove.
32330 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
32332         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
32333         (gnat_init): Don't set hook.
32334         (gnat_expand_expr): Fix prototype.
32336 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
32338         * misc.c (ggc_p): Remove.
32340 2002-03-27  Geert Bosch  <bosch@gnat.com>
32342         * prj-makr.ads, prj-makr.adb : New files.
32344 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
32346         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
32347         (lang_mark_tree): Make static, rename.
32349 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
32351         * misc.c (maybe_build_cleanup): Remove.
32353 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
32355         * gigi.h (yyparse): Remove.
32357 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
32359         * gnat_rm.texi: Sync with ACT version.
32360           (From Ben Brosgol <brosgol@gnat.com>)
32362 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
32364         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
32365         (gnat_init): Remove old hook.
32367 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
32369         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
32370         (yyparse): Rename gnat_parse_file.
32372 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
32374         Delete all lines containing "$Revision:".
32375         * xeinfo.adb: Don't look for revision numbers.
32376         * xnmake.adb: Likewise.
32377         * xsinfo.adb: Likewise.
32378         * xsnames.adb: Likewise.
32379         * xtreeprs.adb: Likewise.
32381 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32383         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
32384         gnat_tree_code_name): Delete.
32385         (tree_code_type, tree_code_length, tree_code_name): Define.
32386         (gnat_init): Don't try to copy into the various tree_code
32387         arrays.
32389 2002-03-11  Richard Henderson  <rth@redhat.com>
32391         * Makefile.in (.NOTPARALLEL): Add fake tag.
32393 2002-03-07  Geert Bosch  <bosch@gnat.com>
32395         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
32396         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
32397         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
32398         switch-m.adb, switch-m.ads : New files.
32400 2002-03-07  Geert Bosch  <bosch@gnat.com>
32402         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
32403         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
32404         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
32405         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
32406         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
32407         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
32408         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
32409         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
32410         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
32411         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
32412         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
32413         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
32414         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
32415         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
32416         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
32417         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
32418         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
32419         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
32420         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32421         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
32422         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
32423         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
32424         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
32425         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
32426         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
32427         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
32428         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
32429         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
32430         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
32431         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
32432         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
32433         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
32434         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
32435         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
32436         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32437         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
32438         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32439         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
32440         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
32441         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
32442         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
32443         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
32444         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
32445         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
32446         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
32447         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
32448         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
32449         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
32450         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
32451         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
32452         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
32453         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
32454         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
32455         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
32456         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
32457         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
32458         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
32459         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
32460         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
32461         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
32462         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
32463         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
32464         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
32465         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
32466         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
32467         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
32468         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
32469         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
32470         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
32471         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
32472         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
32473         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
32474         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
32475         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32476         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32477         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32478         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
32479         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32480         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
32481         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32482         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
32483         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
32484         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
32485         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
32486         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
32487         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
32488         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
32489         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
32490         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
32491         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
32492         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
32493         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
32494         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
32495         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
32496         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
32497         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
32498         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
32500         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
32501         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
32502         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
32503         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
32505         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
32506         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
32508         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
32509         to mdll-fil.ad[bs] and mdll-util.ad[bs]
32511         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
32512         from mdllfile.ad[bs] and mdlltool.ad[bs]
32514 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32516         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
32517         lieu of explicit sizeof/sizeof.
32519 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
32521         * misc.c (copy_lang_decl): Remove.
32523 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
32525         * misc.c: Delete traditional-mode-related code copied from the
32526         C front end but not used, or used only to permit the compiler
32527         to link.
32529 2002-02-07  Richard Henderson  <rth@redhat.com>
32531         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
32532         * adaint.h (__gnat_to_gm_time): Update prototype.
32534 2002-01-30  Richard Henderson  <rth@redhat.com>
32536         * trans.c (tree_transform) [N_Loop_Statement]: Use
32537         expand_exit_loop_top_cond.
32539 2001-12-23  Richard Henderson  <rth@redhat.com>
32541         * utils.c (end_subprog_body): Push GC context around
32542         rest_of_compilation for nested functions.
32544 2001-12-23  Richard Henderson  <rth@redhat.com>
32546         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
32548 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
32550         * gnat-style.texi (Declarations and Types): Remove ancient style
32551         rule which was mandated by code generation issues.
32553         * gnat-style.texi (header): Add @dircategory, @direntry.
32554         (title page): Remove date.
32555         (general) Add @./@: where approriate, and two spaces after the
32556         full stop at the end of a sentence.  Use @samp markup when
32557         referring concrete lexical entities (keywords, attribute names
32558         etc.), and @syntax for ARM grammar elements. Use @r for English
32559         text in comments.  Use @emph for emphasis.  Change "if-statements"
32560         etc. to "if statements" (without @samp). Break long lines.  Make
32561         casing of section names consistent.
32562         (Identifiers): Use @samp markup for variable names.
32563         (Comments): Use @samp markup for comment characters. Line-end
32564         comments may follow any Ada code, not just statements.  Fix
32565         misspelling of "Integer" as "integer".
32566         (Loop statements): Do not use variable name "I", use "J".
32567         (Subprogram Declarations): Document alignment.
32568         (Subprogram Bodies, Block statements): Document empty line before
32569         "begin".
32571 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
32573         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
32574         function approach did not work well because of a side effect (the
32575         function call could reallocate the table which was being indexed
32576         using its result). Fixes ada/4851.
32578 2001-12-19  Robert Dewar <dewar@gnat.com>
32580         * bindgen.adb: Minor reformatting
32582         * cstand.adb: Minor reformatting
32584         * fmap.adb: Minor reformatting
32585         Change name from Add for Add_To_File_Map (Add is much too generic)
32586         Change Path_Name_Of to Mapped_Path_Name
32587         Change File_Name_Of to Mapped_File_Name
32588         Fix copyright dates in header
32590         * fmap.ads:
32591         Change name from Add for Add_To_File_Map (Add is much too generic)
32592         Change Path_Name_Of to Mapped_Path_Name
32593         Change File_Name_Of to Mapped_File_Name
32594         Fix copyright dates in header
32596         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
32597         Add use clause for Fmap.
32599         * make.adb: Minor reformatting
32601         * osint.adb: Minor reformatting.  Change of names in Fmap.
32602         Add use clause for Fmap.
32604         * prj-env.adb: Minor reformatting
32606         * prj-env.ads: Minor reformatting
32608         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
32609         error found (there were odd exceptions to this general rule in
32610         -gnatec/-gnatem processing)
32612 2001-12-19  Olivier Hainque <hainque@gnat.com>
32614         * raise.c (__gnat_eh_personality): Exception handling personality
32615         routine for Ada.  Still in rough state, inspired from the C++ version
32616         and still containing a bunch of debugging artifacts.
32617         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
32618         inspired from the C++ library.
32620         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
32621         exception handling integration.
32623 2001-12-19  Arnaud Charlet <charlet@gnat.com>
32625         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
32626         (HIE_SOURCES): Add s-secsta.ad{s,b}.
32627         (HIE_OBJS): Add s-fat*.o
32628         (RAVEN_SOURCES): Remove files that are no longer required. Add
32629         interrupt handling files.
32630         (RAVEN_MOD): Removed, no longer needed.
32632 2001-12-19  Robert Dewar <dewar@gnat.com>
32634         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
32635         Add 2001 to copyright date
32637         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
32638         need to force universal inlining for these cases.
32640 2001-12-19  Arnaud Charlet <charlet@gnat.com>
32642         * s-taprob.adb: Minor clean ups so that this unit can be used in
32643         Ravenscar HI.
32645         * exp_ch7.adb: Allow use of secondary stack in HI mode.
32646         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
32648 2001-12-19  Vincent Celier <celier@gnat.com>
32650         * prj-tree.ads (Project_Node_Record): Add comments for components
32651         Pkg_Id and Case_Insensitive.
32653 2001-12-19  Pascal Obry <obry@gnat.com>
32655         * g-socket.adb: Minor reformatting. Found while reading code.
32657 2001-12-19  Robert Dewar <dewar@gnat.com>
32659         * prj-tree.ads: Minor reformatting
32661 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
32663         * config-lang.in (diff_excludes): Remove.
32665 2001-12-17  Ed Schonberg <schonber@gnat.com>
32667         * sem_res.adb (Resolve_Selected_Component): do not generate a
32668         discriminant check if the selected component is a component of
32669         the argument of an initialization procedure.
32671         * trans.c (tree_transform, case of arithmetic operators): If result
32672         type is private, the gnu_type is the base type of the full view,
32673         given that the full view itself may be a subtype.
32675 2001-12-17  Robert Dewar <dewar@gnat.com>
32677         * sem_res.adb: Minor reformatting
32679         * trans.c (tree_transform, case N_Real_Literal): Add missing third
32680         parameter in call to Machine (unknown horrible effects from this
32681         omission).
32683         * urealp.h: Add definition of Round_Even for call to Machine
32684         Add third parameter for Machine
32686 2001-12-17  Ed Schonberg <schonber@gnat.com>
32688         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
32689         predefined units in No_Run_Time mode.
32691 2001-12-17  Richard Kenner <kenner@gnat.com>
32693         * misc.c (insn-codes.h): Now include.
32695 2001-12-17  Olivier Hainque <hainque@gnat.com>
32697         * a-except.adb: Preparation work for future integration of the GCC 3
32698         exception handling mechanism
32699         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
32700         to factorize previous code sequences and make them externally callable,
32701         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
32702         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
32703         Use the new notification routines.
32705 2001-12-17  Emmanuel Briot <briot@gnat.com>
32707         * prj-tree.ads (First_Choice_Of): Document the when others case
32709 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32711         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
32712         HI-E mode, in order to support Ravenscar profile properly.
32714         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
32715         mode on 32 bits targets.
32717 2001-12-17  Vincent Celier <celier@gnat.com>
32719         * fmap.adb: Initial version.
32721         * fmap.ads: Initial version.
32723         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
32724         If search is successfully done, add to mapping.
32726         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
32728         * make.adb:
32729         (Gnatmake): Add new local variable Mapping_File_Name.
32730          Create mapping file when using project file(s).
32731          Delete mapping file before exiting.
32733         * opt.ads (Mapping_File_Name): New variable
32735         * osint.adb (Find_File): Use path name found in mapping, if any.
32737         * prj-env.adb (Create_Mapping_File): New procedure
32739         * prj-env.ads (Create_Mapping_File): New procedure.
32741         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
32742         (Mapping_File)
32744         * usage.adb: Add entry for new switch -gnatem.
32746         * Makefile.in: Add dependencies for fmap.o.
32748 2001-12-17  Ed Schonberg <schonber@gnat.com>
32750         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
32751         is a package instantiation rewritten as a package body.
32752         (Install_Withed_Unit): Undo previous change, now redundant.
32754 2001-12-17  Gary Dismukes <dismukes@gnat.com>
32756         * layout.adb:
32757         (Compute_Length): Move conversion to Unsigned to callers.
32758         (Get_Max_Size): Convert Len expression to Unsigned after calls to
32759         Compute_Length and Determine_Range.
32760         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
32761         Compute_Length and Determine_Range.
32762         Above changes fix problem with length computation for supernull arrays
32763         where Max (Len, 0) wasn't getting applied due to the Unsigned
32764         conversion used by Compute_Length.
32766 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32768         * rtsfind.ads:
32769         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
32770          System.Secondary_Stack.
32771         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
32772          in HI-E mode.
32773         Remove unused entity RE_Exception_Data.
32775         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
32777         * rident.ads (No_Secondary_Stack): New restriction.
32779 2001-12-17  Joel Brobecker <brobecke@gnat.com>
32781         * gnat_rm.texi: Fix minor typos. Found while reading the section
32782         regarding "Bit_Order Clauses" that was sent to a customer.
32783         Very interesting documentation!
32785 2001-12-17  Robert Dewar <dewar@gnat.com>
32787         * sem_case.adb (Choice_Image): Avoid creating improper character
32788         literal names by using the routine Set_Character_Literal_Name. This
32789         fixes bombs in certain error message cases.
32791 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32793         * a-reatim.adb: Minor reformatting.
32795 2001-12-17  Ed Schonberg <schonber@gnat.com>
32797         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
32798         case where the formal is an extension of another formal in the current
32799         unit or in a parent generic unit.
32801 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32803         * s-tposen.adb: Update comments.  Minor reformatting.
32804         Minor code clean up.
32806         * s-tarest.adb: Update comments.  Minor code reorganization.
32808 2001-12-17  Gary Dismukes <dismukes@gnat.com>
32810         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
32811         when Java_VM.
32813 2001-12-17  Robert Dewar <dewar@gnat.com>
32815         * exp_attr.adb: Minor reformatting
32817 2001-12-17  Ed Schonberg <schonber@gnat.com>
32819         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
32820         derivations nested within a child unit: verify that the parent
32821         type is declared in an outer scope.
32823 2001-12-17  Robert Dewar <dewar@gnat.com>
32825         * sem_ch12.adb: Minor reformatting
32827 2001-12-17  Ed Schonberg <schonber@gnat.com>
32829         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
32830         warning if current unit is a predefined one, from which bodies may
32831         have been deleted.
32833 2001-12-17  Robert Dewar <dewar@gnat.com>
32835         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
32836         Fix header format. Add 2001 to copyright date.
32838         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
32839         which caused CE during compilation if checks were enabled.
32841 2001-12-17  Vincent Celier <celier@gnat.com>
32843         * make.adb:
32844         (Switches_Of): New function
32845         (Test_If_Relative_Path): New procedure
32846         (Add_Switches): Use new function Switches_Of
32847         (Collect_Arguments_And_Compile): Use new function Switches_Of.
32848         When using a project file, test if there are any relative
32849         search path. Fail if there are any.
32850         (Gnatmake): Only add switches for the primary directory when not using
32851         a project file. When using a project file, change directory to the
32852         object directory of the main project file. When using a project file,
32853         test if there are any relative search path. Fail if there are any.
32854         When using a project file, fail if specified executable is relative
32855         path with directory information, and prepend executable, if not
32856         specified as an absolute path, with the exec directory.  Make sure
32857         that only one -o switch is transmitted to the linker.
32859         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
32861         * prj-nmsc.adb:
32862         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
32863         when using a non standard naming scheme.
32864         (Check_Ada_Naming_Scheme): Make sure that error messages
32865         do not raise exceptions.
32866         (Is_Illegal_Append): Return True if there is no dot in the suffix.
32867         (Language_Independent_Check): Check the exec directory.
32869         * prj.adb (Project_Empty): Add new component Exec_Directory
32871         * prj.ads:
32872         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
32873         (Project_Data): Add component Exec_Directory
32875         * snames.adb: Updated to match snames.ads revision 1.215
32877         * snames.ads: Added Exec_Dir
32879 2001-12-17  Robert Dewar <dewar@gnat.com>
32881         * make.adb: Minor reformatting
32883         * prj-nmsc.adb: Minor reformatting
32885         * snames.adb: Updated to match snames.ads
32887         * snames.ads: Alphebetize entries for project file
32889 2001-12-17  Ed Schonberg <schonber@gnat.com>
32891         * trans.c (process_freeze_entity): Do nothing if the entity is a
32892         subprogram that was already elaborated.
32894 2001-12-17  Richard Kenner <kenner@gnat.com>
32896         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
32897         and Esize if object is referenced via pointer.
32899 2001-12-17  Ed Schonberg <schonber@gnat.com>
32901         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
32902         is discrete before analyzing choices.
32904 2001-12-17  Joel Brobecker <brobecke@gnat.com>
32906         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
32907         containing the name of the Ada Main Program. This string is mainly
32908         intended for the debugger.
32909         (Gen_Output_File_C): Do the equivalent change when generating a C file.
32911 2001-12-17  Robert Dewar <dewar@gnat.com>
32913         * ali.adb: Set new Dummy_Entry field in dependency entry
32915         * ali.ads: Add Dummy_Entry field to source dependency table
32917         * bcheck.adb (Check_Consistency): Ignore dummy D lines
32919         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
32921         * lib-writ.ads: Document dummy D lines for missing files.
32923         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
32925 2001-12-17  Robert Dewar <dewar@gnat.com>
32927         * ali.adb: Type reference does not reset current file.
32929         * ali.adb: Recognize and scan renaming reference
32931         * ali.ads: Add spec for storing renaming references.
32933         * lib-xref.ads: Add documentation for handling of renaming references
32935         * lib-xref.adb: Implement output of renaming reference.
32937         * checks.adb:
32938         (Determine_Range): Document local variables
32939         (Determine_Range): Make sure Hbound is initialized. It looks as though
32940          there could be a real problem here with an uninitialized reference
32941          to Hbound, but no actual example of failure has been found.
32943 2001-12-17  Laurent Pautet <pautet@gnat.com>
32945         * g-socket.ads:
32946         Fix comment of Shutdown_Socket and Close_Socket. These functions
32947         should not fail silently because if they are called twice, this
32948         probably means that there is a race condition in the user program.
32949         Anyway, this behaviour is consistent with the rest of this unit.
32950         When an error occurs, an exception is raised with the error message
32951         as exception message.
32953 2001-12-17  Robert Dewar <dewar@gnat.com>
32955         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
32956         that it happens before modification of Sloc values for -gnatD.
32958         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
32959         so that it happens before modification of Sloc values for -gnatD.
32961         * switch.adb: Minor reformatting
32963 2001-12-15  Richard Henderson  <rth@redhat.com>
32965         * sem_ch7.adb: Wrap comment.
32967 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
32969         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
32970         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
32971         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
32972         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
32973         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
32974         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
32975         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
32976         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
32977         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
32978         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
32979         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
32980         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
32981         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
32982         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
32983         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
32984         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
32985         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
32986         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
32987         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
32988         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
32989         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
32990         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
32991         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
32992         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
32993         spelling errors.
32995 2001-12-14  Vincent Celier <celier@gnat.com>
32997         * osint.adb(Create_Debug_File): When an object file is specified,
32998         put the .dg file in the same directory as the object file.
33000 2001-12-14  Robert Dewar <dewar@gnat.com>
33002         * osint.adb: Minor reformatting
33004         * lib-xref.adb (Output_Instantiation): New procedure to generate
33005         instantiation references.
33007         * lib-xref.ads: Add documentation of handling of generic references.
33009         * ali.adb (Read_Instantiation_Ref): New procedure to read
33010         instantiation references
33012         * ali.ads: Add spec for storing instantiation references
33014         * bindusg.adb: Minor reformatting
33016         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33018         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33020         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33022         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33024         * csets.ads:
33025         Fix header format
33026         Add 2001 to copyright date
33027         Add entry for Latin-5 (Cyrillic ISO-8859-5)
33029 2001-12-14  Matt Gingell <gingell@gnat.com>
33031         * adaint.c: mktemp is a macro on Lynx and can not be used as an
33032         expression.
33034 2001-12-14  Richard Kenner <kenner@gnat.com>
33036         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
33037         if operand is CONSTRUCTOR.
33039 2001-12-14  Ed Schonberg <schonber@gnat.com>
33041         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
33042         before emiting check on right-hand side, so that exception information
33043         is correct.
33045 2001-12-14  Richard Kenner <kenner@gnat.com>
33047         * utils.c (create_var_decl): Throw away initializing expression
33048         if just annotating types and non-constant.
33050 2001-12-14  Vincent Celier <celier@gnat.com>
33052         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
33053         Default_Ada_...
33055         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33056         Remove functions.
33057         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
33059         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33060         Remove functions.
33061         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
33063 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
33065         * ChangeLog: Remove piece of diff output.
33067 2001-12-14  Geert Bosch <bosch@gnat.com>
33069         * config-lang.in: Update copyright notice
33071         * layout.adb: Remove commented out code.
33073         * mdllfile.ads: Update copyright notice. Fix header format.
33075         * sem_case.ads: Likewise.
33077         * sem_ch3.adb: Minor reformatting.
33079 2001-12-12  Geert Bosch <bosch@gnat.com>
33081         * freeze.ads: Update copyright date.
33083         * g-comlin.ads: Minor reformatting.
33085         * gnat-style.texi: Fix typo.
33087 2001-12-12  Geert Bosch <bosch@gnat.com>
33089         *  einfo.h: Regenerate.
33091 2001-12-12  Ed Schonberg <schonber@gnat.com>
33093         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
33094         on known node types, rather than untyped fields. Further cleanups.
33096 2001-12-12  Robert Dewar <dewar@gnat.com>
33098         * sem_ch12.adb:
33099         (Save_Entity_Descendant): Minor comment update.
33100         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
33101          of an N_Attribute_Reference node. As per note below, this does not
33102         eliminate need for Associated_Node in attribute ref nodes.
33103         (Associated_Node): Documentation explicitly mentions attribute
33104         reference nodes, since this field is used in such nodes.
33106         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
33108 2001-12-12  Robert Dewar <dewar@gnat.com>
33110         * s-stalib.adb: Add more comments on with statements being needed
33112         * par-ch12.adb: Minor reformatting
33114         * prj-dect.ads: Fix copyright header
33116         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
33117         inputs fit in 32 bits, but the result still overflows.
33119         * s-fatgen.ads: Minor comment improvement
33121 2001-12-12  Ed Schonberg <schonber@gnat.com>
33123         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
33124         formal derived type, look for an inherited component from the full
33125         view of the parent, if any.
33127 2001-12-12  Robert Dewar <dewar@gnat.com>
33129         * checks.ads (Apply_Alignment_Check): New procedure.
33131         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
33132         ensure that the alignment of objects with address clauses is
33133         appropriate, and raise PE if not.
33135         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
33136         Exp_Pakd.Known_Aligned_Enough
33138         * mdllfile.ads: Minor reformatting
33140         * mlib-fil.ads: Minor reformatting
33142 2001-12-12  Ed Schonberg <schonber@gnat.com>
33144         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
33145         fix to any component reference if enclosing record has non-standard
33146         representation.
33148 2001-12-12  Vincent Celier <celier@gnat.com>
33150         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
33151         Iteration
33153 2001-12-12  Ed Schonberg <schonber@gnat.com>
33155         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
33156         sem_attr.
33158 2001-12-12  Robert Dewar <dewar@gnat.com>
33160         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
33162 2001-12-12  Emmanuel Briot <briot@gnat.com>
33164         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
33165         and it adds dependencies to system.io.
33167 2001-12-12  Pascal Obry <obry@gnat.com>
33169         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
33170         variable name.
33172 2001-12-11  Ed Schonberg <schonber@gnat.com>
33174         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
33175         that is the parent of other generics, the instance body replaces the
33176         instance node.  Retrieve the instance of the spec, which is the one
33177         that is visible in clients and within the body.
33179 2001-12-11  Vincent Celier <celier@gnat.com>
33181         * gnatmain.adb: Initial version.
33183         * gnatmain.ads: Initial version.
33185         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
33187         * snames.adb: Updated to match snames.ads.
33189         * snames.ads: Added Gnatstub.
33191 2001-12-11  Vincent Celier <celier@gnat.com>
33193         * prj-attr.adb (Initialization_Data): Change name from
33194         Initialisation_Data.
33196 2001-12-11  Emmanuel Briot <briot@gnat.com>
33198         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
33199         + and * applied to backslashed expressions like \r.
33201 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
33203         * g-os_lib.ads: String_List type added, Argument_List type is now
33204         subtype of String_List.
33206 2001-12-11  Robert Dewar <dewar@gnat.com>
33208         * g-os_lib.ads: Change copyright to FSF
33209         Add comments for String_List type
33211 2001-12-11  Vincent Celier <celier@gnat.com>
33213         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
33214         string to the buffer).
33216 2001-12-11  Ed Schonberg <schonber@gnat.com>
33218         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
33219         sem_attr.
33221         * sem_attr.adb: Simplify previous fix for Address.
33222         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
33223         to avoid anomalies where the bound of the type appears to raise
33224         constraint error.
33226 2001-12-11  Robert Dewar <dewar@gnat.com>
33228         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
33229         handled.
33231 2001-12-11  Ed Schonberg <schonber@gnat.com>
33233         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
33234         renamed unit before checking for recursive instantiations.
33236 2001-12-11  Emmanuel Briot <briot@gnat.com>
33238         * prj.ads: Add comments for some of the fields.
33240 2001-12-11  Robert Dewar <dewar@gnat.com>
33242         * lib-xref.adb (Output_Refs): Don't output type references outside
33243         the main unit if they are not otherwise referenced.
33245 2001-12-11  Ed Schonberg <schonber@gnat.com>
33247         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
33248         code and diagnose additional illegal uses
33250         * sem_util.adb (Is_Object_Reference): An indexed component is an
33251         object only if the prefix is.
33253 2001-12-11  Vincent Celier <celier@gnat.com>
33255         * g-diopit.adb: Initial version.
33257         * g-diopit.ads: Initial version.
33259         * g-dirope.adb:
33260         (Expand_Path): Avoid use of Unbounded_String
33261         (Find, Wildcard_Iterator): Moved to child package Iteration
33263         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
33265 2001-12-11  Robert Dewar <dewar@gnat.com>
33267         * sem_attr.adb: Minor reformatting
33269 2001-12-11  Ed Schonberg <schonber@gnat.com>
33271         * sem_ch3.adb: Clarify some ???.
33273 2001-12-11  Robert Dewar <dewar@gnat.com>
33275         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
33276         Exp_Pakd.Known_Aligned_Enough
33278         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
33279         version is moved to Exp_Ch13.
33281 2001-12-11  Robert Dewar <dewar@gnat.com>
33283         * einfo.ads: Minor reformatting
33285         * exp_ch5.adb: Add comment for previous.change
33287         * ali.adb: New interface for extended typeref stuff.
33289         * ali.ads: New interface for typeref stuff.
33291         * checks.adb (Apply_Alignment_Check): New procedure.
33293         * debug.adb: Add -gnatdM for modified ALI output
33295         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
33297         * lib-xref.adb: Extend generation of <..> notation to cover
33298         subtype/object types. Note that this is a complete rewrite,
33299         getting rid of the very nasty quadratic algorithm previously
33300         used for derived type output.
33302         * lib-xref.ads: Extend description of <..> notation to cover
33303         subtype/object types. Uses {..} for these other cases.
33304         Also use (..) for pointer types.
33306         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
33308         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
33309         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
33311 2001-12-11  Vincent Celier <celier@gnat.com>
33313         * gnatcmd.adb:
33314         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
33315         Changed /BIND_ONLY to /ACTIONS=BIND
33316         Changed /LINK_ONLY to /ACTIONS=LINK
33318 2001-12-11  Ed Schonberg  <schonber@gnat.com>
33320         * sem_ch8.adb (Find_Selected_Component): improved search for a
33321         candidate package in case of error.
33323         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
33324         chain back on scope stack before reinstalling use clauses.
33326         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
33327         is enabled, do not kill the code for the condition, to preserve
33328         warning.
33330 2001-12-11  Robert Dewar <dewar@gnat.com>
33332         * checks.adb (Insert_Valid_Check): Apply validity check to expression
33333         of conversion, not to result of conversion.
33335 2001-12-11  Ed Schonberg <schonber@gnat.com>
33337         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
33338         before freezing parent. If the declarations are mutually recursive,
33339         an access to the current record type may be frozen before the
33340         derivation is complete.
33342 2001-12-05  Vincent Celier <celier@gnat.com>
33344         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
33345         -c /COMPILE_ONLY, -l /LINK_ONLY
33347         * opt.ads:
33348         (Bind_Only): New Flag
33349         (Link_Only): New flag
33351         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
33352         and -l (Link_Only)
33354         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
33356         * make.adb:
33357         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
33358         (Gnatmake): Set the step flags. Only perform a step if the
33359         corresponding step flag is True.
33360         (Scan_Make_Arg): Reset the bind and link step flags when -u
33361         or -gnatc has been specified.
33363 2001-12-05  Ed Schonberg <schonber@gnat.com>
33365         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
33366         get bounds from right operand.
33368         * sem_eval.adb: Minor reformatting
33370         * exp_util.adb (Make_Literal_Range): use bound of literal rather
33371         than Index'First, its lower bound may be different from 1.
33373         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
33374         and C48009J
33376 2001-12-05  Vincent Celier <celier@gnat.com>
33378         * prj-nmsc.adb Minor reformatting
33380         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
33381         set and libraries are not supported.
33383 2001-12-05  Ed Schonberg <schonber@gnat.com>
33385         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
33386         private view explicitly, so the back-end can treat as a global
33387         when appropriate.
33389 2001-12-05  Ed Schonberg <schonber@gnat.com>
33391         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
33392          unit, always replace instance node with new body, for ASIS use.
33394 2001-12-05  Vincent Celier <celier@gnat.com>
33396         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
33397         libraries are not supported and both attributes Library_Name and
33398         Library_Dir are specified.
33400         * prj-proc.adb (Expression): Set location of Result to location of
33401         first term.
33403         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
33404         (prj-nmsc is now importing MLib.Tgt)
33406         * prj-proc.adb: Put the change indicated above that was forgotten.
33408 2001-12-05  Robert Dewar <dewar@gnat.com>
33410         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
33412 2001-12-05  Ed Schonberg <schonber@gnat.com>
33414         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
33415         constraint, introduce explicit subtype declaration and derive from it.
33417         * sem_ch3.adb: Minor reformatting
33419 2001-12-05  Robert Dewar <dewar@gnat.com>
33421         * checks.adb (Determine_Range): Increase cache size for checks.
33422         Minor reformatting
33424         * exp_ch6.adb: Minor reformatting
33425         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
33426         a parameter whose root type is System.Address, since treating such
33427         subprograms as pure in the code generator is almost surely a mistake
33428         that will lead to unexpected results.
33430         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
33431         change handling of conversions.
33433         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
33435 2001-12-05  Ed Schonberg <schonber@gnat.com>
33437         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
33438         aggregate with static wrong size, attach generated Raise node to
33439         declaration.
33441 2001-12-05  Robert Dewar <dewar@gnat.com>
33443         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
33444         Fixes compilation abandoned bomb in B24009B.
33446 2001-12-05  Ed Schonberg <schonber@gnat.com>
33448         * sem_ch12.adb:
33449         Document use of Associated_Node on Selected_Components.
33450         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
33451         to clarify use of untyped descendant fields.
33453 2001-12-05  Robert Dewar <dewar@gnat.com>
33455         * prj-dect.ads: Add ??? comment
33456         Add 2001 to copyright notice (was not done in after all)
33458         * prj-part.adb: Minor reformatting. Reword one awkward error message.
33460         * prj.ads: Minor reformatting throughout, and add some ??? comments
33462         * snames.ads: Minor reformatting
33464 2001-12-05  Geert Bosch <bosch@gnat.com>
33466         * snames.adb: Autoupdate
33468 2001-12-05  Vincent Celier <celier@gnat.com>
33470         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
33472         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
33474         * prj-env.adb: Minor comment changes (modifying -> extends).
33476         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
33478         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
33479         Tok_Extends.
33481         * prj.adb (Initialize): Change Modifying to Extends.
33483         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
33485         * prj.ads: Minor comment change (Modifying -> extending).
33487         * snames.ads: Change modifying to extends.
33489 2001-12-05  Robert Dewar <dewar@gnat.com>
33491         * sem_warn.adb: Remove stuff for conditionals, we are not going to
33492         do this after all.
33494         * sem_warn.ads: Remove stuff for conditionals, we are not going to
33495         do this after all.  Add 2001 to copyright notice
33497 2001-12-04  Geert Bosch <bosch@gnat.com>
33499         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
33501 2001-12-04  Robert Dewar <dewar@gnat.com>
33503         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
33504         location if we already have errors. Stops some cases of cascaded
33505         errors.
33507         * errout.adb: Improve comment.
33509 2001-12-04  Robert Dewar <dewar@gnat.com>
33511         * sem_ch12.adb:
33512         (Analyze_Formal_Type_Definition): Defend against Error.
33513         (Analyze_Formal_Subprogram): Defend against Error.
33515         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
33516         remove following semicolon if present. Removes cascaded error.
33518 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
33520         * bindgen.adb:
33521         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
33522          exceptions equals 0.
33523         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
33524         Fixes PIWG E tests (which have to be run with -gnatL).
33526 2001-12-04  Robert Dewar <dewar@gnat.com>
33528         * einfo.ads: Minor reformatting
33530 2001-12-04  Ed Schonberg <schonber@gnat.com>
33532         * einfo.ads: Block_Node points to the identifier of the block, not to
33533         the block node itself, to preserve the link when the block is
33534         rewritten, e.g. within an if-statement with a static condition.
33536         * inline.adb (Cleanup_Scopes): recover block statement from block
33537         entity using new meaning of Block_Node.
33539         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
33540         identifier of block node, rather than to node itself.
33542 2001-12-04  Gary Dismukes <dismukes@gnat.com>
33544         * layout.adb:
33545         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
33546         (Discrimify): Go back to setting the Etypes of the selected component
33547         because the Vname component does not exist at this point and will
33548         fail name resolution. Also set Analyzed.
33549         Remove with and use of Sem_Res.
33551 2001-12-04  Arnaud Charlet <charlet@gnat.com>
33553         * Makefile.in: (HIE_SOURCES): add s-fat*.
33555 2001-12-04  Robert Dewar <dewar@gnat.com>
33557         * sem_attr.adb:
33558         (Compile_Time_Known_Attribute): New procedure.
33559         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
33560          proper range check.
33562 2001-12-04  Ed Schonberg <schonber@gnat.com>
33564         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
33565         processing discriminants to diagnose illegal default values.
33567 2001-12-04  Ed Schonberg <schonber@gnat.com>
33569         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
33570         access discriminant within a type extension that constrains its
33571         parent discriminants.
33573 2001-12-04  Ed Schonberg <schonber@gnat.com>
33575         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
33576         is malformed, use instance of Any_Id to allow analysis to proceed.
33578         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
33579         type definition is illegal.
33580         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
33581         misplaced.
33583 2001-12-04  Ed Schonberg <schonber@gnat.com>
33585         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
33586         constants.
33588 2001-12-04  Robert Dewar <dewar@gnat.com>
33590         * errout.adb: Minor reformatting
33592 2001-12-04  Robert Dewar <dewar@gnat.com>
33594         * exp_util.adb: Minor reformatting from last change
33596         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
33597         which is a rewriting of an expression, traverse the original
33598         expression to remove warnings that may have been posted on it.
33600 2001-12-04  Ed Schonberg <schonber@gnat.com>
33602         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
33603         record that has other packed components.
33605 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
33607         * adaint.c: Minor cleanups.
33609 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
33611         * adaint.c: Do not use utime.h on vxworks.
33613 2001-12-04  Arnaud Charlet <charlet@gnat.com>
33615         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
33616         more confusion than it solves.
33618 2001-12-04  Geert bosch <bosch@gnat.com>
33620         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
33622 2001-12-04  Geert Bosch  <bosch@gnat.com>
33624         * Makefile.in (update-sources): New target.
33625         For use by gcc_release script.
33627 2001-12-04  Ed Schonberg <schonber@gnat.com>
33629         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
33630         a configuration pragma, it is now legal wherever a pragma can appear.
33632 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
33634         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
33635         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
33636         is now @CROSS@ -DIN_GCC; update comment.
33638 2001-12-04  Robert Dewar <dewar@gnat.com>
33640         * einfo.adb (Has_Pragma_Pure_Function): New flag.
33641         Fix problem that stopped ceinfo from working
33643         * einfo.ads (Has_Pragma_Pure_Function): New flag.
33645         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
33647 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
33649         * gnatchop.adb:
33650         (File_Time_Stamp): New procedure.
33651         (Preserve_Mode): New boolean.
33652         (Write_Unit): Pass time stamp.
33653         Implement -p switch (preserve time stamps).
33655         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
33657         * gnatchop.adb: Do usage info for -p switch
33659         * adaint.h (__gnat_set_file_time_name): New function
33661         * adaint.c (__gnat_set_file_time_name): Implement
33663         * adaint.h: Fix typo
33665 2001-12-03  Robert Dewar <dewar@gnat.com>
33667         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
33668         have Associated_Node.
33670 2001-12-03  Robert Dewar <dewar@gnat.com>
33672         * prj-proc.adb: Minor reformatting
33674         * make.adb: Minor reformatting
33676 2001-12-03  Geert Bosch <bosch@gnat.com>
33678         * make.adb: Minor reformatting.
33680 2001-12-03 Robert Dewar  <dewar@gnat.com>
33682         * sem_ch12.adb: Minor reformatting
33684 2001-12-03  Ed Schonberg <schonber@gnat.com>
33686         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
33687         push Standard on the stack before analyzing the instance body,
33688         in order to have a clean visibility environment.
33690         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
33692 2001-12-03  Ed Schonberg <schonber@gnat.com>
33694         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
33695         instantiation of a body that contains an inlined body.
33697 2001-12-03  Ed Schonberg <schonber@gnat.com>
33699         * sem_ch12.adb:
33700         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
33701         to prevent freezing within formal packages.
33702         (Freeze_Subprogram_Body): If body comes from another instance that
33703         appeared before its own body, place freeze node at end of current
33704         declarative part, to prevent a back-end crash.
33705         (Inline_Instance_Body): Handle properly a package instance within
33706         a subprogram instance that is a child unit.
33708 2001-12-01  Graham Stott  <grahams@redhat.com>
33710         * Makefile.in (misc.o): Add missing $(srcdir) prefix
33711         and add optabs.h dependency.
33713         * misc.c: Include optabs.h
33714         (gnat_tree_code_type): Make static and const.
33715         (gnat_tree_code_length): Likewise.
33716         (gnat_tree_code_name): Likewise.
33717         (update_setjmp_buf): Obtain operands mode from insn_data.
33719 2001-11-29  Richard Henderson  <rth@redhat.com>
33721         * init.c: Remove obsolete dwarf2 frame.h section.
33723 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
33725         * Make-lang.in (ada.generated-manpages): New dummy target.
33727 2001-11-29  Ed Schonberg <schonber@gnat.com>
33729         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
33730         into Command, an array conversion is illegal here. Uncovered by
33731         ACATS B460005.
33733 2001-11-28  Geert Bosch <bosch@gnat.com>
33735         * init.c: Minor whitespace changes.
33737 2001-11-28  Doug Rupp <rupp@gnat.com>
33739         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
33740         signal stack.
33742 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
33744         * misc.c (gnat_expand_constant): Move declaration above
33745         definition of lang_hooks.
33746         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
33747         (gnat_init): lang_expand_constant no longer exists.
33749         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
33750         always have vprintf.
33751         (gnat_init): Always call set_internal_error_function.
33753 2001-11-27  Andreas Jaeger  <aj@suse.de>
33755         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
33757 2001-11-27  Laurent Guerby  <guerby@acm.org>
33759         * Makefile.in: Regenerate Ada dependencies.
33761 2001-11-26  Richard Henderson  <rth@redhat.com>
33763         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
33764         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
33765         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
33767 2001-11-25  Laurent Guerby  <guerby@acm.org>
33769         * sysdep.c (rts_get_*): Fix style.
33771 2001-11-19  Laurent Guerby  <guerby@acm.org>
33773         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
33774         since it is of no apparent use and cause warnings.
33776 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
33778         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
33779         static too.
33780         (gnat_init): Don't return NULL.
33781         (finish_parse): Remove.
33783 2001-11-17  Laurent Guerby  <guerby@acm.org>
33785         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
33786         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
33787         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
33788         * lang-spec.h: Add missing struct field to silence warnings.
33789         * sysdep.c (rts_get_*): Provide K&R prototype.
33790         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
33791         * traceback.c (Unlock_Task, Lock_Task): Likewise.
33792         * tracebak.c (__gnat_backtrace): Remove unused variable.
33793         * utils.c (end_subprog_body): Move to K&R style.
33795 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33797         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
33799 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
33801         * misc.c (gnat_init): Change prototype.  Include the
33802         functionality of the old init_parse and init_decl_processing.
33803         (gnat_init_decl_processing): New prototype.
33804         (init_parse): Remove.
33805         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
33807 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
33809         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
33810         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
33811         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
33812         set_yydebug): Remove.
33814 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
33816         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
33817         (struct lang_hooks): Constify.
33818         (language_string, lang_identify): Remove.
33819         * utils.c (init_decl_processing): Update.
33821 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
33823         * misc.c: Include langhooks-def.h.
33824         * Makefile.in: Update.
33826 2001-10-30  Robert Dewar <dewar@gnat.com>
33828         * style.adb:
33829         (Check_Identifier): Rewrite circuit to be compatible with use of letters
33830         in the upper half of ASCII.
33831         (Check_Identifier): Minor reformatting
33833 2001-10-30  Geert Bosch <bosch@gnat.com>
33835         * (Associated_Node, Set_Associated_Node): Do not check for
33836         Freeze_Entity.
33838 2001-10-30  Robert Dewar <dewar@gnat.com>
33840         * a-reatim.ads: Minor reformatting
33842 2001-10-30  Robert Dewar <dewar@gnat.com>
33844         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
33845         undocumented declarations.
33847 2001-10-30  Pascal Obry <obry@gnat.com>
33849         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
33850         to the binder and linker.
33851         Minor style fix.
33853         * mdll.ads: Fix layout.  Update copyright notice.
33855         * mdll.adb: Fix layout.  Update copyright notice.
33857 2001-10-30  Robert Dewar <dewar@gnat.com>
33859         * usage.adb: Minor fix to output for -gnaty.
33861 2001-10-30  Ed Schonberg <schonber@gnat.com>
33863         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
33864         to accommodate all its possible values.
33866         * a-reatim.adb (Split): Special-case handling of Time_Span_First
33867         and of small absolute values of T.
33869 2001-10-30  Richard Kenner <kenner@gnat.com>
33871         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
33872         set_mem_attributes since not needed and wrong if RESULT if a REG;
33873         fixes ACATS failures.
33875 2001-10-30  Geert Bosch <bosch@gnat.com>
33877         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
33878         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
33880 2001-10-30  Robert Dewar <dewar@gnat.com>
33882         * bindusg.adb: Undocument -f switch.
33884         * gnatcmd.adb: Remove /FULL_ELABORATION.
33886         * opt.ads (Force_RM_Elaboration_Order): Document that this is
33887         obsolescent.
33889         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
33891         * gnatbind.adb: Minor update of warning msg.
33893 2001-10-30  Vincent Celier <celier@gnat.com>
33895         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
33896         for project file switches (-P (/PROJECT_FILE=),
33897          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
33898         or MEDIUM or HIGH)
33900 2001-10-30  Geert Bosch <bosch@gnat.com>
33902         * decl.c: Minor whitespace fixes.
33904 2001-10-30  Richard Kenner <kenner@gnat.com>
33906         * utils2.c (build_allocator): Test for SIZE overflow in array case too
33908 2001-10-30  Geert Bosch <bosch@gnat.com>
33910         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
33911         Found due to GCC 3.0 warning of using uninitialized value.
33913         * layout.adb:
33914         (Get_Max_Size): Use variant record for tracking value/expression.
33915          Makes logic clearer and prevents warnings for uninitialized variables.
33916         (Layout_Array_Type): Use variant record for tracking value/expression.
33917          Makes logic clearer and prevents warnings for uninitialized variables.
33919 2001-10-30  Robert Dewar <dewar@gnat.com>
33921         * lib.adb: Minor reformatting
33923         * s-taprop.ads: Minor reformatting
33925 2001-10-29  Laurent Guerby  <guerby@acm.org>
33927         * init.c:
33928         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
33929         const.
33930         (_gnat_error_handler): Make MSG const.
33932 2001-10-29  Richard Kenner <kenner@gnat.com>
33934         * sysdep.c: Fix localtime_r problem on LynxOS.
33935         Also remove #elif to avoid warnings.
33937         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33938         used by this.
33940         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33942 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
33944         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33945         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
33946         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
33947         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
33948         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
33949         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
33950         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
33951         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
33952         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
33953         types.ads, urealp.adb: Fix spelling errors.
33955 2001-10-27  Laurent Guerby <guerby@acm.org>
33957         * trans.c (gigi): Fix non determinism leading to bootstrap
33958         comparison failures for debugging information.
33960 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
33962         * gnat_rm.texi: Use @./@: where appropriate.
33964 2001-10-26  Robert Dewar <dewar@gnat.com>
33966         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
33968 2001-10-26  Richard Kenner <kenner@gnat.com>
33970         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
33972 2001-10-26  Richard Kenner <kenner@gnat.com>
33974         * decl.c (validate_size): Modify message for bad size to avoid
33975         implication that compiler is modifying the size.
33977 2001-10-26  Robert Dewar <dewar@gnat.com>
33979         * prj-util.adb: Minor reformatting. Fix bad header format.
33981 2001-10-26  Robert Dewar <dewar@gnat.com>
33983         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
33985         * sinfo.ads: Clarify use of Associated_Node (documentation only).
33987         * sem_ch12.adb: Change Node4 to Associated_Node. Change
33988         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
33989         much more narrowly in places where needed. These are cleanups.
33991 2001-10-26  Joel Brobecker <brobecke@gnat.com>
33993         * 5zosinte.ads (null_pthread): new constant.
33995         * 5ztaprop.adb:
33996         (Initialize_TCB): Initialize thread ID to null, to be able to verify
33997          later that this field has been set.
33998         (Finalize_TCB): ditto.
33999         (Suspend_Task): Verify that the thread ID is not null before using it.
34000         (Resume_Task): ditto.
34002         * s-tasdeb.adb:
34003         (Resume_All_Tasks): Lock the tasks list before using it.
34004         (Suspend_All_Tasks): ditto.
34006 2001-10-26  Richard Kenner <kenner@gnat.com>
34008         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
34009         Make constant variant of designated type for Is_Access_Constant.
34010         Call update_pointer_to with main variant.
34012         * trans.c (process_freeze_entity, process_type):
34013         Call update_pointer_to on main variant.
34015         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
34016         If main variant, update all other variants.
34018         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
34019         TREE_STATIC.
34021 2001-10-26  Robert Dewar <dewar@gnat.com>
34023         * prj-util.adb: Minor reformatting
34025 2001-10-26  Robert Dewar <dewar@gnat.com>
34027         * prj-util.adb: Minor reformatting
34029 2001-10-26  Robert Dewar <dewar@gnat.com>
34031         * prj-attr.adb: Minor reformatting throughout
34033 2001-10-26  Robert Dewar <dewar@gnat.com>
34035         * prj-attr.ads: Minor reformatting
34036         Add ??? comment (this whole spec has almost no comments)
34038 2001-10-26  Vincent Celier <celier@gnat.com>
34040         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
34041         ("//") that precede the drive letter on Interix.
34043 2001-10-26  Geert Bosch <bosch@gnat.com>
34045         * gnat_rm.texi: Add GNAT Reference Manual.
34047 2001-10-25  Robert Dewar <dewar@gnat.com>
34049         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
34050         is Error. Similar change for other renaming cases.
34052 2001-10-25  Robert Dewar <dewar@gnat.com>
34054         * s-atacco.ads: Add pragma Inline_Always for functions.
34055         Fix header format. Add copyright 2001
34057 2001-10-25  Ed Schonberg <schonber@gnat.com>
34059         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
34060         return Error rather than Empty so that analysis can proceed.
34062 2001-10-25  Ed Schonberg <schonber@gnat.com>
34064         * sem_util.adb (Enter_Name): better handling of cascaded error
34065         messages when a unit appears in its own context.
34067 2001-10-25  Ed Schonberg <schonber@gnat.com>
34069         * sem_util.adb (Defining_Entity): in case of error, attach created
34070         entity to specification, so that semantic analysis can proceed.
34072 2001-10-25  Robert Dewar <dewar@gnat.com>
34074         * sem_util.adb
34075         (Defining_Entity): Deal with Error.
34076         (Process_End_Label): Deal with bad end label for.
34078 2001-10-25  Ed Schonberg <schonber@gnat.com>
34080         * sem_elab.adb (Check_A_Call): refine message when call is in an
34081         instance but callee is not declared in the generic unit.
34083 2001-10-25  Ed Schonberg <schonber@gnat.com>
34085         * sem_elab.adb (Check_A_Call): check for renaming before finding the
34086         enclosing unit, which may already be different from the calling unit.
34088 2001-10-25  Geert Bosch <bosch@gnat.com>
34090         * 4gintnam.ads: fix header format.
34092 2001-10-25  Ed Schonberg <schonber@gnat.com>
34094         * sem_res.adb (Resolve_Call): if the call is actually an indexing
34095         operation on the result of a parameterless call, perform elaboration
34096         check after the node has been properly rewritten.
34098         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
34099         inlined within the generic tree, the defining identifier is not a
34100         compilation_unit.
34102 2001-10-25  Ed Schonberg <schonber@gnat.com>
34104         * sem_res.adb (Resolve): special-case resolution of Null in an
34105          instance or an inlined body to avoid view conflicts.
34107         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
34108          compatibility by retrieving the access type of the generic copy.
34110 2001-10-25  Robert Dewar <dewar@gnat.com>
34112         * sem_ch3.adb:
34113         (Analyze_Number_Declaration): Handle error expression.
34114         (Signed_Integer_Type_Declaration): Handle error bound.
34115         (Analyze_Subtype_Indication): Handle error range.
34117         * sem_util.adb (Get_Index_Bounds): Check for Error.
34119 2001-10-25  Robert Dewar <dewar@gnat.com>
34121         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
34122         in no run time mode.
34124 2001-10-25  Pascal Obry <obry@gnat.com>
34126         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
34127         mode case for ALLOC case.
34129         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
34130         all platforms. Improvement of last change.
34132 2001-10-25  Robert Dewar <dewar@gnat.com>
34134         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
34136 2001-10-25  Geert Bosch  <bosch@gnat.com>
34138         * osint.adb (Is_Relative): Remove duplicate.
34140 2001-10-25  Pascal Obry <obry@gnat.com>
34142         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
34143         pathnames in UNIX and DOS style with drive letter.
34144         (Is_Relative): new routine.
34146         * osint.adb: Minor reformatting
34148         * osint.adb (Is_Relative): implementation using
34149         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
34151 2001-10-25  Pascal Obry <obry@gnat.com>
34153         * g-dirope.adb (Basename): correctly compute offset between the
34154         original Path and the translated one.
34156         * g-dirope.adb: (Base_Name): add some comments.
34158 2001-10-25  Robert Dewar <dewar@gnat.com>
34160         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
34161         in HIE mode, avoids compilation abandoned message
34163         * exp_imgv.adb: Correct typo in previous change
34165         * exp_imgv.adb: Correct typo in previous change (not my day!)
34167 2001-10-25  Robert Dewar <dewar@gnat.com>
34169         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
34171 2001-10-25  Pascal Obry <obry@gnat.com>
34173         * g-awk.ads: Move all pragma inlines next to the routine
34174          declarations. This is more uniform with other GNAT spec.
34176 2001-10-22  Geert Bosch  <bosch@gnat.com>
34178         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
34180 2001-10-19  Geert Bosch  <bosch@gnat.com>
34182         * Makefile.in (tools, gnattools): Remove gnatmem.
34184 2001-10-17  Richard Henderson  <rth@redhat.com>
34186         * Makefile.in (misc.o): Depend on langhooks.h.
34187         * misc.c: Include it.
34188         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
34189         (LANG_HOOKS_DECODE_OPTION): New.
34190         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
34192 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
34194         * trans.c (tree_transform): Adjust to recent change in
34195         expand_asm_operands to implement named asm operands.
34197 2001-10-11  Ed Schonberg  <schonber@gnat.com>
34199         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
34200         renaming of discriminant for mutable record type.
34202 2001-10-11  Robert Dewar  <dewar@gnat.com>
34204         * validsw.adb: Properly save -gnatVn status.
34206 2001-10-11  Robert Dewar <dewar@gnat.com>
34208         * usage.adb: Add lines for V switch.
34210         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
34211         (/VALIDITY_CHECKING).
34213 2001-10-11  Ed Schonberg <schonber@gnat.com>
34215         * sem_type.adb (Add_One_Interp): an operator for a type declared in
34216         an extension of System is known to be visible.
34218 2001-10-11  Ed Schonberg <schonber@gnat.com>
34220         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
34221         properly. Fixes regression on ACATS C34005G.
34223 2001-10-11  Robert Dewar <dewar@gnat.com>
34225         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
34226         loop in generic instance, since this is likely not very useful.
34228 2001-10-11  Robert Dewar <dewar@gnat.com>
34230         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
34231         the error message for high integrity mode.
34233         * rtsfind.adb (RTE): Give message if we try to find an entity that
34234         is not available in high integrity mode.
34236         * rtsfind.ads:
34237         (OK_To_Use_In_HIE_Mode): New array.
34238         (RTE): May return Empty in high integrity mode.
34240         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
34241         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
34243         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
34244         unit if not inlined always and in no runtime mode. Fixes problem
34245         caused by new Rtsfind changes.
34247         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
34248         body is deleted.
34250         * rtsfind.adb (RTE): Make sure we do not try to load unit after
34251         giving message for entity not available in high integrity mode.
34253 2001-10-11  Pascal Obry <obry@gnat.com>
34255         * impunit.adb: Add GNAT.CRC32.
34257 2001-10-11  Ed Schonberg <schonber@gnat.com>
34259         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
34260         properly the case where one universal operand in a non-static
34261         exponentiation of a real literal.
34263 2001-10-11  Ed Schonberg <schonber@gnat.com>
34265         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
34266         clause, return the gobal finalization list, for lack of anthing else.
34268 2001-10-11  Ed Schonberg <schonber@gnat.com>
34270         * exp_ch7.adb (Make_Transient_Block): if statement is within
34271         exception handler, always use new transient scope to place Clean
34272         procedure.
34274 2001-10-11  Pascal Obry <obry@gnat.com>
34276         * Makefile.in:
34277         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34278         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34279         (GNATLS_RTL_OBJS): add g-crc32.o
34280         (GNATMAKE_RTL_OBJS): add g-crc32.o
34282         * ali-util.adb:
34283         (CRC_Match): new function.
34284         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
34285         instead of the previous simple checksum algorithm.
34286         (Time_Stamp_Mismatch): use CRC_Match for comparison.
34287         (Set_Source_Table): idem.
34289         * ali-util.ads:
34290         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
34291         instead of simple checksum.
34292         (CRC_Match): new function.
34293         (CRC_Error): new constant.
34295         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
34296         a CRC now and not a simple checksum. A CRC uses lower-case hex
34297         letters, fixes ambiguity in parsing.
34299         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
34300         is what this variable will store.
34302         * bcheck.adb: Change reference to chechsum in comments by CRC.
34303         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
34304         rename All_Checksum_Match to All_CRC_Match. Change due to API
34305         renaming since now GNAT does not use a simple checksum but a
34306         CRC using GNAT.CRC32.
34308         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
34309         now and not anymore a simple checksum.
34311         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
34312         places.
34314         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
34316         * scans.adb:
34317         (Restore_Scan_State): rename Checksum to CRC.
34318         (Save_Scan_State): idem.
34320         * scans.ads:
34321         With GNAT.CRC32.
34322         (Checksum): rename to CRC.
34323         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
34325         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
34326         GNAT.CRC32).  Update copyright notice.
34328         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
34329         GNAT.CRC32).  Update copyright notice.
34331         * scn.adb:
34332         (Accumulate_Checksum): removed.
34333         (Update): new procedure. Add a wide-character into the CRC.
34335         * sinput-l.adb:
34336         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
34337         (Load_File): fix initialization of S (change Source_Checksum to
34338         Source_CRC)
34340         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
34341         Source_CRC in S initialization.
34343         * sinput.adb (Source_Checksum): renamed to Source_CRC.
34345         * sinput.ads (Source_Checksum): renamed to Source_CRC.
34346         Update comments for the CRC.
34348         * types.adb (Hex): Use lowercase for the letter part.
34350         * types.ads (Get_Hex_String): Returns the hexadecimal representation
34351         for a word. This is currently used only for CRC. In previous version,
34352         the checksum was using a representation with all letter being
34353         upper-case. With the new implementation (using CRC) we do not remove
34354         the 32th bit of the CRC, so we can have an upper-case starting letter
34355         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
34356         It is ambigous since the CRC was optional and could be followed by
34357         options like EB, EE. So now this routines uses lower-case letter for
34358         the hexadecimal representation. Strange enough only lower case letters
34359         where checked in Scan_ALI (even if this was not a possible case).
34361         * gnatvsn.ads (Library_Version): changed to 3.15a.
34363         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
34364         for the compiler.
34366         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
34367         for the compiler.
34369         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
34370         Add 2001 to copyright notice
34371         (Accumulate_Checksum): Modify to use System.CRC32.
34373         * ali-util.ads: Redo changes of previous revision to continue to use
34374         the word Checksum. Add 2001 to copyright notice.
34376         * ali.adb: Undo some of previous changes, not needed.
34377         Keep the change for lower case letters in the checksum.
34379         * ali.ads: Undo previous change not needed.
34381         * bcheck.adb: Undo most of previous change, not needed.
34382         But do use Checksums_Match for checksum comparison.
34384         * gnatls.adb: Undo most of previous change, not needed.
34385         But do use Checksums_Match for comparing checksums.
34387         * lib-load.adb: Undo previous change, not needed.
34389         * lib-writ.adb: Undo previous change, not needed.
34391         * lib-writ.ads: Document that checksums use lower case,
34392         not upper case letters.
34394         * scans.adb: Undo previous change, not needed
34396         * scans.ads: Undo previous change, not needed.
34398         * scn-nlit.adb: Undo previous changes, not needed.
34400         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
34402         * scn.adb:
34403         (Accumulate_Checksum): Use System.CRC32.
34404         (Initialize_Checksum): New procedure.
34405         Remove other changes of previous revision.
34407         * sinput-p.adb: Undo previous change, not needed.
34409         * sinput.adb: Undo previous change, not needed.
34411         * sinput-l.adb: Undo previous change, not needed.
34413         * sinput.ads: Undo previous change, not needed.  Keep only comment
34414         on new checksum algorithm
34416         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
34417         Also remove a-tags and a-stream from GNAT sources.
34419         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
34421         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
34423 2001-10-11  Geert Bosch  <bosch@gnat.com>
34425         * einfo.h: Regenerate.
34427         * nmake.ads: Regenerate.
34429         * nmake.adb: Regenerate.
34431         * sinfo.h: Regenerate.
34433         * treeprs.adb: Regenerate.
34435 2001-10-10  Geert Bosch  <bosch@gnat.com>
34437         * gnat-style.texi: New file describing coding guidelines for Ada.
34439 2001-10-10  Ed Schonberg <schonber@gnat.com>
34441         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
34442         is Flag174.
34444 2001-10-10  Geert Bosch  <bosch@gnat.com>
34446         * snames.ads: Add new names for project facility.
34448         * snames.adb: Update to reflect snames.ads changes.
34450         * snames.h: Update to reflect snames.ads changes.
34452 2001-10-10  Vincent Celier <celier@gnat.com>
34454         * make.adb:
34455         (Add_Switches): reflect the changes for the switches attributes
34456         Default_Switches indexed by the programming language,
34457         Switches indexed by the file name.
34458         (Collect_Arguments_And_Compile): Idem.
34459         Reflect the attribute name changes.
34461         * prj-attr.adb:
34462         (Initialisation_Data): Change the names of some packages and
34463         attributes.
34464         (Initialize): process case insensitive associative arrays.
34466         * prj-attr.ads:
34467         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
34469         * prj-dect.adb:
34470         (Parse_Attribute_Declaration): For case insensitive associative
34471          arrays, set the index string to lower case.
34473         * prj-env.adb:
34474         Reflect the changes of the project attributes.
34476         * prj-nmsc.adb:
34477         Replace Check_Naming_Scheme by Ada_Check and
34478         Language_Independent_Check.
34480         * prj-nmsc.ads:
34481         Replaced Check_Naming_Scheme by 2 procedures:
34482         Ada_Check and Language_Independent_Check.
34484         * prj-proc.adb:
34485         (Process_Declarative_Items): For case-insensitive associative
34486         arrays, set the index string to lower case.
34487         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
34488         Prj.Nmsc.Check_Naming_Scheme.
34490         * prj-tree.adb:
34491         (Case_Insensitive): New function
34492         (Set_Case_Insensitive): New procedure
34494         * prj-tree.ads:
34495         (Case_Insensitive): New function
34496         (Set_Case_Insensitive): New procedure
34497         (Project_Node_Record): New flag Case_Insensitive.
34499         * prj-util.adb:
34500         (Value_Of): new function to get the string value of a single
34501         string variable or attribute.
34503         * prj-util.ads:
34504         (Value_Of): new function to get the string value of a single
34505         string variable or attribute.
34507         * prj.adb:
34508         (Ada_Default_Spec_Suffix): New function
34509         (Ada_Default_Impl_Suffix): New function
34510         Change definitions of several constants to reflect
34511         new components of record types.
34513         * prj.ads:
34514         (Naming_Data): Change several components to reflect new
34515         elements of naming schemes.
34516         (Project_Data): New flags Sources_Present and
34517         Language_Independent_Checked.
34518         (Ada_Default_Spec_Suffix): New function.
34519         (Ada_Default_Impl_Suffix): New function.
34521         * snames.ads:
34522         Modification of predefined names for project manager: added
34523         Implementation, Specification_Exceptions, Implementation_Exceptions,
34524         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
34525         Default_Switches, _Languages, Builder, Cross_Reference,
34526         Finder. Removed Body_Part, Specification_Append, Body_Append,
34527         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
34528         Gnatlink.
34530         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34531         Add comments.
34533         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
34534         not that it is Nil_Variable_Value.
34536         * prj.ads: Add ??? for uncommented declarations
34538 2001-10-10  Ed Schonberg <schonber@gnat.com>
34540         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
34541         constant, do not indicate possible modification, so that gigi can
34542         treat it as a bona fide constant.
34544 2001-10-10  Robert Dewar <dewar@gnat.com>
34546         * sem_prag.adb: Add processing for pragma External.
34548         * snames.ads: Add entry for pragma External.
34550         * par-prag.adb: Add pragma External.
34552         * snames.adb: Updated to match snames.ads.
34554 2001-10-10  Ed Schonberg <schonber@gnat.com>
34556         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
34557         a dynamic task if the allocator appears in an indexed assignment
34558         or selected component assignment.
34560         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
34561         For a dynamic task in an assignment statement, use target of
34562         assignment to generate meaningful name.
34564 2001-10-10  Ed Schonberg <schonber@gnat.com>
34566         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
34567         a generic package.
34569         * einfo.ads: Body_Entity is also defined for generic package.
34570         Documentation change only
34572         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
34573         others_choice for a discriminated component initialization,
34574         convert discriminant references into the corresponding discriminals.
34576         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
34577         only if original type is private and expression has to be wrapped
34578         in a conversion.
34580         * checks.adb:
34581         (Apply_Constraint_Check): Do not perform length check
34582         if expression is an aggregate with only an others_choice.
34583         (Length_N_Cond): two references to the same in_parameter
34584         (typically the discriminal in an init_proc) denote the same value.
34585         Two useful optimization uncovered by bugfixes above.
34587 2001-10-10  Robert Dewar <dewar@gnat.com>
34589         * xeinfo.adb: Change int to char in translation of enumeration types.
34590         This fixes a problem in the C representation of component alignment.
34591         Add 2001 to copyright notice
34593 2001-10-10  Richard Kenner <kenner@gnat.com>
34595         * decl.c: (validate_size): Do check size of object of integral type
34596         if it is a packed array type.
34598 2001-10-10  Richard Kenner <kenner@gnat.com>
34600         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
34601         VAR_DECL for constant if not Is_Public but -O0.
34603 2001-10-10  Richard Kenner  <kenner@gnat.com>
34605         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
34607 2001-10-10  Geert Bosch  <bosch@gnat.com>
34609         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
34610         use '/' as switch character, allowing for absolute file names.
34612 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
34614         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
34615         FSF address.
34617 2001-10-08  Geert Bosch  <bosch@gnat.com>
34619         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
34620         Automatically build utilities when files need to be regenerated.
34622 2001-10-08  Geert Bosch  <bosch@gnat.com>
34624         * xsnames.adb: New utility for updating snames.ads and snames.adb
34626 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
34628         * Make-lang.in (ADAFLAGS): Add -W -Wall.
34629         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
34630         (gnat1): Also depend on attribs.o.
34631         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
34632         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
34633         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
34634         (ADAFLAGS): Add -W -Wall.
34635         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
34636         take out CFLAGS.
34638         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
34639         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
34640         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
34641         Use $(ADAC), not $(CC), as compilation command.
34643         (gnattools): Depend directly on tools to build, don't use
34644         recursive make.
34645         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
34647         * einfo.h, sinfo.h: New files (autogenerated).
34649 2001-10-08  Richard Henderson  <rth@redhat.com>
34651         * comperr.adb (Abort_In_Progress): New.
34652         (Compiler_Abort): Use it to prevent recursion.
34654 2001-10-08  Robert Dewar <dewar@gnat.com>
34656         * atree.adb: Set Error_Posted in Error node, helps error recovery.
34658         * par-endh.adb (Output_End_Expected): We should also not test
34659         Error_Posted on the Error node, since now it is always set.
34661         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
34662         to help error recovery. Part of general work on 9407-004.
34664         * par.adb: Add ??? for misuse of error
34666         * sem_res.adb:
34667         (Resolve): Defend against Error, fixes 9407-003.
34668         (Resolve_Discrete_Subtype_Indication): Defend against Error.
34670         * sinfo.ads (N_Error): Now has Etype field (which will be set
34671         to Any_Type to help error recovery).
34673 2001-10-08  Richard Kenner (kenner@gnat.com)
34675         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
34676         Consistently set MEM attributes from expression; fixes
34677         bootstrap failure on x86.
34679 2001-10-08  Geert Bosch  (bosch@gnat.com)
34681         * 5oosinte.adb: Add 2001 to copyright notice.
34683 2001-10-08  Geert Bosch  (bosch@gnat.com)
34685         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
34687         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
34689 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
34691         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
34693 2001-10-05  Geert Bosch  (bosch@gnat.com)
34695         * adaint.h: Small formatting fix.
34697 2001-10-04  Geert Bosch  <bosch@gnat.com>
34699         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
34700         Arg is int, not FILE *, in dummy version of functions.
34702         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
34703         Arg is int, not FILE *.
34705 2001-10-04  Geert Bosch  <bosch@gnat.com>
34707         * 3lsoccon.ads: Added file, missed with initial check ins.
34709         * 4lintnam.ads: Fix header format.
34710         Change Linux to GNU/Linux.
34712         * 5iosinte.adb: Change Linux to GNU/Linux.
34714         * 5iosinte.ads: Change Linux to GNU/Linux.
34716         * 5itaprop.adb: Change Linux to GNU/Linux.
34718         * 5itaspri.ads: Change Linux to GNU/Linux.
34719         Update copyright notice.
34721         * 5lintman.adb: Change Linux to GNU/Linux.
34723         * 5lml-tgt.adb: Change Linux to GNU/Linux.
34725         * 5losinte.ads: Change Linux to GNU/Linux.
34727         * 5lsystem.ads: Change Linux to GNU/Linux.
34729         * 5qosinte.adb: Change Linux to GNU/Linux.
34731         * 5qosinte.ads: Change Linux to GNU/Linux.
34733         * 5qparame.ads: Change Linux to GNU/Linux.
34735         * 5qtaprop.adb: Change Linux to GNU/Linux.
34737         * 5qtaspri.ads: Change Linux to GNU/Linux.
34738         Add 2001 to copyright notice.
34740         * 5vintman.ads: Change Linux to GNU/Linux.
34741         Fix header format.  Add 2001 to copyright notice.
34743         * g-soccon.ads: Change Linux to GNU/Linux.
34745         * g-trasym.ads: Change Linux to GNU/Linux.
34746         Add 2001 to copyright notice.
34748         * memtrack.adb: Change Linux to GNU/Linux.
34750         * s-intman.ads: Change Linux to GNU/Linux.
34751         Add 2001 to copyright notice.  Fix header format.
34753         * s-stache.adb: Change Linux to GNU/Linux.
34755         * adaint.c: Change Linux to GNU/Linux.
34757         * cio.c: Change Linux to GNU/Linux.
34759         * cstreams.c: Change Linux to GNU/Linux.
34761         * init.c: Change Linux to GNU/Linux.
34763         * gmem.c: Change Linux to GNU/Linux.
34765         * tracebak.c: Change Linux to GNU/Linux.
34768 2001-10-02  Geert Bosch  <bosch@gnat.com>
34770         * misc.c (insert_default_attributes): Add dummy version.