OSDN Git Service

PR preprocessor/30805:
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4
5 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6
7         * misc.c (gnat_handle_option): Replace call to abort with
8         call to gcc_unreachable.
9         (gnat_init): Likewise.
10         (gnat_expand_expr): Likewise.
11         (fp_prec_to_size): Likewise.
12         (fp_size_to_prec): Likewise.
13
14 2007-10-23  Richard Guenther  <rguenther@suse.de>
15
16         PR bootstrap/33608
17         * tracebak.c: #undef abort after including system.h.
18
19 2007-10-20  Danny Smith <dannysmith@users.sourceforge.net>
20
21         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
22         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
23         for win32 targets.
24         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
25
26 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
27
28         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
29         Set the protection status of the guard page based on the value of On.
30
31         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
32
33         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
34         (Exit_Task): Pass False to Hide_Yellow_Zone.
35
36 2007-10-15  Robert Dewar  <dewar@adacore.com>
37
38         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
39         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
40         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
41         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
42         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
43         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
44         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
45         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
46         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
47         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
48         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
49         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
50         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
51         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
52         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
53         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
54         Minor reformatting.
55         Add Unreferenced and Warnings (Off) pragmas for cases of
56         variables modified calls where they are IN OUT or OUT parameters and
57         the resulting values are not subsequently referenced. In a few cases,
58         we also remove redundant code found by the new warnings.
59
60         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
61         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
62         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
63         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
64         warning controlled by -gnatw.o that warns on cases of out parameter
65         values being ignored.
66
67 2007-10-15  Geert Bosch  <bosch@adacore.com>
68
69         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
70
71         * expect.c: Initial port to arm-mentor-nucleus.
72         Use kill for __gnat_kill() on VMS.
73
74 2007-10-15  Emmanuel Briot  <briot@adacore.com>
75
76         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
77         value.
78         (Xref_Record): Change type for Line, since in the case of a reference to
79         a predefined entity (as happens for array index types), the line is set
80         to 0.
81         Add support for parsing multiple array index types info, or
82         multiple inherited interfaces info. This information cannot be stored
83         in Xref_Entity_Record, which only supports a single instance of Tref_*,
84         and is therefore stored in the list of references instead. It has a
85         special treatement later on in tools that use this information.
86
87 2007-10-15  Tristan Gingold  <gingold@adacore.com>
88
89         * debug.adb: Document use of -gnatd.a and -gnatd.I
90
91         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
92
93 2007-10-15  Javier Miranda  <miranda@adacore.com>
94
95         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
96         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
97         care of access to class-wide interface types plus removal of bizarre
98         conversion of tagged object to access type (reported by Gary
99         Dismukes). After this patch there is no need to perform any
100         additional management on these nodes in Expand_Interface_Actuals.
101
102         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
103         that handles use of 'Access and 'Unchecked_Access applied to
104         actuals covering interface types. Such code is now
105         centralized in Expand_N_Attribute_Reference.
106
107 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
108
109         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
110         of tagged types whose ultimate ancestor is a CPP type.
111         (Freeze_Array_Type): For a packed array type, generate an initialization
112         procedure if the type is public, to handle properly a client that
113         specifies Normalize_Scalars.
114
115 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
116
117         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
118         inside a generic body, retrieve the full view of the entry family
119         discrete subtype if available.
120
121 2007-10-15  Thomas Quinot  <quinot@adacore.com>
122
123         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
124         attempt to generate stubs for hidden primitive operations.
125
126 2007-10-15  Vincent Celier  <celier@adacore.com>
127
128         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
129         returning None, used when there is no platform specific body for
130         MLib.Tgt.Specific.
131
132 2007-10-15  Bob Duff  <duff@adacore.com>
133
134         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
135         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
136         the generic Heap_Sort_G, in order to avoid trampolines.
137
138 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
139             Jose Ruiz  <ruiz@adacore.com>
140
141         * vx_stack_info.c: New file.
142
143         * i-forbla-unimplemented.ads: New file.
144
145         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
146         for unsupported configurations; use it on VMS targets instead of the
147         real one.
148         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
149         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
150         used by VxWorks targets to have access to task-specific data and be
151         able to extract the stack boundaries for stack checking.
152         Use system-vms-ia64.ads on ivms.
153
154         * Make-lang.in: Update dependencies.
155
156         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
157         (vx_stack_info.c).
158
159 2007-10-15  Vincent Celier  <celier@adacore.com>
160
161         * snames.adb, snames.ads: Add new standard name runtime_library_dir
162
163         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
164
165         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
166
167         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
168         the source is unknown.
169
170         * prj-ext.adb: Spelling error fix
171
172         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
173         95 reserved word in its name.
174         (Process_Project_Level_Array_Attributes): Process new attribute
175         Runtime_Library_Dir.
176
177         * prj-part.adb (Parse_Single_Project): Do not check the name of the
178         config project against the user project names.
179
180         * prj-proc.adb (Expression): In multi-language mode, indexes that do
181         not include a dot are always case insensitive.
182         (Process_Declarative_Items): Ditto
183         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
184         detected.
185
186         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
187         True, compare both indexes in lower case.
188
189 2007-10-15  Robert Dewar  <dewar@adacore.com>
190
191         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
192
193 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
194
195         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
196         association for an access component, add an association with null as
197         the expression. Remove testing for array subtypes and the setting in
198         that case of Ctyp to the array component type, which prevented proper
199         inclusion of an association for null-initialized arrays. Collapse
200         condition that tests for array subtypes into just a test of
201         Is_Partially_Initialized_Type (which already covers arrays anyway).
202
203 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
204
205         * sem_ch12.adb: Minor code reformatting.
206         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
207         find the parent package which may have been hidden by local
208         declarations.
209
210 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
211
212         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
213         flag of derived concurrent types, taking into account the flag setting
214         on the parent subtype and any new set of discriminants.
215
216 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
217
218         * sem_ch4.adb: Minor code and comment reformatting.
219         (Analyze_Allocator): When the designated type of an unconstrained
220         allocator is a record with unknown discriminants or an array with
221         unknown range bounds, emit a detailed error message depending on the
222         compilation mode and whether the designated type is limited.
223
224 2007-10-15  Tristan Gingold  <gingold@adacore.com>
225
226         * system-vms-ia64.ads: New file.
227
228         * system-vms_64.ads: Minor comment fix.
229
230 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
231
232         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
233         body generated for a function with a controlling result that is a null
234         extension, discard the generated body in favor of the current explicit
235         one.
236
237 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
238
239         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
240         examining its original form, to handle properly operator calls that
241         have been rewritten.
242
243 2007-10-15  Olivier Hainque  <hainque@adacore.com>
244
245         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
246         instead of a procedure value in each traceback entry.
247
248         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
249         instead of procedure value to TBK$SYMBOLIZE.
250
251         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
252         field.
253         (TB_Entry_For): Account for the PV/FP renaming.
254
255         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
256         add comment.
257         (Null_TB_Entry): Account for change of component name.
258         (PV_For): Rename as FP_For.
259
260 2007-10-15  Tristan Gingold  <gingold@adacore.com>
261
262         * trans.c (gnat_to_gnu): Remove the padding structure more often.
263         This optimize assignment to over-aligned record.
264
265 2007-10-15  Emmanuel Briot  <briot@adacore.com>
266
267         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
268         interfaces.
269
270         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
271         type, for dispatching calls.
272
273 2007-10-15  Vincent Celier  <celier@adacore.com>
274             Robert Dewar  <dewar@adacore.com>
275
276         * gnat_ugn.texi: Add documentation for switches --version and --help
277         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
278         gnatxref, gnatfind, gnatls, and gnatclean.
279         Document -gnatw.o.
280         Mention attribute Excluded_Source_Dirs
281         Replace obsolescent attribute Locally_Removed_Files with attribute
282         Excluded_Source_Files.
283         Improve documentation of -u (gnatbind)
284         Document how to do reliable stack checking for the environmental task
285         on iVMS.
286
287         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
288         Document attribute Excluded_Source_Files and indicate that attribute
289         Locally_Removed_Files is obsolescent.
290
291 2007-10-15  Thomas Quinot  <quinot@adacore.com>
292
293         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
294
295         * gen-soccon.c: 
296         Update documentation to note that OpenVMS 8.3 or later must be used
297         to generate g-soccon-vms.ads.
298
299         * atree.adb: Add ??? comment
300
301         * exp_util.adb: Minor reformatting.
302         Add ??? comment in Kill_Dead_Code.
303
304 2007-10-15  Robert Dewar  <dewar@adacore.com>
305
306         * errout.ads: Comment clarification
307
308         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
309         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
310
311         * lib.ads: Comment update
312
313         * init.c: Minor reformatting.
314
315         * sem_attr.adb: Minor formatting
316
317         * osint-b.ads: Minor reformatting
318
319         * sem_ch9.adb: Implement -gnatd.I switch
320
321         * g-comlin.adb: (Start): Fix handling of empty command line.
322
323         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
324         even when -rules follows the -cargs section.
325
326 2007-10-08  Ollie Wild  <aaw@google.com>
327
328         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
329         gnat_return_tree.
330         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
331         gnat_return_tree.
332         (gnat_eh_runtime_type): Removed.
333         (gnat_return_tree): New function.
334
335 2007-10-08  Ben Elliston  <bje@au.ibm.com>
336
337         PR ada/33454
338         Revert:
339         2007-08-31  Ben Elliston  <bje@au.ibm.com>
340
341         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
342         when compiling for powerpc64-*-linux.
343         * system-linux-ppc64.ads: New file.
344
345 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
346
347         Mapped location support
348         * back_end.adb (Call_Back_End): Pass information about source
349         files instead of units to gigi.
350         * gigi.h (struct File_Info_Type): New.
351         (gigi): Rename and change type of number_units parameter, change
352         type of file_info_ptr parameter.
353         * trans.c (number_files): New global variable.
354         (gigi): Rename and change type of number_units parameter, change
355         type of file_info_ptr parameter.
356         If mapped location support is enabled, create the isomorphic mapping
357         between source files and line maps.
358         (Sloc_to_locus): If mapped location support is enabled, translate
359         source location into mapped location.
360         (annotate_with_node): Rename into set_expr_location_from_node.
361         Call set_expr_location instead of annotate_with_locus.
362         (Pragma_to_gnu): Adjust for above change.
363         (Loop_Statement_to_gnu): Likewise.
364         (call_to_gnu): Likewise.
365         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
366         (gnat_to_gnu): Likewise.
367         (add_stmt_with_node): Likewise.
368         (add_cleanup): Likewise.
369         * utils.c (gnat_init_decl_processing): Do not set input_line.
370
371 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
372
373         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
374         (Applicable_Use): Emit a warning when a package tries to use itself.
375         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
376         is already in use or the package where it is declared is in use or is
377         declared in the current package.
378         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
379
380         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
381         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
382         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
383
384 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
385
386         * a-calend-vms.adb, a-calend.adb: 
387         Add a section on leap seconds control along with two entities used to
388         enable and disable leap seconds support. The array Leap_Second_Times is
389         now constant and contains hard time values pre-generated. Remove
390         all elaboration code used to populate the table of leap seconds.
391
392         * bindgen.adb: 
393         Add entity Leap_Seconds_Support to the list of global run-time variables
394         along with a comment on its usage and values.
395         (Gen_Adainit_Ada): Add code to generate the declaration and import of
396         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
397         or one (enabled) depending on the presence of binder switch "-y".
398         (Gen_Adainit_C): Add code to generate the declaration of external int
399         __gl_leap_seconds_support. Set is value to zero (disabled) or one
400         (enabled) depending on the presence of binder switch "-y".
401
402         * init.c: Add __gl_leap_seconds_support to the list of global values
403         computed by the binder.
404
405 2007-09-26  Jerome Guitton  <guitton@adacore.com>
406
407         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
408         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
409          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
410         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
411
412         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
413
414         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
415         function which can be called by the debugger to interrupt the tasks of
416         an Ada application asynchronously, as needed on VxWorks.
417         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
418
419         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
420         renamed from Stop_All_Tasks. Update comments.
421         (Stop_All_tasks): New function declaration.
422
423 2007-09-26  Olivier Hainque  <hainque@adacore.com>
424
425         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
426         #include <utime.h> and #define GCC_RESOURCE_H before
427         #include <sys/wait.h>.
428         Add more protections in __gnat_translate_vms.
429
430         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
431         #include <sys/wait.h>.
432
433 2007-09-26  Thomas Quinot  <quinot@adacore.com>
434             Sergey Rybin  <rybin@adacore.com>
435
436         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
437
438         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
439         where it belongs.
440
441         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
442
443         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
444         where it belongs.
445
446         * sem_dist.ads: Minor comment fix
447
448         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
449
450 2007-09-26  Javier Miranda  <miranda@adacore.com>
451             Eric Botcazou  <ebotcazou@adacore.com>
452
453         * a-tags.adb: 
454         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
455          indirection added to the HT_Link component of the TSD. This is required
456          to statically allocate the TSD.
457
458         * a-tags.ads: 
459         Minor reordering of the declarations in the private part. Required to
460         add a level of indirection to the contents of the TSD component HT_Link.
461         This is required to statically allocate the TSD.
462
463         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
464         Is_Statically_Allocated set from constant objects.
465         Do not make exported constants created by the compiler volatile.
466         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
467         as read-only.
468
469         * trans.c (Identifier_to_gnu): For constants, unshare initializers
470         before returning them.
471
472         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
473         public part of the package.
474         (Make_DT): Move HT_Link component out of the TSD record. For this
475         purpose Make_DT now declares a separate object that stores the
476         HT_Link value, and initializes the TSD component with the address
477         of this new object. The addition of this level of indirection is
478         required to statically allocate the TSD because the TSD cannot
479         have variable components.
480         (Expand_Interface_Conversion): Improve the expanded code.
481         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
482
483         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
484         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
485         if we are building static dispatch tables then we must not generate
486         extra code to register the primitive because the dispatch table will
487         be built at the end of the library package; otherwise we notify that
488         we cannot build the static dispatch table.
489
490 2007-09-26  Robert Dewar  <dewar@adacore.com>
491
492         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
493         overlays.
494
495         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
496         (Analyze_Record_Representation_Clause): Suppress junk warning for
497         missing component clause.
498         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
499         tests for controlled type overlay to composites with controlled
500         components.
501         (Analyze_Record_Representation_Clause): Add reference for component name
502
503 2007-09-26  Javier Miranda  <miranda@adacore.com>
504             Gary Dismukes  <dismukes@adacore.com>
505
506         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
507         for thunks associated with interface types.
508
509         * einfo.ads: Improve documentatation of Is_Internal
510         (Is_Thunk): New attribute applicable to subprograms. True for thunks
511         associated with interface types.
512         Extensive comment fixes regarding flags that appear in all entities. The
513         documentation is now consistent for all such flags (there were a number
514         of errors in the documentation in this regard).
515
516         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
517
518         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
519         of these procedures are passed a function call that already has
520         build-in-place actuals (testing new flag
521         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
522         the case where processing continues.
523         (Expand_Call): If the call is generated from a thunk body then we
524         propagate the extra actuals associated with the accessibility
525         level of the access type actuals.
526
527         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
528         of each extra formal of a protected operation to reference the
529         corresponding extra formal of the subprogram denoted by the
530         operation's Protected_Body_Subprogram.
531         
532         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
533         N_Function_Call nodes.
534
535 2007-09-26  Robert Dewar  <dewar@adacore.com>
536
537         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
538
539         * debug.adb: Add d.s flag.
540
541 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
542
543         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
544         debug variable so that it won't be initialized when pragma
545         Initialize_Scalars is in effect.
546
547 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
548
549         * freeze.adb (Freeze_Entity): Remove check for preelaborable
550         initialization of a full view. This is moved to
551         Analyze_Package_Specification.
552
553         * sem_ch7.adb (Analyze_Package_Specification): Add check for
554         preelaborable initialization of a full view in entity loop.
555         (Uninstall_Declarations): If entity is a use-visible compilation unit,
556         its child units are use-visible only if they are visible child units.
557
558         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
559         whether an expression can be used within a type declaration that
560         requires preelaborable init.
561         (Check_Components): Replace inline code that does partial checking for
562         preelaborable default expressions with call to
563         Is_Preelaborable_Expression.
564         (Has_Preelaborable_Initialization): In the case of a generic actual
565         subtype, (that is, Is_Generic_Actual is True), return the result of
566         applying Has_Preelaborable_Initialization to the generic actual's base
567         type.
568
569 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
570
571         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
572         call to Jan_1_Day _Of_Week to optimize its performance.
573         (Is_Leap): Move the routine to the scope of Week_In_Year.
574         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
575         weekday on which January 1 falls of Year - 1 and Year + 1. This function
576         avoids calling Time_Of and Split, thus making it more efficent.
577         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
578
579         * g-calend.ads (Week_In_Year): Change comment to reflect new
580         implementation.
581
582 2007-09-26  Emmanuel Briot  <briot@adacore.com>
583
584         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
585         Command_Line): New types
586         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
587         support for defining how switches can be grouped on a command line (as
588         is the case for -gnatw... for GNAT), and how simple switches can be
589         used as aliases for more complex switches (-gnatwa is same as
590         -gnatwbcef...)
591         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
592         (Start, Current_*): New subprograms
593         Added support for parsing an array of strings in addition to the real
594         command line.
595         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
596          be moved from the body to the private part of the spec.
597         (*): All subprograms now have an extra parameter with default value to
598         specify which parser should be used. For backward compatibility, it
599         defaults to parsing the command line of the application. They were also
600         modified to properly handle cases where each of the argument does not
601         start at index 1 (which is always true for Ada.Command_Line, but not
602         when processing any Argument_List).
603         (Free): New subprogram
604         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
605         Argument): New subprograms
606         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
607         special characters like ':', '=',... are now handled in a single place,
608         which makes the code more extensible eventually.
609         (Getopt, Full_Switch): When the switch was returned as part of the
610         special character '*', make sure it is prepended by the switch character
611         ('-' in general), so that the application knows whether "foo" or "-foo"
612         was specified on the command line.
613
614 2007-09-26  Florian Villoing  <villoing@adacore.com>
615
616         * g-dirope.adb (Remove_Dir): In case we are removing directories
617         recursively, make sure that if an exception is raised during the
618         processing, the current working directory is reset to its initial
619         value before propagating the exception.
620
621 2007-09-26  Vincent Celier  <celier@adacore.com>
622
623         * gnatbind.adb: If there are several ALI files specified and there is
624         a main program to bind, the first ALI is expected to contain the main
625         subprogram and the names of the binder generated files will be derived
626         from the first ALI file name.
627         (Gnatbind): Fix insertion character in invocation of Error_Msg
628
629 2007-09-26  Vincent Celier  <celier@adacore.com>
630
631         * gnatcmd.adb (Check_Files): Do not include sources that have been
632         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
633
634 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
635
636         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
637         information about each of its index types, following the type
638         reference for its component type.
639
640 2007-09-26  Vincent Celier  <celier@adacore.com>
641
642         * make.adb: (Kill): New procedure (__gnat_kill imported)
643         (Running_Compile, Outstanding_Compiles): Global variables that
644         were previously local to procedure Compile_Sources.
645         (Sigint_Intercepted): Send signal SIGINT to all outstanding
646         compilation processes.
647
648         (Gnatmake): If project files are used, create the mapping of all the
649         sources, so that the correct paths will be found.
650
651         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
652
653 2007-09-26  Vincent Celier  <celier@adacore.com>
654
655         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
656
657         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
658         Replace components Compiler_Min_Options and Binder_Min_Options with
659         Compiler_Required_Switches and Binder_Required_Switches in record
660         Language_Config.
661         Remove components Default_Language and Config in Project_Tree_Data,
662         no longer used.
663
664         * prj-attr.adb: New attributes Required_Switches (<language>) in
665         packages Compiler and Binder.
666
667         * prj-nmsc.adb: Major rewrite of the processing of configuration
668         attributes for gprbuild. No impact on GNAT tools.
669
670         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
671         process configuration attributes: this is done in Prj.Nmsc.Check.
672         (Recursive_Process): Make a full copy of packages inherited from project
673         being extended, instead of a shallow copy.
674         (Process_Project_Tree_Phase_1): New procedure
675         (Process_Project_Tree_Phase_1): New procedure
676         (Process): Implementation now uses the two new procedures
677
678         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
679         from the project config, not the tree config that no longer exists.
680
681 2007-09-26  Vincent Celier  <celier@adacore.com>
682
683         * Make-lang.in: Update dependencies..
684
685 2007-09-26  Vincent Celier  <celier@adacore.com>
686
687         * osint.adb, osint.ads: Minor reformatting
688
689         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
690
691 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
692
693         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
694         message to cite use of <> in aggregate component associations rather
695         than wrongly indicating use of limited aggregates.
696
697 2007-09-26  Robert Dewar  <dewar@adacore.com>
698
699         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
700         Address_Taken.
701
702 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
703
704         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
705         ancestor of the derived type, the operations are inherited from the
706         primary dispatch table of the parent.
707         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
708         when the context is an explicit type conversion.
709
710 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
711
712         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
713         rule for qualified expressions properly, to detect improper conversions
714         and resolve some cases of overloading.
715
716 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
717
718         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
719         proper kind of reference to the primitive operation, for better source
720         navigation.
721         (Valid_Conversion): A tagged conversion is legal if both operands are
722         tagged.
723
724 2007-09-26  Robert Dewar  <dewar@adacore.com>
725
726         * sem_warn.adb (Check_References): Catch more cases of unreferenced
727         packages.
728
729 2007-09-26  Vincent Celier  <celier@adacore.com>
730
731         * snames.adb, snames.ads: Change Include_Option to Include_Switches
732
733 2007-09-26  Robert Dewar  <dewar@adacore.com>
734
735         * s-wchstw.adb: provide messages for run time unit exceptions
736
737         * a-witeio.adb: Minor reformatting
738
739         * exp_ch13.adb: Minor reformatting
740
741 2007-09-26  Sergey Rybin  <rybin@adacore.com>
742
743         * vms_data.ads: Revise gnatmetric qualifiers.
744         Add qualified for the new gnatbind option '-y'
745
746         * gnat_ugn.texi: Revise the gnatmetric section.
747         Add entry for new gnatbind option '-y'.
748
749         * gnat_rm.texi: Minor spelling correction.
750         Document restriction on overlaying controlled types
751
752 2007-09-26  Vincent Celier  <celier@adacore.com>
753
754         * makegpr.adb (Link_Executables): Do not fail when the root project has
755         no sources, but is an extending project.
756
757 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
758
759         * trans.c: Fix misplaced #define.
760
761 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
762
763         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
764         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
765
766 2007-09-21  Olivier Hainque  <hainque@adacore.com>
767
768         * utils.c (type_for_nonaliased_component_p): Return false for
769         all AGGREGATE_TYPEs.
770
771 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
772
773         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
774         object covered by 13.3(19) volatile.
775
776 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
777
778         PR ada/26797
779         PR ada/32407
780         * utils.c (unchecked_convert): Use a subtype as the intermediate type
781         in the special VIEW_CONVERT_EXPR case.
782
783 2007-09-12  Robert Dewar  <dewar@adacore.com>
784
785         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
786
787         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
788         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
789         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
790         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
791         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
792         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
793         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
794         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
795         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
796         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
797         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
798         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
799         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
800         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
801         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
802         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
803         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
804         pragma Compiler_Unit and adds it to relevant library units.
805
806 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
807
808         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
809         a box need not correspond to any component.
810
811 2007-09-12  Robert Dewar  <dewar@adacore.com>
812
813         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
814         the tasking version of the Ada run time when foreign threads are
815         present and there are no explicit Ada tasks or tasking constructs.
816
817         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
818
819 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
820
821         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
822         the usage of switch -y.
823
824         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
825         when switch -y is present.
826
827         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
828         leap seconds in Ada.Calendar and its children.
829
830 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
831
832         * a-extiti.ads (Timer): The discriminant is a "not null access
833         constant" in the Reference Manual.
834         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
835
836 2007-09-12  Robert Dewar  <dewar@adacore.com>
837
838         * a-swuwha.adb: Remove junk RM header
839
840 2007-09-12  Vincent Celier  <celier@adacore.com>
841
842         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
843         indicator
844
845         * g-bytswa.ads: Minor reformatting
846
847 2007-09-12  Thomas Quinot  <quinot@adacore.com>
848
849         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
850         Add new constant Thread_Blocking_IO, always True by default, set False
851         on a per-runtime basis.
852         (Need_Netdb_Buffer): New constant.
853
854 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
855
856         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
857         Added renames for corresponding functions in System.Partition_Interface.
858
859 2007-09-12  Doug Rupp  <rupp@adacore.com>
860
861         * Makefile.in: Remove VMS specific System.CRTL packages which are no
862         longer needed.
863
864         * s-crtl-vms64.ads: Removed.
865
866 2007-09-12  Olivier Hainque  <hainque@adacore.com>
867
868         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
869         with discriminant constraints, generalize the code for BIT_FIELDs
870         to PACKED fields of constant size and propagate DECL_PACKED.
871
872 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
873
874         * decl.c (array_type_has_nonaliased_component): New predicate.
875         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
876         set the TYPE_NONALIASED_COMPONENT flag on the type.
877         <E_Array_Subtype>: Likewise.
878         * gigi.h (type_for_nonaliased_component_p): Declare.
879         * utils.c (type_for_nonaliased_component_p): New predicate.
880         (create_field_decl): Invoke the above predicate to set the
881         DECL_NONADDRESSABLE_P flag on the field.
882
883 2007-09-11  Javier Miranda  <miranda@adacore.com>
884
885         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
886         in library level record type entities if we are generating statically
887         allocated dispatch tables.
888
889         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
890         importing/exporting the _tag declaration by new code
891         importing/exporting the dispatch table wrapper. This change allows us
892         to statically allocate of the TSD.
893         (Make_DT.Export_DT): New procedure.
894         (Build_Static_DT): New function.
895         (Has_DT): New function.
896
897         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
898         True_Constant and Current_Value. Required to statically
899         allocate the dispatch tables.
900         (Check_Allocator): Make function iterative instead of recursive.
901         Also return inner allocator node, when present, so that we do not have
902         to look for that node again in the caller.
903
904 2007-09-11  Jan Hubicka <jh@suse.cz>
905
906         * misc.c (gnat_expand_body): Kill.
907         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
908
909 2007-09-10  Robert Dewar  <dewar@adacore.com>
910
911         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
912         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
913         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
914         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
915         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
916         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
917         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
918         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
919         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
920         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
921         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
922         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
923         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
924         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
925         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
926         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
927         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
928         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
929         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
930         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
931         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
932         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
933         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
934         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
935         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
936         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
937         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
938         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
939         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
940         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
941         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
942         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
943         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
944         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
945         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
946         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
947         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
948         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
949         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
950         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
951         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
952         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
953         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
954         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
955         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
956         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
957         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
958         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
959         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
960         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
961         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
962         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
963         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
964         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
965         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
966         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
967         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
968         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
969         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
970         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
971         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
972         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
973         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
974         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
975         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
976         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
977         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
978         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
979         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
980         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
981         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
982         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
983         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
984         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
985         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
986         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
987         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
988         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
989         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
990         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
991         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
992         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
993         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
994
995 2007-09-10  Emmanuel Briot  <briot@adacore.com>
996
997         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
998         classes ("[]").
999
1000 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
1001
1002         * adaint.c (__gnat_translate_vms): new function.
1003
1004 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
1005             Thomas Quinot  <quinot@adacore.com>
1006
1007         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
1008         create an abstract subprogram in the case of 'Input. For 'Output we now
1009         create a real spec/body when the type is abstract, since it can
1010         potentially be called.
1011         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
1012         body for 'Output when the type is abstract (only the creation of the
1013         body for 'Input is excluded when the type is abstract).
1014         (Stream_Operation_OK): Add an additional condition in the return
1015         statement, so that False will be returned for TTS_Stream_Input if the
1016         associated tagged type is an abstract extension. Add comments for
1017         return statement.
1018         (Expand_N_Object_Declaration): For the case of a shared passive
1019         variable, insert init proc call only after the shared variable
1020         procedures have been processed, because the IP call needs to undergo
1021         shared passive variable reference expansion, which requires these
1022         procedures to be available (and elaborated).
1023
1024 2007-09-10  Vincent Celier  <celier@adacore.com>
1025
1026         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
1027         parameter Runtime_Project.
1028
1029 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
1030
1031         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
1032         given a box association, the type of the component is discriminated,
1033         and the value of the discriminant is the discriminant of the enclosing
1034         type, retrieve its value from the aggregate itself, where it must have
1035         been supplied.
1036
1037         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
1038         to remove other spurious ambiguities on arithmetic operations involving
1039         literals and addresses, on systems where Address is a visible integer
1040         type, when the operator is called in functional notation.
1041         (Try_Primitive_Operation): Within an instance, a call in prefixed form
1042         is legal when the types match, even if the operation is currently
1043         hidden.
1044
1045 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
1046
1047         * sem_ch12.adb (Build_Local_Package): A formal package with no
1048         associations is legal if all formals have defaults. It is not
1049         equivalent to a formal declared with a box.
1050
1051 2007-09-10  Sergey Rybin  <rybin@adacore.com>
1052
1053         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
1054
1055 2007-09-10  Sergey Rybin  <rybin@adacore.com>
1056
1057         * gnat_ugn.texi: Add description of the new '-lratio' option
1058         Update 7.3.1 section about availability of the feature.
1059
1060 2007-09-10  Thomas Quinot  <quinot@adacore.com>
1061
1062         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
1063         inserted node.
1064
1065 2007-09-10  Olivier Hainque  <hainque@adacore.com>
1066
1067         * Makefile.in: (mips-irix section): Activate build of libgmem.
1068
1069 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
1070
1071         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
1072         x87 registers.
1073
1074 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
1075
1076         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
1077         a debug renaming declaration specially.
1078
1079 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1080
1081         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
1082         which a constant renaming is treated as a normal object declaration.
1083         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
1084         the N_Indexed_Component case.
1085         <N_Indexed_Component>: Fall through to above case.
1086         <N_Object_Renaming_Declaration>: Return true for all composite types.
1087
1088 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1089
1090         * decl.c (make_packable_type): If the new type has been given BLKmode,
1091         try again to get an integral mode for it.
1092
1093 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
1094
1095         Re-apply accidentally reverted change:
1096
1097         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
1098
1099         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
1100         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
1101         and _Unwind_SWord with _sleb128_t.
1102
1103 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
1104
1105         * trans.c (convert_with_check): Update call to real_2expN.
1106
1107 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
1108
1109         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
1110         * utils.c (end_subprog_body): Likewise.
1111
1112 2007-09-03  Nick Clifton  <nickc@redhat.com>
1113
1114         * Make-lang.in: Change copyright header to refer to version 3 of
1115         the GNU General Public License and to point readers at the
1116         COPYING3 file and the FSF's license web page.
1117         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
1118         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
1119         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
1120         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
1121         Likewise.
1122
1123 2007-08-31  Vincent Celier  <celier@adacore.com>
1124
1125         PR ada/4720
1126
1127         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
1128         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
1129         (Check_Version_And_Help): New procedure in package Switch to process
1130         switches --version and --help.
1131         Use Check_Version_And_Help in GNAT tools
1132
1133         * make.adb:  Ditto.
1134         (Compile_Sources): Make sure that sources that are "excluded" are not
1135         compiled.
1136         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
1137         project file is used.
1138         (Version_Switch): Remove, moved to Switch
1139         (Help_Switch): Remove, moved to Switch
1140         (Display_Version): Remove, moved to Switch
1141
1142         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
1143         package Switch to process switches --version and --help.
1144         (Display_Version): New procedure
1145
1146         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
1147
1148 2007-08-31  Javier Miranda  <miranda@adacore.com>
1149
1150         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
1151         internal tags.
1152
1153 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
1154
1155         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
1156         (Mark_Non_Null): If the node for which we just generated an access check
1157         is a reference to an *in* parameter and the reference appears in the
1158         declarative part of a subprogram body, mark the node as known non null.
1159
1160 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
1161
1162         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
1163         structure of E_Exception to reflect the new flag.
1164         (Is_Raised, Set_Is_Raised): New inlined routines.
1165         Update the usage of available flag to reflect the addition of Is_Raised.
1166         (Is_Raised, Set_Is_Raised): Bodies of new routines.
1167         (Write_Entity_Flags): Write the status of flag Is_Raised.
1168         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
1169         spurious ambiguities when integer literals appear in the context of an
1170         address type that is a visible integer type.
1171
1172         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
1173         exceptions never being raised.
1174         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
1175         explicitly raised.
1176
1177 2007-08-31  Javier Miranda  <miranda@adacore.com>
1178
1179         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
1180         statement when compiling under restriction No_Exceptions_Proparation.
1181
1182 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
1183
1184         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
1185         initialization aggregate for the type, generate itype references for
1186         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
1187
1188 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
1189
1190         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
1191         library-level package renaming, pass the declaration associated with
1192         the renaming's special debug variable to Qualify_Entity_Names to ensure
1193         that its encoded name is properly qualified.
1194
1195         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
1196         occurring in the list of entities to qualify, and do not attempt to
1197         traverse an entity list in that case. Variables associated with
1198 `       library-level package renamings can now occur in the table.
1199
1200         * exp_dbug.ads: Revise documentation of the encoding for renaming
1201         declarations.
1202
1203 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1204
1205         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
1206         access type points to an unconstrained array.
1207
1208 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
1209
1210         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
1211         conversion.
1212
1213         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
1214         simple redundant qualifications. The check is performed whenever the
1215         expression is a non-overloaded identifier.
1216         (Resolve_Type_Conversion): Enchance the redundant type conversion check
1217         to include loop parameters.
1218         (Valid_Conversion): Avoid generation of spurious error message.
1219
1220 2007-08-31  Bob Duff  <duff@adacore.com>
1221
1222         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
1223         concatenations of string literals into a single literal, in order to
1224         avoid very deep recursion in the front end, which was causing stack
1225         overflow.
1226
1227         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
1228         string, and the right operand is a string literal (the case of "" &
1229         "..."), optimize by avoiding copying the right operand -- just use the
1230         value of the right operand directly.
1231
1232         * stringt.adb (Store_String_Chars): Optimize by growing the
1233         String_Chars table all at once, rather than appending characters one by
1234         one.
1235         (Write_String_Table_Entry): If the string to be printed is very long,
1236         just print the first few characters, followed by the length. Otherwise,
1237         doing "pn(n)" in the debugger can take an extremely long time.
1238
1239         * sem_prag.adb (Process_Interface_Name): Replace loop doing
1240         Store_String_Char with Store_String_Chars.
1241
1242 2007-08-31  Vincent Celier  <celier@adacore.com>
1243
1244         * prj-attr.adb: Add new attribute Excluded_Source_Files
1245
1246         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
1247         Locally_Removed_Files.
1248
1249         * snames.ads, snames.adb: New standard name Excluded_Source_Files
1250
1251 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
1252
1253         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
1254         clauses of subunits, ignore limited_with_clauses that are illegal and
1255         have not been fully analyzed.
1256
1257 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
1258
1259         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
1260         flag, for effiency. It is called when analyzing arithmetic operators
1261         and also for actuals in calls that are universal_integers. The flag is
1262         set for the predefined type address, and for any type or subtype
1263         derived from it.
1264
1265         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
1266         Universal_Integer, when the formal is a descendent of address and the
1267         call appears in user code.
1268         (Analyze_Selected_Component): if the prefix is a private extension, the
1269         tag component is visible.
1270
1271         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
1272         entity flag.
1273
1274 2007-08-31  Robert Dewar  <dewar@adacore.com>
1275
1276         * s-fileio.adb (Open): Normalize file name to lower case in non-case
1277         sensitive file name systems to avoid unexpected mismatch in Vista.
1278
1279 2007-08-31  Vincent Celier  <celier@adacore.com>
1280
1281         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
1282
1283 2007-08-31  Vincent Celier  <celier@adacore.com>
1284
1285         * symbols-vms.adb (Initialize): Read symbol files with continuation
1286         lines
1287         (Finalize): If symbol is long, split the line
1288
1289 2007-08-31  Vincent Celier  <celier@adacore.com>
1290
1291         * fmap.ads: Minor comment updates
1292
1293 2007-08-31  GNAT Script  <nobody@adacore.com>
1294
1295         * Make-lang.in: Makefile automatically updated
1296
1297 2007-08-31  Bob Duff  <duff@adacore.com>
1298
1299         * sinfo.ads: Minor comment fix.
1300
1301 2007-08-31  Thomas Quinot  <quinot@adacore.com>
1302
1303         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
1304         with implementation.
1305         Documentation cleanup only.
1306
1307 2007-08-31  Sergey Rybin  <rybin@adacore.com>
1308
1309         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
1310         gnatpp '--separate-stmt-name' option.
1311         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
1312         option.
1313
1314         * gnat_ugn.texi: Add description for the new gnatpp
1315         '--separate-stmt-name' and '--use-on-new-line' options.
1316
1317 2007-08-31  Ben Elliston  <bje@au.ibm.com>
1318
1319         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
1320         when compiling for powerpc64-*-linux.
1321         * system-linux-ppc64.ads: New file.
1322
1323 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
1324
1325         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
1326         NetBSD.
1327
1328 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1329
1330         * misc.c (gnat_type_max_size): Constify.
1331
1332 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
1333
1334         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
1335         associated with Standard_Debug_Renaming_Type, to be used as the type of
1336         the special variables whose names provide debugger encodings for
1337         renaming declarations.
1338
1339         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
1340         (Set_Debug_Renaming_Link): Change to set Node25.
1341         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
1342         (Write_Field25_Name): Add case for E_Variable to output
1343         "Debug_Renaming_Link".
1344         (Write_Field23_Name): Correct the output string for "Limited_View".
1345
1346         * exp_dbug.adb: Add with and use of Tbuild.
1347         (Debug_Renaming_Declaration): Replace creation of an enumeration type
1348         and literal with creation of a variable of type
1349         Standard_Debug_Renaming_Type whose name encodes both the renamed object
1350         and the entity of the renaming declaration.
1351         (Qualify_Entity_Name): Add the delayed qualification of the entity name
1352         part of the name of a variable that has a Debug_Renaming_Link.
1353
1354         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
1355         special type to be associated with variables that provide debugger
1356         encodings for renaming declarations.
1357
1358 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
1359             Ed Schonberg  <schonberg@adacore.com>
1360             Javier Miranda  <miranda@adacore.com>
1361
1362         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
1363         ancestor part given by an aggregate to test for an unchecked conversion,
1364         since this can occur in some cases when the ancestor part is a function
1365         call, and we don't want to fall into the recursive call to this
1366         procedure in that case.
1367
1368         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
1369         stream attributes on limited types to account for user-specified
1370         attributes as well as whether Input (resp. Output) becomes available
1371         due to Read (resp. Write) being available for the type. Change Boolean
1372         variable to the more accurate name
1373         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
1374         double-"not" predicate at beginning of return statement to more
1375         understandable form.
1376
1377         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
1378         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
1379         in a block statement and use that as the first statement of the
1380         expanded return rather than incorrectly using the handled sequence as
1381         the first statement.
1382
1383         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
1384         operation, generate an explicit freeze node for it rather than
1385         generating extra formals, to ensure that gigi has the proper order of
1386         elaboration for anonymous subtypes in the signature of the subprograms.
1387         (Build_In_Place_Formal): Move assertion to beginning of loop.
1388         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
1389         applied to a function call (occurs for some cases of 'Input).
1390         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
1391         applied to a function call (occurs for some cases of 'Input).
1392
1393         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
1394         2005, generate an extended return statement enclosing the result object
1395         and 'Read call.
1396
1397         * freeze.adb (Freeze_Record_Type): Extend the current management of
1398         components that are access type with an allocator as default value: add
1399         missing support to the use of qualified expressions of the
1400         allocator (which also cause freezing of the designated type!)
1401         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
1402         dispatching operation, since extra formals may be needed by calls to
1403         build-in-place functions (such as stream 'Input).
1404
1405         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
1406         formals for 'Constrained and accessibility level in the case of a
1407         predefined dispatching operation.
1408
1409         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
1410         point, no need to find the parent node.
1411
1412 2007-08-16  Javier Miranda  <miranda@adacore.com>
1413
1414         * exp_attr.adb (Attribute_Priority): Add missing support for entries
1415         and entry barriers.
1416
1417 2007-08-16  Javier Miranda  <miranda@adacore.com>
1418
1419         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
1420         is not really required and can introduce regression with the debugger.
1421         The original problem is fixed with the patch written for checks.adb.
1422
1423 2007-08-16  Thomas Quinot  <quinot@adacore.com>
1424
1425         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
1426         Range_Check on Allocated_Table.
1427
1428 2007-08-16  Vincent Celier  <celier@adacore.com>
1429
1430         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
1431         Including_Non_Switch set to False.
1432         (Gnatmake): For the compiler, call Test_If_Relative_Path with
1433         Including_Non_Switch set to False.
1434
1435         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
1436         parameter Including_Non_Switch, defaulted to True. When
1437         Including_Non_Switch is False, options that are not switches and
1438         appear as relative path are not converted to absolute paths.
1439
1440 2007-08-16  Nicolas Roche  <roche@adacore.com>
1441
1442         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
1443         makefiles
1444
1445         * Make-lang.in: Update dependencies
1446
1447 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
1448
1449         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
1450         currently inspected is a selected component, retrieve the entity of
1451         its selector.
1452         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
1453         from the immediate ancestor of Main_Unit_Entity.
1454         (Install_Limited_Withed_Unit): Do not install the limited view of
1455         package P if P is reachable through an ancestor chain from package C
1456         and C also has a with clause for P in its body.
1457         (Has_Limited_With_Clause): New routine.
1458         (Has_With_Clause): New routine.
1459
1460 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
1461
1462         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
1463         generic for an enclosing instance is a global reference, even though
1464         its scope is the enclosing instance.
1465
1466 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
1467             Javier Miranda  <miranda@adacore.com>
1468
1469         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
1470         initialize a limited object.
1471         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
1472         13/2 and 14/2.
1473         Make sure Has_Complex_Representation is inherited by derived type.
1474
1475 2007-08-16  Robert Dewar  <dewar@adacore.com>
1476
1477         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
1478         exception case
1479
1480 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
1481
1482         * sem_disp.adb (Check_Dispatching_Operation): If the operation
1483         implements an operation inherited from a progenitor interface, verify
1484         that they are subtype-conformant.
1485
1486 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
1487             Bob Duff  <duff@adacore.com>
1488             Nicolas Setton  <setton@adacore.com>
1489
1490         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
1491         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
1492         the statement which is being resolved comes from a predefined library
1493         unit, all non-predefined library interpretations are skipped.
1494         (Resolve_Op_Concat): If string concatenation was folded in the parser,
1495         but the "&" is user defined, give an error, because the folding would
1496         be wrong.
1497
1498         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
1499         the parser has folded a long sequence of concatenations of string
1500         literals.
1501
1502         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
1503         and "JMP_BUF" variables as artificial.
1504         (N_String_Literal): Do not use alloca for very long string literals. Use
1505         xmalloc/free instead. Otherwise the stack might overflow.
1506
1507         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
1508         compiler.
1509
1510 2007-08-16  Vincent Celier  <celier@adacore.com>
1511
1512         * vms_conv.adb (Process_Argument): Ensure that project related options
1513         are not put in the -cargs section when using GNAT COMPILE.
1514
1515 2007-08-16  Robert Dewar  <dewar@adacore.com>
1516
1517         * gnat_ugn.texi: Add note on preprocessing (output file not written)
1518
1519 2007-08-16  Thomas Quinot  <quinot@adacore.com>
1520
1521         * a-tags.adb: Minor reformatting.
1522
1523 2007-08-16  Bob Duff  <duff@adacore.com>
1524
1525         * sem_type.ads, sem_ch4.adb: Minor reformatting.
1526
1527 2007-08-14  Thomas Quinot  <quinot@adacore.com>
1528
1529         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
1530         s-osinte-interix.ads, system-interix.ads: Removed.
1531
1532 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
1533
1534         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
1535         calls to Check_Within_Time_Bounds.
1536         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
1537         (Difference): Account for possible rounding of the resulting difference
1538
1539 2007-08-14  Robert Dewar  <dewar@adacore.com>
1540
1541         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
1542         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
1543         s-osinte-solaris.adb, s-osinte-solaris.ads,
1544         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
1545
1546         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
1547         switch -gnatyS. Enable -gnatyS in GNAT style check mode
1548
1549 2007-08-14  Robert Dewar  <dewar@adacore.com>
1550             Ed Schonberg  <schonberg@adacore.com>
1551
1552         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
1553         Suppress unmodified in-out parameter warning in some cases
1554         This patch is a also fairly significant change to the way suppressible
1555         checks are handled.
1556
1557         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
1558         needed for access to concurrent record types generated by the expander.
1559         (Generate_Range_Check): When generating a temporary to capture the
1560         value of a conversion that requires a range check, set the type of the
1561         temporary before rewriting the node, so that the type is always
1562         properly placed for back-end use.
1563         (Apply_Float_Conversion_Check): Handle case where the conversion is
1564         truncating.
1565         (Get_Discriminal): Code reformatting. Climb the scope stack looking
1566         for a protected type in order to examine its discriminants.
1567
1568 2007-08-14  Robert Dewar  <dewar@adacore.com>
1569             Gary Dismukes  <dismukes@adacore.com>
1570             Ed Schonberg  <schonberg@adacore.com>
1571             Thomas Quinot  <quinot@adacore.com>
1572
1573         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
1574         a-stwisu.adb, a-strsup.adb: Fix warnings for range
1575         tests optimized out.
1576
1577         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
1578         (Get_Allocator_Final_List): For the case of an anonymous access type
1579         that has a specified Associated_Final_Chain, do not go up to the
1580         enclosing scope.
1581         (Expand_N_Type_Conversion): Test for the case of renamings of access
1582         parameters when deciding whether to apply a run-time accessibility
1583         check.
1584         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
1585         aggregate code before allocator, and ahead of declaration for
1586         temporary, to prevent access before elaboration when the allocator is
1587         an actual for an access parameter.
1588         (Expand_N_Type_Conversion): On an access type conversion involving an
1589         access parameter, do not apply an accessibility check when the
1590         operand's original node was an attribute other than 'Access. We now
1591         create access conversions for the expansion of 'Unchecked_Access and
1592         'Unrestricted_Access in certain cases and clearly accessibility should
1593         not be checked for those.
1594
1595         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
1596         includes a type conversion of a packed component that has been expanded,
1597         recover the original expression for the object, and use this expression
1598         in the post-call assignment statement, so that the assignment is made
1599         to the object and not to a back-end temporary.
1600         (Freeze_Subprogram): In case of primitives of tagged types not defined
1601         at the library level force generation of code to register the primitive
1602         in the dispatch table. In addition some code reorganization has been
1603         done to leave the implementation clear.
1604         (Expand_Call): When expanding an inherited implicit conversion,
1605         preserve the type of the inherited function after the intrinsic
1606         operation has been expanded.
1607
1608         * exp_ch2.ads, exp_ch2.adb
1609         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
1610         of an entry formal appearing in an assignment statement does not assign
1611         to the formal.
1612         (Expand_Current_Value): Instead of calling a routine to determine
1613         whether the prefix of an attribute reference should be optimized or
1614         not, prevent the optimization of such prefixes all together.
1615
1616         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
1617         component whose prefix is known to be of an access type is an implicit
1618         dereference and does not assign to the prefix.
1619
1620 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
1621             Robert Dewar  <dewar@adacore.com>
1622
1623         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
1624         itype is visited, make an entry into table to link associated node and
1625         new itype.
1626         Add comments and correct harmless error in Build_NCT_Hash_Tables
1627         (Array_Aggr_Subtype): Associate each itype created for an index type to
1628         the corresponding range construct, and not to the aggregate itself. to
1629         maintain a one-to-one correspondence between itype and its associated
1630         node, to prevent errors when complex expression is copied.
1631         Fix mishandling of multiple levels of parens
1632
1633         * sem_aggr.adb: Create a limited view of an incomplete type, to make
1634         treatment of limited views uniform for all visible declarations in a
1635         limited_withed package.
1636         (New_Copy_Tree): If hash table is being used and itype is visited,
1637         make an entry into table to link associated node and new itype.
1638         (Resolve_Record_Aggregate): Do not add an others box association for a
1639         discriminated record component that has only discriminants, when there
1640         is a box association for the component itself.
1641
1642         * par-ch4.adb: Fix mishandling of multiple levels of parens
1643
1644 2007-08-14  Robert Dewar  <dewar@adacore.com>
1645
1646         * comperr.adb: Fix problem with suppressing warning messages from gigi
1647
1648         * erroutc.ads, erroutc.adb, errout.ads, 
1649         errout.adb (Write_Eol): Remove trailing spaces before writing the line
1650         (Write_Eol_Keep_Blanks): New procedure to write a line, including
1651         possible trailing spaces.
1652         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1653         Fix problem with suppressing warning messages from back end
1654         Improve handling of deleted warnings
1655
1656         * gnat1drv.adb: 
1657         Fix problem with suppressing warning messages from back end
1658         Handle setting of Static_Dispatch_Tables flag.
1659
1660         * prepcomp.adb: 
1661         Fix problem with suppressing warning messages from back end
1662
1663         * exp_intr.adb: Improve handling of deleted warnings
1664
1665 2007-08-14  Robert Dewar  <dewar@adacore.com>
1666
1667         * debug.adb: Improve -gnatdI to cover all cases of serialization
1668         Add documentation of dZ, d.t
1669
1670         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
1671         serialization.
1672         (Sprint_Node_Actual): Generate new output associated with implicit
1673         importation and implicit exportation of object declarations.
1674
1675 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
1676             Robert Dewar  <dewar@adacore.com>
1677             Javier Miranda  <miranda@adacore.com>
1678             Gary Dismukes  <dismukes@adacore.com>
1679
1680         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
1681         to make treatment of limited views uniform for all visible declarations
1682         in a limited_withed package.
1683         Improve warnings for in out parameters
1684         (Set_Related_Interaface/Related_Interface): Allow the use of this
1685         attribute with constants.
1686         (Write_Field26_Name): Handle attribute Related_Interface in constants.
1687         Warn on duplicate pragma Preelaborable_Initialialization
1688
1689         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
1690         generation of a freezing node to ensure proper management of null
1691         excluding access types in the backend.
1692         (Create_Extra_Formals): Test base type of the formal when checking for
1693         the need to add an extra accessibility-level formal. Pass the entity E
1694         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
1695         originally being done in a couple of cases), to ensure that the
1696         Extra_Formals list gets set on the entity E when the first entity is
1697         added.
1698         (Conforming_Types): Add missing calls to Base_Type to the code that
1699         handles anonymous access types. This is required to handle the
1700         general case because Process_Formals builds internal subtype entities
1701         to handle null-excluding access types.
1702         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1703         functions that need it, even when not marked Requires_Overriding.
1704         Improve warnings for in out parameters
1705         (Analyze_Function_Return): Warn for disallowed null return
1706         Warn on return from procedure with unset out parameter
1707         Ensure consistent use of # in error messages
1708         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
1709         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
1710         the implicit conversion of the expression done for anonymous access
1711         types. This is required to generate the code of the null excluding
1712         check (if required).
1713
1714         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
1715         A formal parameter is never publicly referenceable outside of its body.
1716         (Check_References): For an unreferenced formal parameter in an accept
1717         statement, use the same warning circuitry as for subprogram formal
1718         parameters.
1719         (Warn_On_Unreferenced_Entity): New subprogram, taken from
1720         Output_Unreferenced_Messages, containing the part of that routine that
1721         is now reused for entry formals as described above.
1722         (Goto_Spec_Entity): New function
1723         (Check_References): Do not give IN OUT warning for dispatching operation
1724         Improve warnings for in out parameters
1725         (Test_Ref): Check that the entity is not undefinite before calling
1726         Scope_Within, in order to avoid infinite loops.
1727         Warn on return from procedure with unset out parameter
1728         Improved warnings for unused variables
1729
1730 2007-08-14  Robert Dewar  <dewar@adacore.com>
1731             Javier Miranda  <miranda@adacore.com>
1732             Gary Dismukes  <dismukes@adacore.com>
1733
1734         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
1735         (Expand_N_Attribute_Reference): Further unify the handling of the
1736         three forms of access attributes, using common code now for all three
1737         cases. Add a test for the case of applying an access attribute to
1738         an explicit dereference when the context is an access-to-interface
1739         type. In that case we need to apply the conversion to the prefix
1740         of the explicit dereference rather than the prefix of the attribute.
1741         (Attribute_Version, UET_Address): Set entity as internal to ensure
1742         proper dg output of implicit importation.
1743         (Expand_Access_To_Type): Removed.
1744         (Expand_N_Attribute_Reference): Merge the code from the three cases
1745         of access attributes, since the processing is largely identical for
1746         these cases. The substantive fix here is to process the case of a
1747         type name prefix (current instance case) before handling the case
1748         of interface prefixes.
1749
1750 2007-08-14  Thomas Quinot  <quinot@adacore.com>
1751             Ed Schonberg  <schonberg@adacore.com>
1752             Javier Miranda  <miranda@adacore.com>
1753             Robert Dewar  <dewar@adacore.com>
1754
1755         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
1756         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
1757         type that is an anonymous access to controlled object, establish
1758         an associated finalization chain to avoid corrupting the global
1759         finalization list when a dynamically allocated object designated
1760         by such a component is deallocated.
1761         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1762         functions that need it, even when not marked Requires_Overriding.
1763         (Initialize_Tag): Replace call to has_discriminants by call to
1764         Is_Variable_Size_Record in the circuitry that handles the
1765         initialization of secondary tags.
1766         (Is_Variable_Size_Record): New implementation.
1767         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
1768         Suppress_Initialization pragma for a derived type.
1769         (Is_Variable_Size_Record): New subprogram.
1770         (Build_Offset_To_Top_Functions): New implementation that simplifies the
1771         initial version of this routine and also fixes problems causing
1772         incomplete initialization of the table of interfaces.
1773         (Build_Init_Procedure): Improve the generation of code to initialize the
1774         the tag components of secondary dispatch tables.
1775         (Init_Secondary_Tags): New implementation that simplifies the previous
1776         version of this routine.
1777         (Make_DT): Add parameter to indicate when type has been frozen by an
1778         object declaration, for diagnostic purposes.
1779         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
1780         diagnose attemps to freeze a subprogram when some untagged type of its
1781         profile is a private type whose full view has not been analyzed yet.
1782         (Freeze_Array_Type): Generate init proc for packed array if either
1783         Initialize or Normalize_Scalars is set.
1784         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
1785         constructing the new profile, copy the null_exclusion indicator for each
1786         parameter, to ensure full conformance of the new body with the spec.
1787
1788         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
1789         Create wrappers for constructor functions that need it, even when not
1790         marked Requires_Overriding.
1791         (Covers): Handle properly designated types of anonymous access types,
1792         whose non-limited views are themselves incomplete types.
1793         (Add_Entry): Use an entity to store the abstract operation which hides
1794         an interpretation.
1795         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
1796         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
1797         initialization aggregate.
1798         (Function_Interp_May_Be_Hidden): Rename to
1799         Function_Interp_Has_Abstract_Op.
1800         (Has_Compatible_Type): Remove machinery that skips interpretations if
1801         they are labeled as potentially hidden by an abstract operator.
1802         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
1803         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
1804         (Write_Overloads): Output the abstract operator if present.
1805         (Add_Entry): Before inserting a new entry into the interpretation table
1806         for a node, determine whether the entry will be disabled by an abstract
1807         operator.
1808         (Binary_Op_Interp_May_Be_Hidden): New routine.
1809         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
1810         aggregate.
1811         (Function_Interp_May_Be_Hidden): New routine.
1812         (Has_Compatible_Type): Do not consider interpretations hidden by
1813         abstract operators when trying to determine whether two types are
1814         compatible.
1815         (Has_Hidden_Interp): New routine.
1816         (Set_May_Be_Hidden_Interp): New routine.
1817         (Write_Overloads): Write the status of flag May_Be_Hidden.
1818
1819 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
1820             Javier Miranda  <miranda@adacore.com>
1821
1822         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
1823         types declared in the declarative part of a nested package body or in
1824         the proper body of a stub.
1825         (Set_All_DT_Position): Add missing check to avoid wrong assignation
1826         of the same dispatch table slot to renamed primitives.
1827         (Make_Select_Specific_Data_Table): Handle private types.
1828         (Tagged_Kind): Handle private types.
1829         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
1830         output of implicit importation and exportation.
1831         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
1832         first formal of the thunk is always associated with the controlling
1833         type. In addition perform the following code cleanup: remove formal
1834         Thunk_Alias which is no longer required, cleanup evaluation of the
1835         the controlling type, and update the documentation.
1836         Replace occurrence of Default_Prim_Op_Count by
1837         Max_Predef_Prims. Addition of compile-time check to verify
1838         that the value of Max_Predef_Prims is correct.
1839         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
1840         (Make_DT): Add parameter to indicate when type has been frozen by an
1841         object declaration, for diagnostic purposes.
1842         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
1843         construction of statically allocated dispatch tables.
1844         (Make_DT): In case of library-level tagged types export the declaration
1845         of the primary tag. Remove generation of tags (now done by Make_Tags).
1846         Additional modifications to handle non-static generation of dispatch
1847         tables. Take care of building tables for asynchronous interface types
1848         (Make_Tags): New subprogram that generates the entities associated with
1849         the primary and secondary tags of Typ and fills the contents of Access_
1850         Disp_Table. In case of library-level tagged types imports the forward
1851         declaration of the primary tag that will be declared later by Make_DT.
1852         (Expand_Interface_Conversion): In case of access types to interfaces
1853         replace an itype declaration by an explicit type declaration to avoid
1854         problems associated with the scope of such itype in transient blocks.
1855
1856 2007-08-14  Robert Dewar  <dewar@adacore.com>
1857             Ed Schonberg  <schonberg@adacore.com>
1858             Javier Miranda  <miranda@adacore.com>
1859
1860         * exp_util.ads, exp_util.adb: 
1861         This patch replaces a number of occurrences of explicit tests for N_Null
1862         with calls to Known_Null. This improves tracking of null values, since
1863         Known_Null also catches null constants, and variables currently known to
1864         be null, so we get better tracking.
1865         (Ensure_Defined): create an itype reference only in the scope of the
1866         itype.
1867         (Side_Effect_Free): A selected component of an access type that
1868         denotes a component with a rep clause must be treated as not
1869         side-effect free, because if it is part of a linked structure its
1870         value may be affected by a renaming.
1871         (Expand_Subtype_From_Expr): For limited objects initialized with build
1872         in place function calls, do nothing; otherwise we prematurely introduce
1873         an N_Reference node in the expression initializing the object, which
1874         breaks the circuitry that detects and adds the additional arguments to
1875         the called function. Bug found working in the new patch for statically
1876         allocated dispatch tables.
1877         (Is_Library_Level_Tagged_Type): New subprogram.
1878         (Remove_Side_Effects): If the expression of an elementary type is an
1879         operator treat as a function call.
1880         (Make_Literal_Range): If the index type of the array is not integer, use
1881         attributes properly to compute the constraint on the resulting aggregate
1882         which is a string.
1883
1884         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
1885         class-wide type whose base type is an incomplete private type, leave
1886         class-wide type unfrozen so that freeze nodes can be generated
1887         properly at a later point.
1888         (Freeze_Entity, array case): Handle case of pragma Pack and component
1889         size attributre clause for same array.
1890
1891 2007-08-14  Vincent Celier  <celier@adacore.com>
1892
1893         * prj.ads, prj.adb: Update Project Manager to new attribute names for
1894         gprbuild.
1895         Allow all valid declarations in configuration project files
1896         (Reset): Initialize all tables and hash tables in the project tree data
1897         Major update of the Project Manager and of the project aware tools,
1898         including gprmake, so that the same sources in the GNAT repository
1899         can be used by gprbuild.
1900         (Slash_Id): Change type to be Path_Name_Type
1901         (Slash): Return a Path_Name_Type instead of a File_Name_Type
1902
1903         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
1904         gprbuild.
1905         Update Project Manager to new attribute names for ghprbuild
1906         Allow all valid declarations in configuration project files
1907         Major update of the Project Manager and of the project aware tools,
1908         including gprmake, so that the same sources in the GNAT repository
1909         can be used by gprbuild.
1910
1911         * prj-com.ads: 
1912         Major update of the Project Manager and of the project aware tools,
1913         including gprmake, so that the same sources in the GNAT repository
1914         can be used by gprbuild.
1915
1916         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1917         insensitive flag for attributes with optional index.
1918         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1919         array attribute, put the index in lower case.
1920         Update Project Manager to new attribute names for ghprbuild
1921         Allow all valid declarations in configuration project files
1922         Major update of the Project Manager and of the project aware tools,
1923         including gprmake, so that the same sources in the GNAT repository
1924         can be used by gprbuild.
1925
1926         * prj-env.ads, prj-env.adb: 
1927         Major update of the Project Manager and of the project aware tools,
1928         including gprmake, so that the same sources in the GNAT repository
1929         can be used by gprbuild.
1930         (Get_Reference): Change type of parameter Path to Path_Name_Type
1931
1932         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
1933         removing '-' from the path to start with the first character of the
1934         next directory.
1935         Major update of the Project Manager and of the project aware tools,
1936         including gprmake, so that the same sources in the GNAT repository
1937         can be used by gprbuild.
1938         Major update of the Project Manager and of the project aware tools,
1939         including gprmake, so that the same sources in the GNAT repository
1940         can be used by gprbuild.
1941
1942         * prj-nmsc.ads, prj-nmsc.adb: 
1943         Update Project Manager to new attribute names for ghprbuild
1944         Allow all valid declarations in configuration project files
1945         (Search_Directories): Detect subunits that are specified with an
1946         attribute Body in package Naming. Do not replace a source/unit in the
1947         same project when the order of the source dirs are known. Detect
1948         duplicate sources/units in the same project when the order of the
1949         source dirs are not known.
1950         (Check_Ada_Name): Allow all identifiers that are not reserved words
1951         in Ada 95.
1952         Major update of the Project Manager and of the project aware tools,
1953         including gprmake, so that the same sources in the GNAT repository
1954         can be used by gprbuild.
1955         (Look_For_Sources): If the list of sources is empty, set the object
1956         directory of non extending project to nil.
1957         Change type of path name variables to be Path_Name_Type
1958         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
1959         otherwise creating missing directories will fail.
1960
1961         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
1962         prj-part.ads, prj-part.adb:
1963         Major update of the Project Manager and of the project aware tools,
1964         including gprmake, so that the same sources in the GNAT repository
1965         can be used by gprbuild.
1966
1967         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1968         insensitive flag for attributes with optional index.
1969         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1970         array attribute, put the index in lower case.
1971         (Parse_Variable_Reference): Allow the current project name to be used in
1972         the prefix of an attribute reference.
1973
1974         * prj-util.ads, prj-util.adb
1975         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
1976         defaulted to False. When True, always check against indexes in lower
1977         case.
1978
1979         * snames.ads, snames.h, snames.adb: 
1980         Update Project Manager to new attribute names for gprbuild
1981         Allow all valid declarations in configuration project files
1982
1983 2007-08-14  Robert Dewar  <dewar@adacore.com>
1984             Ed Schonberg  <schonberg@adacore.com>
1985
1986         * opt.ads: Warning for non-local exception propagation now off by
1987         default
1988         New switch -gnatI to disable representation clauses
1989         Implement new pragma Implicit_Packing
1990
1991         * usage.adb: 
1992         Warning for non-local exception propagation now off by default
1993         Add warning for unchecked conversion of pointers wi different
1994         conventions.
1995         New switch -gnatI to disable representation clauses
1996
1997         * usage.adb: new switch -gnatyS
1998
1999         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
2000         note that aggregates of anonymous array types are not flagged.
2001         -gnatwc now includes membership tests optimized away
2002         -gnatw.x warnings are now off by default
2003         Added conditional compilation Appendix
2004         Add documentation of -gnatI
2005         Add documentation for new -gnatyS style check
2006         Update documentation about SAL and auto-init on Windows.
2007
2008         * gnat_rm.texi: 
2009         Add documentation for pragma Check_Name and 'Enabled attribute
2010         Document that Eliminate on dispatching operation is ignored
2011         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
2012         Document pragma Main
2013         Document pragma Implicit_Packing
2014
2015         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
2016         different conventions
2017         New switch -gnatI to disable representation clauses
2018
2019         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
2020         recognized, report the invalid characters including "-gnat" instead of
2021         just the first character in the switch.
2022         New switch -gnatI to disable representation clauses
2023         Set Warn_On_Object_Renames_Function true for -gnatg
2024
2025         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
2026         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
2027         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
2028         to switch -aP (add directory to project search dir).
2029
2030         * par-prag.adb: Implement new pragma Implicit_Packing
2031
2032         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
2033         type as having a non-standard representation, to force expansion on
2034         conversion to related types.
2035         (Analyze_Pragma): Warn on misspelled pragma
2036         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
2037         Ensure consistent use of # in error messages
2038         Implement pragma Implicit_Packing
2039
2040 2007-08-14  Olivier Hainque  <hainque@adacore.com>
2041             Eric Botcazou  <ebotcazou@adacore.com>
2042
2043         * targtyps.c (get_target_maximum_default_alignment): New function.
2044         Maximum alignment
2045         that the compiler might choose by default for a type or object.
2046         (get_target_default_allocator_alignment): New function. Alignment known
2047         to be honored by the target default allocator.
2048         (get_target_maximum_allowed_alignment): New function. Maximum alignment
2049         we might accept for any type or object on the target.
2050         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
2051
2052         * gigi.h (get_target_maximum_default_alignment): Declare new function.
2053         (get_target_default_allocator_alignment): Likewise.
2054         (get_target_maximum_allowed_alignment): Likewise.
2055
2056         PR ada/19037
2057         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
2058         result of a function call, first try to use a stabilized reference for
2059         a constant renaming too.
2060         (validate_alignment): Use target_maximum_allowed_alignment instead of
2061         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
2062         (gnat_to_gnu_entity): Use common nodes directly.
2063         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
2064         alignment and size for the object.
2065         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
2066         and N_Procedure_Call_Statement.
2067         (takes_address): Rename to lvalue_required_p, add third parameter
2068         'aliased' and adjust recursive calls.
2069         <N_Indexed_Component>: Update 'aliased' from the array type.
2070         <N_Selected_Component>: New case.
2071         <N_Object_Renaming_Declaration>: New Likewise.
2072         (Identifier_to_gnu): Adjust for above changes.
2073         (maybe_stabilize_reference) <CONST_DECL>: New case.
2074
2075         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
2076         between type variants.
2077         (build_simple_component_ref): Likewise.
2078         (build_call_alloc_dealloc): Use target_default_allocator_alignment
2079         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
2080         aligning type circuitry for allocations from the default storage pool.
2081         (build_allocator): Likewise.
2082         (build_simple_component_ref): Manually fold the reference for a
2083         constructor if the record type contains a template.
2084
2085         * utils.c (value_zerop): Delete.
2086         (gnat_init_decl_processing): Emit debug info for common types.
2087         (rest_of_record_type_compilation): If a union contains a field
2088         with a non-constant qualifier, treat it as variable-sized.
2089         (finish_record_type): Give the stub TYPE_DECL a name.
2090         (rest_of_record_type_compilation): Likewise.
2091         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
2092         types are equivalent array types.
2093         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
2094         even if the type is not passed by reference.
2095         (static_ctors, static_dtors): Delete.
2096         (end_subprog_body): Do not record constructors and destructors.
2097         (build_global_cdtor): Delete.
2098         (gnat_write_global_declarations): Do not call build_global_cdtor.
2099
2100         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
2101         -fRTS=rtp is specified.
2102         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
2103         specified.
2104
2105         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
2106         of the personality function with SJLJ exceptions.
2107
2108         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
2109         the name of the personality function with SJLJ exceptions.
2110
2111 2007-08-14  Robert Dewar  <dewar@adacore.com>
2112             Ed Schonberg  <schonberg@adacore.com>
2113
2114         * par.ads, par.adb: Improve handling of extra right parens.
2115         (Par): Remove flag From_Limited_With_Clause.
2116
2117         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
2118         Improve handling of extra right parens.
2119
2120 2007-08-14  Robert Dewar  <dewar@adacore.com>
2121
2122         * par-tchk.adb (TF_Semicolon): Improve error recovery
2123
2124 2007-08-14  Robert Dewar  <dewar@adacore.com>
2125             Ed Schonberg  <schonberg@adacore.com>
2126
2127         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
2128         enumeration type, mark all literals as referenced.
2129         (Eval_Attribute, case 'Image): If the argument is an enumeration
2130         literal and names are available, constant-fold but mark nevertheless as
2131         non-static.
2132         Clean up function names.
2133         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
2134         comment.
2135         (Requires_Simple_Name_Prefix): Removed.
2136
2137 2007-08-14  Robert Dewar  <dewar@adacore.com>
2138             Ed Schonberg  <schonberg@adacore.com>
2139
2140         * sem_ch11.adb: Improved warnings for unused variables
2141
2142         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
2143         is a synchronized interface, the derived type is limited.
2144         (Analyze_Object_Declaration): Mark the potential coextensions in the
2145         definition and expression of an object declaration node.
2146         (Build_Derived_Type): For the completion of a private type declaration
2147         with a derived type declaration, chain the parent type's representation
2148         items to the last representation item of the derived type (not the
2149         first one) if they are not present already.
2150         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
2151         object declaration of forward references to tags.
2152         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
2153         subprogram types can appear as access discriminants of synchronized
2154         types.
2155         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
2156         given in prefixed form as a selected component.
2157         (Process_Discriminants): If not all discriminants have defaults, place
2158         error message on a default that is present.
2159         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
2160         extend a synchronized tagged type.
2161         Improved warnings for unused variables
2162         (Is_Visible_Component): Fix a visibility hole on a component inherited
2163         by a private extension when parent is itself declared as a private
2164         extension, and the derivation is in a child unit.
2165         (Find_Hidden_Interface): Move spec from the package body.
2166
2167 2007-08-14  Robert Dewar  <dewar@adacore.com>
2168             Ed Schonberg  <schonberg@adacore.com>
2169
2170         * sem_ch5.adb: Improve warnings on redundant assignments
2171
2172         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
2173         parameter
2174         (Is_Synchronized_Tagged_Type): New subprogram that returns true
2175         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
2176         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
2177         is set to False. Improves handling of Known_[Not_]Null.
2178         (Wrong_Type): Special case address arithmetic attempt
2179         (Collect_Abstract_Interfaces): Add new formal to allow collecting
2180         abstract interfaces just using the partial view of private types.
2181         (Has_Abstract_Interfaces): Add new formal to allow checking types
2182         covering interfaces using the partial view of private types.
2183         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
2184         component still needs to be defined in this case, but is never
2185         initialized as VMs are using other dispatching mechanisms.
2186         (Abstract_Interface_List): For a protected type, use base type to get
2187         proper declaration.
2188         Improve warnings on redundant assignments
2189         (Is_Variable): Handle properly an implicit dereference of a prefixed
2190         function call.
2191         (Build_Actual_Subtype): If this is an actual subtype for an
2192         unconstrained formal parameter, use the sloc of the body for the new
2193         declaration, to prevent anomalises in the debugger.
2194
2195 2007-08-14  Robert Dewar  <dewar@adacore.com>
2196
2197         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
2198         dispatching operation
2199
2200 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2201             Gary Dismukes  <dismukes@adacore.com>
2202
2203         * exp_aggr.ads, 
2204         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
2205         expanded aggregate code before allocator, and ahead of declaration for
2206         temporary, to prevent access before elaboration when the allocator is
2207         an actual for an access parameter.
2208         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
2209         the TSD and the table of interfaces.
2210         (Convert_To_Assignments): Augment the test for delaying aggregate
2211         expansion for limited return statements to include the case of extended
2212         returns, to prevent creation of an unwanted transient scope.
2213         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
2214         (Expand_Array_Aggregate): Handle aggregates associated with
2215         statically allocated dispatch tables.
2216         (Expand_Record_Aggregate): Handle aggregates associated with
2217         statically allocated dispatch tables.
2218         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
2219         of anonymous access type.
2220
2221 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2222
2223         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
2224         is a variable that renames a slice, use the variable itself in the
2225         expannsion when the renamed expression itself may be modified between
2226         the declaration of the renaming and the array assignment.
2227
2228 2007-08-14  Jerome Guitton  <guitton@adacore.com>
2229
2230         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
2231         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
2232         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
2233         New functions; dummy implementations.
2234
2235         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
2236         functions, used to implement the multi-tasks mode routines on VxWorks.
2237
2238         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
2239         New functions, thin
2240         binding to the VxWorks routines which have changed between VxWorks 5
2241         and 6.
2242         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
2243         which are not callable from a RTP.
2244
2245         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
2246         implemented for the multi-tasks mode on VxWorks 5 and 6.
2247
2248         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
2249
2250         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
2251         functions.
2252
2253 2007-08-14  Vincent Celier  <celier@adacore.com>
2254
2255         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
2256         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
2257         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
2258         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
2259         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
2260         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
2261         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
2262         procedure.
2263         (Major_Id_Name): New function.
2264         mlib-tgt.ads/mlib.tgt.adb:
2265         (Library_Major_Minor_Id_Supported): New function, default returns True
2266         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
2267         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
2268         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
2269         Implementation of Library_Major_Minor_Id_Supported returns False
2270         clean.adb:
2271         (Clean_Library_Directory): If major/minor ids are supported, clean all
2272         library files.
2273         Major update of the Project Manager and of the project aware tools,
2274         including gprmake, so that the same sources in the GNAT repository
2275         can be used by gprbuild.
2276
2277 2007-08-14  Olivier Hainque  <hainque@adacore.com>
2278
2279         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
2280         (GCC_ZCX_Support): Switch to True.
2281         
2282         * s-intman-solaris.adb (Notify_Exception): Call
2283         Adjust_Context_For_Raise before raising, as expected for signal
2284         handlers in general.
2285         
2286         * s-intman-posix.adb (Notify_Exception): Remove declaration of
2287         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
2288         to other implementation bodies.
2289         
2290         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
2291         be visible by multiple implementation bodies.
2292         
2293         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
2294         only for conditions coming from hardware.
2295         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
2296         adjustments to signal context prior to exception raise from signal
2297         handler.
2298         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
2299         mode.
2300         Solaris section: (__gnat_adjust_context_for_raise): New function.
2301         Implementation of the machine context adjustments to perform prior to
2302         raise from a signal handler. Version for both sparc and x86.
2303         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
2304         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
2305         prior to raising as expected for any handler, before possible nested
2306         faults to make sure all the contexts in a chain have been adjusted by
2307         the time we propagate.
2308
2309 2007-08-14  Pascal Obry  <obry@adacore.com>
2310
2311         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
2312         (SYSTEM_INFO): New record.
2313         (SetThreadIdealProcessor): New imported routine needed for supporting
2314         task_info pragma on Windows.
2315
2316         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
2317         info can be applied to the current host.
2318         (Create_Task): Set the ideal processor if information is present.
2319
2320         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
2321         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
2322
2323 2007-08-14  Olivier Hainque  <hainque@adacore.com>
2324
2325         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
2326         stack size and initial stack pointer value for a given task.
2327         (Enter_Task): Get the stack attributes of the task we are entering and
2328         let the stack checking engine know about them.
2329
2330         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
2331         Let the stack-checking engine know about the initial sp value and stack
2332         size associated with the current task.
2333         (Set_Stack_Info): If a stack base has been notified for the current
2334         task, honor it. Fallback to the previous less accurate method otherwise.
2335
2336         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
2337
2338 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2339
2340         * sem_ch10.adb: Create a limited view of an incomplete type, to make
2341         treatment of limited views uniform for all visible declarations in a
2342         limited_withed package.
2343         Set flag indicating that a subprogram body for a child unit has a
2344         generated spec.
2345         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
2346         separate declaration, remove the unit name from visibility after
2347         compilation, so that environment is clean for subsequent compilations.
2348         (Install_Limited_Context_Clauses): Do not install a
2349         limited_private_with_clause unless the current unit is a body or a
2350         private child unit.
2351         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
2352         in the same fashion.
2353         (Install_Limited_Withed_Unit): Do not install a limited with clause if
2354         it applies to the declaration of the current package body.
2355         (Remove_Private_With_Clauses): If there is a regular with_clause for
2356         the unit, delete Private_With_Clause from context, to prevent improper
2357         hiding when processing subsequent nested packages and instantiations.
2358
2359 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
2360
2361         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
2362         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
2363         representing absolute path names.
2364         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
2365
2366         * cstreams.c (__gnat_full_name for VxWorks): Use
2367         __gnat_is_absolute_path to detect whether we need to add the current
2368         directory to normalize the path.
2369
2370 2007-08-14  Javier Miranda  <miranda@adacore.com>
2371
2372         * a-tags.ads, 
2373         a-tags.adb (Displace): Associate a message with the raised CE
2374         exception.
2375         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
2376         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
2377         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
2378         spec.
2379         (Default_Prim_Op_Count): Removed.
2380         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
2381         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
2382         Remove pragma Inline_Always.
2383
2384         * rtsfind.ads (Default_Prim_Op_Count): Removed
2385         (Max_Predef_Prims): New entity
2386         (RE_Expanded_Name): Removed
2387         (RE_HT_Link): Removed
2388         (RE_Iface_Tag): Remmoved
2389         (RE_Ifaces_Table): Removed
2390         (RE_Interfaces_Array): Removed
2391         (RE_Interface_Data_Element): Removed
2392         (RE_Nb_Ifaces): Removed
2393         (RE_RC_Offset): Removed
2394         (RE_Static_Offset_To_Top): Removed
2395
2396         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
2397         formal.
2398         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
2399         Prim_Op_Count by Max_Predef_Prims.
2400
2401 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2402             Vincent Celier  <celier@adacore.com>
2403
2404         * binde.adb (Elab_All_Links): Remove unnecessary call to
2405         Generic_Separately_Compiled (if a unit satisfies this predicate, there
2406         won't be an associated Afile).
2407         (Elab_All_Links): Fail if a referenced unit cannot be found
2408
2409         * bindgen.adb: 
2410         Fix comments in bindgen regarding consistency checks done in Bcheck:
2411         the checks are made across units within a partition, not across several
2412         partitions.
2413         Fix generation of C binder file for VxWorks.
2414
2415         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
2416         Generic_May_Lack_ALI, more descriptive of the current use of the
2417         predicate, and update documentation.
2418
2419         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
2420         reorganization and documentation update for the case of predefined
2421         library generics (for which we do not reference an Afile).
2422
2423 2007-08-14  Robert Dewar  <dewar@adacore.com>
2424
2425         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
2426         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
2427         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
2428         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
2429         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
2430         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
2431         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
2432         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
2433         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
2434         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
2435         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
2436         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
2437         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
2438         g-altcon.adb: Minor reformatting
2439
2440         ada-tree.h: Delete empty line.
2441
2442         ali.ads: Minor reformatting
2443         Clarification of comments.
2444         Minor spelling correction
2445
2446         * exp_dbug.adb: Add Warnings Off to suppress new warning
2447
2448         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2449         formal
2450
2451         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
2452         value
2453
2454         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
2455
2456         * a-textio.ads: Reorder the standard input/output/error declarations
2457         for consistency.
2458
2459         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
2460
2461         * par-ch2.adb: Recognize RM specially in errout
2462         Change 'R'M to RM in all error messages
2463
2464         * scng.adb: Recognize RM specially in errout
2465
2466         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
2467         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
2468
2469         * s-direio.adb: Add missing routine header box.
2470
2471         * sem_attr.ads: Add ??? comments
2472
2473         * sem_eval.adb: Recognize RM specially in errout
2474         Change 'R'M to RM in all error messages
2475
2476         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
2477
2478         * s-tasinf.ads: Fix minor comment typo.
2479
2480         * a-cihama.adb: Minor comment addition
2481
2482         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2483         formal
2484
2485         * s-tasinf-tru64.ads: Fix minor comment typo.
2486
2487         * itypes.ads: Comment update.
2488
2489         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
2490         anymore.
2491
2492         * argv.c: Added protection against null gnat_argv and gnat_envp.
2493
2494         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
2495         warning message when Tolerate_Consistency_Errors is True.
2496
2497         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
2498         Any_Id, as this subprogram is only applicable to *type* entities (it
2499         sets RM_Size). Instead initialize just Esize and Alignment.
2500
2501 2007-08-14  Bob Duff  <duff@adacore.com>
2502
2503         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
2504         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
2505         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
2506         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
2507         a-coorse.ads (Next): Applied pragma Inline.
2508         Make all Containers packages Remote_Types (unless they are already
2509         Pure).
2510         (Previous): applied pragma Inline
2511         (Elements_Type): is now a record instead of an array
2512
2513 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2514
2515         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
2516         of Set_Item.
2517         (Set_Item): When the new item is an element of the currently allocated
2518         table passed by reference, save a copy on the stack if we're going
2519         to reallocate. Also, in Table.Set_Item, make sure we test the proper
2520         variable to determine whether to call Set_Last.
2521
2522         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
2523         symbols-vms.adb, symbols-processing-vms-alpha.adb,
2524         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
2525         some occurrences of the pattern
2526            T.Increment_Last;
2527            T.Table (T.Last) := Value;
2528         with a cleaner call to
2529            T.Append (Value);
2530
2531 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2532             Gary Dismukes  <dismukes@adacore.com>
2533             Thomas Quinot  <quinot@adacore.com>
2534
2535         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
2536         derived type with interface progenitors use the analyzed formal as the
2537         parent of the actual, to create renamings for all the inherited
2538         operations in Derive_Subprograms.
2539         (Collect_Previous_Instances): new procedure within of
2540         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
2541         unit being loaded, to ensure that the generation of global symbols is
2542         consistent in different compilation modes.
2543         (Is_Tagged_Ancestor): New function testing the ancestor relation that
2544         takes progenitor types into account.
2545         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
2546         traversing over the primitives of the formal and actual types to locate
2547         any abstract subprograms of the actual type that correspond to a
2548         nonabstract subprogram of the formal type's ancestor type(s), and issue
2549         an error if such is found.
2550         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
2551         Instantiate_Package_Body, Instantiate_Subprogram_Body):
2552         Remove bogus guard around calls to Inherit_Context.
2553         (Reset_Entity): If the entity is the selector of a selected component
2554         that denotes a named number, propagate constant-folding to the generic
2555         template only if the named number is global to the generic unit.
2556         (Set_Instance_Env): Only reset the compilation switches when compiling
2557         a predefined or internal unit.
2558
2559 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2560
2561         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
2562         parameter to determine whether operation applies to the prefix.
2563         (Complete_Object_Operation): If actual has an access type and
2564         controlling formal is not an in_parameter, reject the actual if it is
2565         an access_to_constant type.
2566         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
2567         type, the candidate operations are found in the scope of declaration of
2568         the type, because the type has no primitive subprograms.
2569         (Analyze_Selected_Component): If prefix is class-wide, and root type is
2570         a private extension, only examine visible components before trying to
2571         analyze as a prefixed call.
2572         Change Entity_List to Type_To_Use, for better readability.
2573         (Has_Fixed_Op): Use base type when checking whether the type of an
2574         operator has a user-defined multiplication/division
2575         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
2576         user-defined operators are available for fixed-point types.
2577
2578 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2579             Ed Schonberg  <schonberg@adacore.com>
2580
2581         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
2582         formal At_Any_Place indicating, when True, that we want to test for
2583         availability of the stream attribute at any place (as opposed to the
2584         current visibility context only).
2585         (Missing_Read_Write_Attributes): A stream attribute is missing for the
2586         purpose of enforcing E.2.2(8) only if it is not available at any place.
2587         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
2588         when checking the legality of an extension aggregate in a preelaborable
2589         package. Treat the literal null as a valid default expression in a
2590         component declaration for a type with preelaborable initialization.
2591         A limited interface is a legal progenitor for the designated type of a
2592         remote access to class-wide type.
2593
2594 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2595             Ed Schonberg  <schonberg@adacore.com>
2596
2597         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
2598         reference): Use correct entity as denoted entity for the selector of
2599         the rewritten node.
2600         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
2601         setting the Referenced_As_LHS flag for entities that are implicitly
2602         dereferenced.
2603         (Find_Type): If the type is an internally generated incomplete type,
2604         mark the full view as referenced, to prevent spurious warnings.
2605         (Find_Selected_Component, Has_Components): Handle properly non-limited
2606         views that are themselves incomplete types.
2607         Handle interfaces visible through limited-with clauses.
2608         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
2609         subprogram generic actual for which we have generated a renaming.
2610         Warn when the renaming introduces a homonym of
2611         the renamed entity, and the renamed entity is directly visible.
2612
2613 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2614             Hristian Kirtchev  <kirtchev@adacore.com>
2615
2616         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
2617         appear in the subtree to the current allocator if it is not a static
2618         coextension.
2619         (Resolve_Allocator): Perform cleanup if resolution has determined that
2620         the allocator is not a coextension.
2621         (Resolve): Skip an interpretation hidden by an abstract operator only
2622         when the type of the interpretation matches that of the context.
2623         (Resolve): When looping through all possible interpretations of a node,
2624         do not consider those that are hidden by abstract operators.
2625         (Resolve_Actuals): When verifying that an access to class-wide object
2626         is an actual  for a controlling formal, ignore anonymous access to
2627         subprograms whose return type is an access to class_wide type.
2628         (Resolve_Slice): If the prefix of the slice is a selected component
2629         whose type depends on discriminants, build its actual subtype before
2630         applying range checks on the bounds of the slice.
2631         (Valid_Conversion): In an instance or inlined body, compare root types,
2632         to prevent anomalies between private and public views.
2633         (Resolve): Improve error message for ambiguous fixed multiplication
2634         expressions that involve universal_fixed multiplying operations.
2635
2636 2007-08-14  Javier Miranda  <miranda@adacore.com>
2637             Hristian Kirtchev  <kirtchev@adacore.com>
2638
2639         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
2640         location to allow the correct generation of errors in case of
2641         restrictions applied to the expanded code.
2642         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
2643         function if the condition does not reference them.
2644         (Expand_Entry_Body_Declarations): Mark the index constant as having a
2645         valid value.
2646
2647 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2648
2649         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
2650         typecode parameters for a union (in a variant record), remove
2651         extraneous layer of Any wrapping for member label.
2652         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
2653         elabration statements, register the package with the name server
2654         at the beginning, not at the end, of the elaboration statements so
2655         that they can create remote access to subprogram values that designate
2656         remote subprograms from the package.
2657
2658 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
2659
2660         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
2661         values to compute the number of seconds since the Unix Epoc in order to
2662         account for Daylight Savings Time. Perform special processing for dates
2663         that are earlier than the Unix Epoc to obtain a negative number.
2664
2665 2007-08-14  Emmanuel Briot  <briot@adacore.com>
2666
2667         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
2668         switches.
2669
2670 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
2671
2672         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
2673         binder-generated file is not in Ada.
2674         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
2675         recorded in the ALI file.
2676         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
2677
2678 2007-08-14  Vincent Celier  <celier@adacore.com>
2679
2680         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
2681         (Output_Source): Do nothing if parameter is No_Sdep_Id
2682
2683         * make.adb (Gnatmake): Do not rebuild an archive simply because a
2684         shared library it imports has a later time stamp.
2685         (Check): Resolve the symbolic links in the path name of the object
2686         directory.
2687         Check that the ALI file is in the correct object directory
2688         Check if a file name does not correspond to the mapping of units
2689         to file names.
2690         (Display_Version): New procedure
2691         (Initialize): Process switches --version and --help
2692         Use type Path_Name_Type for path name
2693
2694 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
2695
2696         * impunit.adb: Re-organize System.Random_Numbers and
2697         GNAT.Random_Numbers and add to builds.
2698
2699         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
2700
2701         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
2702
2703         * a-assert.ads, a-assert.adb: New files.
2704
2705 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
2706
2707         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
2708         if AAMP_On_Target is True, then the size of the type encompasses two
2709         addresses (a static link and a subprogram address), except in the case
2710         of library-level access types.
2711
2712 2007-08-14  Vincent Celier  <celier@adacore.com>
2713
2714         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
2715         writing the line.
2716         (Write_Eol_Keep_Blanks): New procedure to write a line, including
2717         possible trailing spaces.
2718         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
2719
2720 2007-08-14  Javier Miranda  <miranda@adacore.com>
2721
2722         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
2723         null-excluding access types.
2724
2725 2007-08-14  Javier Miranda  <miranda@adacore.com>
2726
2727         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
2728         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
2729         of private types add missing check on matching interfaces in the
2730         partial and full declarations.
2731         (Analyze_Protected_Type): Code cleanup.
2732         (Analyze_Task_Type): Code cleanup.
2733
2734 2007-08-14  Javier Miranda  <miranda@adacore.com>
2735
2736         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
2737         generated interface thunk.
2738
2739 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2740
2741         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
2742         obsolescent warning on application of 'Class to an incomplete type.
2743
2744         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
2745         prevent obsolescent warning on application of 'Class to an incomplete
2746         type.
2747
2748 2007-08-14  Pascal Obry  <obry@adacore.com>
2749
2750         * s-fileio.adb (Is_Open): Add check for usability of the underlying
2751         file stream.
2752
2753 2007-08-14  Cyrille Comar  <comar@adacore.com>
2754
2755         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
2756         since it is potentially used in cases implying double finalization of
2757         the same object.
2758
2759 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
2760
2761         * s-tasini.adb (Get_Stack_Info): Move this function to
2762         System.Soft_Links.Tasking because it is common to the full and the
2763         restricted run times.
2764         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
2765         in SSL.Tasking.Init_Tasking_Soft_Links.
2766
2767         * s-solita.adb (Get_Stack_Info): Function moved from
2768         System.Tasking.Initialization because it is common to the full and the
2769         restricted run times.
2770         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2771
2772 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
2773
2774         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2775         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2776         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
2777         parameter.
2778
2779         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
2780         guard to 12K.
2781
2782 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
2783
2784         * s-veboop.adb (SU): New named number initialized to
2785         System.Storage_Unit.
2786         (True_Val): The initialization expression is revised to use SU (=
2787         Storage_Unit) rather than assuming 8 for the component size of an
2788         unpacked Boolean array.
2789
2790 2007-08-14  Tristan Gingold  <gingold@adacore.com>
2791
2792         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
2793
2794         * tb-ivms.c: New file.
2795
2796         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
2797
2798 2007-08-14  Geert Bosch  <bosch@adacore.com>
2799
2800         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
2801         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
2802         Add required linker pragmas for automatically linking with the gnalasup
2803         linear algebra support library, and the systems math library.
2804         Rename cdot to cdotu and zdot to zdotu.
2805         Update header comment to describe purpose of package.
2806
2807 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2808
2809         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
2810         an explicitly specified Associated_Final_Chain, use that list.
2811         (Expand_N_Package_Body): Build dispatch tables of library level tagged
2812         types.
2813         (Expand_N_Package_Declaration): Build dispatch tables of library level
2814         tagged types. Minor code cleanup.
2815
2816 2007-08-14  Vincent Celier  <celier@adacore.com>
2817
2818         * gnatchop.adb (Terminate_Program): Remove exception and use
2819         Types.Terminate_Program instead.
2820
2821         * osint.ads, osint.adb (Current_Exit_Status): New global variable
2822         (Find_Program_Name): Added protection against empty name.
2823         (OS_Exit_Through_Exception): New procedure
2824
2825         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
2826         (OS_Exit_Default): New procedure that contains the previous
2827         implementation of procedure OS_Exit.
2828         (Final_Value): Remove obsolete Interix stuff.
2829
2830 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2831
2832         * g-socket.ads: Reorganize example code so that it also works on
2833         Windows XP.
2834
2835 2007-08-14  Tristan Gingold  <gingold@adacore.com>
2836
2837         * g-trasym.ads: AIX now supports symbolic backtraces.
2838
2839 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2840
2841         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
2842         units being loaded to detect circularities. A circularity may be
2843         present even if the current chain of pending units to load starts from
2844         a limited_with_clause.
2845
2846         * lib-load.ads: Change profile of Load_Unit to use a with_clause
2847         rather than a boolean flag, in order to detect circularities in
2848         with_clauses.
2849
2850         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
2851         than propagating the From_Limited_With flag, in order to handle
2852         properly circularities involving with_clauses.
2853
2854 2007-08-14  Nicolas Setton  <setton@adacore.com>
2855
2856         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
2857         warnings.
2858
2859 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
2860
2861         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
2862         to build for libgnala.
2863         libgnat: Add rules to build libgnala.a
2864         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
2865         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
2866         Add s-osinte-vxworks-kernel.adb to the target pairs of the
2867         kernel run-time lib for VxWorks 6, which would provide a different
2868         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
2869         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
2870         running ZCX by default.
2871         Add g-sttsne-locking to LynxOS version.
2872         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
2873         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
2874
2875         * system-darwin-x86.ads: New file.
2876
2877         * Make-lang.in: Delete files before copying onto them, so if they are
2878         read-only, the copy won't fail.
2879         Update dependencies
2880
2881 2007-08-14  Pascal Obry  <obry@adacore.com>
2882
2883         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
2884         naming scheme.
2885
2886 2007-08-14  Vincent Celier  <celier@adacore.com>
2887
2888         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
2889         (Gcc): Initialize Gcc_Name at the first call
2890
2891 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
2892
2893         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
2894         with_clauses of the enclosing unit when analyzing the package
2895         specification of a nested instance.
2896
2897 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
2898
2899         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
2900         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
2901         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
2902         layout of N_Allocator.
2903
2904 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2905
2906         * rtsfind.adb (Check_RPC): Add PCS version check.
2907
2908         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
2909         (Gnat_Free_Software): New function.
2910
2911         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
2912         the PCS_Version value from s-parint, used to check that it is consistent
2913         with what exp_dist expects.
2914
2915         * s-parint.ads (PCS_Version): New entity for checking consistency
2916         between exp_dist and PCS.
2917
2918         * gen-soccon.c: (SO_REUSEPORT): New constant.
2919
2920 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
2921
2922         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
2923         variable Sub_Second to Duration in order to accomodate a larger range
2924         of arithmetic operations.
2925
2926 2007-08-14  Bob Duff  <duff@adacore.com>
2927
2928         * g-sttsne-locking.ads: Move comments from spec to body.
2929         * g-sttsne-locking.adb: Move comments from spec to body.
2930         * g-sttsne-vxworks.ads: Removed.
2931         * g-sttsne-vxworks.adb: Removed.
2932
2933 2007-08-11  Ian Lance Taylor  <iant@google.com>
2934
2935         * misc.c (gnat_get_alias_set): Change return type to
2936         alias_set_type.
2937
2938 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2939
2940         * decl.c, utils2.c: Fix whitespace in last change.
2941
2942 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2943
2944         * decl.c (compare_field_bitpos): Constify.
2945         * utils2.c (compare_elmt_bitpos): Likewise.
2946
2947 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
2948
2949         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
2950         anonymous access type.
2951         (pthread_sigmask): Now take an access sigset_t.
2952
2953 2007-07-05  Joel Sherrill <joel.sherrill@oarcorp.com>
2954
2955         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
2956         
2957 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2958
2959         PR tree-optimization/25737
2960         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
2961
2962 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2963
2964         * trans.c (Attribute_to_gnu): When subtracting an
2965         offset from a pointer, use POINTER_PLUS_EXPR with
2966         NEGATE_EXPR instead of MINUS_EXPR.
2967         (gnat_to_gnu): Likewise.
2968         * utils.c (convert): When converting between
2969         thin pointers, use POINTER_PLUS_EXPR and sizetype
2970         for the offset.
2971         * utils2.c (known_alignment): POINTER_PLUS_EXPR
2972         have the same semantics as PLUS_EXPR for alignment.
2973         (build_binary_op): Add support for the semantics of
2974         POINTER_PLUS_EXPR's operands.
2975         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
2976
2977 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
2978
2979         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
2980         of get_signed_or_unsigned_type.
2981         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
2982
2983 2007-06-11  Bob Duff  <duff@adacore.com>
2984             Thomas Quinot  <quinot@adacore.com>
2985
2986         * g-stsifd-sockets.adb (Create): Work around strange behavior of
2987         'bind' on windows that causes 'connect' to fail intermittently, by
2988         retrying the 'bind'.
2989         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2990
2991 2007-06-10  Duncan Sands  <baldrick@free.fr>
2992
2993         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
2994         than to void, for the fields when making a new fat pointer type.
2995         (gnat_substitute_in_type): Now substitute_in_type.
2996         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
2997         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
2998         * utils.c (update_pointer_to): Update fat pointers by updating the
2999         dummy node pointers used for the fields.
3000
3001 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3002             Bob Duff  <duff@adacore.com>
3003
3004         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
3005         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
3006         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
3007         constant Thread_Blocking_IO, always True by default, set False
3008         on a per-runtime basis.
3009         (Need_Netdb_Buffer): New constant.
3010
3011         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
3012         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
3013         files.
3014
3015         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
3016         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
3017         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
3018         child package Task_Safe_NetDB
3019         (Host_Error_Messages): Add stub body.
3020         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3021
3022         * g-soccon-mingw.ads: Add Windows-specific constants.
3023         (Need_Netdb_Buffer): New constant.
3024         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
3025         wrapper and import inet_addr(3) from the standard sockets library
3026         directly instead.
3027         (In_Addr): Add alignment clause.
3028         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3029
3030 2007-06-06  Robert Dewar  <dewar@adacore.com>
3031
3032         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3033         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
3034         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
3035         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
3036         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
3037         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
3038         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
3039         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
3040         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
3041         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
3042         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
3043         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
3044         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
3045         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
3046         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3047         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
3048         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
3049         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
3050         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
3051         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
3052         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
3053         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
3054         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
3055         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
3056         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
3057         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
3058         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
3059         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
3060         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
3061         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
3062         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
3063         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
3064         Unchecked_* by Ada.Unchecked_*
3065
3066 2007-06-06  Robert Dewar  <dewar@adacore.com>
3067
3068         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
3069         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
3070         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
3071         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
3072         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3073         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
3074
3075         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
3076         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
3077         s-tasloc.adb, s-tasloc.ads: New files.
3078
3079 2007-06-06  Bob Duff  <duff@adacore.com>
3080
3081         * g-expect-vms.adb: 
3082         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
3083         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
3084         (Send_Signal, Close): Raise Invalid_Process if the process id is
3085         invalid.
3086         (Pattern_Matcher_Access): Is now a general access type to be able to
3087         use aliased string.
3088
3089 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3090             Arnaud Charlet  <charlet@adacore.com>
3091
3092         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
3093         (SIGEMT is now used instead of SIGTERM on AIX).
3094
3095         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
3096         (Time_Slice_Supported): Set to True.
3097         Use SIGEMT instead of SIGTERM as SIGADAABORT.
3098
3099 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
3100
3101         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
3102         (Time, Time)): Use To_Relative_Time rather than manual calculation to
3103         express the bounds of Duration as Time. Raise Time_Error when the
3104         result is greater or equal to the higher bound of Duration (on the
3105         margin case).
3106         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
3107         Ada_High_And_Leaps.
3108         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
3109         Ada_High_And_Leaps.
3110         ("-" (Time, Time)): Reorder code.
3111         (All_Leap_Seconds): Removed.
3112         (Arithmetic_Operations.Add): Remove sign related kludge.
3113         (Arithmetic_Operations.Difference): Control the leaps seconds processing
3114         with flag Leap_Support.
3115         (Arithmetic_Operations.Subtract): Remove sign related kludge.
3116         (Check_Within_Time_Bounds): New procedure.
3117         (Clock): Control the leap seconds processing with flag Leap_Support.
3118         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
3119         (Formatting_Operations.Split): Control the leap seconds processing with
3120         flag Leap_Support.
3121         (Formatting_Operations.Time_Of): Control the leaps seconds processing
3122         with flag Leap_Support. Adjust the year, month and day (if applicable)
3123         when the value of day seconds designates a new day.
3124         (Split): Use parameter associations for better readability. Integrate
3125         flag Is_Ada_05.
3126         (Time_Of): Use parameter associations for better readability. Integrate
3127         flag Is_Ada_05.
3128
3129         * a-calfor.adb (Split): Use parameter associations for better
3130         readability. Integrate flag Is_Ada_05.
3131         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
3132         better readability. Integrate flag Is_Ada_05.
3133
3134 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3135
3136         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
3137         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
3138         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
3139         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
3140         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
3141         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
3142         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
3143         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
3144         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
3145         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
3146         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
3147         time when entering this routine to detect a backward clock setting
3148         (manual setting or DST adjustment), to avoid waiting for a longer delay
3149         than needed.
3150         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
3151         Remove handling of deferred priority change, and replace by setting the
3152         task priority directly, as required by AI-188.
3153         Update comments.
3154         (Max_Task_Image_Length): New constant.
3155         Replace Warnings (Off) by Unreferenced pragma, cleaner.
3156         (Dynamic_Priority_Support): Removed, no longer needed.
3157         (Poll_Base_Priority_Change): Ditto.
3158         (Set_Ceiling): Add this procedure to change the ceiling priority
3159         associated to a lock. This is a dummy implementation because dynamic
3160         priority ceilings are not supported by the underlying system.
3161
3162         * a-dynpri.adb (Set_Priority): Take into account case where Target is
3163         accepting a RV with its priority boosted.
3164         Remove handling of deferred priority change, and replace by setting the
3165         task priority directly, as required by AI-188.
3166
3167         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
3168         Succeeded = True.
3169         Remove handling of deferred priority change, and replace by setting the
3170         task priority directly, as required by AI-188.
3171         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
3172         of Self_Id earlier.
3173
3174         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
3175         (Poll_Base_Priority_Change): Removed.
3176         Code clean up: use SSL.Current_Target_Exception.
3177
3178         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
3179         to run as this is a potentially dispatching point.
3180         (Call_Synchronous): Use Local_Defer_Abort.
3181         (Callable): Relax assertion.
3182         (Selective_Wait): Relax assertion in case abort is not allowed.
3183         Remove handling of deferred priority change, and replace by setting the
3184         task priority directly, as required by AI-188.
3185
3186         * s-tasuti.adb (Make_Passive): Adjust assertions.
3187         Remove handling of deferred priority change, and replace by setting the
3188         task priority directly, as required by AI-188.
3189
3190 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3191
3192         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
3193         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
3194         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
3195         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
3196         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
3197         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
3198         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
3199         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
3200         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
3201         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
3202         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
3203         This patch changes the largest non-binary modulus from 2**31-1 to
3204         2**32-1.
3205         (Compiler_System_Version): Removed, no longer used.
3206         Clean up system files by removing flags only used on a single target.
3207         Also remove obsolete flags, only used during bootstrap from system.ads
3208         (Address): Add a pragma Preelaborable_Initialization.
3209
3210         * system-aix.ads:  Ditto.
3211         (GCC_ZCX_Support): Set to true.
3212         Update priority range on AIX and map Ada priorities to target
3213         priorities appropriately for different scheduling policies.
3214
3215         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
3216
3217 2007-06-06  Vincent Celier  <celier@adacore.com>
3218
3219         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
3220         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
3221
3222         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
3223         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
3224         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
3225         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
3226         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
3227         MLib.Tgt, containing the default versions of the exported subprograms.
3228         For each platform, create a specific version of the body of new child
3229         package MLib.Tgt.Specific that contains only the body of subprograms
3230         that are different from the default.
3231         (Archive_Builder_Append_Options): New function.
3232
3233 2007-06-06  Matthew Gingell  <gingell@adacore.com>
3234
3235         * s-osinte-aix.adb: Map Ada priorities to target priorities
3236         appropriately for different scheduling policies.
3237
3238 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3239
3240         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
3241         its C counterpart.
3242         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
3243         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
3244
3245 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
3246
3247         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
3248         Noop on VMS, added for interface commonality.
3249
3250 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3251             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3252             Olivier Hainque  <hainque@adacore.com>
3253
3254         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
3255         renamed expression of a full renaming at toplevel.
3256         (gnat_to_gnu_entity, case object): If not defining, do not look inside
3257         the values the constant is initialized to if it is an N_Allocator.
3258         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
3259         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
3260         (make_aligning_type): Accept an extra ROOM argument for storage to be
3261         made available before the aligned field, and an extra BASE_ALIGN
3262         argument for callers to pass the alignment guaranteed to be honored for
3263         the whole aligning object. Avoid call to finish_record_type, which only
3264         interferes with the sizes we want to set.
3265         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
3266         make_aligning_type for super-aligned objects on stack.
3267         (components_to_record): Pass the adjusted size of the type when creating
3268         fields in the qualified union for the variant part.
3269         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
3270         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
3271         packed array type.
3272         (maybe_pad_type): Set TYPE_USER_ALIGN.
3273         (make_aligning_type): Likewise.
3274         ALIGN argument is unsigned int.
3275         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
3276         (gnat_to_gnu_param): Likewise, for parameters.
3277         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
3278         if it is constant and stems from a function call.
3279         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
3280         of the record is specified.  Adjust accordingly.
3281         (adjust_packed): New static function.
3282         (gnat_to_gnu_field): Use it to adjust the packedness setting.
3283         (components_to_record): Likewise.
3284         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
3285         side-effects if the object is deemed constant.
3286         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
3287         type instead of merely finalizing it.  Tidy.
3288         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
3289         <E_Access_Type>: Likewise.
3290         (defer_debug_incomplete_list): Rename to defer_finalize_list.
3291         (defer_debug_level): Delete.
3292         (gnat_to_gnu_entity) <debug_deferred>: Likewise
3293         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
3294         type.
3295         <E_Record_Type>: Do not explicitly defer finalizing the type.
3296         Adjust for write_record_type_debug_info renaming.
3297         <E_Subprogram_Type>: Likewise.
3298         Finalize deferred types right after deferred incomplete types are
3299         expanded.
3300         (rest_of_type_decl_compilation): New global function.
3301         (components_to_record): Rename defer_debug parameter to do_not_finalize.
3302         (components_to_record): Propagate the packedness to the fields of the
3303         qualified union type if there is a variant part.
3304         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
3305         instead of inline code to adjust the XUT field offsets.
3306         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
3307         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
3308         and write the debug info if the type derives from a discriminated one.
3309         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
3310         <E_Array_Subtype>: Likewise.
3311         <E_String_Literal_Subtype>: Likewise.
3312         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
3313         an alignment clause.
3314         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
3315         before giving warning.
3316         (prepend_one_attribute_to): New function, helper to prepend an attribute
3317         to an attribute list.
3318         (gnat_to_gnu_entity) <E_Procedure>: Use it.
3319         (prepend_attributes): Likewise.
3320         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
3321         <E_Array_Type>: Declare the padding type for the element type, if any.
3322         <E_Array_Subtype>: Likewise.
3323         (defer_limited_with): New variable.
3324         (Gigi_Equivalent_Type): New function.
3325         (gnat_to_gnu_entity): Use it at start and use result throughout.
3326         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
3327         Gigi_Equivalent_Type, support Limited_With, allow two levels of
3328         indirection, precompute if unconstrained array to simplify logic, and
3329         use defer_limited_with to defer elaboration of some types from limited
3330         with.
3331         (finalize_from_with_types): New function.
3332
3333 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
3334             Eric Botcazou  <ebotcazou@adacore.com>
3335             Tristan Gingold  <gingold@adacore.com>
3336             Olivier Hainque  <hainque@adacore.com>
3337
3338         * trans.c (Identifier_to_gnu): Change test for deferred constant by
3339         adding guard that the entity is an E_Constant before testing presence
3340         of Full_view (and remove unnecessary test that entity is not a type).
3341         For a CONST_DECL used by reference, manually retrieve
3342         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
3343         (struct language_function): Move from utils.c to here.
3344         (struct parm_attr): New structure.
3345         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
3346         (f_parm_attr_cache): New macro.
3347         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
3348         expressions for the 'First, 'Last and 'Length attributes of the
3349         unconstrained array IN parameters.
3350         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
3351         Allocate the information structure for the function earlier, as well
3352         as the language-specific part.
3353         If the parameter attributes cache has been populated, evaluate the
3354         cached expressions on entry.
3355         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
3356         N_Procedure_Call_Statement and N_Indexed_Component.
3357         (Pragma_to_gnu): Translate inspection_point to an asm statement
3358         containaing a comment and a reference to the object (either its address
3359         for BLKmode or its value).
3360         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
3361         to go to DECL_INITIAL. Together with the size constraint relaxation
3362         in create_var_decl, enlarges the set of situations in which an
3363         identifier may be used as an initializer without implying elaboration
3364         code.
3365         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
3366         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
3367         node.
3368         (maybe_stabilize_reference): Remove lvalues_only parameter.
3369         (gnat_stabilize_reference): Adjust for above change.
3370         (gnat_to_gnu): Do not set location information on the result
3371         if it is a reference.
3372         (add_cleanup): Add gnat_node parameter and set the location of the
3373         cleanup to it.
3374         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
3375         (Exception_Handler_to_gnu_zcx): Likewise.
3376         (gigi): Remove the cgraph node if the elaboration procedure is empty.
3377         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
3378         the former right after the latter.
3379         (start_stmt_group): Make global.
3380         (end_stmt_group): Likewise.
3381         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
3382         vars.
3383         (gnu_program_error_label_stack): Likewise.
3384         (gigi): Initialize them.
3385         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
3386         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
3387         New cases.
3388         (push_exception_label_stack): New function.
3389         (takes_address): New function.
3390
3391         * utils.c (struct language_function): Move to trans.c from here.
3392         (unchecked_convert): Do not wrap up integer constants in
3393         VIEW_CONVERT_EXPRs.
3394         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
3395         the latter for aggregate types, unexpected by later passes, and relax an
3396         arbitrary size constraint on the former.
3397         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
3398         to compare the sizes.
3399         (convert_vms_descriptor): When converting to a fat pointer type, be
3400         prepared for a S descriptor at runtime in spite of a SB specification.
3401         (shift_unc_components_for_thin_pointers): New function.
3402         (write_record_type_debug_info): For variable-sized fields, cap the
3403         alignment of the pointer to the computed alignment.
3404         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
3405         If REP_LEVEL is 2, do not compute the sizes.
3406         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
3407         (build_unc_object_type): Likewise.
3408         (declare_debug_type): New function.
3409
3410         * ada-tree.def: USE_STMT: removed (not emitted anymore).
3411
3412         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
3413         no statement is expandable anymore.
3414         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
3415         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
3416         when the user requested it explicitely.
3417         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
3418         to 0 for Ada.
3419         (get_alias_set): Return alias set 0 for a type if
3420         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
3421
3422         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
3423         (DECL_FUNCTION_STUB): New accessor macro.
3424         (SET_DECL_FUNCTION_STUB): New setter macro.
3425
3426         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
3427
3428         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
3429         declarations.
3430
3431 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
3432
3433         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
3434         Rename to Abort_Task_Interrupt to be able to keep the same interface
3435         as the rest of the targets.
3436
3437         * s-osinte-vxworks.ads s-osinte-vxworks.adb
3438         (To_VxWorks_Priority): Remove explicit "in" mode indicator
3439
3440         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
3441         New files.
3442
3443 2007-06-06  Robert Dewar  <dewar@adacore.com>
3444
3445         * a-chahan.ads: Remove obsolescent pragmas
3446
3447         * a-chlat1.ads: Minor reformatting
3448
3449 2007-06-06  Robert Dewar  <dewar@adacore.com>
3450
3451         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
3452         for Errout
3453
3454         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
3455         implementation
3456
3457         * errout.ads (Finalize): Changed interface
3458         (Output_Messages): New procedure
3459         (Compilation_Errors): New Interface
3460
3461         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
3462         Finalize/Output_Messages interface for Errout
3463         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
3464         Errout.
3465
3466 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3467             Olivier Hainque  <hainque@adacore.com>
3468             Robert Dewar  <dewar@adacore.com>
3469
3470         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
3471         check.
3472         (Raise_Current_Excep): Call Debug_Raise_Exception just before
3473         propagation starts, to let debuggers know about the event in a reliable
3474         fashion.
3475         (Local_Raise): Moved to System.Exceptions
3476         More convenient to have this as a separate unit
3477
3478         * s-except.adb, s-except.ads: New files.
3479
3480         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
3481         Debug_Unhandled_Exception in System.Exceptions where it belongs
3482         together with a couple of other debug helpers.
3483         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
3484         the former Unhandled_Exception.
3485
3486         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
3487         (Warn_No_Exception_Propagation): New procedure
3488         (Warn_If_No_Propagation): Rewritten for new warning generation
3489         (Expand_Exception_Handlers): New warning generation
3490         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
3491         (Add_Exception_Label): Use Special_Exception_Package_Used for test
3492         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
3493         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
3494         even if restriction is set (makes life easier in Check_Returns)
3495         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
3496         checking exception identities.
3497         (Expand_Local_Exception_Handlers): Do not optimize when all others case
3498         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
3499         block for handler (used by Check_Returns)
3500         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
3501         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
3502         remove all exception handlers when optimizing local raise statements.
3503         (Find_Local_Handler): Use Get_Renamed_Entity
3504         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
3505         marked analyzed after expanding exception handlers, do not generate
3506         redundant cleanup actions, because they have been constructed already.
3507
3508 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3509
3510         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
3511         presence of this categorization pragma is mandated by the language.
3512         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
3513         for this type.
3514
3515 2007-06-06  Vincent Celier  <celier@adacore.com>
3516             Robert Dewar  <dewar@adacore.com>
3517
3518         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
3519         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
3520         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
3521         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
3522         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
3523         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
3524         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
3525         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
3526         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
3527         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
3528         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
3529         ali.ads, ali.adb: 
3530         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
3531         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
3532         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
3533         Use variables of types File_Name_Type and Unit_Name_Type in error
3534         messages.
3535         (Get_Name): Add parameter Ignore_Special, and set it reading file name
3536         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
3537         here.
3538         Define flags Flag217-Flag230 with associated subprograms
3539         (Flag_Word5): New record type.
3540         (Flag_Word5_Ptr): New access type.
3541         (To_Flag_Word5): New unchecked conversion.
3542         (To_Flag_Word5_Ptr): Likewise.
3543         (Flag216): New function.
3544         (Set_Flag216): New procedure.
3545
3546 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3547
3548         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
3549         instead of 'Size.
3550
3551         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
3552
3553 2007-06-06  Javier Miranda  <miranda@adacore.com>
3554
3555         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
3556         the package.
3557         (Object_Specific_Data_Array): This is now internal to the package.
3558         (Object_Specific_Data): This is now internal to the package.
3559         (Select_Specific_Data_Element): This is now internal to the package.
3560         (Select_Specific_Data_Array): This is now internal to the package.
3561         (Select_Specific_Data): This is now internal to the package.
3562         (Offset_To_Top_Function_Ptr): This is now public.
3563         (To_Offset_To_Top_Function_Ptr): Removed.
3564         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
3565          local to subprogram Offset_To_Top.
3566         (Predefined_DT): Removed.
3567         (Typeinfo_Ptr): Removed.
3568         (OSD): This function is now internal to this package.
3569         (SSD): This function is now internal to this package.
3570         (DT): New function that displaces the pointer to the table of primitives
3571          to get access to the enclosing wrapper record.
3572         (IW_Membership): Code cleanup.
3573         (Offset_To_Top): Code cleanup.
3574         (Predefined_DT): Removed.
3575         (Register_Interface_Tag): Removed.
3576         (Set_Interface_Table): Removed.
3577         (Set_Offset_Index): Removed.
3578         (Set_Offset_To_Top): Code cleanup.
3579         (Set_OSD): Removed.
3580         (Set_Signature): Removed.
3581         (Set_SSD): Removed.
3582         (Set_Tagged_Kind): Removed.
3583         (Typeinfo_Ptr): Removed.
3584         (TSD): Removed.
3585         (Displace): Add missing check on null actual.
3586
3587         * exp_disp.ads, exp_disp.adb
3588         (Select_Expansion_Utilities): Removed.
3589         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
3590         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
3591         the interface requires a new parameter.
3592         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
3593         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
3594         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
3595         Done to remove package Select_Expansion_Utilities.
3596         (Make_DT): New implementation for statically allocated dispatch tables.
3597         (Make_Secondary_DT): Moved to the scope of Make_DT.
3598         (Register_Primitive): Code cleanup plus incoporate the use of the new
3599         function DT_Address_Attribute.
3600         (Expand_Interface_Thunk): The profile of this subprogram has been
3601         changed to return the Thunk_Id and the corresponding code.
3602         (Fill_DT_Entry): Removed. Its functionality is now provided by
3603         subprogram Register_Primitive.
3604         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
3605         subprogram Register_Primitive.
3606         (Register_Primitive): New subprogram that incorporates the previous
3607         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
3608         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
3609         was only required to call Make_DT_Access_Action, which is now removed.
3610         (Ada_Actions): Removed
3611         (Action_Is_Proc): Removed
3612         (Action_Nb_Arg): Removed
3613         Replace all the calls to Make_DT_Access_Action by direct calls to
3614         Make_Procedure_Call_Statement or Make_Function_Call.
3615         (Set_DTC_Entity_Value): New subprogram.
3616         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
3617         (Expand_Interface_Thunk): Add missing support for primitives that are
3618         functions with a controlling result (case in which there is no need
3619         to generate the thunk).
3620
3621         * exp_atag.ads, exp_atag.adb
3622         (Build_DT): New subprogram that displaces the pointer to reference the
3623         base of the wrapper record.
3624         (Build_Typeinfo_Offset): Removed.
3625         (RTE_Tag_Node): Removed.
3626         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
3627         (Build_Get_RC_Offset): Removed.
3628         (Build_Inherit_Predefined_Prims): Removed.
3629         (Build_Inherit_TSD: Removed.
3630         (Build_New_TSD): Removed.
3631         (Build_Set_External_Tag): Removed.
3632         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
3633         (Build_Set_Prim_Op_Address): Add documentation.
3634         (Build_Set_TSD): Removed.
3635
3636         * rtsfind.ads, rtsfind.adb
3637         (Load_Fail): If load fails and we are not in configurable run-time
3638         mode, then raise Unrecoverable_Error.
3639         (Text_IO_Kludge): Generate an error message if a run-time library is
3640         not available in a given run-time (ie. zfp run-time).
3641         (RTE_Record_Component): Add code to check that the component we search
3642         for is not found in two records in the given run-time package.
3643         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
3644         (RE_DT_Predef_Prims_Offset): New entity
3645         (RE_Static_Offset_To_Top): New entity
3646         (RE_HT_Link): New entity.
3647         (System_Address_Image): Addition of this run-time package.
3648         (RE_Address_Image): New entity.
3649         (RE_Abstract_Interface): Removed.
3650         (RE_Default_Prim_Op_Count): Removed.
3651         (RE_DT_Entry_Size): Removed.
3652         (RE_DT_Min_Prologue_Size): Removed.
3653         (RE_DT_Prologue_Size): Removed.
3654         (RE_Ifaces_Table_Ptr): Removed.
3655         (RE_Interface_Data_Ptr): Removed.
3656         (RE_Type_Specific_Data): Removed.
3657         (RE_Primary_DT): Removed.
3658         (RE_Register_Interface_Tag): Removed.
3659         (RE_Set_Offset_Index): Removed.
3660         (RE_Set_OSD): Removed.
3661         (RE_Set_SSD): Removed.
3662         (RE_Set_Signature): Removed.
3663         (RE_Set_Tagged_Kind): Removed.
3664         (RE_Address_Array): New entity.
3665         (RE_DT): New entity.
3666         (RE_Iface_Tag): New entity.
3667         (RE_Interfaces_Table): New entity.
3668         (RE_No_Dispatch_Table): New entity.
3669         (RE_NDT_Prims_Ptr): New entity.
3670         (RE_NDT_TSD): New entity.
3671         (RE_Num_Prims): New entity.
3672         (RE_Offset_To_Top_Function_Ptr): New entity.
3673         (RE_OSD_Table): New entity.
3674         (RE_OSD_Num_Prims): New entity.
3675         (RE_Predef_Prims): New entity
3676         (RE_Predef_Prims_Table_Ptr): New entity.
3677         (RE_Primary_DT): New entity.
3678         (RE_Signature): New entity.
3679         (RE_SSD): New entity.
3680         (RE_TSD): New entity.
3681         (RE_Type_Specific_Data): New entity.
3682         (RE_Tag_Kind): New entity.
3683
3684 2007-06-06  Thomas Quinot  <quinot@adacore.com>
3685
3686         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
3687         C imported variable.
3688         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
3689         on entry.
3690
3691 2007-06-06  Robert Dewar  <dewar@adacore.com>
3692
3693         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
3694         character
3695
3696 2007-06-06  Vincent Celier  <celier@adacore.com>
3697
3698         * a-tifiio.adb (Put, internal): For negative numbers, check that there
3699         is room for at least one digit and the minus sign.
3700         (Put.Put_Character): Never put a character outside of the range of
3701         string To.
3702
3703 2007-06-06  Olivier Hainque  <hainque@adacore.com>
3704             Eric Botcazou  <ebotcazou@adacore.com>
3705
3706         * utils2.c (build_allocator): Provide the extra arguments to
3707         make_aligning_type for super-aligned objects allocated from the default
3708         pool. Leave enough room for a pointer before the aligning field, and
3709         store the system's allocator return value there.
3710         (build_call_alloc_dealloc): When releasing a super-aligned object,
3711         retrieve the system's allocator return value from where build_allocator
3712         has stored it, just ahead of the adjusted address we are passed.
3713         (build_call_raise): Handle properly the generation of line numbers when
3714         the node is marked No_Location.
3715         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
3716         by using DECL_UID on ties.
3717         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
3718         main variant.
3719         (build_call_raise): Handle converting exception into goto; support new
3720         argument KIND.
3721         (build_component_ref): Add new arg to build_call_raise.
3722
3723 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
3724
3725         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
3726         "." in the case of nnn.xxx when nnn terminates with an underscore.
3727         Parse the remaining "#" or ":" in the case of nnn#.xxx#
3728
3729 2007-06-06  Robert Dewar  <dewar@adacore.com>
3730
3731         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
3732
3733 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
3734             Vincent Celier  <celier@adacore.com>
3735             Robert Dewar  <dewar@adacore.com>
3736
3737         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
3738         needed.
3739         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
3740         ((destructor)) for adafinal, even when switch -a is used.
3741         Do not issue pragma Linker_Destructor for adafinal when switch -a is
3742         used.
3743         (Gen_Object_Files_Options): Add formatting of Linker Options, when
3744         Output_Linker_Option_List is set. Suppress this formatting when
3745         Zero_Formatting is set.
3746         Add case for CLI_Target.
3747         (System_Restrictions_Used): New flag, used to avoid generating with of
3748         System_Restrictions and initialization of the data unless there is
3749         some use of System.Restrictions in the partition.
3750         (Check_System_Restrictions_Used): New procedure
3751
3752         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
3753         since we only with this unit in the binder file if it is used elsewhere
3754         in the partition.
3755
3756 2007-06-06  Vincent Celier  <celier@adacore.com>
3757
3758         * bindusg.adb: Add line for @<response file>
3759         Add lines for new switches -R and -Z
3760
3761         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
3762         hierarchy in the list of files of the closure when -R is used
3763         (Gnatbind): Accept arguments starting with '@' to indicate response
3764         files and take the arguments from the response files.
3765         If List_Closure is set, display the referenced files
3766
3767 2007-06-06  Javier Miranda  <miranda@adacore.com>
3768             Robert Dewar  <dewar@adacore.com>
3769             Ed Schonberg  <schonberg@adacore.com>
3770
3771         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3772         which the address-clause is applied to in-mode actuals (allowed by
3773         13.1(22)).
3774         (Apply_Discriminant_Check): Do not generate a check if the type is
3775         constrained by a current instance.
3776         (Activate_Division_Check): New procedure
3777         (Activate_Overflow_Check): New procedure
3778         (Activate_Range_Check): New procedure
3779         Call these new Activate procedures instead of setting flags directly
3780         (Apply_Array_Size_Check): Removed, no longer needed.
3781         Code clean up: remove obsolete code related to GCC 2.
3782         (Get_E_Length): Protect against bomb in case scope is standard
3783         (Selected_Range_Checks): If the node to be checked is a conversion to
3784         an unconstrained array type, and the expression is a slice, use the
3785         bounds of the slice to construct the required constraint checks.
3786         Improve NOT NULL error messages
3787         (Apply_Constraint_Check): If the context is a null-excluding access
3788         type, diagnose properly the literal null.
3789
3790 2007-06-06  Pascal Obry  <obry@adacore.com>
3791
3792         * clean.adb (Clean_Archive): Use untouched casing for the archive name
3793         and the corresponding .deps file.
3794         (Clean_Interface_Copy_Directory): Use untouched casing for the library
3795         src directory. Minor code-clean-up. Use untouched casing for files
3796         read into the library src dir.
3797         (Clean_Library_Directory): Idem.
3798         (Parse_Cmd_Line): Accept new switch -aP
3799
3800 2007-06-06  Javier Miranda  <miranda@adacore.com>
3801             Ed Schonberg  <schonberg@adacore.com>
3802             Robert Dewar  <dewar@adacore.com>
3803             Eric Botcazou  <ebotcazou@adacore.com>
3804             Arnaud Charlet  <charlet@adacore.com>
3805
3806         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
3807         applicable to types that have the With_Type flag set. Returns the
3808         non-limited view of the type, if available, otherwise the type itself.
3809         For class-wide types, there is no direct link in the tree, so we have
3810         to retrieve the class-wide type of the non-limited view of the Etype.
3811         New attributes Static_Initialization and Static_Elaboration_Desired.
3812         Remove the pragma Thread_Body, and the associated flag
3813         Is_Thread_Body in entities, and all related code.
3814         (Suppress_Value_Tracking_On_Call): New flag
3815         E_Exception has Esize and Alignment fields
3816         (Universal_Aliasing): New function.
3817         (Set_Universal_Aliasing): New procedure.
3818         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
3819         (Check_Nested_Access): New procedure.
3820         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
3821         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3822         (Related_Interface): New attribute. Present in dispatch table pointer
3823         components of records. Set to point to the entity of the corresponding
3824         interface type.
3825         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
3826         (Original_Access_Type): Remove, not needed.
3827         (Root_Type): Handle properly subtypes of class-wide-types.
3828         Update comments.
3829
3830         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
3831         class-wide types visible through limited-with clauses.
3832         (Try_Primitive_Operation): When examining all primitive operations of a
3833         tagged type, do not consider subprograms labeled as hidden unless they
3834         belong to a private generic type with a tagged parent.
3835         (Try_Object_Operation): Extensive rewriting, to handle properly various
3836         overloading cases, when several ancestors may have class-wide operations
3837         that are possible candidates, and when the overloaded functions return
3838         array types and have defaulted parameters so that the call may be
3839         interpreted as an indexing.
3840         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
3841         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
3842         successive actuals before analyzing the call itself.
3843         (Try_Primitive_Operation): A primitive operation is compatible with the
3844         prefix if the prefix has a synchronized type and the type of the formal
3845         is its corresponding record, as can be the case when the primitive
3846         operation is declared outside of the body of the type.
3847         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
3848         perform homonym traversal, looking for class-wide operation matches
3849         (formerly done in statements of Try_Class_Wide_Operation). Matches on
3850         access parameters are now restricted to anonymous access types.
3851         (Mark_Allocator): An allocator with a discriminant association parent is
3852         a coextension.
3853         (Try_One_Prefix_Interpretation): If the type of the object is
3854         incomplete, as can be happen when it is a limited view obtained through
3855         a limited_with_clause, the selected component is not part of a prefixed
3856         call.
3857         (Complete_Object_Operation): Diagnose properly an object that is not
3858         aliased when the corresponding controlling formal is an access
3859         parameter.
3860         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
3861         ambiguous calls in prefixed notation, where two primitives differ only
3862         in that the controlling argument of one is an access parameter.
3863
3864         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
3865         whether a function that returns an unconstrained type can be inlined.
3866         (Process_Formals): Diagnose properly the illegal use of an incomplete
3867         type in the profile of an access_to_subprogram declaration.
3868         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
3869         operations are attached to the corresponding record.
3870         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
3871         When processing a primitive of a concurrent type which implements an
3872         interface change the type of all controlling formals to that of the
3873         corresponding record type.
3874         (Check_Synchronized_Overriding): Relax the conditional logic when trying
3875         to determine the tagged type to which a primitive belongs.
3876         (Check_Conventions): Capture condition to ignore a primitive operation
3877         (which is shared between the loop in Check_Conventions and the one in
3878         Check_Convention) in a new local function Skip_Check.
3879         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
3880         confusion with Check_Conventions' own Prim_Op local variable.
3881         (Create_Extra_Formals): Test for a tagged result type rather than a
3882         controlling result when determining whether to add a BIP_Alloc_Form
3883         formal and a BIP_Final_List formal to the function.
3884         (Check_Conformance); For parameters that are anonymous access types,
3885         subtype conformance requires that the not null and the constant
3886         indicators must match
3887         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
3888         to retrieve the appropriate type when processing a concurrent type
3889         declared within a generic. Minor comment reformatting. Change invocation
3890         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
3891         mitive.
3892         (Analyze_Subprogram_Body): If the return type of a function is an
3893         anonymous access to the limited view of a class-wide type, and the
3894         non-limited view of the type is available, update the type of the
3895         function so that code can be generated.
3896         (Process_Formals): In case of access-subtype itype whose designated
3897         type is also an itype (situation that happens now with access to
3898         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
3899         attribute to avoid backend problems.
3900         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
3901         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
3902         anonymous types' designated types are same before testing
3903         Subtypes_Statically_Match.
3904         (Create_Extra_Formals): Test for a named access parameter that is a
3905         controlling formal as an additional condition for adding an
3906         accessibility level formal. This can occur in the subp type created for
3907         dispatching calls in Expand_Dispatching_Call, and allows calling
3908         Create_Extra_Formals from that procedure rather than special-casing the
3909         extra formals there.
3910         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
3911         when the function has a controlling result.
3912         (Check_Returns): Add much more knowledge of the optimization of local
3913         raise statements to gotos, to retain proper warnings in this case.
3914         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
3915         nodes when looking for last statement.
3916
3917         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
3918         class-wide types visible through limited with clauses.
3919         (Add_One_Interp): If the operands are anonymous access types, the
3920         predefined operator on universal_access is immediately visibles
3921         (Find_Unique_Type): Handle anonymous access to subprogram types just as
3922         other anonymous access types.
3923         (Disambiguate): Take into account CIL convention.
3924         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
3925
3926 2007-06-06  Robert Dewar  <dewar@adacore.com>
3927
3928         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
3929         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
3930         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
3931         Fix lower bound of tables.
3932         Add rep clauses.
3933
3934         * nlists.adb: Ditto.
3935         (Prev_Node, Next_Node): Change index type to Int so that it properly
3936         covers the range First_Node_Id - 1 up.
3937
3938 2007-06-06  Javier Miranda  <miranda@adacore.com>
3939             Ed Schonberg  <schonberg@adacore.com>
3940             Bob Duff  <duff@adacore.com>
3941             Hristian Kirtchev  <kirtchev@adacore.com>
3942
3943         * exp_aggr.ads, exp_aggr.adb: 
3944         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
3945         in extension aggregates.
3946         (Flatten): Other conditions being met, an aggregate is static if the
3947         low bound given by component associations is different from the low
3948         bound of the base index type.
3949         (Packed_Array_Aggregate_Handled): If the component type is itself a
3950         packed array or record, the front-end must expand into assignments.
3951         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
3952         Init_Pr, instead of Ancestor_Is_Expression.
3953         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
3954         coextension chain root, either generate a list controller or use the
3955         already existing one.
3956         (Static_Array_Aggregate): New procedure to construct a positional
3957         aggregate that can be handled by the backend, when all bounds and
3958         components are compile-time known constants.
3959         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
3960         types covering interface types into assignments.
3961         (Replace_Type): move to Build_Record_Aggr_Code.
3962         (Expand_Record_Aggr_Code): if the target of the aggregate is an
3963         interface type, convert to the definite type of the aggregate itself,
3964         so that needed components are visible.
3965         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
3966         components and the context is an extended return statement do not
3967         create a transient block for it, to prevent premature finalization
3968         before the return is executed.
3969         (Gen_Assign): Do not generate a call to deep adjust routine if the
3970         component type is itself an array of controlled (sub)-components
3971         initialized with an inner aggregate.
3972         (Component_Check): New name for Static_Check. This name is now more
3973         appropriate, and documentation is added which was missing.
3974         (Component_Check): Add test for bit aligned component value
3975         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
3976         Tagged_Comps, name is more appropriate given added function below.
3977         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
3978
3979 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
3980             Javier Miranda  <miranda@adacore.com>
3981             Robert Dewar  <dewar@adacore.com>
3982
3983         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
3984         Terminated: Add unchecked type conversion from System.Address to
3985         System.Tasking.Task_Id when calling the predefined primitive
3986         _disp_get_task_id.
3987         Disable new Ada 05 accessibility check for JVM.NET targets, which
3988         cannot be implemented in a practical way.
3989         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
3990         the sources always references the tag of the actual object. Therefore,
3991         if 'Tag is applied in the sources to class-wide interface objects we
3992         generate code that displaces "this" to reference the base of the object.
3993         (Expand_N_Attribute_Reference, case Size): Return specified size if
3994         known to front end.
3995         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
3996         has code that displaces the pointer of the object to manage interface
3997         types. However this code must not be executed when the prefix is a
3998         subprogram. This bug caused the wrong expansion of the internally
3999         generated assignment that fills the dispatch table when the primitive
4000         is a function returning a class-wide interface type.
4001         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
4002         Set_Attribute_Name for Name_Unaligned_Valid.
4003
4004 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4005             Gary Dismukes  <dismukes@adacore.com>
4006
4007         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4008         If the initialization is the equivalent aggregate of the initialization
4009         procedure of the type, do not remove it.
4010         (Expand_N_Attribute_Definition_Clause): Exclude access variables
4011         initialized to null from having their expression reset to empty and
4012         note this exception in the comment.
4013
4014 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
4015             Robert Dewar  <dewar@adacore.com>
4016             Ed Schonberg  <schonberg@adacore.com>
4017             Gary Dismukes  <dismukes@adacore.com>
4018
4019         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
4020         Add "with" and "use" clauses for Sem_Attr.
4021         (Expand_Current_Value): Do not replace occurences of attribute
4022         references where the prefix must be a simple name.
4023
4024         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
4025         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
4026         Attribute_Requires_Simple_Name_Prefix.
4027         (Name_Modifies_Prefix): Body of new function.
4028         (Requires_Simple_Name_Prefix): Body of new function.
4029         (Resolve_Attribute, case Access): Improve error message for case of
4030         mismatched conventions.
4031         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
4032         incomplete type.
4033         (Analyze_Attribute, case 'Access): If the type of the prefix is a
4034         constrained subtype for a nominal unconstrained type, use its base type
4035         to check for conformance with the context.
4036         (Resolve_Attribute): Remove test of the access type being associated
4037         with a return statement from condition for performing accessibility
4038         checks on access attributes, since this case is now captured by
4039         Is_Local_Anonymous_Access.
4040         (Analyze_Access_Attribute): Set Address_Taken on entity
4041         (Analyze_Attribute, case Address): Set Address_Taken on entity
4042         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
4043         validating an access attribute whose prefix is a current instance.
4044         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
4045         applied to dispatching operations, if freezing is required then we set
4046         the attribute Has_Delayed_Freeze in the prefix's entity.
4047         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
4048         current scope if access of local subprogram taken
4049         (Analyze_Access_Attribute): Check legality of self-reference even if the
4050         expression comes from source, as when a single component association in
4051         an aggregate has a box association.
4052         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
4053         the prefix if it is a protected operation and the attribute is
4054         Unrestricted_Access.
4055         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
4056         reference to the base type of the context, to force a constraint check
4057         when the context is an access subtype with an explicit constraint.
4058         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
4059         node is rewritten as an interface conversion. leave unanalyzed after
4060         resolution, to ensure that type checking against the context will take
4061         place.
4062
4063 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4064             Javier Miranda  <miranda@adacore.com>
4065             Robert Dewar  <dewar@adacore.com>
4066
4067         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
4068         wrapper when the full view of the controlling type of an inherited
4069         function that dispatches on result implements interfaces.
4070         (Expand_N_Object_Declaration): In cases where the type of the
4071         declaration is anonymous access, create finalization list for it.
4072         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
4073         if the object has no explicit initialization, to match description of
4074         functionality of pragam Persistent_BSS.
4075         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
4076         new function to build static aggregates, to replace initialization call
4077         when static initialization is desired.
4078         (Freeze_Type): Generate a list controller for an access type whenever
4079         its designated type has controlled anonymous access discriminants.
4080         (Build_Equivalent_Aggregate): New procedure to compute a static
4081         aggregate to be used as default initialization for composite types,
4082         instead of a generating a call to the initialization procedure for the
4083         type.
4084         (Build_Initialization_Call): When available, replace a call to the
4085         initialization procedure with a copy of the equivalent static aggregate
4086         for the type.
4087         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
4088         declarations for objects of a class-wide interface type, rather than
4089         just identifiers, to prevent visibility problems.
4090         (Expand_N_Object_Declaration): When expanding the declaration for an
4091         object of a class-wide interface type, preserve the homonym chain of
4092         the original entity before exchanging it with that of the generated
4093         renaming declaration.
4094         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
4095         active, because there is no way to handle the exception.
4096         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
4097         to do a minimum decoration of the Access_Disp_Table list.
4098         (Expand_Record_Controller): Avoid the addition of the controller between
4099         the component containing the tag of a secondary dispatch table and its
4100         adjacent component that stores the offset to the base of the object.
4101         This latter component is only generated when the parent type has
4102         discriminants ---documented in Add_Interface_Tag_Components).
4103         (Apply_Array_Size_Check): Removed, no longer needed.
4104         (Expand_N_Full_Type_Declaration): If the type has anonymous access
4105         components, create a Master_Entity for it only if it contains tasks.
4106         (Build_Init_Procedure): Suppress the tag assignment compiling under
4107         no run-time mode.
4108         (Freeze_Record_Type): Remove code associated with creation of dispatch
4109         table.
4110         (Init_Secondary_Tags): Update type of actuals when generating calls to
4111         Ada.Tags.Set_Offset_To_Top
4112         (Stream_Operation_OK): Disable use of streams compiling under no
4113         run-time mode
4114         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
4115         if Has_Init_Expression set.
4116         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
4117         Register_Primitive, which provides the same functionality.
4118         (Requires_Init_Proc): Return false in case of interface types.
4119         (Add_Secondary_Tables): Use the new attribute Related_Interface to
4120         cleanup the code.
4121         (Predefined_Primitive_Freeze): Do not assume that an internal entity
4122         is always associated with a predefined primitive because the internal
4123         entities associated with interface types are not predefined primitives.
4124         Therefore, the call to Is_Internal is replaced by a call to the
4125         function Is_Predefined_Dispatching_Operation.
4126         (Make_Eq_If): When generating the list of comparisons for the
4127         components of a given variant, omit the controller component that is
4128         present if the variant has controlled components.
4129
4130 2007-06-06  Javier Miranda  <miranda@adacore.com>
4131             Hristian Kirtchev  <kirtchev@adacore.com>
4132             Bob Duff  <duff@adacore.com>
4133
4134         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
4135         handle the creation of finalization lists and calls for nested
4136         coextensions when the root of the chains is part of a return statement.
4137         (Inside_A_Return_Statement): New function inside Complete_Coextension_
4138         Finalization.
4139         (Expand_Record_Equality): Skip components that are interface types.
4140         (Displace_Allocator_Pointer): Add missing support for interface subtypes
4141         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
4142         with Rewrite_Coextension. Change the condition for detecting coextension
4143         root nodes.
4144         (Is_Local_Access_Discriminant): Removed.
4145         (Rewrite_Coextension): New routine which rewrites a static coextension
4146         as a temporary and uses its unrestricted access in the construction of
4147         the outer object.
4148         (Complete_Coextension_Finalization): New routine. Generate finalization
4149         attachment calls to all delayed coextensions.
4150         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
4151         the allocator is not a coextension itself and has delayed coextensions.
4152         If the current allocator is controlled, but also a coextension, delay
4153         the generation of the finalization attachment call.
4154         Rename local variable "Node" to "Nod" in order to avoid confusion with
4155         "Elists.Node".
4156         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
4157         limited types that are not inherently limited. Such an allocator is
4158         illegal, but is generated by the expander for a return statement, to
4159         copy the result onto the secondary stack. This is the only case where a
4160         limited object can be copied. Generate code to displace the pointer
4161         to the object if the qualified expression is a class-wide interface
4162         object. Such displacement was missing and hence the copy of the object
4163         was wrong.
4164         (Apply_Accessibility_Check): Handle allocated objects initialized in
4165         place.
4166         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
4167         and Expand_Allocator_Expression. Allocating class-wide interface objects
4168         this routine displaces the pointer to the allocated object to reference
4169         the component referencing the corresponding secondary dispatch table.
4170         Expand_Allocator_Expression): Add missing support to allocate class-wide
4171         interface objects initialized with a qualified expression.
4172         (Get_Allocator_Final_List): Test for an anonymous access type that is a
4173         function result type, and use the finalization list associated with the
4174         function scope in that case (such an anonymous type should not be
4175         treated like an access parameter's type).
4176
4177 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4178             Gary Dismukes  <dismukes@adacore.com>
4179             Javier Miranda  <miranda@adacore.com>
4180
4181         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
4182         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
4183         required exception handler.
4184         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
4185         properly the case of a function whose return type is a limited
4186         class-wide interface type. Modify the code of the accessibility
4187         check to handle class-wide interface objects. In this case we need to
4188         displace "this" to reference the primary dispatch table to get access
4189         to the TSD of the object (to evaluate its accessibility level).
4190         (Expand_N_Extended_Return_Statement): Test for a tagged result type
4191         rather than a controlling result as one of the conditions for
4192         generating tests of the implicit BIP_Alloc_Form formal. The
4193         initialization assignment is also handled according to whether the
4194         result is tagged instead of controlling.
4195         In the case where the init assignment is inserted in the "then" part of
4196         the allocation conditional, rewrite the target to be a dereference of
4197         the implicit BIP_Object_Access formal.
4198         If the returned value is unconstrained and created on the secondary
4199         stack, mark the enclosing block and function so that the secondary
4200         stack is not reclaimed on return.
4201         Treat returns from functions with controlling results similarly to
4202         returns from functions with unconstrained result subtypes.
4203         If the object returned is unconstrained, and an allocator must be
4204         created for it, analyze the allocator once the block for the extended
4205         return is installed, to ensure that finalizable components
4206         of the expression use the proper finalization list. Guard the call to
4207         Move_Final_List with a check that there is something to finalize.
4208         (Make_Tag_Ctrl_Assignment): Use "old" handling
4209         of controlled type assignment for virtual machines, since new code uses
4210         unsupported features (such as direct access to bytes in memory).
4211
4212 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
4213             Ed Schonberg  <schonberg@adacore.com>
4214
4215         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
4216         accessibility actual, check for the case of an aliased object that has
4217         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
4218         we fall into processing for the attribute rather than the name of the
4219         object.
4220         (Expand_Inline_Call): If an actual is a literal, and the corresponding
4221         formal has its address taken in the body, create a temporary to capture
4222         value.  If the return type is a limited interface, do not treat the
4223         return value as Controlled.
4224         (Is_In_Place_Function):  If the return type is a limited interface,
4225         treat as returning in place. The actual returned object may not always
4226         be limited, but the caller has to assume that it is returned in place.
4227         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
4228         context of an allocator, use the correct finalization chain (that is,
4229         the chain belonging to the access type, rather than the chain belonging
4230         to the current scope).
4231         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
4232         result type rather than a controlling result as a precondition for
4233         adding an allocation form actual to a build-in-place call.
4234         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
4235         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
4236         primitive in the dispatch tables. This work is now done by Make_DT when
4237         the type is frozen.
4238         (Register_Predefined_DT_Entry): Removed.
4239         (Add_Return): If end label is not present, use sloc of last statement
4240         for generated return statement in procedure, for better gdb behavior
4241         on expanded code.
4242         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
4243         object address nodes to ensure proper processing by routines like
4244         Insert_After*.
4245         (Expand_Call): Fix generation of validity check for parameter
4246         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
4247         the allocation form parameter if the result subtype is constrained,
4248         except when the function has a controlling result.
4249         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
4250         rather than Is_Controlled and Has_Controlled_Component, since we want to
4251         include class-wide result types in this treatment. Also test for a
4252         controlling result, since that also requires passing a finalization
4253         list.
4254         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
4255         even when the result subtype is constrained, to handle calls involving
4256         controlling results.
4257         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
4258         is now called even when the result subtype is constrained, to handle
4259         calls involving controlling results.
4260         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
4261         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
4262         now performs the test).
4263         (Make_Build_In_Place_Call_In_Object_Declaration):
4264         Add_Alloc_Form_Actual_* is now called even when the result subtype is
4265         constrained, to handle calls involving controlling results.
4266         (Add_Return): Accomodate rewritten pattern from local raise to goto
4267         transformation, so that we still recognize an transfer statement
4268         and do the right thing here in that case.
4269         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
4270         and end of subprogram code.
4271         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
4272         support for primitives that are functions (without formals) with a
4273         controlling result.
4274         (Inherited_From_Formal): If the actual subtype has not generic parent
4275         type, it is not an actual for a formal derived type, and there is no
4276         operation to inherit from the formal.
4277
4278 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4279             Thomas Quinot  <quinot@adacore.com>
4280
4281         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
4282         inserted cleanup code appropriately for GDB use.
4283         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
4284         exception handler for Deep_Adjust or Deep_Finalize.
4285         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
4286         Raise_From_Controlled_Operation is available, use a call to that
4287         subprogram instead of a plain "raise Program_Error" node to raise
4288         Program_Error if an exception is propagated from an Adjust or Finalize
4289         operation.
4290         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
4291         appears in the optional statement list of a triggering alternative, the
4292         scope actions can be inserted directly there, and not in the list that
4293         includes the asynchronous select itself.
4294
4295 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4296             Robert Dewar  <dewar@adacore.com>
4297             Hristian Kirtchev  <kirtchev@adacore.com>
4298
4299         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
4300         generated exception handler appropriately when debugging generated code.
4301         Deal properly with No_Exception_Propagation restriction mode.
4302         (Expand_N_Abort_Statement): Add an unchecked type conversion from
4303         System.Address to System.Tasking.Task_Id when processing the result of
4304         the predefined primitive _disp_get_task_id.
4305         (Expand_N_Asynchronous_Select): Clarify comment.
4306         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
4307         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
4308         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
4309         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
4310         privals and for generated call to Complete_Entry_Body, for better gdb
4311         behavior.
4312         (Copy_Result_Type): Utility to construct a parameter and result profile
4313         for protected functions whose return type is an anonymous access to
4314         subprogram.
4315         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
4316         call the above.
4317         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
4318         point when the local-raise-to-goto transformation has taken place.
4319
4320 2007-06-06  Javier Miranda  <miranda@adacore.com>
4321             Nicolas Setton  <setton@adacore.com>
4322
4323         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
4324         functionality when the backend is generating code.
4325         Otherwise any serious error
4326         reported by the backend calling the frontend routine Error_Msg
4327         changes the Compilation_Mode to Check_Semantics, disables the
4328         functionality of this routine and causes the generation of
4329         spureous additional errors.
4330
4331         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
4332         debugging information now generated by the compiler for fat-pointer
4333         types.
4334         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
4335         DWARF2/3.
4336         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
4337
4338 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4339
4340         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
4341         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
4342         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
4343         For a remote call to a function with a classwide return type, apply an
4344         E.4(18) check to the returned value.
4345         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
4346         stream attributes of the designated type of an RACW, as they are not
4347         dispatching primitive operations.
4348
4349 2007-06-06  Geert Bosch  <bosch@adacore.com>
4350
4351         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
4352         negative literal
4353         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
4354         positive
4355         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
4356         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
4357         positive
4358         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
4359
4360 2007-06-06  Javier Miranda  <miranda@adacore.com>
4361
4362         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
4363         attribute compiling package Ada.Tags under No_Run_Time_Mode.
4364
4365 2007-06-06  Javier Miranda  <miranda@adacore.com>
4366
4367         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
4368         deallocation of class-wide interface objects.
4369         (Expand_Dispatching_Constructor_Call): Take into account that if the
4370         result of the dispatching constructor is an interface type, the
4371         function returns a class-wide interface type; otherwise the returned
4372         object would be actual. The frontend previously accepted returning
4373         interface types because Expand_Interface_Actuals silently performed
4374         the management of the returned type "as if" it were a class-wide
4375         interface type.
4376         (Expand_Dispatching_Constructor_Call): Replace call to
4377         Make_DT_Access_Action by direct call to Make_Function_Call.
4378
4379 2007-06-06  Robert Dewar  <dewar@adacore.com>
4380             Ed Schonberg  <schonberg@adacore.com>
4381
4382         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
4383         compute masking constant, since we now set Esize properly to the
4384         underlying size.
4385         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
4386         to match the alignment.
4387         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
4388         packed arrays of 8 bits or less.
4389
4390         * freeze.adb (Freeze_Entity): When freezing the formals of a
4391         subprogram, freeze the designated type of a parameter of an access type
4392         only if it is an access parameter.
4393         Increase size of C convention enumeration object
4394         (Freeze_Entity, array type case): Make sure Esize value is properly
4395         adjusted for the alignment if it is known.
4396         (Freeze_Entity, array type case): When checking bit packed arrays for
4397         the size being incorrect, check RM_Size, not Esize.
4398         (Freeze_Record_Type): Check for bad discriminated record convention
4399         (In_Exp_Body): Return true if the body is generated for a subprogram
4400         renaming, either an attribute renaming or a renaming as body.
4401         (Check_Itype): If the designated type of an anonymous access component
4402         is a non-protected subprogram type, indicate that it is frozen, to
4403         prevent out-of-scope freeze node at some subsequent call.
4404         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
4405         only if the subprogram is neither imported nor exported, as well as the
4406         NCA descriptor class if the subprogram is exported.
4407
4408 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4409             Arnaud Charlet  <charlet@adacore.com>
4410             Robert Dewar  <dewar@adacore.com>
4411             Gary Dismukes  <dismukes@adacore.com>
4412
4413         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
4414         default initialization on an imported object, when there is no
4415         initialization call generated for it.
4416         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
4417         restriction
4418
4419         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
4420         Static_Elaboration_Desired.
4421         Remove pragma Thread_Body.
4422         Implement a new pragma No_Body
4423         Removes the Explicit_Overriding pragma
4424         Remove Optional_Overriding pragma
4425         (Prag): Deal with Universal_Aliasing.
4426         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4427         Pragma_CIL_Constructor): New names.
4428
4429         * sem_cat.adb (Validate_Object_Declaration): An initialization that
4430         uses the equivalent aggregate of a type must be treated as an implicit
4431         initialization.
4432         (Get_Categorization): Check a unit for pragma Preelaborate only if it
4433         has none of the other categories.
4434         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
4435         to apply Import to an object renaming declaration.
4436
4437         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
4438         from a C++ class should be declared as limited and that it will be
4439         considererd limited.
4440         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
4441         should be declared as limited and that it will be considererd limited.
4442         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
4443         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
4444         (Analyze_Pragma): Deal with Universal_Aliasing.
4445         (Sig_Flags): Likewise.
4446         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
4447         (Overflow_Checks_Unsuppressed): New flag.
4448         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4449         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
4450         case of JVM or .NET targets, and compiling user code.
4451         Add debugging convenience routine rv
4452
4453 2007-06-06  Robert Dewar  <dewar@adacore.com>
4454
4455         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
4456         are interface type.
4457         (Build_Elementary_Input_Call): For floating-point use right type in the
4458         absence of strange size or stream size clauses.
4459         (Build_Elementary_Write_Call): Same fix
4460         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
4461         set to value that does not match base type size.
4462
4463 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4464
4465         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
4466         object of a limited type can be initialized with a call to a function
4467         that returns in place. If the limited type has unknown discriminants,
4468         and the underlying type is a constrained composite type, build an actual
4469         subtype from the function call, as is done for private types.
4470         (Side_Effect_Free): An expression that is the renaming of an object or
4471         whose prefix is the renaming of a object, is not side-effect free
4472         because it may be assigned through the renaming and its value must be
4473         captured in a temporary.
4474         (Has_Controlled_Coextensions): New routine.
4475         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
4476         as is done for other limited types.
4477         (Non_Limited_Designated_Type): new predicate.
4478         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
4479         objects.
4480         Remove all handling of with_type clauses.
4481
4482         * par-ch10.adb: Remove all handling of with_type clauses.
4483
4484         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
4485         checksum if the main source could not be parsed.
4486         (Loat_Unit): When processing a child unit, determine properly whether
4487         the parent unit is a renaming when the parent is itself a child unit.
4488         Remove handling of with_type clauses.
4489
4490         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
4491         (Set_Is_Static_Coextension): New procedure.
4492         (Has_Local_Raise): New function
4493         (Set_Has_Local_Raise): New procedure
4494         (Renaming_Exception): New field
4495         (Has_Init_Expression): New flag
4496         (Delay_Finalize_Attach): Remove because flag is obsolete.
4497         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
4498         Remove all handling of with_type clauses.
4499         (Exception_Junk): Can now be set in N_Block_Statement
4500
4501 2007-06-06  Vincent Celier  <celier@adacore.com>
4502             Robert Dewar  <dewar@adacore.com>
4503
4504         * frontend.adb (Frontend): Return immediately if the main source could
4505         not be parsed, because of preprocessing errors.
4506
4507         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
4508         (Gnat1drv): Exit with errors if the main source could not be parsed,
4509         because of preprocessing errors.
4510         (Check_Rep_Info): New procedure
4511
4512 2007-06-06  Robert Dewar  <dewar@adacore.com>
4513
4514         * g-hesorg.ads, g-heasor.ads,
4515         g-busorg.ads, g-bubsor.ads: Update documentation
4516         GNAT.Heap/Bubble_Sort_G is now pure
4517
4518 2007-06-06  Robert Dewar  <dewar@adacore.com>
4519
4520         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
4521
4522 2007-06-06  Robert Dewar  <dewar@adacore.com>
4523             Ed Schonberg  <schonberg@adacore.com>
4524
4525         * g-comlin.ads, g-comlin.adb: 
4526         Add new warning for renaming of function return objects
4527
4528         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
4529         (Tree_Read): Use size of object instead of type'object_size, since the
4530         latter is incorrect for packed array types.
4531         (Tree_Write): Same fix
4532
4533         * opt.ads: Add new warning for renaming of function return objects
4534         (Generating_Code): New boolean variable used to indicate that the
4535         frontend as finished its work and has called the backend to process
4536         the tree and generate the object file.
4537         (GCC_Version): Is now private
4538         (Static_Dispatch_Tables): New constant declaration.
4539         (Overflow_Checks_Unsuppressed): New flag.
4540         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4541         (List_Closure): New flag for gnatbind (-R)
4542         Zero_Formatting: New flag for gnatbind (-Z)
4543         (Special_Exception_Package_Used): New flag.
4544         (Warn_On_Unrepped_Components): New flag.
4545
4546         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
4547         unit is a compilation unit, rather than relying on its scope, so that
4548         Standard can be renamed.
4549         (Analyze_Object_Renaming): Add new warning for renaming of function
4550         return objects.
4551         Also reject attempt to rename function return object in Ada 83 mode.
4552         (Attribute_Renaming): In case of tagged types, add the body of the
4553         generated function to the freezing actions of the type.
4554         (Find_Type): A protected type is visible right after the reserved word
4555         "is" is encountered in its type declaration. Set the entity and type
4556         rather than emitting an error message.
4557         (New_Scope): Properly propagate Discard_Names to inner scopes
4558         (Check_Nested_Access): New procedure.
4559         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
4560         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4561
4562         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
4563         Add new warning for renaming of function return objects
4564         (Check_References): Suppress warnings for objects whose type or
4565         base type has Warnings suppressed.
4566         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
4567         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
4568
4569 2007-06-06  Vincent Celier  <celier@adacore.com>
4570             Emmanuel Briot  <briot@adacore.com>
4571             Olivier Hainque  <hainque@adacore.com>
4572
4573         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
4574         absolute value of Header.Block_Size when displaying the freed physical
4575         memory in traces.
4576         (Allocate): Compute Storage_Address using Integer_Address, not
4577         Storage_Offset, because the range of Storage_Offset may not be large
4578         enough.
4579         (Configure): New parameter Low_Level_Traces
4580         (Allocate, Deallocation, Free_Physically): Added low-level traces
4581         (Configure): new parameter Errors_To_Stdout.
4582         (Output_File): new subprogram
4583         (Deallocate, Dereference): Send error messages to the proper stream
4584         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
4585         documented. Previous code would send it to the current output file
4586         defined in GNAT.IO, which might not be stdout
4587         (Is_Valid): Adjust comment to mention that a positive reply means that
4588         Header_Of may be used to retrieve the allocation header associated with
4589         the subprogram Storage address argument. Return False early if this
4590         address argument is misaligned.
4591
4592 2007-06-06  Vincent Celier  <celier@adacore.com>
4593
4594         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
4595         switch -P
4596         (ASIS_Main): New global variable
4597         (Get_Closure): New procedure
4598         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
4599         check, metric or pretty. Call Get_Closure in this case.
4600         (Check_Files): For GNAT LIST, check all sources of all projects when
4601         All_Projects is True.
4602         (GNATCmd): Accept -U for GNAT LIST
4603
4604 2007-06-06  Vincent Celier  <celier@adacore.com>
4605
4606         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
4607         has been specified
4608         Correct error message when invocation of the linker fails
4609         Add explicit size clause for the C imported variables
4610         Object_List_File_Supported and Using_GNU_Linker to emphasize that
4611         we expect char size.
4612         Read target parameters earlier, since this is needed to set
4613         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
4614         targets.
4615
4616 2007-06-06  Vincent Celier  <celier@adacore.com>
4617
4618         * gnatls.adb: 
4619         Add 3 spaces before the default project directory when displaying
4620         the project search path.
4621         Add new command line switch '-l' to display license information.
4622
4623 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
4624
4625         * gmem.c: Add support for timestamps on memory operations.
4626
4627         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
4628         operations (not used currently, just foundation for future
4629         enhancements). Add possibility to perform full dump of gmem.out file.
4630         (Print_Back_Traces): Declare accesses to root arrays constants since
4631         they aren't modified.
4632         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
4633
4634 2007-06-06  Vincent Celier  <celier@adacore.com>
4635
4636         * gnatsym.adb: Update Copyright notice
4637         (Parse_Cmd_Line): Accept new switch -D
4638         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
4639          file.
4640
4641         * prj.ads (Policy): New policy Direct
4642         (Yes_No_Unknown): New enumeration type
4643         (Project_Data): New component Libgnarl_Needed
4644
4645         * prj-nmsc.adb (Check_For_Source): When recording a source file make
4646         use the untouched pathname casing.
4647         (Get_Directories): Ensure that the Display_Exec_Directory is using the
4648         proper casing on non case-sensitive platforms like Windows.
4649         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
4650         on all platforms, as it is not possible to know which one is allowed
4651         before processing the project files.
4652         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
4653         specified when symbol policy is Direct. Check that when there is a
4654         symbol file defined (either by default or with attribute
4655         Library_Symbol_File) it is not the same as the reference symbol file.
4656         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
4657         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
4658         extending projects.
4659         (Record_Ada_Source): Record a source that has been locally removed in an
4660         imported project.
4661
4662         * symbols.ads (Policy): New policy Direct
4663
4664         * symbols-vms.adb (Initialize): Take new policy Direct in case
4665         statement
4666
4667 2007-06-06  Vincent Celier  <celier@adacore.com>
4668
4669         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
4670         Correct obvious bug (return Dir; instead of return Directory;).
4671         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
4672
4673 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4674
4675         * g-pehage.adb (Produce): Open output files in Binary mode, so that
4676         they have UNIX line endings (LF only) even on Windows, and thus pass
4677         all GNAT style checks.
4678
4679 2007-06-06  Emmanuel Briot  <briot@adacore.com>
4680
4681         * g-regpat.adb (Quote): Fix improper quoting of '.'
4682
4683 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4684
4685         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
4686         default, set False on a per-runtime basis.
4687         (Need_Netdb_Buffer): New constant.
4688
4689         * g-socket.ads, g-socket.adb: Import new package
4690         GNAT.Sockets.Thin.Task_Safe_NetDB.
4691         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
4692         binding to obtain proper message.
4693         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
4694         Replace various occurrences of Arry (Arry'First)'Address with the
4695         equivalent Arry'Address (GNAT always follows implementation advice from
4696         13.3(14)).
4697         (Get_Host_By_Address, Get_Host_By_Name,
4698         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
4699         instead, rely on platform-specific task safe netdb operations provided
4700         by g-socthi.
4701
4702         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
4703         parameter Process_Blocking_IO.
4704         (Host_Error_Messages): Add stub body.
4705         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4706         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
4707         Safe_Getservbyport): Move functions into new child package
4708         Task_Safe_NetDB.
4709         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
4710         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
4711         (In_Addr): Add alignment clause.
4712
4713 2007-06-06  Robert Dewar  <dewar@adacore.com>
4714
4715         * g-trasym.ads, g-traceb.ads: Update list of supported targets
4716         Add note about symbolic traceback
4717
4718 2007-06-06  Pascal Obry  <obry@adacore.com>
4719
4720         * hostparm.ads (Normalized_CWD): Use the host directory separator
4721         instead of the hardcoded forward slash which is not the proper
4722         character on Windows for example.
4723         (Java_VM): Removed.
4724
4725 2007-06-06  Vincent Celier  <celier@adacore.com>
4726             Arnaud Charlet  <charlet@adacore.com>
4727
4728         * a-clrefi.adb, a-clrefi.ads: New files
4729
4730         * impunit.adb: Add s-os_lib in the list of user visible units.
4731         (Non_Imp_File_Names_95): Add a-clrefi to this list
4732         Remove obsolete run-time entries.
4733         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
4734          "a-exetim" -- Ada.Execution_Time
4735          "a-extiti" -- Ada.Execution_Time.Timers
4736
4737         * mlib-prj.ads, mlib-prj.adb
4738         (Build_Library): Use untouched object dir and library dir. At the
4739         same time makes sure that the checks are done using the canonical
4740         form. Removes hard-coded directory separator and use the proper host
4741         one instead.
4742         (Process_Project): Do not look in object directory to check if libgnarl
4743         is needed for a library, if there is no object directory.
4744         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
4745         linking.
4746         (Build_Library): When invoking gnatbind, use a response file if the
4747         total size of the arguments is too large.
4748
4749         * Makefile.rtl: (g-sttsne): New object file.
4750         Add entry for a-clrefi, s-utf_32, System.Exceptions
4751
4752         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
4753         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
4754         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
4755         Change g-string to s-string, g-os_lib to s-os_lib
4756         Change all g-utf_32 references to s-utf_32
4757
4758 2007-06-06  Tristan Gingold  <gingold@adacore.com>
4759             Olivier Hainque  <hainque@adacore.com>
4760
4761         * init.c: Do not adjust IP of an imported VMS exception of ia64.
4762         LIB$STOP is called to raise an exception and the IP of the exception
4763         is the instruction right after the call.
4764         (__gnat_adjust_context_for_raise, AIX): Implement.
4765         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
4766          adjust_context_for_raise before Raise_From_Signal_Hanler.
4767         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
4768         siginfo is passed to the handler, necessary to let the zcx propagation
4769         engine unwind past it.
4770
4771 2007-06-06  Olivier Hainque  <hainque@adacore.com>
4772
4773         * initialize.c (__gnat_initialize for vxworks):  Update documentation
4774         on the ZCX support, using different sets of crtstuff objects than with
4775         GCC 3.4.
4776
4777 2007-06-06  Robert Dewar  <dewar@adacore.com>
4778
4779         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
4780         spec from body
4781         (Layout_Type): Fix recomputation of size from alignment.
4782
4783 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4784             Javier Miranda  <miranda@adacore.com>
4785
4786         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
4787         association in an instance.
4788         (Copy_Generic_Node): If the node is a string literal, no need to copy
4789         its descendants.
4790         (Is_Generic_Formal): For a formal subprogram, the declaration is the
4791         grandparent of the entity.
4792         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
4793         to simplify handling of formal interfaces that derive from other formal
4794         interfaces.
4795         (Instantiate_Subprogram_Body): The defining unit name of the body of
4796         the instance should be a defining identifier.
4797         (Install_Formal_Packages): make global to the package, for use in
4798         instantiations of child units.
4799         (Analyze_Package_Instantiation): Do not attempt to set information on an
4800         enclosing master of an entry when expansion is disabled.
4801         (Instantiate_Type): If the actual is a tagged synchronized type and the
4802         generic ancestor is an interface, create a generic actual for the
4803         corresponding record.
4804         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
4805         declaration, to ensure that the interface list is processed correctly.
4806         (Inline_Instance_Body): If enclosing scope is an instance body, remove
4807         its entities from visibiility as well.
4808         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
4809         given with a named association, analyze the expression only, not the
4810         discriminant association itself.
4811         (Reset_Entity): If the analysis of a selected component is transformed
4812         into an expanded name in the prefix of a call with parameters, do not
4813         transform the original node into an expanded name, to prevent visibility
4814         errors in the case of nested generics.
4815         (Check_Private_View): For an array type, check whether the index types
4816         may need exchanging.
4817
4818 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4819             Vincent Celier  <celier@adacore.com>
4820
4821         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
4822         since both are separated.
4823         Add support for imported CIL packages.
4824         Add further special handling of "value_type" for CIL.
4825         Add special handling of pragma Import for CIL.
4826
4827         * make.ads, make.adb: When switch -eS is used, direct all outputs to
4828         standard output instead of standard error, except errors.
4829         (Absolute_Path): Use untouched casing for the parent directory.
4830         (Add_Library_Search_Dir): Use the untouched directory name.
4831         (Add_Source_Search_Dir): Idem.
4832         (Change_To_Object_Directory): Update output to use proper casing.
4833         (Create_Binder_Mapping_File): Use the untouched filename to set
4834         ALI_Name.
4835         (Gnatmake): Use untouched library and executable directory names.
4836         (Insert_Project_Sources): Use untouched filename for spec and body.
4837         (Is_In_Object_Directory): Use untouched object directory.
4838         (Mark_Directory): Idem.
4839         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
4840         contains the non-canonical filename in all cases.
4841         (Change_To_Object_Directory): In verbose mode, display the name of the
4842         object directory we're changing to.
4843         (Compile_Sources): Make sure, when a project file is used, to compile
4844         the body of the unit, when there is one, even when only the spec is
4845         recorded in an ALI file.
4846         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
4847         spec to the body.
4848         (Report_Compilation_Failed): New procedure
4849         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
4850         procedures moved from the spec to the body.
4851         (Extract_Failure): Removed, not used
4852         Replace explicit raises of exception Bind_Failed and Link_Failed with
4853         calls to Make_Failed with the proper message.
4854         Replace explicit raises of exception Compilation_Failed with calls to
4855         procedure Report_Compilation_Failed.
4856         (Initialize): Create mapping files unconditionally when using project
4857         files.
4858
4859         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4860         Pragma_CIL_Constructor): New names.
4861
4862         * targparm.ads, targparm.adb
4863         (Compiler_System_Version): Removed, no longer used.
4864         (Get_Target_Parameters): Relax checks on system.ads validity. Add
4865         handling of two new system flags: JVM and CLI.
4866
4867 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
4868             Arnaud Charlet  <charlet@adacore.com>
4869
4870         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
4871         time, use the default s-interr body that provides interrupt support
4872         based on signals.
4873         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
4874         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
4875         g-soccon.ads, and s-taprop.adb for the marte run time.
4876         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
4877         timers are supported on marte.
4878         (EH_MECHANISM for marte): Do not use ZCX.
4879         (THREADSLIB for marte): Use -lmarte.
4880         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
4881         Add mlib-tgt-specific.o to gnatmake objects
4882         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
4883         longer of MLib.Tgt.
4884         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
4885         6, either kernel or rtp, use a specialized version of s-osinte.ads.
4886
4887 2007-06-06  Pascal Obry  <obry@adacore.com>
4888
4889         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
4890
4891 2007-06-06  Vincent Celier  <celier@adacore.com>
4892
4893         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
4894         separator, use instead the proper host directory separator.
4895         (Copy_ALI_Files): Make sure that an already existing ALI file in the
4896         ALI copy dir is writable, before doing the copy.
4897
4898         * mlib-utl.ads, mlib-utl.adb: 
4899         (Gcc): If length of command line is too long, put the list of object
4900         files in a response file, if this is supported by the platform.
4901         (Ar): If invocation of the archive builder is allowed to be done in
4902         chunks and building it in one shot would go above an OS dependent
4903         limit on the number of characters on the command line, build the archive
4904         in chunks.
4905
4906 2007-06-06  Vincent Celier  <celier@adacore.com>
4907
4908         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
4909         of specified object file is not equal to base name of source.
4910
4911 2007-06-06  Javier Miranda  <miranda@adacore.com>
4912             Hristian Kirtchev  <kirtchev@adacore.com>
4913             Ed Schonberg  <schonberg@adacore.com>
4914
4915         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
4916         the full type declaration.
4917         (Analyze_Component_Declaration): Add local variable E to capture the
4918         initialization expression of the declaration. Replace the occurences of
4919         Expression (N) with E.
4920         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
4921         limited interface object with a function call.
4922         (Array_Type_Declaration): If the declaration lacks subtype marks for
4923         indices, create a simple index list to prevent cascaded errors.
4924         (Is_Null_Extension): Ignore internal components created for secondary
4925         tags when checking whether a record extension is a null extension.
4926         (Check_Abstract_Interfaces): Add missing support for interface subtypes
4927         and generic formals.
4928         (Derived_Type_Declaration): Add missing support for interface subtypes
4929         and generic formals.
4930         (Analyze_Object_Declaration): If an initialization expression is
4931         present, traverse its subtree and mark all allocators as static
4932         coextensions.
4933         (Add_Interface_Tag_Component): When looking for components that may be
4934         secondary tags, ignore pragmas that can appear within a record
4935         declaration.
4936         (Check_Abstract_Overriding): an inherited function that dispatches on
4937         result does not need to be overriden if the controlling type is a null
4938         extension.
4939         (Mentions_T): Handle properly a 'class attribute in an anonymous access
4940         component declaration, when the prefix is an expanded name.
4941         (Inherit_Component): If the derivation is for a private extension,
4942         inherited components remain visible and their ekind should not be set
4943         to Void.
4944         (Find_Type_Of_Object): In the case of an access definition, always set
4945         Is_Local_Anonymous_Access. We were previously not marking the anonymous
4946         access type of a return object as a local anonymous type.
4947         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
4948         range with character literal bounds.
4949         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
4950         (Access_Subprogram_Declaration): Indicate that the type declaration
4951         depends on an incomplete type only if the incomplete type is declared
4952         in an open scope.
4953         (Analyze_Subtype_Declaration): Handle properly subtypes of
4954         synchronized types that are tagged, and that may appear as generic
4955         actuals.
4956         (Access_Subprogram_Declaration): An anonymous access to subprogram can
4957         appear as an access discriminant in a private type declaration.
4958         (Add_Interface_Tag_Components): Complete decoration of the component
4959         containing the tag of a secondary dispatch table and the component
4960         containing the offset to the base of the object (this latter component
4961         is only generated when the parent type has discriminants --as documented
4962         in this routine).
4963         (Inherit_Components): Use the new decoration of the tag components to
4964         improve the condition that avoids inheriting the components associated
4965         with secondary tags of the parent.
4966         (Build_Discriminanted_Subtype): Indicate to the backend that the
4967         size of record types associated with dispatch tables is known at
4968         compile time.
4969         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
4970         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
4971         to include task, protected, and synchronized interfaces as limited
4972         interfaces.
4973         (Process_Discriminants): Remove the setting of
4974         Is_Local_Anonymous_Access on the type of (anonymous) access
4975         discriminants of nonlimited types.
4976         (Analyze_Interface_Type_Declaration): Complete the decoration of the
4977         class-wide entity it is is already present. This situation occurs if
4978         the limited-view has been previously built.
4979         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
4980         field.
4981         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
4982         Related_Interface.
4983
4984 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
4985
4986         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
4987         of the type that specify the position of interface tags when the type
4988         inherits discriminated array components from the parent type.
4989         If a component is initialized with a box, check for the presence of a
4990         default expression in its declaration before using its default
4991         initialization procedure.
4992         (Resolve_Record_Aggregate): If a component is box-initialized, and the
4993         component type has a discriminants, create a partial aggregate for it
4994         by copying the discriminants of the component subtype.
4995         Reject attempt to initialize a discriminant with a box.
4996         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
4997         associated with dispatch tables is known at compile time.
4998         (Get_Value): If an association in a record aggregate has a box
4999         association, and the corresponding record component has a default
5000         expression, always copy the default expression, even when the
5001         association has a single choice, in order to create a proper
5002         association for the expanded aggregate.
5003
5004 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5005             Robert Dewar  <dewar@adacore.com>
5006
5007         * par-ch12.adb (P_Generic_Associations): The source position of an
5008         Others association is that of the others keyword, not that of the token
5009         that follows the box.
5010         (P_Formal_Type_Definition): Handle formal access types that carry a
5011         not null indicator.
5012
5013         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
5014         multiple identifier are present, save Scan_State before scanning the
5015         colon, to ensure that separate trees are constructed for each
5016         declaration.
5017         (P_Identifier_Declarations): For object declaration, set new flag
5018         Has_Init_Expression if initialization expression present.
5019         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
5020         Improve NOT NULL error messages
5021
5022 2007-06-06  Robert Dewar  <dewar@adacore.com>
5023
5024         * par-ch4.adb: (P_Name): Recover from literal used as name
5025
5026 2007-06-06  Vincent Celier  <celier@adacore.com>
5027
5028         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
5029         defaulted to False.
5030         In the "not" case, recursive call with Complemented set to True.
5031         Do not allow "or" or "and" operators when Complemented is True.
5032
5033 2007-06-06  Vincent Celier  <celier@adacore.com>
5034
5035         * prj.adb (Project_Empty): Gives default value for new component
5036         Libgnarl_Needed
5037
5038         * prj-attr.ads: Minor reformatting
5039
5040         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
5041         directory using the untouched casing.
5042         (For_All_Source_Dirs): Idem.
5043
5044         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
5045         directories specified with switches -aP.
5046         (Add_Search_Project_Directory): New procedure
5047         (Initialize_Project_Path): Put the directories in table
5048         Search_Directories in the project search path.
5049         (Initialize_Project_Path): For VMS, transform into canonical form the
5050         project path.
5051
5052 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5053
5054         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
5055         true if configurable run-time or No_Run_Time is set.
5056         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
5057         processing an unit which is not the one being compiled.
5058
5059 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5060
5061         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
5062         Replace UC by Ada.UC
5063
5064         * s-bitops.adb: Get rid of System.Pure_Exceptions.
5065         Replace UC by Ada.UC
5066
5067 2007-06-06  Robert Dewar  <dewar@adacore.com>
5068
5069         * scng.adb: (Check_End_Of_Line): Deal with very long lines
5070
5071 2007-06-06  Robert Dewar  <dewar@adacore.com>
5072
5073         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
5074         Remove no longer used nodes.
5075
5076 2007-06-06  Javier Miranda  <miranda@adacore.com>
5077             Ed Schonberg  <schonberg@adacore.com>
5078             Robert Dewar  <dewar@adacore.com>
5079
5080         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
5081         on obsolescent withed unit in case of limited-withed units.
5082         (Analyze_Compilation_Unit): Add guard to code that removed an
5083         instantiation from visibility, to prevent compiler aborts when
5084         instantiation is abandoned early on.
5085         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
5086         current unit being analyzed, and Distinguish local incomplete types
5087         from limited views of types declared elsewhere.
5088         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
5089         to state that the class-wide entity is shared by the limited-view
5090         and the full-view.
5091         (Analyze_With_Clause): Improve placement of flag for case of
5092         unimplemented unit.
5093         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
5094         manner similar to GNAT.Current_Exception. This is a violation of
5095         restriction (No_Exception_Propagation), and also inhibits the
5096         optimization of local raise to goto.
5097         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
5098         and if so set Most_Recent_Exception_Used flag in Opt, and also check
5099         for violation of restriction No_Exception_Propagation.
5100
5101 2007-06-06  Javier Miranda  <miranda@adacore.com>
5102             Hristian Kirtchev  <kirtchev@adacore.com>
5103             Gary Dismukes  <dismukes@adacore.com>
5104
5105         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
5106         use of entity Exception_Occurrence if it is not available in the
5107         target run-time.
5108
5109         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
5110         concurrent types are declared within an Ada 2005 generic, build their
5111         corresponding record types since they are needed for overriding-related
5112         semantic checks.
5113         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
5114         protected type does not implement a task interface or a nonlimited
5115         interface.
5116         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
5117         type does not implement a protected interface or a nonlimited interface.
5118         (Single_Task_Declaration, Single_Protected_Declaration): use original
5119         entity for variable declaration, to ensure that debugging information
5120         is correcty generated.
5121         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
5122         routines if the expander is not active.
5123         (Analyze_Task_Body): Mark all handlers to stop optimization of local
5124         raise, since special things happen for task exception handlers.
5125
5126         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
5127         concurrent types declared within a generic.
5128         (Check_Dispatching_Operation): Do not emit warning about late interface
5129         operations in the context of an instance.
5130         (Check_Dispatching_Call): Remove restriction against calling a
5131         dispatching operation with a limited controlling result.
5132         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
5133         Register_Interface_DT_Entry by calls to Register_Primitive.
5134         (Check_Dispatching_Formals): Handle properly a function with a
5135         controlling access result.
5136
5137 2007-06-06  Robert Dewar  <dewar@adacore.com>
5138             Arnaud Charlet  <charlet@adacore.com>
5139
5140         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
5141         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
5142         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
5143         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
5144         message when using a VM, since this attribute is not supported.
5145         (Analyze_Record_Representation_Clause): Give unrepped component warnings
5146
5147         * usage.adb: Add new warning for renaming of function return objects
5148         Indicate that -gnatwp and -gnatwP concern front-end inlining
5149         Add line for -gnatyg
5150         Add usage information for -gnatw.c/C
5151
5152 2007-06-06  Robert Dewar  <dewar@adacore.com>
5153             Ed Schonberg  <schonberg@adacore.com>
5154
5155         * sem_ch5.adb
5156         (Find_Var): Do not consider function call in test for infinite loop
5157         warning if warnings set off for function entity.
5158         (One_Bound): Do not create a temporary for a loop bound if it is a
5159         character literal.
5160         (Analyze_Assignment): Traverse the right hand side of an assignment and
5161         mark all allocators as static coextensions.
5162         (Analyze_Assignment): Exempt assignments involving a dispatching call
5163         to a function with a controlling access result from the check requiring
5164         the target to be class-wide.
5165
5166 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5167             Ed Schonberg  <schonberg@adacore.com>
5168             Robert Dewar  <dewar@adacore.com>
5169             Javier Miranda  <miranda@adacore.com>
5170
5171         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
5172         chain of coextensions when an allocator serves as the root of such a
5173         chain.
5174         (Propagate_Coextensions): Remove the test for the root being an
5175         allocator.
5176         (Resolve_Allocator): Add condition to ensure that all future decoration
5177         occurs on an allocator node. Add processing and cleanup for static
5178         coextensions.
5179         (Valid_Conversion): If the operand type is the limited view of a
5180         class-wide type, use the non-limited view is available to determine
5181         legality of operation.
5182         (Ambiguous_Character): move to spec, for use elsewhere.
5183         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
5184         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
5185         character literals.
5186         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
5187         Do_Division_Check flag explicitly.
5188         (Resolve_Actuals): If the actual is of a synchronized type, and the
5189         formal is of the corresponding record type, this is a call to a
5190         primitive operation of the type, that is declared outside of the type;
5191         the actual must be unchecked-converted to the type of the actual
5192         (Resolve_Call): Kill all current values for any subprogram call if
5193         flag Suppress_Value_Tracking_On_Call is set.
5194         (Resolve_Type_Conversion): Generate error message the the operand
5195         or target of interface conversions come from a limited view.
5196         (Check_Infinite_Recursion): Ignore generated calls
5197         (Check_Allocator_Discrim_Accessibility): New procedure for checking
5198         that an expression that constrains an access discriminant in an
5199         allocator does not denote an object with a deeper level than the
5200         allocator's access type.
5201         (Resolve_Allocator): In the case of an allocator initialized by an
5202         aggregate of a discriminated type, check that associations for any
5203         access discriminants satisfy accessibility requirements by calling
5204         Check_Allocator_Discrim_Accessibility.
5205         (Resolve_Equality_Op): Handle comparisons of anonymous access to
5206         subprogram types in the same fashion as other anonymous access types.
5207         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
5208         message that is not a continuation message.
5209         (Resolve_Type_Conversion): Add missing support for conversion to
5210         interface type.
5211         (Resolve_Actuals): Introduce a transient scope around the call if an
5212         actual is a call to a function returning a limited type, because the
5213         resulting value must be finalized after the call.
5214         (Resolve_Actuals): If the call was given in prefix notations, check
5215         whether an implicit 'Access reference or implicit dereference must be
5216         added to make the actual conform to the controlling formal.
5217
5218 2007-06-06  Robert Dewar  <dewar@adacore.com>
5219             Javier Miranda  <miranda@adacore.com>
5220
5221         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
5222         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
5223         overriding of an inherited private subprogram now there is no need to
5224         inherit its dispatching slot and reduce the size of the dispatch table.
5225         Set_All_DT_Position now ensures that the same slot is now assigned to
5226         both entities. This is required to statically build the dispatch table.
5227         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
5228         of calling Set_All_DT_Position to re-evaluate the position of the
5229         entries in the dispatch table. Such reevaluation is not desired if
5230         the tagged type is already frozen.
5231
5232 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5233             Gary Dismukes  <dismukes@adacore.com>
5234             Robert Dewar  <dewar@adacore.com>
5235             Javier Miranda  <miranda@adacore.com>
5236
5237         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
5238         reference acts as an lvalue when the attribute name modifies the prefix
5239         (Is_Coextension_Root): New routine.
5240         (Mark_Static_Coextensions): New routine.
5241         (Type_Access_Level): Revise code for checking the level of the
5242         anonymous access type of a return object.
5243         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
5244         (Matches_Prefixed_View_Profile): Remove the no longer necessary
5245         retrieval of the corresponding controlling record type.
5246         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
5247         concurrent types declared within a generic as well as class wide types.
5248         Emit a mode incompatibility error whenever a protected entry or routine
5249         override an interface routine whose first parameter is not of mode
5250         "out", "in out" or access to variable.
5251         (Overrides_Synchronized_Primitive): Rename to
5252         Find_Overridden_Synchronized_Primitive.
5253         (Collect_Interface_Components): New subprogram that collects all the
5254         components of a tagged record containing tags of secondary dispatch
5255         tables.
5256         (Add_Global_Declaration): New procedure
5257         (Abstract_Interface_List): Handle properly the case of a subtype of a
5258         private extension.
5259         (Type_Access_Level): In the case of a type whose parent scope is a
5260         return statement, call Type_Access_Level recursively on the enclosing
5261         function's result type to determine the level of the return object's
5262         type.
5263         (Build_Elaboration_Entity): Build name of elaboration entity from the
5264         scope chain of the entity, rather than the unit name of the file name.
5265         (Check_Nested_Access): New procedure.
5266         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5267         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5268         (Get_Renamed_Entity): Utility routine for performing common operation
5269         of chasing the Renamed_Entity field of an entity.
5270
5271 2007-06-06  Robert Dewar  <dewar@adacore.com>
5272
5273         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
5274         elaboration model
5275         (Check_A_Call): Add check for entry call which was causing blowup
5276
5277 2007-06-06  Olivier Hainque  <hainque@adacore.com>
5278
5279         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
5280         special code on ia64-vms to handle major incompatibilities between the
5281         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
5282         this routine with a very different set of arguments and expectations on
5283         the return value.
5284
5285 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5286
5287         * socket.c (__gnat_close_signalling_fd): New function.
5288         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
5289         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
5290         New supporting functions for task safe Netdb operations.
5291
5292 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5293             Olivier Hainque  <hainque@adacore.com>
5294
5295         * a-except-2005.ads, a-except-2005.adb
5296         (Raise_From_Controlled_Operation): New procedure in
5297         (private part of) Ada.Exceptions (standard runtime version). Used to
5298         provide informational exception message when Program_Error is raised as
5299         a result of an Adjust or Finalize operation propagating an exception.
5300         (Rmsg_28): Fix description for E.4(18) check.
5301         (Raise_Current_Excep): Call Debug_Raise_Exception just before
5302         propagation starts, to let debuggers know about the event in a reliable
5303         fashion.
5304         Take the address of E and dereference to make sure it is homed on stack
5305         and prevent the stores from being deleted, necessary for proper
5306         debugger behavior on "break exception" hits.
5307         (Local_Raise): Moved to System.Exceptions
5308
5309         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
5310         exception message from the current occurrence and raise Program_Error
5311         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
5312
5313 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
5314             Arnaud Charlet  <charlet@adacore.com>
5315
5316         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
5317         lock, if needed.
5318
5319         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
5320         priority associated to a lock.
5321
5322         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
5323         assertion to take into account case of no abort restriction.
5324         (Initialize_Protection_Entries): Add initialization for the field
5325         New_Ceiling associated to the protected object.
5326         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
5327         needed.
5328
5329         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5330         since this function needs to be set consistently with Update_Exception.
5331
5332         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5333         since this function needs to be set consistently with Update_Exception.
5334
5335         * s-taskin.ads: Update comments on
5336         Interrupt_Server_Blocked_On_Event_Flag.
5337         (Unbind_Handler): Fix handling of server_task wakeup
5338         (Server_Task): Set self's state so that Unbind_Handler can take
5339         appropriate actions.
5340         (Common_ATCB): Now use a constant from System.Parameters to determine
5341         the max size of the Task_Image field.
5342
5343         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
5344         Initialize_Analyzer function.
5345         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
5346         take into account case of no abort restriction.
5347         ([Vulnerable_]Complete_Master): Modify assertion.
5348
5349         * s-tataat.adb (Finalize): Use the nestable versions of
5350         Defer/Undefer_Abort.
5351
5352         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
5353
5354         * s-tpobop.ads: Update comments.
5355
5356         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
5357         of locking the object manually, to avoid inconsistencies between
5358         Lock/Unlock_Entry assertions.
5359
5360         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
5361         terminating
5362         application and System.Parameters.No_Abort is True.
5363         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
5364         (Unbind_Handler): Fix handling of server_task wakeup
5365         (Server_Task): Set self's state so that Unbind_Handler can take
5366         appropriate actions.
5367
5368 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5369
5370         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
5371         declarations instead of an explicit null body, for conciseness.
5372
5373 2007-06-06  Robert Dewar  <dewar@adacore.com>
5374
5375         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
5376         illegal aggregate and the type is still Any_Composite.
5377         (Subtypes_Statically_Match): Fix problem of empty discriminant list
5378
5379 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5380
5381         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
5382         to prevent subsequent expansion.
5383
5384 2007-06-06  Robert Dewar  <dewar@adacore.com>
5385
5386         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
5387
5388 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5389             Robert Dewar  <dewar@adacore.com>
5390
5391         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
5392         exceptions.
5393         (Write_Itype): Handle case of string literal subtype, which
5394         comes up in this context.
5395         (Update_Itype): when debugging expanded code, update sloc of itypes
5396         associated with defining_identifiers and ranges, for gdb use.
5397         (Sprint_Node_Actual): Add static keyword to object or exception
5398         declaration output if Is_Statically_Allocated is True.
5399         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
5400         or task body, so that the tree carries the proper Sloc information for
5401         debugging use.
5402         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
5403
5404 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5405
5406         * s-secsta.adb (Chunk): Ensure this object has a static size known at
5407         compile time, to avoid dynamic memory allocation
5408         (Elaboration code): Only use dynamic memory allocation when needed.
5409
5410 2007-06-06  Quentin Ochem  <ochem@adacore.com>
5411
5412         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
5413         "Overflow_Guard".
5414         (Stack_Analyzer): Added field "Overflow_Guard"
5415         (Task_Result): Added field "Overflow_Guard".
5416         (Index_Str): New constant.
5417         (Task_Name_Str): New constant.
5418         (Actual_Size_Str): New constant.
5419         (Pattern_Array_Element_Size): New constant.
5420         (Get_Usage_Range): New subprogram.
5421         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
5422         Now align the output.
5423         Added comments.
5424         (Initialize): Added value for Overflow_Guard.
5425         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
5426         Update the value of the overflow guard according to the actual
5427         beginning of the pattern array.
5428         (Initialize_Analyzer): Added parameter Overflow_Guard.
5429         Take this parameter into accound when computing the max size.
5430         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
5431         (Report_Result): Removed extra useless procedure.
5432         Updated call to Output_Result.
5433         Moved full computation of the Task_Result here.
5434
5435 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5436
5437         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
5438         Thread_Blocking_IO, always True by default, set False on a per-runtime
5439         basis.
5440         Add Windows-specific constants
5441         Add new constant Need_Netdb_Buffer.
5442         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5443         not, whether to use getXXXbyYYY_r.
5444
5445         * gsocket.h: Add new constant Need_Netdb_Buffer.
5446         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5447         not, whether to use getXXXbyYYY_r.
5448
5449 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5450
5451         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
5452         than their first call.
5453         Add type Dummy_Communication_Block used in the generation of the pre-
5454         defined dispatching primitive _disp_asynchronous_select.
5455         (Storage_Element): Put Pragma Universal_Aliasing on it.
5456
5457 2007-06-06  Vincent Celier  <celier@adacore.com>
5458
5459         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
5460         function.
5461
5462         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
5463         letter if it is not followed by a '/' or a '\'.
5464         (Windows): New Boolean function
5465
5466         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
5467         Ada 2005.
5468         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
5469         drive letter.
5470         (Containing_Directory): Raise Use_Error when the directory is a root
5471         directory.
5472         (Extension): When returning the result, use a conversion to Result_Type,
5473         not a qualification.
5474
5475 2007-06-06  Robert Dewar  <dewar@adacore.com>
5476
5477         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
5478         (Set_Style_Check_Options): Recognize new -gnatyg style switch
5479
5480         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
5481         Warn_On_Non_Local_Exception to False, to turn off warnings for
5482         No_Exception_Propagation in ZFP runtime.
5483         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
5484         back-ends.
5485         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
5486
5487 2007-06-06  Vincent Celier  <celier@adacore.com>
5488
5489         * switch-b.adb (Scan_Binder_Switches): Add processing for new
5490         switches -R and -Z
5491
5492         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
5493         (Scan_Make_Switches): Recognize new switch -aP
5494
5495 2007-06-06  Matthew Gingell  <gingell@adacore.com>
5496             Jose Ruiz  <ruiz@adacore.com>
5497
5498         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
5499         VxWorks task descriptor in the Ada run time, call a C subprogram
5500         (__gnat_get_stack_info) that extracts the required information.
5501
5502         * sysdep.c: Back out temporary lynxos workaround.
5503         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
5504         time the stack information associated to the currently executing task.
5505         Only VxWorks systems require this function.
5506
5507 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5508
5509         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
5510         add the stack bias if the offset is computed from a frame address.
5511         (__gnat_backtrace): Adjust for above change.
5512
5513 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5514
5515         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
5516         PE_Non_Transportable_Actual.
5517         (By_Descriptor_Last): New constant.
5518         (By_Copy_Return): Likewise.
5519
5520 2007-06-06  Vincent Celier  <celier@adacore.com>
5521
5522         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
5523         is.
5524
5525         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
5526         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
5527         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
5528         Add missing comment for /OPTIMIZE=SPACE
5529         Add entry for OPTIMIZE=SPACE
5530         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
5531         Add documentation for new qualifiers corresponding to -gnatw.c/.C
5532
5533 2007-06-06  Vincent Celier  <celier@adacore.com>
5534             Robert Dewar  <dewar@adacore.com>
5535
5536         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
5537         -gnatw.C)
5538
5539         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
5540         Document gnatbind switch -a
5541         (case Constructions): Document that variables declarations are allowed
5542         for previously declared variables.
5543         Fix external lib project example
5544         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
5545         Indicate that "#if not X or Y then" is not allowed in input files to
5546         gnatprep.
5547         Document gnatw.x and gnatw.X warning flags
5548         Mention -Winline switch to activate warnings when back-end inlining is
5549         ineffective.
5550         Add gnatcheck rule descriptions
5551         Describe how to use the GNAT driver to call a tool on a closure.
5552         Describe how to run project-wide checks or metrics.
5553         Document gnatbind's -R option
5554         Updated to account for Ada 2005 support
5555
5556         * gnat_rm.texi (Case Construction): Allow variable declarations for
5557         previously declared variables.
5558         (Representation Clauses and Pragmas): Lift restriction on alignment
5559         clauses for record types.
5560         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
5561         Document No_Exception_Propagation restriction
5562         Document No_Body pragma
5563         Updated to account for Ada 2005 support; corrected some typos
5564         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
5565
5566         * gnat-style.texi: Make it clear that we never use mode IN for
5567         procedures or functions
5568
5569         * ug_words: Add entries for -gnatw.x and -gnatw.X
5570         Add entries for -gnatw.c/.C
5571
5572 2007-06-06  Pascal Obry  <obry@adacore.com>
5573             Vincent Celier  <celier@adacore.com>
5574
5575         * makegpr.adb (Add_Archive_Path): Use untouched object and library
5576         dirs and library name.
5577         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
5578         comments.
5579         (Build_Library): Idem.
5580         (Compile_Individual_Sources): Idem.
5581         (Compile_Link_With_Gnatmake): Idem.
5582         (Compile_Sources): Idem.
5583         (Get_Imported_Directories): Idem.
5584         (Link_Executables): Idem. Same change for the executable dir.
5585         (Check_Compilation_Needed): C_Source_Path new variable containing
5586         the canonical form of Source_Path to check against the source names
5587         in the dependency file.
5588         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
5589         verbose mode, display the name of the object directory we're changing
5590         to.
5591         (Saved_Switches): New name of table X_Switches
5592         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
5593         (Usage): New line for switch -aP
5594         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
5595         testing if a directory should be added to the search path.
5596
5597 2007-06-06  Javier Miranda  <miranda@adacore.com>
5598
5599         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
5600         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
5601         declaration after freezing point of all its associated tagged types;
5602         otherwise such types are frozen too early.
5603
5604 2007-06-06  Robert Dewar  <dewar@adacore.com>
5605
5606         * a-reatim.adb: Documentation addition
5607
5608         * g-cgideb.adb: Minor code reorganization
5609
5610         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
5611         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
5612         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
5613
5614         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
5615         function.  Change name New_Scope to Push_Scope
5616         (Get_Debug_Flag_K): Remove unused obsolete function.
5617
5618         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
5619         Push_Scope.
5620
5621         * makeusg.adb: Update Copyright notice
5622         Add line for switch -aP
5623
5624         * makeusg.adb: Fix wording of some usage messages
5625
5626         * s-assert.adb (Raise_Assert_Failure): Add call to
5627         Debug_Raise_Assert_Failure.
5628
5629         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
5630         (2, Standard'Alignment) for compatibility with AAMP (where alignment
5631         is restricted to 1).
5632
5633         * s-wchjis.adb: Remove use of System.Pure_Exceptions
5634
5635         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
5636         node location to No_Location when we're not debugging the expanded
5637         code.
5638
5639 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
5640
5641         * misc.c (enumerate_modes): Consider log2_b to always be one.
5642
5643 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
5644
5645         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5646
5647 2007-05-02  Pascal Obry  <obry@adacore.com>
5648
5649         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
5650         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
5651         encoding support of Stream_IO.
5652         (Write_Unit): Idem.
5653
5654         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
5655         filename and corresponding encoding to match the OS requirement.
5656         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
5657         routine will fail on specific devices like CON: AUX: ...
5658
5659         PR ada/29856: Add missing braces
5660
5661 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5662
5663         PR ada/31660
5664         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
5665
5666 2007-04-21  Jan Hubicka  <jh@suse.cz>
5667
5668         * misc.c (gnat_expand_body): Don't call target for destructors,
5669         avoid redundant check on syntax errors.
5670
5671 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5672
5673         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
5674         instead of checking GIMPLE_STMT_P in chain_next.
5675
5676 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
5677
5678         PR ada/31576
5679         * system-linux-alpha.ads: Disable constant condition warning for the
5680         Default_Bit_Order variable.
5681         * system-linux-s390.ads: Likewise.
5682         * system-linux-s390x.ads: Likewise.
5683         * system-linux-sparc.ads: Likewise.
5684
5685 2007-04-06  Javier Miranda  <miranda@adacore.com>
5686             Matt Heaney  <heaney@adacore.com>
5687             Robert Dewar  <dewar@adacore.com>
5688
5689         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5690         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
5691         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
5692         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
5693         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
5694         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
5695         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
5696         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
5697         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
5698         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
5699         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
5700         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
5701         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
5702         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
5703         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
5704         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
5705         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
5706         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
5707         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
5708         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
5709         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
5710         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
5711         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
5712         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
5713         s-taprop-tru64.adb, s-taprop-irix.adb,
5714         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
5715         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
5716         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
5717         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
5718         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
5719         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
5720         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
5721         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
5722         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
5723         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
5724         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
5725         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
5726         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
5727         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
5728         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
5729         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
5730         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
5731         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
5732         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
5733         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
5734         access types.
5735         Update documentation.
5736         Minor rewording.
5737
5738 2007-04-06  Robert Dewar  <dewar@adacore.com>
5739
5740         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5741         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5742         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
5743         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5744         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
5745         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5746         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5747         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
5748         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5749         system-hpux-ia64.ads, targparm.adb,
5750         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
5751
5752         * system.ads: Move Functions_Return_By_DSP to obsolete section,
5753         kept for bootstrap purposes only.
5754
5755 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
5756
5757         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5758         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
5759         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
5760         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
5761
5762 2007-04-06  Robert Dewar  <dewar@adacore.com>
5763
5764         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
5765         (Local_Raise): New dummy procedure called when a raise is converted
5766         to a local goto. Used for debugger to detect that the exception
5767         is raised.
5768
5769         * debug.adb: Document new d.g flag (expand local raise statements to
5770         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5771
5772         * exp_sel.adb: Use Make_Implicit_Exception_Handler
5773
5774         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5775         suppress warnings for unused handlers.
5776         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
5777         warnings for raise statements not handled locally.
5778         (Get_RT_Exception_Entity): New function
5779         (Get_Local_Call_Entity): New function
5780         (Find_Local_Handler): New function
5781         (Warn_If_No_Propagation): New procedure
5782         (Expand_At_End_Handler): Call Make_Implicit_Handler
5783         (Expand_Exception_Handlers): Major additions to deal with local handlers
5784         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
5785         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
5786         for local raise
5787
5788         * exp_ch11.ads (Get_RT_Exception_Entity): New function
5789         (Get_Local_Call_Entity): New function
5790
5791         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
5792         of restrictions that the binder will never suggest adding.
5793
5794         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
5795         to No_Elist.
5796
5797         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
5798         be with'ed in the presence of pragma Restriction
5799         (No_Exception_Propagation).
5800
5801         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
5802
5803         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
5804         parameter, then the handler is not a suitable target for a local raise,
5805         and this is a violation of restriction No_Exception_Propagation.
5806         (Analyze_Handled_Statements): Analyze choice parameters in exception
5807         handlers before analyzing statement sequence (needed for proper
5808         detection of local raise statements).
5809         (Analyze_Raise_Statement): Reraise statement is a violation of the
5810         No_Exception_Propagation restriction.
5811
5812         * s-rident.ads: Add new restriction No_Exception_Propagation
5813
5814         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
5815         function, like Make_Exception_Handler but sets Local_Raise_Statements
5816         to No_List.
5817         (Add_Unique_Serial_Number): Deal with case where this is called during
5818         processing of configuration pragmas.
5819
5820 2007-04-06  Thomas Quinot  <quinot@adacore.com>
5821             Pat Rogers  <rogers@adacore.com>
5822             Pascal Obry  <obry@adacore.com>
5823
5824         * g-stsifd-sockets.adb: New file.
5825
5826         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
5827         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
5828         g-socthi-vms.adb: Move signalling
5829         fd management to a nested package, so that they can conveniently be
5830         moved to a subunit that is shared across Windows, VMS, and VxWorks
5831         (Ada implementation) or completed with imported bodies from socket.c
5832         (UNIX case).
5833         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
5834         subprograms.
5835         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
5836         the signalling file descriptor.
5837         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
5838         signalling file descriptor.
5839         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
5840         instead of creating a pair of sockets for signalling here.
5841
5842         * g-socthi.adb: Ditto.
5843         Set the runtime process to ignore SIGPIPEs on platforms that support
5844         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5845
5846         * g-socthi-mingw.adb: Ditto.
5847         (WS_Version): Use Windows 2.2.
5848         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5849
5850         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
5851         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5852
5853         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
5854         added GNAT byte swapping facility
5855         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
5856
5857         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
5858
5859         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
5860         New subprograms.
5861         (__gnat_create_signalling_fds): New subprogram.
5862         Set the runtime process to ignore SIGPIPEs on platforms that support
5863         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5864
5865 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
5866             Vincent Celier  <celier@adacore.com>
5867
5868         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
5869         New version of Ada.Calendar which supports the new upper bound of Ada
5870         time (2399-12-31 86_399.999999999).
5871         The following modifications have been made to the package:
5872          - New representation of time as count of nanoseconds since the start of
5873            Ada time (1901-1-1 0.0).
5874          - Target independent Split and Time_Of routines which service both
5875            Ada 95 and Ada 2005 code.
5876          - Target independent interface to the Ada 2005 children of Calendar.
5877          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
5878          - Handling of non-leap centenial years.
5879          - Updated clock function.
5880          - Updated arithmetic and comparison operators.
5881
5882         * a-caldel.adb (To_Duration): Add call to target independent routine in
5883         Ada.Calendar to handle the conversion of time to duration.
5884
5885         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
5886         (UTC Offset).
5887         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
5888         set off to 0.
5889         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
5890         targets do not have a natural time zone, GMT is used as a default.
5891         (__gnat_get_task_options): New.
5892
5893         * a-direct.adb (Modification_Time): Add with and use clauses for
5894         Ada.Calendar and Ada.
5895         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
5896         since it is no longer needed.
5897         (Duration_To_Time): Removed.
5898         (OS_Time_To_Long_Integer): Removed.
5899         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
5900         Formatting Time_Of routines which automatically handle time zones,
5901         buffer periods and leap seconds.
5902
5903         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
5904         target independent routines in Ada.Calendar.
5905
5906         * a-calfor.ads, a-calfor.adb: 
5907         Code cleanup and addition of validity checks in various routines.
5908         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
5909         Ada.Calendar.
5910
5911         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
5912         independent routine in Ada.Calendar.
5913
5914 2007-04-06  Olivier Hainque  <hainque@adacore.com>
5915
5916         * adaint.c: 
5917         (convert_addresses): Adjust prototype and dummy definition to expect an
5918          extra file_name argument.
5919
5920         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
5921         filling the now expected file_name argument with the appropriate
5922         argv[0] expansion.
5923         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
5924         (tracebk): Array of void * instead of char *, corresponding to what
5925          convert_addresses expects.
5926         (exename): New static global, to hold the executable file name to be
5927         used in all convert_addresses invocations.
5928         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
5929         change.
5930         (__gnat_gmem_a2l_initialize): Resolve exename.
5931         (__gnat_convert_addresses): Use exename as the convert_addresses
5932         file_name argument.
5933
5934         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
5935         "convert_addresses", now expecting a filename argument. Import the
5936         necessary entities to compute the filename to use and pass it to
5937         convert_addresses.
5938
5939 2007-04-06  Matt Gingell  <gingell@adacore.com>
5940
5941         * system-aix.ads: Back out previous change.
5942         (Functions_Return_By_DSP): Removed
5943
5944 2007-04-06  Pascal Obry  <obry@adacore.com>
5945
5946         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
5947         or the monotonic used by Ada.Real_Time) to compute the sleep duration
5948         on Windows.
5949
5950 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
5951
5952         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
5953         function. Its value changes in different VxWorks versions, and it is
5954         now handled by the function __gnat_get_task_options.
5955
5956         * s-taprop-vxworks.adb (Create_Task): Call the function
5957         __gnat_get_task_options to get the required options for creating a task.
5958
5959 2007-04-06  Pascal Obry  <obry@adacore.com>
5960             Thomas Quinot  <quinot@adacore.com>
5961
5962         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
5963         dealing with filename.
5964         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
5965         filename from a standard string to a wide-string depending on the
5966         encoding value.
5967         (__gnat_freopen): Idem.
5968         (__gnat_current_time): New function (wrapper for time(3) standard C
5969         function).
5970
5971         * g-os_lib.ads (Current_Time): New function. Returns the current
5972         system time as an OS_Time value.
5973
5974         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
5975         (Monotonic_Clock): Same.
5976
5977 2007-04-06  Quentin Ochem  <ochem@adacore.com>
5978
5979         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
5980         not on a natural.
5981         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
5982
5983 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
5984
5985         * a-retide.adb: Add elaboration code to ensure that the tasking run
5986         time is initialized when using delay operations even when no task is
5987         created.
5988
5989 2007-04-06  Javier Miranda  <miranda@adacore.com>
5990
5991         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
5992         component Num_Prim_Ops.
5993         (Set_Num_Prim_Ops): Removed.
5994         Remove all the assertions because all the routines of this
5995         package are inline always.
5996         (Get_Offset_Index): Add support to primary dispatch tables.
5997         Move the documentation about the dispatch table to a-tags.ads
5998         (Set_External_Tag): Removed
5999         (Inherit_TSD): Removed.
6000         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
6001         moved to a-tags.ads
6002         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
6003         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
6004         of the TSD field "Table" because this field has been renamed to
6005         "Ifaces_Table".
6006         (Inherit_CPP_DT): Removed.
6007         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
6008         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
6009         declarations have been moved to a-tags.ads
6010         (Check_Size): Removed.
6011         (Expanded_Name): Updated to get access to the new field of TSD
6012         containing the address of the expanded name.
6013         (Get_Access_Level/Set_Access_Level): Removed.
6014         (Get_Predefined_Prim_Op_Address): Removed.
6015         (Set_Predefined_Prim_Op_Address): Removed.
6016         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
6017         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
6018         (Set_Expanded_Name): Removed.
6019         (Inherit_DT): Removed.
6020         (Inherit_CPP_DT): Removed.
6021         (Set_RC_Offset): Removed.
6022         (Set_TSD): Removed.
6023         (Base_Address): New function that displaces "this" to point to the base
6024         of the object (that is, to point to the primary tag of the object).
6025
6026 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6027             Javier Miranda  <miranda@adacore.com>
6028
6029         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
6030         anonymous access component, do not create a master_id if type already
6031         has one, as may happen if the type is a subcomponent of a packed array
6032         type.
6033         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
6034         Initialize_Tag): Remove code associated with the old CPP pragmas.
6035         CPP_Virtual and CPP_Vtable are no longer supported.
6036         (Build_Offset_To_Top_Internal): Add support for concurrent record types
6037         (Build_Offset_To_Top_Functions): Add support for concurrent record types
6038         (Freeze_Record_Type): Remove call to
6039         Init_Predefined_Interface_Primitives.
6040         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
6041         code required to initialize the tags of the secondary dispatch tables.
6042         This leaves the algoritm more clear.
6043         (Init_Secondary_Tags): Add support for concurrent record types
6044         (Make_Predefined_Primitive_Specs): Code cleanup.
6045         (Predefined_Primitive_Bodies): Code cleanup.
6046         (Build_Master_Renaming): New local subprogram.
6047         (Expand_N_Full_Type_Declaration): Build the master_id associated with
6048         anonymous access to task type components.
6049         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
6050         subtype indication are resolved during analysis, and must not be done
6051         here.
6052         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
6053
6054 2007-04-06  Geert Bosch  <bosch@adacore.com>
6055             Ed Schonberg  <schonberg@adacore.com>
6056             Javier Miranda  <miranda@adacore.com>
6057             Bob Duff  <duff@adacore.com>
6058
6059         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
6060         for conversion of a Float_Type'Truncation to integer.
6061
6062         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
6063         check if a node is an attribute that can be handled directly by the
6064         back end.
6065         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
6066         attributes that can be handled directly by the back end.
6067         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
6068         use new predicate Is_Access_Protected_Subprogram_Type.
6069         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
6070         and Unchecked_Union if it is generated as part of the default  Output
6071         procedure for a type with default discriminants.
6072         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
6073         if we are compiling under restriction No_Dispatching_Calls.
6074         (Constrained): Use Underlying_Type, in case the type is private without
6075         discriminants, but the full type has discriminants.
6076         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
6077         call to Build_Get_Access_Level.
6078         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
6079         interface objects requires a call to the run-time subprogram that
6080         returns the base address of the object.
6081         (Valid_Conversion): Improve error message on illegal attempt to store
6082         an anonymous access to subprogram value into a record component.
6083
6084         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
6085         null".
6086         (Simplify_Type_Conversion): New procedure that performs simplification
6087         of Int_Type (Float_Type'Truncation (X)).
6088         (Resolve_Type_Conversion): Call above procedure after resolving operand
6089         and before performing checks. This replaces the existing ineffective
6090         code in Exp_Ch4.
6091         (Set_String_Literal_Subtype): When creating the internal static lower
6092         bound subtype for a string literal, use a newly created copy of the
6093         subtree representing the lower bound.
6094         (Resolve_Call): Exclude build-in-place function calls from transient
6095         scope treatment. Update comments to describe this exception.
6096         (Resolve_Equality_Op): In case of dispatching call check violation of
6097         restriction No_Dispatching_Calls.
6098         (Resolve_Call): If the call returns an array, the context imposes the
6099         component type of the array, and the function has one non-defaulted
6100         parameter, rewrite the call as the indexing of a call with a single
6101         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
6102         in prefix form.
6103         (Resolve_Actuals): If an actual is an allocator for an access parameter,
6104         the master of the created object is the innermost enclosing statement.
6105         (Remove_Conversions): For a binary operator, check if type of second
6106         formal is numeric, to check if an abstract interpretation is present
6107         in the case of exponentiation as well.
6108
6109 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6110             Bob Duff  <duff@adacore.com>
6111
6112         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
6113         copying a parameter list in a call, set properly the First_Named_Formal
6114         and Next_Named_Formal fields in the new list and in the enclosing call.
6115         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
6116         names, to ease typing in the debugger. Improve comments.
6117         (Watch_Node): New variable, intended to be set in the debugger.
6118         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
6119         called when the watched node is created.
6120         (New_Node_Debugging_Output): Combined version of local procedures
6121         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
6122         with a parameter so that conditional breakpoints like "if Node = 12345"
6123         work.
6124         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
6125         Add Elist1 function
6126
6127 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6128             Ed Schonberg  <schonberg@adacore.com>
6129             Gary Dismukes  <dismukes@adacore.com>
6130
6131         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
6132         required for a conversion between two access-to-unconstrained-array
6133         types.
6134         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
6135         to discriminant constraints on discriminant objects. This rule must
6136         apply as well to discriminants of protected types in private components.
6137         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
6138         object of a null-excluding access type then don't require the
6139         the object declaration to have an expression and don't emit a
6140         run-time check.
6141
6142 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
6143             Eric Botcazou <botcazou@adacore.com>
6144
6145         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
6146         and made constant.
6147
6148         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
6149         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
6150         carry any.
6151
6152         * fe.h (Compiler_Abort): Add third parameter.
6153
6154         * misc.c (internal_error_function): Build third argument from current
6155         input location and pass it to Compiler_Abort.
6156
6157 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
6158
6159         * cstand.adb (Create_Standard): When the target's storage unit size is
6160         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
6161         Standard_String.
6162
6163 2007-04-06  Nicolas Roche  <roche@adacore.com>
6164
6165         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
6166         absolute path can have the following form: device:/a/b. In this case
6167         '/' should be inserted between the path and the filename.
6168
6169 2007-04-06  Olivier Hainque  <hainque@adacore.com>
6170             Eric Botcazou <botcazou@adacore.com>
6171
6172         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
6173         VAR_DECL to a CONST_DECL we make for a public constant when we know the
6174         corresponding definition has created the so made visible variable.
6175         Handle anonymous access to protected subprogram.
6176         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
6177         object with an address clause volatile.  Re-enable original fix.
6178         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
6179         too.
6180         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
6181         associated with either the Equivalent or Root type, instead of the
6182         naked type node.
6183         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
6184         subtree for every field of a global record type.
6185         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
6186         discriminants, invoke again variable_size on its newly computed sizes.
6187
6188 2007-04-06  Robert Dewar  <dewar@adacore.com>
6189             Thomas Quinot  <quinot@adacore.com>
6190             Ed Schonberg  <schonberg@adacore.com>
6191             Bob Duff  <duff@adacore.com>
6192
6193         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
6194         (Next_Component_Or_Discriminant): New function and procedure
6195         (First_Index, First_Literal, Master_Id,
6196         Set_First_Index, Set_First_Literal, Set_Master_Id):
6197         Add missing Ekind assertions.
6198         (Is_Access_Protected_Subprogram_Type): New predicate.
6199         (Has_RACW): New entity flag, set on package entities to indicate that
6200         the package contains the declaration of a remote accecss-to-classwide
6201         type.
6202         (E_Return_Statement): This node type has the Finalization_Chain_Entity
6203         attribute, in case the result type has controlled parts.
6204         (Requires_Overriding): Add this new flag, because "requires
6205         overriding" is subtly different from "is abstract" (see AI-228).
6206         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
6207         Is_Abstract_Type. Make sure these are called only when appropriate.
6208         (Has_Pragma_Unreferenced_Objects): New flag
6209
6210         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
6211         class-wide, the tag of the right-hand side must be an exact match, not
6212         an ancestor of that of the object on left-hand side.
6213         (Move_Activation_Chain): New procedure to create the call to
6214         System.Tasking.Stages.Move_Activation_Chain.
6215         (Expand_N_Extended_Return_Statement): Generate code to call
6216         System.Finalization_Implementation.Move_Final_List at the end of a
6217         return statement if the function's result type has controlled parts.
6218         Move asserts to Build_In_Place_Formal.
6219         (Move_Final_List): New function to create the call statement.
6220         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
6221         tagged type, replace generation of call to the run-time subprogram
6222         CW_Membership by call to Build_CW_Membership.
6223         (Expand_N_Return_Statement): Replace generation of call to the run-time
6224         subprogram Get_Access_Level by call to Build_Get_Access_Level.
6225         (Expand_N_Simple_Function_Return): Replace generation of call to the
6226         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6227
6228         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
6229         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
6230         access to protected operations.
6231         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
6232         master and chain actual parameters to a build-in-place function call
6233         involving tasks.
6234         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
6235         statement.
6236         (Make_Build_In_Place_Call_In_Allocator,
6237         Make_Build_In_Place_Call_In_Anonymous_Context,
6238         Make_Build_In_Place_Call_In_Assignment,
6239         Make_Build_In_Place_Call_In_Object_Declaration): Call
6240         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
6241         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
6242         stubbed procedure with a null body, replace the call with a null
6243         statement without using the full inlining machinery, for efficiency
6244         and to avoid invalid values in source file table entries.
6245
6246         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
6247         renamings of calls to build-in-place functions.
6248
6249         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
6250         provides the functionality of RTE_Available to record components.
6251         (RTU_Entity): The function Entity has been renamed to RTU_Entity
6252         to avoid undesired overloading.
6253         (Entity): New subprogram that returns the entity for the referened
6254         unit. If this unit has not been loaded, it returns Empty.
6255         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
6256         Remove no longer used entities.
6257         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
6258         (RE_Type_Specific_Data): New entity.
6259         (RE_Move_Any_Value): New entity.
6260         (RE_TA_A, RE_Get_Any_Type): New entities.
6261         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
6262          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
6263          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
6264         (Entity): New subprogram that returns the entity for the referened
6265         unit. If this unit has not been loaded, it returns Empty.
6266         (RTE): Addition of a new formal that extends the search to the scopes
6267         of the record types found in the chain of the package.
6268
6269         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
6270         "abstract subprograms must be visible" message, whether or not the type
6271         is an interface; that is, remove the special case for interface types.
6272         (Analyze_Function_Return): Remove error message "return of task objects
6273         is not yet implemented" because this is now implemented.
6274         (Create_Extra_Formals): Add the extra master and activation chain
6275         formals in case the result type has tasks.
6276         Remove error message "return of limited controlled objects is not yet
6277         implemented".
6278         (Create_Extra_Formals): Add the extra caller's finalization list formal
6279         in case the result type has controlled parts.
6280         (Process_Formals): In case of access formal types there is no need
6281         to continue with the analysis of the formals if we already notified
6282         errors.
6283         (Check_Overriding_Indicator): Add code to check overriding of predefined
6284         operators.
6285         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
6286         flags for formals that do not require them,.
6287         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
6288         hidden entity is use visible or directly visible.
6289         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
6290         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
6291         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
6292         New_Overloaded_Entity): Split Is_Abstract flag into
6293         Is_Abstract_Subprogram and Is_Abstract_Type.
6294
6295         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
6296         a return statement's finalization list to the caller's list, used for
6297         build-in-place functions with result type with controlled parts.
6298         Remove no longer used entities.
6299
6300         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
6301         longer needed, because the full type is now limited, and therefore a
6302         pass-by-reference type.
6303         (Foreign_Task_Level): New constant.
6304
6305         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
6306         move tasks from the activation chain belonging to a return statement to
6307         the one passed in by the caller, and update the master to the one
6308         passed in by the caller.
6309         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
6310         of unactivated tasks, so we don't kill the ones that are being returned
6311         by a build-in-place function.
6312         (Create_Task): Ignore AI-280 for foreign threads.
6313
6314 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6315             Robert Dewar  <dewar@adacore.com>
6316             Bob Duff  <duff@adacore.com>
6317             Gary Dismukes  <dismukes@adacore.com>
6318
6319         * errout.adb (Unwind_Internal_Type): Use predicate
6320         Is_Access__Protected_Subprogram_Type.
6321
6322         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
6323         (Freeze_Entity, packed array case): Do not override explicitly set
6324         alignment and size clauses.
6325         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
6326         the enclosing subprogram is a child unit body that acts as a spec.
6327         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
6328         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
6329         Remove all code for DSP option
6330
6331         * layout.adb (Layout_Record_Type): Use First/
6332         Next_Component_Or_Discriminant
6333         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
6334         to handle properly the anonymous access case.
6335
6336         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
6337         for all access attributes, because overload resolution should work the
6338         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
6339         causes the error message for the ambiguous "X'Access = Y'Access" and
6340         "X'Unrestricted_Access = Y'Access" and so forth to match.
6341         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
6342         now that anonymous access to protected operations have their own kind.
6343         (Resolve_Attribute): In case of dispatching call check the violation of
6344         restriction No_Dispatching_Calls.
6345         (Check_Array_Type): Check new -gnatyA array index style option
6346
6347         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
6348         attempt to derive from a synchronized tagged type.
6349         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
6350         type, inherit the class-wide type already created, because it may
6351         already have been used in a self-referential anonymous access component.
6352         (Mentions_T): Recognize self-referential anonymous access components
6353         that use (a subtype of) the class-wide type of the enclosing type.
6354         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
6355         Derived_Type for Prev formal on call to
6356         Check_Anonymous_Access_Components rather than Empty.
6357         (Make_Incomplete_Type_Declaration): Add test for case where the type has
6358         a record extension in deciding whether to create a class-wide type,
6359         rather than just checking Tagged_Present.
6360         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
6361         to stand-alone object declarations as well as component declarations.
6362         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
6363         prevent accidental overwriting when enclosing package appears in
6364         a limited_with_clause.
6365         (Array_Type_Declaration): If the component type is an anonymous access,
6366         the associated_node for the itype is the type declaration itself.
6367         (Add_Interface_Tag_Components): Modified to support concurrent
6368         types with abstract interfaces.
6369         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
6370         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
6371         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
6372         to complete the decoration of synchronized interface types. Add also
6373         a call to Check_Abstract_Interfaces to verify the ARM rules.
6374         (Derive_Interface_Subprograms): Modified to support concurrent types
6375         with abstract interfaces.
6376         (Analyze_Subtype_Indication): Resolve the range with the given subtype
6377         mark, rather than delaying the full resolution depending on context.
6378         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
6379         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
6380         Array_Type_Declaration,Build_Derived_Record_Type,
6381         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
6382         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
6383         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
6384         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6385         called only when appropriate.
6386         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
6387         to private type.
6388         (Analyze_Subtype_Declaration): For an access subtype declaration, create
6389         an itype reference for the anonymous designated subtype, to prevent
6390         scope anonmalies in gigi.
6391         (Build_Itype_Reference): New utility, to simplify construction of such
6392         references.
6393
6394 2007-04-06  Vincent Celier  <celier@adacore.com>
6395
6396         * errutil.adb (Initialize): Initialize warnings table, if all warnings
6397         are suppressed, supply an initial dummy entry covering all possible
6398         source locations.
6399
6400         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
6401         and start with only one, such as "-RTS=none".
6402         (Collect_Arguments): Do not check for sources outside of projects.
6403         Do not collect arguments if project is externally built.
6404         (Compile_Sources): Do nothing, not even check if the source is up to
6405         date, if its project is externally built.
6406         (Compile): When compiling a predefined source, add -gnatpg
6407         as the second switch, after -c.
6408         (Compile_Sources): Allow compilation of Annex J renames without -a
6409         (Is_In_Object_Directory): Check if the ALI file is in the object
6410         even if there is no project extension.
6411         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
6412         gnatbind if the ALI file effectively exists.
6413         (Initialize): Add the directory where gnatmake is invoked in front of
6414         the path if it is invoked from a bin directory, even without directory
6415         information, so that the correct GNAT tools will be used when spawned
6416         without directory information.
6417
6418         * makeusg.adb: Change switch -S to -eS
6419         Add lines for new switches -we, -wn and -ws
6420         Add line for new switch -p
6421
6422         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
6423         Treat_As_Error and there are warnings.
6424
6425         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
6426         -gnatww Change gnatmake switch -S to -eS
6427         (Scan_Make_Switches): Code reorganisation. Process separately multi
6428         character switches and single character switches.
6429         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
6430         False when switch is not recognized by gnatmake.
6431         (Scan_Make_Switches): Set Setup_Projects True when -p or
6432         --create-missing-dirs is specified.
6433
6434         * fname.adb (Is_Predefined_File_Name): Return True for annex J
6435         renamings Calendar, Machine_Code, Unchecked_Conversion and
6436         Unchecked_Deallocation only when Renamings_Included is True.
6437
6438         * par.adb: Allow library units Calendar, Machine_Code,
6439         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
6440         when -gnatg is not specified.
6441         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6442         there is no need to generate always a record_definition_node in case
6443         of synchronized interface types.
6444         (SIS_Entry_Active): Initialize global variable to False
6445         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
6446         indicate cases where AI-447 says "not null" is legal.
6447
6448         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
6449
6450         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
6451         files with with several lines starting with the object fileb name.
6452         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
6453         is specified.
6454         (Initialize): Add the directory where gprmake is invoked in front of the
6455         path, if it is invoked from a bin directory or with directory
6456         information, so that the correct GNAT tools will be used when invoked
6457         directly.
6458         (Check_Compilation_Needed): Process correctly backslashes on Windows.
6459
6460         * vms_data.ads: Update switches/qualifiers
6461
6462 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6463             Thomas Quinot  <quinot@adacore.com>
6464
6465         * exp_aggr.adb:
6466         If the array component is a discriminated record, the array aggregate
6467         is non-static even if the component is given by an aggregate with
6468         static components.
6469         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
6470         (Convert_Aggr_In_Allocator): If the allocator is for an access
6471         discriminant and the type is controlled. do not place on a finalization
6472         list at this point. The proper list will be determined from the
6473         enclosing object.
6474         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
6475         initialize record controller if needed, before the components, to ensure
6476         that they are properly finalized.
6477         (Build_Record_Aggr_Code): For the case of an array component that has a
6478         corresponding array aggregate in the record aggregate, perform sliding
6479         if required.
6480
6481 2007-04-06  Javier Miranda  <miranda@adacore.com>
6482             Gary Dismukes  <dismukes@adacore.com>
6483             Ed Schonberg  <schonberg@adacore.com>
6484
6485         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
6486         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
6487
6488         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
6489         accessibility on class-wide allocators if the allocator occurs at the
6490         same scope level as the allocator's type. The check is guaranteed to
6491         succeed in that case, even when the expression originates from a
6492         parameter of the containing subprogram.
6493         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
6494         under No_Dispatching_Calls restriction. During the semantic analysis
6495         we already notified such violation.
6496         (Tagged_Membership): Constant folding. There is no need to check
6497         the tag at run-time if the type of the right operand is non
6498         class-wide abstract.
6499         Replace call to Is_Ancestor by call to Is_Parent
6500         to support concurrent types with interface types.
6501         (Expand_N_Allocator): Add an assertion associated with the generation
6502         of the master_id.
6503         (Expand_N_Slice): Do not enable range check to nodes associated
6504         with the frontend expansion of the dispatch table.
6505         (Is_Local_Access_Discriminant): Subsidiary function to
6506         Expand_N_Allocator.
6507         (Tagged_Membership): Replace generation of call to the run-time
6508         subprogram CW_Membership by call to Build_CW_Membership.
6509         (Expand_Allocator_Expression): Replace generation of call to the
6510         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6511
6512         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
6513         initialize most the TSD components by means of an aggregate.
6514         Modify the declaration of the object containing the TSD
6515         because we now expand code that has a higher level of abstraction.
6516         The TSD has a discriminant containing the Inheritance Depth Level,
6517         value that is used in the membership test but also to fix the size
6518         of the table of ancestors.
6519         (Expand_Interface_Conversion): Insert function body at the closest place
6520         to the conversion expression, to prevent access-before-elaboration
6521         errors in the backend.
6522         Code improved to reduce the size of the dispatch table if
6523         compiling under restriction No_Dispatching_Calls plus code cleanup.
6524         Code reorganization plus removal of calls to Set_Num_Prim_Ops
6525         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
6526         (Expand_Dispatching_Call): Minor code reorganization plus addition of
6527         code to return immediately if compiling under No_Dispatching_Calls
6528         restriction.
6529         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
6530         CPP_Virtual and CPP_Vtable are no longer supported.
6531         (Expand_Interface_Conversion): Add missing support for interface type
6532         derivations.
6533         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
6534         Is_Parent to support concurrent types with interfaces.
6535         (Init_Predefined_Interface_Primitives): Removed.
6536         (Make_Secondary_DT): Modified to support concurrent record types.
6537         (Set_All_DT_Position): Modified to support concurrent record types.
6538         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6539         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
6540         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
6541         with CW_Membership.
6542         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6543         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
6544         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
6545         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
6546         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
6547         (Expand_Dispatching_Call): Replace generation of call to the run-time
6548         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
6549         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
6550         Address.
6551         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
6552         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
6553         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
6554         Build_Set_Prim_Op_Address.
6555         (Get_Remotely_Callable): Subprogram removed.
6556         (Init_Predefined_Interface_Primitives): Replace generation of call to
6557         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
6558         Prims.
6559
6560         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
6561         First (Parameter_Associations ()) with the call to First_Actual that
6562         returns an actual parameter expression for both named and positional
6563         associations.
6564
6565         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
6566         check violation of restriction No_Dispatching_Calls.
6567         (Check_Controlling_Type): A formal of a tagged incomplete type is a
6568         controlling argument.
6569
6570         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
6571         First/Next_Component_Or_Discriminant
6572         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
6573         (Find_Implemented_Interface): Removed. All the calls to this subprogram
6574         specify Any_Limited_Interface, and this functionality is already
6575         provided by the function Has_Abstract_Interfaces.
6576         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
6577         support concurrent types implementing interfaces.
6578         (Find_Implemented_Interface): Removed. All the calls to this subprogram
6579         specify kind Any_Limited_Interface, and this functionality is already
6580         provided by the function Has_Abstract_Interfaces.
6581         (Remove_Side_Effects): replace Controlled_Type by
6582         CW_Or_Controlled_Type whenever the issue is related to
6583         using or not the secondary stack.
6584
6585         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
6586         P_Interface_Type_Definition to fulfill the new interface (the formal
6587         Is_Synchronized is no longer required).
6588
6589         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
6590         Update dependencies.
6591
6592         * exp_atag.ads, exp_atag.adb: New file
6593
6594 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6595             Bob Duff  <duff@adacore.com>
6596             Cyrille Comar  <comar@adacore.com>
6597
6598         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
6599         anonymous, use finalization list of enclosing dynamic scope.
6600         (Expand_N_Package_Declaration): For a library package declaration
6601         without a corresponding body, generate RACW subprogram bodies in the
6602         spec (just as we do for the task activation call).
6603         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
6604         Is_Abstract_Type. Make sure these are called only when appropriate.
6605         Remove all code for DSP option
6606         (CW_Or_Controlled_Type): new subprogram.
6607
6608 2007-04-06  Eric Botcazou <botcazou@adacore.com>
6609             Ed Schonberg  <schonberg@adacore.com>
6610             Gary Dismukes  <dismukes@adacore.com>
6611
6612         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
6613         parameter. If it is set to true, return a result capped according to
6614         the global upper bound for the index of an entry family.
6615         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
6616         (Build_Find_Body_Index): Adjust for above change.
6617         (Entry_Index_Expression): Likewise.
6618         (Is_Potentially_Large_Family): New function extracted from...
6619         (Collect_Entry_Families): ...here. Call it to detect whether the family
6620         is potentially large.
6621         (Build_Entry_Count_Expression): If the family is potentially large, call
6622         Family_Size with 'Cap' set to true.
6623         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
6624         a protected version of an operation declared in the private part of
6625         a protected object, because they may be invoked through a callback.
6626         (Set_Privals): If the type of a private component is an anonymous access
6627         type, do not create a new itype for each protected body.
6628         If the body of a protected operation creates
6629         controlled types (including allocators for class-widetypes), the
6630         body of the corresponding protected subprogram must include a
6631         finalization list.
6632         (Build_Activation_Chain_Entity): Build the chain entity for extended
6633         return statements.
6634         (Type_Conformant_Parameters): Use common predicate Conforming_Types
6635         to determine whether operation overrides an inherited primitive.
6636         (Build_Wrapper_Spec): Add code to examine the parents while looking
6637         for a possible overriding candidate.
6638         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
6639         hold an actual parameter value since its initialization is separated
6640         from the the declaration. Prevents errors on null-excluding access
6641         formals.
6642
6643 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6644
6645         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
6646         Do an Unchecked_Conversion to handle the passage from the Underlying
6647         Type to the Base Type when calling Build_To_Any_Call and
6648         Build_From_Any_Call.
6649         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
6650         E_Constant, depending upon Variable formal.
6651         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6652         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
6653         parameter that requires an extra constrained parameter, declare
6654         temporary for actual as a variable, not a constant.
6655         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
6656         the unit being compiled is the one that contains the stub type.
6657         Change primitive operation name for the RACW associated with a RAS
6658         from Call to _Call so it cannot clash with any legal identifier.
6659         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
6660         Is_RAS.
6661         (Append_RACW_Bodies): New subprogram.
6662         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
6663         Add_Receiving_Stubs_To_Declarations functions.
6664         When expanding a package body, this list correspond to the
6665         statements in the HSS at the end of the pacakge.
6666         When expanding a package spec, this list correspond to the
6667         spec declarations.
6668         (Add_Receiving_Stubs_To_Declarations): Append the function
6669         registering the receiving stubs at the end of the 'Stmts' list.
6670         (RCI_Package_Locator): Pass the new Version generic formal when
6671         instantiating a RCI_Locator package.
6672         (Build_From_Any_Function): To compute the High bound for an
6673         unconstrained array actual, we add the Low bound with the length.
6674         Thus we must convert the low bound and the length to an appropriate
6675         type before doing the sum.
6676         (Build_Subprogram_Receiving_Stubs, PolyORB):
6677          * Retrieve the extra formals parameters at the
6678            end of the parameter stream.
6679          * Use Move_Any_Value to write back out parameters
6680            after executing the request as it is more efficient
6681            than Copy_Any_Value.
6682          * Build the any containing Extra Formals with the
6683            appropriate typecode.
6684         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
6685         empty Component_List.
6686         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
6687         the tree the declaration for an object that serves as actual parameter
6688         in server-side stubs.
6689         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6690         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6691         Use Build_Actual_Object_Declaration to prepare the actuals.
6692         (Add_Parameter_To_NVList): Set the parameter mode to In for
6693         Extra Constrained Parameters.
6694         (Build_General_Calling_Stubs): Set the parameter type to boolean for
6695         Extra Constrained parameters.
6696         (Build_To_Any_Function, Build_From_Any_Function,
6697         Built_TypeCode_Function): When Typ is implicit, call the correct
6698         function with the first not implicit parent type.
6699         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
6700         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
6701         typecode from the Etype. Therefore we retrieve the correct typecode
6702         with a call to Get_Any_Type.
6703         (Copy_Specification): Do controlling formal type substitution based on
6704         Is_Controlling_Formal flag, instead of caller-provided object type.
6705         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
6706         a RACW primitive operation, we might get a subprogram declaration for an
6707         ancestor of the RACW designated type (not for the designated type
6708         itself), in the case where this operation is inherited. In this case we
6709         have no easy means of determining the original tagged type for which
6710         the primitive was declared, so instead we now rely on
6711         Copy_Specification to use the Is_Controlling_Formal flag to determine
6712         which formals require type substitution.
6713
6714 2007-04-06  Robert Dewar  <dewar@adacore.com>
6715             Ed Schonberg  <schonberg@adacore.com>
6716
6717         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
6718         GNAT.Current_Exception are not allowed if pragma Restrictions
6719         (No_Exception_Propagation) is set and in any case make the associated
6720         handler unsuitable as a target for a local raise statement.
6721         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
6722         run-time subprogram CW_Membership by call to Build_CW_Membership.
6723         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
6724         by a function call, a temporary must be created before expanding the
6725         Constructor_Call itself, to prevent out-of-order elaboration in the
6726         back-end when stack checking is enabled..
6727
6728 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6729
6730         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
6731         result are the bounds of the left operand, not the right.
6732
6733 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6734
6735         * exp_strm.adb
6736         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
6737          discriminant defaults.
6738         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
6739         (Make_Component_List_Attributes): Ditto.
6740
6741 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6742             Bob Duff  <duff@adacore.com>
6743
6744         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
6745         an association with a box as providing a value even though the
6746         initialization procedure for the type is not available.
6747         (Resolve_Record_Aggregate): Check that a choice of an association with a
6748         box corresponds to a component of the type.
6749         (Resolve_Record_Aggregate): Split Is_Abstract flag into
6750         Is_Abstract_Subprogram and Is_Abstract_Type.
6751
6752         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
6753         assert.
6754
6755         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
6756         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6757         called only when appropriate.
6758
6759 2007-04-06  Olivier Hainque  <hainque@adacore.com>
6760
6761         * g-alleve.ads (Low Level Vector type definitions): Map each to the
6762         associated vector view instead of all to the unsigned char view.
6763
6764         * g-altcon.adb (Generic_Conversions): New internal generic package,
6765         offering facilities for all the Vector/View conversion routines
6766         implemented by this unit.
6767         (To_View/To_Vector - all versions): Reimplemented in a systematic
6768         manner, using the internal Generic_Conversions facilities.
6769
6770 2007-04-06  Pascal Obry  <obry@adacore.com>
6771
6772         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6773         string.
6774         (Create): Free the source string before storing the new one.
6775
6776 2007-04-06  Vincent Celier  <celier@adacore.com>
6777
6778         * g-debpoo.adb (Validity): New package with a complete new
6779         implementation of subprograms Is_Valid and Set_Valid.
6780         (Is_Valid): Move to local package Validity
6781         (Set_Valid): Move to local package Validity
6782
6783 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
6784
6785         * g-expect.adb (Get_Command_Output): When expanding the output buffer
6786         we must ensure that there is enough place for the new data we are going
6787         to copy in.
6788
6789 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6790
6791         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
6792         computation.
6793
6794 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
6795             Vincent Celier  <celier@adacore.com>
6796
6797         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
6798         (Stack_String): Add this String that contains the name of the Stack
6799         package in the project file.
6800         (Packages_To_Check_By_Stack): Add this list that contains the packages
6801         to be checked by gnatstack, which are the naming and the stack packages.
6802         (Check_Files): If no .ci files were specified for gnatstack we add all
6803         the .ci files belonging to the projects, including binder generated
6804         files.
6805         (Non_VMS_Usage): Document that gnatstack accept project file switches.
6806         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
6807         Add gnatstack to the list of commands that use project file related
6808         switches, and get the single attribute Switches from the stack package
6809         in a project file when calling gnatstack. Parse the -U flag for
6810         processing files belonging to all projects in the project tree.
6811         Remove all processing for command Setup
6812
6813         * prj-attr.adb: Add new package Stack with single attribute Switches
6814
6815         * vms_conv.ads (Command_Type): Add command Stack.
6816         Move to body declarations that are only used in the body: types Item_Id,
6817         Translation_Type, Item_Ptr, Item and its subtypes.
6818
6819         * vms_conv.adb: (Initialize): Add data for new command Stack.
6820         Add declarations moved from the spec: types Item_Id, Translation_Type,
6821         Item_Ptr, Item and its subtypes.
6822         (Cargs_Buffer): New table
6823         (Cargs): New Boolean global variable
6824         (Process_Buffer): New procedure to create arguments
6825         (Place): Put character in table Buffer or Cargs_Buffer depending on the
6826          value of Cargs.
6827         (Process_Argument): Set Cargs when processing qualifiers for GNAT
6828         COMPILE
6829         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
6830         empty, for table Cargs_Buffer.
6831         (Initialize): Remove component Setup in Command_List
6832
6833 2007-04-06  Vincent Celier  <celier@adacore.com>
6834
6835         * gprep.adb (Process_Files.Process_One_File): Use full file name when
6836         issuing pragma Source_Reference.
6837
6838 2007-04-06  Emmanuel Briot  <briot@adacore.com>
6839
6840         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
6841         [[:xdigit:]] character class.
6842         Also raise an exception when an invalid character class is used.
6843
6844 2007-04-06  Pascal Obry  <obry@adacore.com>
6845
6846         * i-cstrea.ads: (fopen): Add encoding parameter.
6847         (freopen): Idem.
6848         Change reference from a-sysdep.c to sysdep.c in comment.
6849         Update copyright notice.
6850         This set of patch add support for the encoding form parameter.
6851
6852         * mingw32.h (S2WSU): New macro to convert from a string to a
6853         wide-string using the UTF-8 encoding. The S2WS macro supports now only
6854         standard 8bits encoding.
6855         (WS2SU): As above but converting from wide-sring to string.
6856         This is needed as it is necessary to have access to both versions in the
6857         runtime for the form parameter encoding support.
6858         This set of patch add support for the encoding form parameter.
6859         (S2WS): Improve implementation to handle cases where the filename is not
6860         UTF-8 encoded. In this case we default to using the current code page
6861         for the conversion.
6862
6863         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
6864         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
6865         the constants defined in adaint.h.
6866         (fopen): Add encoding parameter.
6867         (freopen): Idem.
6868
6869         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
6870         encoding. This is needed for the Reset routine (freopen low level-call).
6871
6872         * s-fileio.adb (Open): Decode encoding form parameter and set the
6873         corresponding encoding value into AFCB structure.
6874         (Reset): Pass the encoding value to freopen.
6875         (Close): Move the call to Lock_Task to the beginning of the procedure.
6876
6877 2007-04-06  Geert Bosch  <bosch@adacore.com>
6878             Robert Dewar  <dewar@adacore.com>
6879
6880         * i-fortra.ads: Add Double_Complex type.
6881
6882         * impunit.adb: (Is_Known_Unit): New function
6883         Add Gnat.Byte_Swapping
6884         Add GNAT.SHA1
6885         Add new Ada 2005 units
6886         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
6887         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
6888         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
6889         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
6890
6891         * impunit.ads (Is_Known_Unit): New function
6892
6893         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
6894         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
6895         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
6896         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
6897         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
6898         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
6899         New files.
6900
6901         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
6902
6903         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
6904
6905 2007-04-06  Eric Botcazou <botcazou@adacore.com>
6906             Arnaud Charlet  <charlet@adacore.com>
6907
6908         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
6909         __gnat_adjust_context_for_raise.
6910         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
6911         implementation of floating point operations as native x86 targets.
6912         So the FPU should be initialized in the same way using finit. Fix
6913         floating point operations accuracy issues.
6914         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
6915         member in struct sigaction, so as to avoid warning for incompatible
6916         pointer types.
6917
6918 2007-04-06 Serguei Rybin <rybin@adacore.com>
6919
6920         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
6921         switches from previously loaded tree
6922
6923 2007-04-06  Thomas Quinot  <quinot@adacore.com>
6924
6925         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
6926         cases where a given dependency has a body or not.
6927         (Write_With_File_Names): New subprogram, common code for the two cases
6928         above.
6929
6930 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
6931             Javier Miranda  <miranda@adacore.com>
6932
6933         * lib-xref.ads, lib-xref.adb: 
6934         Modify the loop that collects type references, to include interface
6935         types that the type implements. List each of these interfaces when
6936         building the entry for the type.
6937         (Generate_Definition): Initialize component Def and Typ of new entry
6938         in table Xrefs, to avoid to have these components unitialized.
6939         (Output_References): Split Is_Abstract flag into
6940         Is_Abstract_Subprogram and Is_Abstract_Type.
6941         (Generate_Reference): Add barrier to do not generate the warning
6942         associated with Ada 2005 entities with entities generated by the
6943         expander.
6944
6945 2007-04-06  Robert Dewar  <dewar@adacore.com>
6946             Arnaud Charlet  <charlet@adacore.com>
6947             Vincent Celier  <celier@adacore.com>
6948
6949         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
6950         Update 'Exception Handling Control' chapter which was outdated.
6951         Minor fix to documentation of -gnatwq
6952         Remove section "Adapting the Run Time to a New C++ Compiler" because
6953         it is now obsolete.
6954         Add passage on need of -nostart-files in some non-ada-main cases.
6955         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
6956         Update documentation about Interfacing with C++
6957         Add documentation for new gnatmake switch -p
6958         Add missing protocol part in URLs.
6959         Document -gnatyA
6960         Document pragma Compile_Time_Error
6961         Add documentation for Object_Size indicating that stand alone
6962         objects can have a larger size in some cases.
6963         Add node for GNAT.Byte_Swapping, GNAT.SHA1
6964         Update reference to the Ravenscar profile.
6965         Document pragma Unreferenced_Objects
6966
6967         * gnat-style.texi: Fix typo
6968
6969 2007-04-06  Vincent Celier  <celier@adacore.com>
6970
6971         * mlib.adb (Building_Library): Only output "building a library..." in
6972         verbose mode
6973
6974         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
6975         files in verbose mode.
6976
6977         * mlib-utl.adb (Ar): Only output the first object files when not in
6978         verbose mode.
6979         (Gcc): Do not display all the object files if not in verbose mode, only
6980         the first one.
6981
6982 2007-04-06  Robert Dewar  <dewar@adacore.com>
6983
6984         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
6985         it no longer destroys the contents of Name_Buffer or Name_Len and
6986         non-standard and invalid names are handled better.
6987         (Get_Decoded_Name_String): Improve performance by using
6988         Name_Has_No_Encodings flag in the name table.
6989         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
6990         Used for debugging printouts.
6991
6992 2007-04-06  Robert Dewar  <dewar@adacore.com>
6993             Javier Miranda  <miranda@adacore.com>
6994             Bob Duff  <duff@adacore.com>
6995
6996         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
6997         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6998         there is no need to generate always a record_definition_node in case
6999         of synchronized interface types.
7000         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
7001         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
7002         illegal in Ada 95, in cases where it is legal. Change the warnings to
7003         errors in other cases. Don't give the error unless the "not null"
7004         parses properly. Correct the source position at which the error occurs.
7005         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
7006         P_Null_Exclusion, to suppress "not null" warnings.
7007         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
7008         associated goto statements.
7009
7010         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
7011         of END RECORD
7012
7013         * scans.ads (Type_Token_Location): New flag
7014
7015         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
7016         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
7017         P_Null_Exclusion, to suppress "not null" warnings.
7018
7019 2007-04-06  Robert Dewar  <dewar@adacore.com>
7020             Javier Miranda  <miranda@adacore.com>
7021             Bob Duff  <duff@adacore.com>
7022             Vincent Celier  <celier@adacore.com>
7023
7024         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
7025         (Extensions_Allowed): No longer sets Ada_Version
7026         Entry for pragma Unreferenced_Objects
7027
7028         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
7029         system.tasking if pragma priority used in a procedure
7030         (Analyze_Pragma, case Warning): Handle dot warning switches
7031         (Process_Compile_Time_Warning_Or_Error): New procedure
7032         (Analyze_Pragma): Add processing for Compile_Time_Error
7033         Add support for extra arguments External_Name and Link_Name.
7034         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
7035         (Process_Import_Or_Interface): Add support for the use of pragma Import
7036         with tagged types.
7037         (Extensions_Allowed): No longer affects Ada_Version
7038         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
7039         Is_Abstract_Type. Make sure these are called only when appropriate.
7040         Add processing for pragma Unreferenced_Objects
7041
7042         * snames.h, snames.ads, snames.adb: Add entry for pragma
7043         Compile_Time_Error
7044         Add new standard name Minimum_Binder_Options for new gprmake
7045         Add new standard names for gprmake: Archive_Suffix,
7046         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
7047         Library_Support, Library_Version_Options,
7048         Shared_Library_Minimum_Options,
7049         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
7050         Change Name_Call to Name_uCall so that it cannot clash with a legal
7051         subprogram name.
7052         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
7053         Append C_Plus_Plus to convention identifiers as synonym for CPP
7054         Add new standard names Stack and Builder_Switches
7055         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
7056         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
7057         Run_Path_Option, Toolchain_Version.
7058         Entry for pragma Unreferenced_Objects
7059
7060         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
7061         switches, without repetition of "eD". Make sure that last character of
7062         -gnatep= switch is not taken as -gnat switch character.
7063         Complete rewrite of circuit for handling saving compilation options
7064         Occasioned by need to support dot switchs for -gnatw, but cleans up
7065         things in general.
7066         -gnatX does not affect Ada_Version
7067         Include -gnatyA in -gnatg style switches
7068
7069         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
7070         warnings on return objects.
7071         (Warn_On_Useless_Assignment): Exclude warnings on return objects
7072         (Set_Dot_Warning_Switch): New procedure
7073         (Check_References): Add missing case of test for
7074         Has_Pragma_Unreferenced_Objects
7075         (Output_Unreferenced_Messages): Implement effect of new pragma
7076         Unreferenced_Objects, remove special casing of limited controlled
7077         variables.
7078
7079 2007-04-06  Vincent Celier  <celier@adacore.com>
7080
7081         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
7082         the default project path, initially done during elaboration of the
7083         package.
7084         If the prefix returned by Sdefault is null, get the prefix from a call
7085         to Executable_Prefix_Path.
7086         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
7087         null.
7088
7089         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
7090         canonical directory name to open the directory from which files are
7091         retrieved.
7092         (Record_Other_Sources): Idem.
7093         (Locate_Directory): Add the possibility to create automatically missing
7094         directories when Setup_Projects is True.
7095         Call Locate_Directory so that the directory will be created when
7096         Setup_Projects is True, for object dir, library dir, library ALI dir,
7097         library source copy dir and exec dir.
7098
7099         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
7100         versions of GNAT.
7101
7102 2007-04-06  Robert Dewar  <dewar@adacore.com>
7103
7104         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
7105         Use First/Next_Component_Or_Discriminant
7106         (Analyze_Record_Representation_Clause):
7107         Use First/Next_Component_Or_Discriminant
7108         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
7109         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
7110         definition if type is unconstrained.
7111         (Adjust_Record_For_Reverse_Bit_Order): New procedure
7112         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
7113         Is_Abstract_Subprogram and Is_Abstract_Type.
7114         (Adjust_Record_For_Reverse_Bit_Order): New procedure
7115
7116         * repinfo.adb (List_Record_Info): Use First/
7117         Next_Component_Or_Discriminant.
7118
7119         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
7120         New procedure.
7121
7122         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
7123         Include -gnatyA in default switches
7124
7125         * opt.ads: (Warn_On_Non_Local_Exception): New flag
7126         (Warn_On_Reverse_Bit_Order): New flag
7127         (Extensions_Allowed): Update the documentation.
7128         (Warn_On_Questionable_Missing_Parens): Now on by default
7129
7130         * usage.adb: Add documentation of -gnatw.x/X switches
7131         Document new -gnatyA style switch
7132         -gnatq warnings are on by default
7133
7134 2007-04-06  Ed Falis  <falis@adacore.com>
7135
7136         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
7137         full word is no longer compared twice.
7138
7139 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7140
7141         * sem_ch10.adb (Install_Limited_Context_Clauses.
7142         Expand_Limited_With_Clause): Use a new copy of selector name in the
7143         call to Make_With_Clause. This fixes the tree structure for ASIS
7144         purposes. Nothing is changed in the compiler behaviour.
7145         (Process_Body_Clauses): Handle properly use clauses whose prefix is
7146         a package renaming.
7147         (Install_Limited_With_Clauses): Do not install non-limited view when it
7148         is still incomplete.
7149
7150 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7151             Gary Dismukes  <dismukes@adacore.com>
7152
7153         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
7154         when capturing size information, instead of base type, which for a
7155         formal array type will be the unconstrained type.
7156         (Analyze_Formal_Object_Declaration): Add check for illegal default
7157         expressions for a formal in object of a limited type.
7158         (Instantiate_Object): Ditto.
7159         (Check_Formal_Package_Instance): Skip entities that are formal objects,
7160         because they were defaulted in the formal package and no check applies
7161         to them.
7162         (Check_Formal_Package_Instance): Extend conformance check to other
7163         discrete types beyond Integer.
7164         (Process_Default): Copy directly the unmatched formal. A generic copy
7165         has already been performed in Analyze_Formal_Package.
7166         (Analyze_Associations): If a formal subprogram has no match, check for
7167         partial parametrization before looking for a default, to prevent
7168         spurious errors.
7169         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
7170         not set the instantiation environment before analyzing the actuals.
7171         Fixes regression on 8515-003 with implementation of AI-133.
7172         Set_Instance_Env checks whether the generic unit is a predefined
7173         unit, in which case the instance must be analyzed with the latest Ada
7174         mode. This setting must take place after analysis of the actuals,
7175         because the actuals must be analyzed and frozen in the Ada mode extant
7176         outside of the current instantiation.
7177         (Save_Env, Restore_Env): Preserve and restore the configuration
7178         parameters so that predefined units can be compiled in the proper Ada
7179         mode.
7180         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
7181         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
7182         and Is_Abstract_Type.
7183         (Analyze_Formal_Package): For better error recovery, Add exception
7184         handler to catch Instantion_Error, which can be raised in
7185         Analyze_Associations
7186
7187 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7188             Bob Duff  <duff@adacore.com>
7189             Gary Dismukes  <dismukes@adacore.com>
7190
7191         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
7192         prefix type is a discriminated subtype of the type of the formal.
7193         (Analyze_Allocator): Collect all coextensions regardless of the context.
7194         Whether they can be allocated statically is determined in exp_ch4.
7195         (Analyze_Selected_Component): If the prefix is a limited view and the
7196         non-limited view is available, use the non-limited one.
7197         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
7198         therefore illegal), suggest a qualified expression rather than a type
7199         conversion, because a type conversion would be illegal in this context.
7200         (Anayze_Allocator): Trace recursively all nested allocators so that all
7201         coextensions are on the corresponding list for the root. Do no mark
7202         coextensions if the root allocator is within a declaration for a stack-
7203         allocated object, because the access discriminants will be allocated on
7204         the stack as well.
7205         (Analyze_Call): Remove restriction on calls to limited functions for the
7206         cases of generic actuals for formal objects, defaults for formal objects
7207         and defaults for record components.
7208         (Analyze_Allocator): Before analysis, chain coextensions on the proper
7209         element list. Their expansion is delayed until the enclosing allocator
7210         is processed and its finalization list constructed.
7211         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
7212         for an operation with the given name among the primitive operations of
7213         the corresponding record type.
7214         (Analyze_Selected_Component): If the prefix is a task type that
7215         implements an interface, and there is no entry with the given name,
7216         check whether there is another primitive operation (e.g. a function)
7217         with that name.
7218         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
7219         properly the indexing of a function call written in prefix form, where
7220         the function returns an array type, and all parameters of the function
7221         except the first have defaults.
7222         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
7223         the original operands, rather than relocating them, for efficiency and
7224         to work properly when an operand is overloaded.
7225         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
7226         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
7227         (Analyze_Selected_Component): If the prefix is a private extension, only
7228         scan the visible components, not those of the full view.
7229         (Try_Primitive_Operation): If the operation is a procedure, collect all
7230         possible interpretations, as for a function, because in the presence of
7231         classwide parameters several primitive operations of the type can match
7232         the given arguments.
7233
7234 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7235             Robert Dewar  <dewar@adacore.com>
7236
7237         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
7238         tag-indeterminate call to an abstract function, when the left-hand side
7239         is not classwide.
7240         (Analyze_Loop_Statement): Improve detection of infinite loops
7241
7242 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7243             Thomas Quinot  <quinot@adacore.com>
7244
7245         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
7246         out of Analyze_Package_Declaration, because processing must be applied
7247         to package bodies as well, for deferred constants completed by pragmas.
7248         (Analyze_Package_Declaration): When the package declaration being
7249         analyzed does not require an explicit body, call Check_Completion.
7250         (May_Need_Implicit_Body): An implicit body is required when a package
7251         spec contains the declaration of a remote access-to-classwide type.
7252         (Analyze_Package_Body): If the package contains RACWs, append the
7253         pending subprogram bodies generated by exp_dist at the end of the body.
7254         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
7255         Is_Abstract_Subprogram and Is_Abstract_Type.
7256         (Preserve_Full_Attributes): The full entity list is not an attribute
7257         that must be preserved from full to partial view.
7258
7259         * sem_dist.adb (Add_RAS_Dereference_TSS):
7260         Change primitive name to _Call so it cannot clash with any legal
7261         identifier, and be special-cased in Check_Completion.
7262         Mark the full view of the designated type for the RACW associated with
7263         a RAS as Comes_From_Source to get proper view switching when installing
7264         private declarations.
7265         Provite a placeholder nested package body along with the nested spec
7266         to have a place for Append_RACW_Bodies to generate the calling stubs
7267         and stream attributes.
7268
7269 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7270             Robert Dewar  <dewar@adacore.com>
7271
7272         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
7273         that is a limited view, check the non-limited view if available.
7274         (Undefined): Refine error message for missing with of Text_IO
7275         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
7276         to distinguish real missing with cases.
7277         Fix format of all missing with messages
7278         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
7279         renaming as body when renamed entity is abstract.
7280
7281 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7282             Javier Miranda  <miranda@adacore.com>
7283
7284         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
7285         predicate recursive, to handle complex expressions on literals whose
7286         spurious ambiguity comes from the abstract interpretation of some
7287         subexpression.
7288         (Interface_Present_In_Ancestor): Add support to concurrent record
7289         types.
7290         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
7291         Is_Abstract_Subprogram and Is_Abstract_Type.
7292
7293 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7294             Javier Miranda  <miranda@adacore.com>
7295
7296         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
7297         dereference of a local object R created as a reference to another
7298         object O, use the access level of O.
7299         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
7300         rather than local Same_Formal_Type, to check whether protected operation
7301         overrides an inherited one.
7302         (Same_Formal_Type): New predicate, used when matching signatures of
7303         overriding synchronized operations, to handle the case when a formal
7304         has a type that is a generic actual.
7305         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
7306         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
7307         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
7308         syntactic ambiguities involving indexing of function calls that return
7309         arrays.
7310         (Abstract_Interface_List): New subprogram that returns the list of
7311         abstract interfaces associated with a concurrent type or a
7312         concurrent record type.
7313         (Interface_Present_In_Parent): New subprogram used to check if a
7314         given type or some of its parents implement a given interface.
7315         (Collect_Abstract_Interfaces): Add support for concurrent types
7316         with interface types.
7317         (Has_Abstract_Interfaces): Add support for concurrent types with
7318         interface types.
7319         (Is_Parent): New subprogram that determines whether E1 is a parent
7320         of E2. For a concurrent type its parent is the first element of its
7321         list of interface types; for other types this function provides the
7322         same result than Is_Ancestor.
7323         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
7324         (Collect_Synchronized_Interfaces): Removed because the subprogram
7325         Collect_Abstract_Interfaces provides this functionality.
7326         (Collect_Abstract_Interfaces): Minor update to give support to
7327         concurrent types and thus avoid undesired code duplication.
7328         (Get_Subprogram_Entity): Handle entry calls.
7329         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
7330         entry calls.
7331         (Enter_Name): Do not give -gnatwh hiding warning for record component
7332         entities, they never result in hiding.
7333
7334 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7335             Robert Dewar  <dewar@adacore.com>
7336
7337         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
7338         to chain nested components that are allocators for access discriminants
7339         of the enclosing object.
7340         Add N_Push and N_Pop nodes
7341         New field Exception_Label added
7342         (Local_Raise_Statements): New field in N_Exception_Handler_Node
7343         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
7344         (Is_Coextension): New flag for allocators, to mark allocators that
7345         correspond to access discriminants of dynamically allocated objects.
7346         (N_Block_Statement): Document the fact that the corresponding entity
7347         can be an E_Return_Statement.
7348         (Is_Coextension): New flag for allocators.
7349         Remove all code for DSP option
7350
7351         * sprint.ads, sprint.adb: Display basic information for class_wide
7352         subtypes. Add handling of N_Push and N_Pop nodes
7353
7354 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
7355
7356         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
7357         before propagating exception.
7358
7359 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7360
7361         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
7362         an address always within the call instruction from a return address.
7363
7364 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7365             Eric Botcazou <botcazou@adacore.com>
7366
7367         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
7368         expression with a COMPOUND_EXPR including the call instead of emitting
7369         the call directly here.
7370         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
7371         high bound is constant and the slice is empty.  Tidy.
7372         (tree_transform, case N_Op_Not): Handle properly the case where the
7373         operation applies to a private type whose full view is a modular type.
7374         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
7375         Address_Clause, use the associated Expression as the GNAT tree
7376         representing the choice value to ensure the corresponding GCC tree is
7377         of the proper kind.
7378         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
7379         instead of just the operands, as the base GCC stabilize_reference does.
7380         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
7381         requested; otherwise fail.
7382         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
7383
7384 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7385
7386         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
7387         implementation of UI_Div.
7388         (UI_Div): Reimplement as a call to UI_Div_Rem.
7389         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
7390         remainder, avoiding the cost of a multiplication and a subtraction.
7391         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
7392         provides both quotient and remainder in a single computation.
7393         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
7394         functions for uint.
7395         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
7396         is undefined if the given n is not inversible.
7397
7398 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7399
7400         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
7401         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
7402         opcodes.
7403
7404 2007-04-06  Eric Botcazou <botcazou@adacore.com>
7405             Olivier Hainque  <hainque@adacore.com>
7406
7407         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
7408         when updating the contents of the old pointer to an unconstrained array.
7409         (end_subprog_body): Set error_gnat_node to Empty.
7410         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
7411         (unchecked_convert): For subtype to base type conversions, require that
7412         the source be a subtype if it is an integer type.
7413         (builtin_decls): New global, vector of available builtin functions.
7414         (gnat_pushdecl): Add global builtin function declaration nodes to the
7415         builtin_decls list.
7416         (gnat_install_builtins): Adjust comments.
7417         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
7418         calling gnat_pushdecl, so that it knows when it handed a builtin
7419         function declaration node.
7420         (builtin_decl_for): Search the builtin_decls list.
7421
7422 2007-04-06  Eric Botcazou <botcazou@adacore.com>
7423
7424         * s-stchop-vxworks.adb: 
7425         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
7426
7427 2007-04-06  Robert Dewar  <dewar@adacore.com>
7428             Arnaud Charlet  <charlet@adacore.com>
7429
7430         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
7431
7432         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
7433         of files
7434         Add mention of -Sev (set initialize_scalars option from environment
7435         variable at run time) in gnatbind usage message.
7436
7437         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
7438
7439         * fname-uf.ads: Minor comment fix
7440
7441         * osint.ads: Change pragma Elaborate to Elaborate_All
7442
7443         * par-load.adb: Add documentation.
7444
7445         * sem_cat.ads, sem_cat.adb: Minor code reorganization
7446
7447         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
7448
7449         * s-secsta.ads: Extra comments
7450
7451         * s-soflin.ads: Minor comment fixes
7452
7453         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
7454
7455         * s-wchcon.ads: Minor comment addition
7456
7457         * treepr.adb: Minor change in message
7458         (Print_Name,Print_Node): Make these debug printouts more robust: print
7459         "no such..." instead of crashing on bad input.
7460
7461 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
7462
7463         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
7464         instead of gnat_signed_or_unsigned_type.
7465         * utils.c (gnat_signed_or_unsigned_type): Remove.
7466         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
7467         * gigi.h (gnat_signed_or_unsigned_type): Remove
7468
7469 2007-03-09  Roger Sayle  <roger@eyesopen.com>
7470
7471         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
7472         fold with the result of buildN.
7473         * decl.c (gnat_to_gnu_entity): Likewise.
7474         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
7475         * utils.c (finish_record_type, merge_sizes, max_size, convert):
7476         Likewise.
7477         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
7478         nonbinary_modular_operation, build_binary_op, build_unary_op,
7479         build_cond_expr): Likewise.
7480
7481         * utils.c (convert): Use fold_build1 when casting values to void.
7482         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
7483         fold_convert instead of convert when appropriate.
7484
7485 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
7486
7487         * Make-lang.in: Add install-pdf target as copied from
7488         automake v1.10 rules.
7489
7490 2007-02-28  Andreas Schwab  <schwab@suse.de>
7491
7492         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
7493         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
7494         (doc/gnat-style.info): Likewise.
7495
7496 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
7497
7498         * gnat-style.texi: Standardize title page.
7499         * gnat_rm.texi: Likewise.
7500         * gnat_ugn.texi: Likewise.
7501
7502 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
7503
7504         * decl.c (annotate_value): Adjust for refactoring of tree_map
7505         hierarchy.
7506
7507 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
7508
7509         * decl.c (annotate_value): Adjust for refactoring of tree_map
7510         hierarchy.
7511
7512 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
7513
7514         PR ada/18819
7515         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
7516         untagged derived type, add hidden components to keep discriminant
7517         layout consistent, when a given discriminant of the derived type
7518         constraints several discriminants of the parent type.
7519
7520 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
7521             Sandra Loosemore  <sandra@codesourcery.com>
7522
7523         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
7524         build the call expression.
7525         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
7526         * utils.c (max_size) <tcc_exceptional>: Delete.
7527         <tcc_vl_exp>: New case.
7528         <tcc_expression>: Delete CALL_EXPR subcase.
7529         (build_global_cdtor): Use build_call_nary instead of build3.
7530         * utils2.c (build_call_1_expr): Likewise.
7531         (build_call_2_expr): Likewise.
7532         (build_call_0_expr): Likewise.
7533         (build_call_alloc_dealloc): Likewise.
7534
7535 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7536
7537         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7538         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
7539         and _Unwind_SWord with _sleb128_t.
7540
7541 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
7542
7543         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
7544         * decl.c: Include gt-ada-decl.h.
7545         (annotate_value_cache): New.
7546         (annotate_value): Use it instead of TREE_COMPLEXITY.
7547
7548 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
7549
7550         * misc.c, utils2.c: Fix comment typos.
7551
7552 2007-01-24  Roger Sayle  <roger@eyesopen.com>
7553
7554         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
7555         TREE_CONSTANT_OVERFLOW.
7556         (allocatable_size_p, annotate_value): Likewise.
7557         * trans.c (gnat_to_gnu): Likewise.
7558         * utils.c (unchecked_convert): Likewise.
7559         * utils2.c (build_simple_component_ref): Likewise.
7560
7561 2007-01-23  Richard Guenther  <rguenther@suse.de>
7562
7563         PR bootstrap/30541
7564         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
7565         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
7566         (gnatboot3): Likewise.
7567         (GNATBIND): Do not define.
7568         * Makefile.in (GNATBIND): Do not define.
7569
7570 2007-01-08  Richard Guenther  <rguenther@suse.de>
7571
7572         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
7573         * trans.c (gnat_to_gnu): Likewise.
7574
7575 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
7576
7577         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
7578         * adaint.c: Likewise.
7579
7580 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
7581
7582         Merge from gimple-tuples-branch:
7583         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
7584
7585         * ada-tree.h (lang_tree_node): Handle gimple tuples.
7586         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
7587         GIMPLE_MODIFY_STMT.
7588
7589 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
7590
7591         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
7592         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
7593         Fix typos.
7594
7595 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
7596
7597         PR ada/27936
7598         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
7599         if the initializer takes into account the padding.
7600
7601 2006-11-11  Richard Guenther  <rguenther@suse.de>
7602
7603         * trans.c (maybe_stabilize_reference): Remove handling of
7604         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
7605
7606 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
7607
7608         PR ada/29707
7609         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
7610         (To_Target_Priority): New function.
7611
7612 2006-10-31  Robert Dewar  <dewar@adacore.com>
7613
7614         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
7615         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
7616         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
7617         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
7618         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
7619         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
7620         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
7621         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
7622         a-szbzha.adb: Minor reformatting. Fix header.
7623
7624         * a-numaux-x86.adb: Add parentheses for use of unary minus
7625         * a-ngcefu.adb: Supply missing parentheses for unary minus
7626         * a-ngcoty.adb: Add parens for use of unary minus
7627         * a-ngelfu.adb: Add missing parens for unary minus
7628         * a-tifiio.adb: Add parentheses for uses of unary minus
7629
7630 2006-10-31  Robert Dewar  <dewar@adacore.com>
7631             Bob Duff  <duff@adacore.com>
7632             Ed Schonberg  <schonberg@adacore.com>
7633
7634         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
7635         with multiplying operator.
7636         (Expected_Type_Is_Any_Real): New function to determine from the Parent
7637         pointer whether the context expects "any real type".
7638         (Resolve_Arithmetic_Op): Do not give an error on calls to the
7639         universal_fixed "*" and "/" operators when they are used in a context
7640         that expects any real type. Also set the type of the node to
7641         Universal_Real in this case, because downstream processing requires it
7642         (mainly static expression evaluation).
7643         Reword some continuation messages
7644         Add some \\ sequences to continuation messages
7645         (Resolve_Call): Refine infinite recursion case. The test has been
7646         sharpened to eliminate some false positives.
7647         Check for Current_Task usage now includes entry barrier, and is now a
7648         warning, not an error.
7649         (Resolve): If the call is ambiguous, indicate whether an interpretation
7650         is an inherited operation.
7651         (Check_Aggr): When resolving aggregates, skip associations with a box,
7652         which are priori correct, and will be replaced by an actual default
7653         expression in the course of expansion.
7654         (Resolve_Type_Conversion): Add missing support for conversion from
7655         a class-wide interface to a tagged type. Minor code cleanup.
7656         (Valid_Tagged_Converion): Add support for abstact interface type
7657         conversions.
7658         (Resolve_Selected_Component): Call Generate_Reference here rather than
7659         during analysis, and use May_Be_Lvalue to distinguish read/write.
7660         (Valid_Array_Conversion): New procedure, abstracted from
7661         Valid_Conversion, to incorporate accessibility checks for arrays of
7662         anonymous access types.
7663         (Valid_Conversion): For a conversion to a numeric type occurring in an
7664         instance or inlined body, no need to check that the operand type is
7665         numeric, since this has been checked during analysis of the template.
7666         Remove legacy test for scope name Unchecked_Conversion.
7667
7668         * sem_res.ads: Minor reformatting
7669
7670         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
7671         (PE_Current_Task_In_Entry_Body): New exception code
7672         (SE_Restriction_Violation): Removed, not used
7673
7674         * a-except.ads:  Update comments.
7675
7676         * types.h, types.ads: Add definition for Validity_Check
7677         (PE_Current_Task_In_Entry_Body): New exception code
7678         (SE_Restriction_Violation): Removed, not used
7679
7680 2006-10-31  Thomas Quinot  <quinot@adacore.com>
7681
7682         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
7683         error status.
7684
7685 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
7686             Jose Ruiz  <ruiz@adacore.com>
7687
7688         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
7689         part of Ada.Calendar: all subprogram raise Unimplemented.
7690         (Split_W_Offset): Temp function body, raising Unimplemented
7691
7692         * a-calend.ads, a-calend-vms.ads: 
7693         Add imported variable Invalid_TZ_Offset used to designate targets unable
7694         to support time zones.
7695         (Unimplemented): Temporary function raised by the body of new
7696         subprograms below.
7697         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
7698         unit provides handling of leap seconds and is used by the new Ada 2005
7699         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
7700         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
7701         version returns an extra value which is the offset to UTC.
7702
7703         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
7704         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
7705         (Split_W_Offset): New function body.
7706         (Time_Of): When a date is close to UNIX epoch, compute the time for
7707         that date plus one day (that amount is later substracted after
7708         executing mktime) so there are no problems with time zone adjustments.
7709
7710         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
7711
7712         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
7713         a-catizo.ads, a-catizo.adb: New files.
7714
7715         * impunit.adb: Add new Ada 2005 entries
7716
7717         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
7718         Rename all occurences of "__gnat_localtime_r" to
7719         "__gnat_localtime_tzoff".
7720         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
7721         zone data and calculate the GMT offset.
7722         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
7723         Use the field "tm_gmtoff" to extract the GMT offset.
7724         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
7725         the external variable "timezone" to calculate the GMT offset.
7726
7727 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
7728             Jose Ruiz  <ruiz@adacore.com>
7729
7730         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
7731         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
7732         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
7733         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
7734         System.Any_Priority to a POSIX priority on the target.
7735
7736         * system-linux-ia64.ads: 
7737         Extend range of Priority types on Linux to use the whole range made
7738         available by the system.
7739
7740         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
7741         function maps from System.Any_Priority to a POSIX priority on the
7742         target.
7743         (PTHREAD_PRIO_PROTECT): Set real value.
7744         (PTHREAD_PRIO_INHERIT): Now a function.
7745         (SIGCPUFAIL): New signal.
7746         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
7747         are documented as reserved by the OS.
7748
7749         * system-aix.ads: Use the full range of priorities provided by the
7750         system on AIX.
7751
7752         * s-taprop-posix.adb: Call new function To_Target_Priority.
7753         (Set_Priority): Take into account Task_Dispatching_Policy and
7754         Priority_Specific_Dispatching pragmas when determining if Round Robin
7755         must be used for scheduling the task.
7756
7757         * system-linux-x86_64.ads, system-linux-x86.ads, 
7758         system-linux-ppc.ads: Extend range of Priority types on Linux to use
7759         the whole range made available by the system.
7760
7761         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
7762         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
7763         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
7764         when deallocating the TCB in order to avoid potential references to
7765         deallocated data.
7766         (Set_Priority): Take into account Task_Dispatching_Policy and
7767         Priority_Specific_Dispatching pragmas when determining if Round Robin
7768         or FIFO within priorities must be used for scheduling the task.
7769
7770         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7771         the Thread field (to be used internally by the run-time system) and the
7772         kernel-level task id in the LWP field (to be used by the debugger).
7773         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7774         instance, and propagate the current task options to the spawned task.
7775         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7776         (Initialize): Set Round Robin dispatching when the corresponding pragma
7777         is in effect.
7778
7779 2006-10-31  Robert Dewar  <dewar@adacore.com>
7780
7781         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
7782         system-linux-hppa.ads, system-hpux-ia64.ads, 
7783         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
7784         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7785         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
7786         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
7787         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
7788         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
7789         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
7790         Default_Bit_Order) to kill constant condition warnings for references
7791         to this switch.
7792
7793 2006-10-31  Vincent Celier  <celier@adacore.com>
7794             Eric Botcazou  <ebotcazou@adacore.com>
7795
7796         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
7797         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
7798         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
7799         Ext_To, when building the library file name
7800
7801         * mlib-tgt-vxworks.adb: ditto.
7802         (Get_Target_Suffix): Add support for x86 targets.
7803
7804         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
7805
7806         * mlib-tgt-darwin.adb: 
7807         Use Append_To, instead of Ext_To, when building the library file name
7808         (Flat_Namespace): New global variable.
7809         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
7810         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
7811         (Link_Shared_Libgcc): Delete.
7812         (Build_Dynamic_Library): Adjust for above changes.
7813         Use Opt package.
7814         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
7815
7816 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
7817
7818         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
7819         (Initialize): Add type conversions required by above change.
7820
7821 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
7822
7823         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
7824         (getpid): New body for this function that uses the underlying taskIdSelf
7825         function for VxWorks 5 and VxWorks 6 in kernel mode.
7826         (unsigned_int): New type, modular to allow logical bit operations.
7827         (taskOptionsGet): New imported function.
7828
7829         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
7830         field to be compliant with the type used by the corresponding operating
7831         system primitive.
7832
7833 2006-10-31  Pascal Obry  <obry@adacore.com>
7834             Eric Botcazou  <ebotcazou@adacore.com>
7835             Vincent Celier  <celier@adacore.com>
7836
7837         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
7838         ASCII version of the registry API. This is needed as the GNAT runtime
7839         is now UNICODE by default.
7840         Include version.h.
7841         (get_gcc_version): Do not hardcode the return value.
7842         (__gnat_file_time_name): On Windows properly set the default returned
7843         value to -1 which corresponds to Invalid_Time.
7844         (__gnat_fopen): New routine. A simple wrapper on all plateforms
7845          except on Windows where it does conversion for unicode support.
7846         (__gnat_freopen): Idem.
7847         (__gnat_locate_exec_on_path): If environment variable PATH does not
7848         exist, return a NULL pointer
7849
7850         * adaint.h: (__gnat_fopen): Declare.
7851         (__gnat_freopen): Likewise.
7852
7853         * mingw32.h (_tfreopen): Define this macro here for older MingW
7854         version.
7855         Activate the unicode support on platforms using a MingW runtime
7856         version 3.9 or newer.
7857
7858         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
7859         This is needed for proper unicode support on Windows.
7860         (freopen): Idem.
7861
7862 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
7863             Nicolas Setton  <setton@adacore.com>
7864             Olivier Hainque  <hainque@adacore.com>
7865             Gary Dismukes  <dismukes@adacore.com>
7866
7867         * gigi.h: (tree_code_for_record_type): Declare.
7868         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
7869         (get_global_renaming_pointers): Rename to
7870         invalidate_global_renaming_pointers.
7871         (static_ctors): Delete.
7872         (static_dtors): Likewise.
7873         (gnat_write_global_declarations): Declare.
7874         (create_var_decl): Adjust descriptive comment to indicate that the
7875         subprogram may return a CONST_DECL node.
7876         (create_true_var_decl): Declare new function, similar to
7877         create_var_decl but forcing the creation of a VAR_DECL node.
7878         (get_global_renaming_pointers): Declare.
7879         (add_global_renaming_pointer): Likewise.
7880
7881         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
7882
7883         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
7884         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
7885         processing.
7886         (gnat_to_gnu_entity): Remove From_With_Type from computation for
7887         imported_p.
7888         <E_Access_Type>: Use the Non_Limited_View as the full view of the
7889         designated type if the pointer comes from a limited_with clause.  Make
7890         incomplete designated type if it is in the main unit and has a freeze
7891         node.
7892         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
7893         Underlying_Full_View similarly.  Return earlier if the full view already
7894         has an associated tree.
7895         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
7896         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
7897         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
7898         reference type built for objects with an address clause.
7899         Use create_true_var_decl with const_flag set for
7900         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
7901         TREE_READONLY set.
7902         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
7903         for Character and Wide_Character types. This info is read by the
7904         dwarf-2 writer, and is needed to be able to use the command "ptype
7905         character" in the debugger.
7906         (gnat_to_gnu_entity): When generating a type representing
7907         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
7908         so that debug writers can distinguish it from ordinary integers.
7909         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
7910         addition to TREE_READONLY to assert the constantness of variables for
7911         elaboration purposes.
7912         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
7913         parameters to call new Einfo function First_Formal_With_Extras.
7914         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
7915         protected type with its corresponding discriminant, to obtain a usable
7916         declaration
7917         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
7918         for a multiple elaboration of the "equivalent" type.
7919         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
7920         into record_global_renaming_pointer.
7921         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
7922         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
7923         <E_Array_Subtype>: Likewise.
7924         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
7925         incomplete subtypes and incomplete subtypes of incomplete types visible
7926         through a limited with clause.
7927         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
7928         the base index type for the maximum size of the array only if they are
7929         constant.
7930         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
7931         expression into a SAVE_EXPR if stabilization failed.
7932
7933         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
7934         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
7935         by lower level compilation passes.
7936         (gnat_genericize): New function, lowering a function body to GENERIC.
7937         Turn the type of RESULT_DECL into a real reference type if the decl
7938         has been marked DECL_BY_REFERENCE, and adjust references to the latter
7939         accordingly.
7940         (gnat_genericize_r): New function. Tree walking callback for
7941         gnat_genericize.
7942         (convert_from_reference, is_byref_result): New functions. Helpers for
7943         gnat_genericize_r.
7944         (create_type_decl): Call gnat_pushdecl before calling
7945         rest_of_decl_compilation, to make sure that field TYPE_NAME of
7946         type_decl is properly set before calling the debug information writers.
7947         (write_record_type_debug_info): The heuristics which compute the
7948         alignment of a field in a variant record might not be accurate. Add a
7949         safety test to make sure no alignment is set to a smaller value than
7950         the alignment of the field type.
7951         (make_dummy_type): Use the Non_Limited_View as the underlying type if
7952         the type comes from a limited_with clause. Do not loop on the full view.
7953         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
7954         (dummy_node_table): New global variable, moved from decl.c.
7955         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
7956         (save_gnu_tree): Use above macros.
7957         (get_gnu_tree): Likewise.
7958         (present_gnu_tree): Likewise.
7959         (init_dummy_type): New function, moved from decl.c. Use above macros.
7960         (make_dummy_type): Likewise.
7961         (tree_code_for_record_type): New function extracted from make_dummy_type
7962         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
7963         (static_ctors): Change it to a vector, make static.
7964         (static_dtors): Likewise.
7965         (end_subprog_body): Adjust for above change.
7966         (build_global_cdtor): Moved from trans.c.
7967         (gnat_write_global_declarations): Emit global constructor and
7968         destructor, and call cgraph_optimize before emitting debug info for
7969         global declarations.
7970         (global_decls): New global variable.
7971         (gnat_pushdecl): Store the global declarations in global_decls, for
7972         later use.
7973         (gnat_write_global_declarations): Emit debug information for global
7974          declarations.
7975         (create_var_decl_1): Former create_var_decl, with an extra argument to
7976          state whether the creation of a CONST_DECL is allowed.
7977         (create_var_decl): Behavior unchanged. Now a wrapper around
7978         create_var_decl_1 allowing CONST_DECL creation.
7979         (create_true_var_decl): New function, similar to create_var_decl but
7980         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
7981         (create_field_decl): Do not always mark the field as addressable
7982         if its type is an aggregate.
7983         (global_renaming_pointers): New static variable.
7984         (add_global_renaming_pointer): New function.
7985         (get_global_renaming_pointers): Likewise.
7986
7987         * misc.c (gnat_dwarf_name): New function.
7988         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
7989         (gnat_post_options): Add comment about structural alias analysis.
7990         (gnat_parse_file): Do not call cgraph_optimize here.
7991         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
7992
7993         * trans.c (process_freeze_entity): Don't abort if we already have a
7994         non dummy GCC tree for a Concurrent_Record_Type, as it might
7995         legitimately have been elaborated while processing the associated
7996         Concurrent_Type prior to this explicit freeze node.
7997         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
7998         exception handler volatile if it is of variable size.
7999         (process_type): Remove bypass for types coming from a limited_with
8000         clause.
8001         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
8002         actual, convert the corresponding gnu_actual to the real destination
8003         type when necessary.
8004         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
8005         originally TREE_READONLY but whose elaboration cannot be performed
8006         statically.
8007         Part of fix for F504-021.
8008         (tree_transform, subprogram cases): Change loops on formal parameters to
8009         call new Einfo function First_Formal_With_Extras.
8010         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
8011         stemming from type conversion for the lhs.
8012         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
8013         number of bits per unit for components of records.
8014         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
8015         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
8016         with At_End_Proc after the SJLJ EH cleanup.
8017         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
8018         compilation unit.
8019         (elaborate_all_entities): Do not retest type_annotate_only.
8020         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
8021         result type of an abstract subprogram, which may be an itype associated
8022         with an anonymous access result (related to AI-318-02).
8023         (build_global_cdtor): Move to utils.c.
8024         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
8025         this choice is not a null tree nor an integer constant.
8026         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
8027         on the body of elaboration routines instead of mark_unvisited.
8028         (add_stmt): Do not mark the tree.
8029         (add_decl_expr): Tweak comment.
8030         (mark_unvisited): Delete.
8031         (unshare_save_expr): New static function.
8032         (call_to_gnu): Issue an error when making a temporary around a
8033         procedure call because of non-addressable actual parameter if the
8034         type of the formal is by_reference.
8035         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
8036         after building the elaboration routine.
8037
8038 2006-10-31  Bob Duff  <duff@adacore.com>
8039
8040         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
8041         as finalization-started, so we can raise Program_Error on 'new'.
8042
8043         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
8044         collection has already started.
8045
8046         * s-finimp.ads (Collection_Finalization_Started): Added new special
8047         flag value for indicating that a collection's finalization has started.
8048
8049         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
8050         create a task whose master has already waited for dependent tasks.
8051
8052 2006-10-31  Robert Dewar  <dewar@adacore.com>
8053
8054         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
8055
8056         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
8057         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
8058         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
8059         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
8060         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
8061         a-except-2005.ads: Add pragma Preelaborable_Warning
8062
8063 2006-10-31  Robert Dewar  <dewar@adacore.com>
8064             Jose Ruiz  <ruiz@adacore.com>
8065
8066         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
8067
8068         * ali.adb (Get_Name): Properly handle scanning of wide character names
8069         encoded with brackets notation.
8070         (Known_ALI_Lines): Add S lines to this list.
8071         (Scan_ALI): Acquire S (priority specific dispatching) lines.
8072         New flag Elaborate_All_Desirable in unit table
8073
8074         * ali.ads (Priority_Specific_Dispatching): Add this range of
8075         identifiers to be used for Priority_Specific_Dispatching table entries.
8076         (ALIs_Record): Add First_Specific_Dispatching and
8077         Last_Specific_Dispatching that point to the first and last entries
8078         respectively in the priority specific dispatching table for this unit.
8079         (Specific_Dispatching): Add this table for storing each S (priority
8080         specific dispatching) line encountered in the input ALI file.
8081         New flag Elaborate_All_Desirable in unit table
8082
8083         * bcheck.adb: (Check_Configuration_Consistency): Add call to
8084         Check_Consistent_Dispatching_Policy.
8085         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
8086         verifying that the use of Priority_Specific_Dispatching,
8087         Task_Dispatching_Policy, and Locking_Policy is consistent across the
8088         partition.
8089
8090         * bindgen.adb: (Public_Version_Warning): function removed.
8091         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
8092         required information from ALI files in order to initialize the table
8093         containing the specific dispatching policy.
8094         (Gen_Adainit_Ada): Generate the variables required for priority specific
8095         dispatching entries (__gl_priority_specific_dispatching and
8096         __gl_num_specific_dispatching).
8097         (Gen_Adainit_C): Generate the variables required for priority specific
8098         dispatching entries (__gl_priority_specific_dispatching and
8099         __gl_num_specific_dispatching).
8100         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
8101         pragma entries.
8102         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
8103         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
8104         (Tab_To): Removed.
8105         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
8106         a call to gnat_set_globals.
8107         Generate a string containing settings from
8108         Priority_Specific_Dispatching pragma entries.
8109         (Gen_Object_Files_Options): Do not include the runtime libraries when
8110         pragma No_Run_Time is specified.
8111
8112         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
8113         consistency with s-intman-posix.adb.
8114         (__gnat_error_handler, case FreeBSD): Account for the fact that the
8115         handler is installed with SA_SIGINFO.
8116         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
8117         FreeBSD ZCX support, copied from Linux version.
8118         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
8119         sigfillset, and sigemptyset so the routines defined by MaRTE.
8120         (__gl_priority_specific_dispatching): Add this variable that stores the
8121         string containing priority specific dispatching policies in the
8122         partition.
8123         (__gl_num_specific_dispatching): Add this variable that indicates the
8124         highest priority for which a priority specific dispatching pragma
8125         applies.
8126         (__gnat_get_specific_dispatching): Add this routine that returns the
8127         priority specific dispatching policy, as set by a
8128         Priority_Specific_Dispatching pragma appearing anywhere in the current
8129         partition. The input argument is the priority number, and the result
8130         is the upper case first character of the policy name.
8131         (__gnat_set_globals): Now a dummy function.
8132         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
8133         mechargs instead of sigargs, as the latter can be retrieved from the
8134         former and sigargs is not what we want on ia64.
8135         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
8136         mechargs argument.
8137         (__gnat_adjust_context_for_raise, ia64-vms): New function.
8138         (tasking_error): Remove unused symbol.
8139         (_abort_signal): Move this symbol to the IRIX specific part since this
8140         is the only target that uses this definition.
8141         (Check_Abort_Status): Move this symbol to the IRIX specific part since
8142         this is the only target that uses this definition.
8143         (Lock_Task): Remove unused symbol.
8144         (Unlock_Task): Remove unused symbol.
8145
8146         * lib-writ.adb (Write_ALI): Output new S lines for
8147         Priority_Specific_Dispatching pragmas.
8148         Implement new flag BD for elaborate body desirable
8149
8150         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
8151         (Specific_Dispatching): Add this table for storing the entries
8152         corresponding to Priority_Specific_Dispatching pragmas.
8153         Document new BD flag for elaborate body desirable
8154
8155         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
8156         of known pragmas.
8157
8158 2006-10-31  Javier Miranda  <miranda@adacore.com>
8159
8160         * a-tags.ads, a-tags.adb: 
8161         (Predefined_DT): New function that improves readability of the code.
8162         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
8163         Inherit_DT): Use the new function Predefined_DT to improve code
8164         readability.
8165         (Register_Interface_Tag): Update assertion.
8166         (Set_Interface_Table): Update assertion.
8167         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
8168         determining progenitor interfaces in Tags.
8169         (Inherit_CPP_DT): New subprogram.
8170
8171         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
8172         analysis of the thunk code.
8173         (Expand_Interface_Conversion): Handle run-time conversion of
8174         access to class wide types.
8175         (Expand_Dispatching_Call): When generating the profile for the
8176         subprogram itype for a dispatching operation, properly terminate the
8177         formal parameters chaind list (set the Next_Entity of the last formal
8178         to Empty).
8179         (Collect_All_Interfaces): Removed. This routine has been moved to
8180         sem_util and renamed as Collect_All_Abstract_Interfaces.
8181         (Set_All_DT_Position): Hidden entities associated with abstract
8182         interface primitives are not taken into account in the check for
8183         3.9.3(10); this check is done with the aliased entity.
8184         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
8185         interfacing with CPP by default.
8186         (Expand_Interface_Conversion): Add missing support for static conversion
8187         from an interface to a tagged type.
8188         (Collect_All_Interfaces): Add new out formal containing the list of
8189         abstract interface types to cleanup the subprogram Make_DT.
8190         (Make_DT): Update the code to generate the table of interfaces in case
8191         of abstract interface types.
8192         (Is_Predefined_Dispatching_Alias): New function that returns true if
8193         a primitive is not a predefined dispatching primitive but it is an
8194         alias of a predefined dispatching primitive.
8195         (Make_DT): If the ancestor of the type is a CPP_Class and we are
8196         compiling under full ABI compatibility mode we avoid the generation of
8197         calls to run-time services that fill the dispatch tables because under
8198         this mode we currently inherit the dispatch tables in the IP subprogram.
8199         (Write_DT): Emit an "is null" indication for a null procedure primitive.
8200         (Expand_Interface_Conversion): Use an address as the type of the formal
8201         of the internally built function that handles the case in which the
8202         target type is an access type.
8203
8204 2006-10-31  Robert Dewar  <dewar@adacore.com>
8205
8206         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
8207
8208 2006-10-31  Robert Dewar  <dewar@adacore.com>
8209
8210         * bindusg.ads, bindusg.adb:
8211         Change to package and rename procedure as Display, which
8212         now ensures that it only outputs usage information once.
8213
8214 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
8215
8216         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
8217         using RTPs.
8218
8219         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
8220         when using RTPs.
8221
8222 2006-10-31  Robert Dewar  <dewar@adacore.com>
8223             Ed Schonberg  <schonberg@adacore.com>
8224
8225         * treepr.adb: Use new subtype N_Membership_Test
8226
8227         * checks.ads, checks.adb: Add definition for Validity_Check
8228         (Range_Or_Validity_Checks_Suppressed): New function
8229         (Ensure_Valid): Test Validity_Check suppressed
8230         (Insert_Valid_Check): Test Validity_Check suppressed
8231         (Insert_Valid_Check): Preserve Do_Range_Check flag
8232         (Validity_Check_Range): New procedure
8233         (Expr_Known_Valid): Result of membership test is always valid
8234         (Selected_Range_Checks): Range checks cannot be applied to discriminants
8235         by themselves. Disabling those checks must also be done for task types,
8236         where discriminants may be used for the bounds of entry families.
8237         (Apply_Address_Clause_Check): Remove side-effects if address expression
8238         is non-static and is not the name of a declared constant.
8239         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
8240         Code cleanup and new error messages.
8241         (Enable_Range_Check): Test for some cases of suppressed checks
8242         (Generate_Index_Checks): Suppress index checks if index checks are
8243         suppressed for array object or array type.
8244         (Apply_Selected_Length_Checks): Give warning for compile-time detected
8245         length check failure, even if checks are off.
8246         (Ensure_Valid): Do not generate a check on an indexed component whose
8247         prefix is a packed boolean array.
8248         * checks.adb: (Alignment_Checks_Suppressed): New function
8249         (Apply_Address_Clause_Check): New procedure, this is a completely
8250         rewritten replacement for Apply_Alignment_Check
8251         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
8252         we request a discriminal value only in case of discriminants.
8253         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
8254         assignments where the target subtype is unconstrained and the target
8255         object is a parameter or dereference (other aliased cases are known
8256         to be unconstrained).
8257
8258 2006-10-31  Robert Dewar  <dewar@adacore.com>
8259
8260         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
8261         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
8262         vms_conv.adb: Fix bad table increment values (much too small)
8263
8264         * table.adb (Realloc): Make sure we get at least some new elements
8265         Defends against silly small values for table increment
8266
8267 2006-10-31  Robert Dewar  <dewar@adacore.com>
8268             Ed Schonberg  <schonberg@adacore.com>
8269             Bob Duff  <duff@adacore.com>
8270
8271         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
8272         entities. Move other fields around to make this possible
8273         (Is_Derived_Type): Add missing call to Is_Type.
8274         (Extra_Formals): New function for subprograms, entries, subprogram
8275         types.
8276         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
8277         (First_Formal_With_Extras): New function for subprogs, entries, subp
8278         types.
8279         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
8280         Add node information for E_Return_Statement.
8281         (Elaborate_Body_Desirable): New flag
8282         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
8283         to be Is_Inherently_Limited_Type, because return-by-reference has
8284         no meaning in Ada 2005.
8285         (E_Return_Statement): New entity kind.
8286         (Return_Applies_To): Field of E_Return_Statement.
8287         (Is_Return_Object): New flag in object entities.
8288         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
8289         (Must_Have_Preelab_Init): New flag
8290         (Known_To_Have_Preelab_Init): New flag
8291         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
8292         (Is_Visible_Formal): New flag on entities in formal packages.
8293         (Low_Bound_Known): New flag
8294         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
8295         Incomplete_Kind.
8296         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
8297         output when Id is an incomplete subtype.
8298
8299 2006-10-31  Robert Dewar  <dewar@adacore.com>
8300
8301         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
8302         Avoid abbreviation Creat
8303         (Finalize): List all sources in extended mail source if -gnatl
8304         switch is active.
8305         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
8306         (Finalize): Implement new -gnatl=xxx switch to output listing to file
8307         (Set_Specific_Warning_On): New procedure
8308         (Set_Specific_Warning_Off): New procedure
8309         Add implementation of new insertion \\
8310         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
8311         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
8312         types.
8313         (Error_Msg_Internal): Make sure that we set Last_Killed to
8314         True when a message from another package is suppressed.
8315         Implement insertion character ~ (insert string)
8316         (First_Node): Minor adjustments to get better placement.
8317
8318         * frontend.adb: 
8319         Implement new -gnatl=xxx switch to output listing to file
8320
8321         * gnat1drv.adb: 
8322         Implement new -gnatl=xxx switch to output listing to file
8323
8324         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
8325         (Commands_To_Stdout): New flag
8326         Implement new -gnatl=xxx switch to output listing to file
8327         New switch Dump_Source_Text
8328         (Warn_On_Deleted_Code): New warning flag for -gnatwt
8329         Define Error_Msg_Line_Length
8330         (Warn_On_Assumed_Low_Bound): New switch
8331
8332         * osint.ads, osint.adb
8333         (Normalize_Directory_Name): Fix bug.
8334         Implement new -gnatl=xxx switch to output listing to file
8335         (Concat): Removed, replaced by real concatenation
8336         Make use of concatenation now allowed in compiler
8337         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
8338         we find the 'lib' or 'bin' directory even when the tool has been
8339         invoked with a relative path.
8340         (Executable_Name): New function taking string parameters.
8341
8342         * osint-c.ads, osint-c.adb: 
8343         Implement new -gnatl=xxx switch to output listing to file
8344
8345         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
8346
8347         * switch-c.adb: 
8348         Implement new -gnatl=xxx switch to output listing to file
8349         Recognize new -gnatL switch
8350         (no longer keep in old warning about old style usage)
8351         Use concatenation to simplify code
8352         Recognize -gnatjnn switch
8353         (Scan_Front_End_Switches): Clean up handling of -gnatW
8354         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
8355
8356 2006-10-31  Robert Dewar  <dewar@adacore.com>
8357
8358         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
8359         (Set_Specific_Warning_Off): New procedure
8360         (Warning_Specifically_Suppressed): New function
8361         (Validate_Specific_Warnings): New procedure
8362         (Output_Msg_Text): Complete rewrite to support -gnatjnn
8363
8364         * err_vars.ads: Implement insertion character ~ (insert string)
8365
8366 2006-10-31  Bob Duff  <duff@adacore.com>
8367             Ed Schonberg  <schonberg@adacore.com>
8368
8369         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
8370         the parent part is a build-in-place function call, generate assignments.
8371         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
8372         are build-in-place function calls.
8373         (Replace_Self_Reference): New subsidiary of
8374         Make_OK_Assignment_Statement, to replace an access attribute that is a
8375         self-reference into an access to the appropriate component of the
8376         target object. Generalizes previous mechanism to handle self-references
8377         nested at any level.
8378         (Is_Self_Referential_Init): Remove, not needed.
8379         (Is_Self_Referential_Init): New predicate to simplify handling of self
8380         referential components in record aggregates.
8381         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
8382         check for presence of entity before checking for self-reference.
8383         (Has_Default_Init_Comps): Return True if a component association is a
8384         self-reference to the enclosing type, which can only come from a
8385         default initialization.
8386         (Make_OK_Assignment_Statement): If the expression is of the form
8387         Typ'Acc, where Acc is an access attribute, the expression comes from a
8388         default initialized self-referential component.
8389         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
8390         that has been derived from several abstract interfaces we must also
8391         initialize the tags of the secondary dispatch tables.
8392
8393 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
8394             Thomas Quinot  <quinot@adacore.com>
8395             Javier Miranda  <miranda@adacore.com>
8396             Robert Dewar  <dewar@adacore.com>
8397
8398         * exp_attr.adb: 
8399         (Expand_Access_To_Protected_Op): If the context indicates that an access
8400         to a local operation may be transfered outside of the object, create an
8401         access to the wrapper operation that must be used in an external call.
8402         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
8403         target, pass the Valid attribute applied to a floating-point prefix on
8404         to the back end without expansion.
8405         (Storage_Size): Use the new run-time function Storage_Size to retrieve
8406         the allocated storage when it is specified by a per-object expression.
8407         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
8408         Nothing to do here, the attribute has been rewritten during semantic
8409         analysis.
8410         (Expand_Attribute_Reference): Handle expansion of the new Priority
8411         attribute
8412         (Find_Fat_Info): Handle case of universal real
8413         (Expand_Access_To_Protected_Op): Fix use of access to protected
8414         subprogram from inside the body of a protected entry.
8415         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
8416         'Access and 'Unrestricted_Access, to transform the attribute reference
8417         into a fat pointer.
8418         (Is_Constrained_Aliased_View): New predicate to help determine whether a
8419         subcomponent's enclosing variable is aliased with a constrained subtype.
8420         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
8421         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
8422         an aliased prefix must be known to be constrained in order to use True
8423         for the attribute value, and now it's possible for some aliased views
8424         to be unconstrained.
8425
8426 2006-10-31  Robert Dewar  <dewar@adacore.com>
8427
8428         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
8429         (Expand_Entity_Reference): Correct error of not handling subprogram
8430         formals in current_value processing.
8431
8432 2006-10-31  Javier Miranda  <miranda@adacore.com>
8433             Robert Dewar  <dewar@adacore.com>
8434             Ed Schonberg  <schonberg@adacore.com>
8435             Gary Dismukes  <dismukes@adacore.com>
8436
8437         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
8438         register in the final list objects containing class-wide interfaces;
8439         otherwise we incorrectly register the tag of the interface in the final
8440         list.
8441         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
8442         generate the wrapper if the parent primitive is abstract. This is
8443         required to report the correct error message.
8444         (Expand_N_Subtype_Indication): Do validity checks on range
8445         (Clean_Task_Names): If an initialization procedure includes a call to
8446         initialize a task (sub)component, indicate that the procedure will use
8447         the secondary stack.
8448         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
8449         compatibility for interfacing with CPP by default.
8450         (Expand_N_Object_Declaration): Only build an Adjust call when the
8451         object's type is a nonlimited controlled type.
8452         * exp_ch3.adb: Add with and use of Exp_Ch6.
8453         (Expand_N_Object_Declaration): Check for object initialization that is a
8454         call to build-in-place function and apply Make_Build_In_Place_Call_In_
8455         Object_Declaration to the call.
8456         (Freeze_Type): When the designated type of an RACW was not frozen at the
8457         point where the RACW was declared, validate the primitive operations
8458         with respect to E.2.2(14) when it finally is frozen.
8459         (Build_Initialization_Call,Expand_Record_Controller): Rename
8460         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
8461         return-by-reference has no meaning in Ada 2005.
8462         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
8463         to register tag of the immediate ancestor interfaces in the
8464         run-time structure.
8465         (Init_Secondary_Tags): Moved to the specification to allow the
8466         initialization of extension aggregates with abstract interfaces.
8467         (Build_Master_Renaming): Make public, for use by function declarations
8468         whose return type is an anonymous access type.
8469         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
8470         Insert_List_Before_And_Analyze after the generation of the specs
8471         associated with null procedures.
8472         (Expand_Tagged_Root): Update documentation in its specification.
8473         (Init_Secondary_Tags): Update documentation.
8474         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
8475         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
8476         then generate code to inherit the contents of the dispatch table
8477         directly from the ancestor.
8478         (Expand_Record_Controller): Insert controller component after tags of
8479         implemented interfaces.
8480         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
8481         create null procedure overridings when null procedures are inherited
8482         from interfaces.
8483         (Make_Null_Procedure_Specs): New procedure to generate null procedure
8484         declarations for overriding null primitives inherited from interfaces.
8485         (Is_Null_Interface_Procedure): New function in
8486         Make_Null_Procedure_Specs.
8487         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
8488         immediate ancestor of a tagged type is an abstract interface type we
8489         must generate the specification of the predefined primitives associated
8490         with controlled types (because the dispatch table of the ancestor is
8491         null and hence these entries cannot be inherited). This is required to
8492         elaborate well the dispatch table.
8493
8494 2006-10-31  Javier Miranda  <miranda@adacore.com>
8495             Ed Schonberg  <schonberg@adacore.com>
8496             Bob Duff  <duff@adacore.com>
8497             Gary Dismukes  <dismukes@adacore.com>
8498             Robert Dewar  <dewar@adacore.com>
8499
8500         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
8501         conversion.
8502         (Expand_N_In): Do validity checks on range
8503         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
8504         (Expand_N_Allocator): For "new T", if the object is constrained by
8505         discriminant defaults, allocate the right amount of memory, rather than
8506         the maximum for type T.
8507         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
8508         when the allocator is initialized by a build-in-place call, since the
8509         allocator is already rewritten as a reference to the function result,
8510         and this prevents an unwanted duplication of the function call.
8511         Add with and use of Exp_Ch6.
8512         (Expand_Allocator_Expresssion): Check for an allocator whose expression
8513         is a call to build-in-place function and apply
8514         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
8515         untagged designated types).
8516         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
8517         optimization if source or target is biased.
8518         (Expand_N_Allocator): Add comments for case of an allocator within a
8519         function that returns an anonymous access type designating tasks.
8520         (Expand_N_Allocator): apply discriminant checks for access
8521         discriminants of anonymous access types (AI-402, AI-416)
8522
8523 2006-10-31  Bob Duff  <duff@adacore.com>
8524             Robert Dewar  <dewar@adacore.com>
8525             Gary Dismukes  <dismukes@adacore.com>
8526             Ed Schonberg  <schonberg@adacore.com>
8527
8528         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
8529
8530         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
8531         (Expand_N_Assignment_Statement): Call
8532         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
8533         build-in-place function call. Currently, this can happen only for
8534         assignments that come from aggregates.
8535         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8536         in order to alleviate the upward compatibility introduced by AI-318.
8537         (Expand_N_Extended_Return_Statement): Add support for handling the
8538         return object as a build-in-place result.
8539         (Expand_Non_Function_Return): Implement simple return statements nested
8540         within an extended return.
8541         (Enable_New_Return_Processing): Turn on the new processing of return
8542         statements.
8543         (Expand_Non_Function_Return): For a return within an extended return,
8544         don't raise Program_Error, because Sem_Ch6 now gives a warning.
8545         (Expand_N_Extended_Return_Statement): Implement AI-318
8546         (Expand_Simple_Function_Return): Ditto.
8547         (Expand_N_If_Statement): Handle new -gnatwt warning
8548         (Expand_N_Case_Statement): Handle new -gnatwt warning
8549         (Expand_N_Assignment): Handle assignment to the Priority attribute of
8550         a protected object.
8551         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
8552         validity checking of assignments to elementary record components.
8553         (Expand_N_Return_Statement): return Class Wide types on the secondary
8554         stack independantly of their controlled status since with HIE runtimes,
8555         class wide types are not potentially controlled anymore.
8556
8557         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
8558         node kind.
8559
8560         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
8561         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
8562         it expects a block, procedure, or task. The return statement will get
8563         turned into a block, and Expand_Cleanup_Actions will happen then.
8564
8565 2006-10-31  Robert Dewar  <dewar@adacore.com>
8566             Ed Schonberg  <schonberg@adacore.com>
8567             Bob Duff  <duff@adacore.com>
8568             Gary Dismukes  <dismukes@adacore.com>
8569
8570         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
8571         capability.
8572         (Expand_Inlined_Call): Tagged types are by-reference types, and
8573         therefore should be replaced by a renaming declaration in the expanded
8574         body, as is done for limited types.
8575         (Expand_Call): If this is a call to a function with dispatching access
8576         result, propagate tag from context.
8577         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
8578         CPP by default.
8579         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
8580         build-in-place when the right-hand side of an assignment is a
8581         build-in-place function call.
8582         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
8583         of the explicit dereference of the allocator to the result subtype of
8584         the build-in-place function. This is needed to satisfy type checking
8585         in cases where the caller's return object is created by an allocator for
8586         a class-wide access type and the type named in the allocator is a
8587         specific type.
8588         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
8589         conversion of the reference to the declared object to the result subtype
8590         of the build-in-place function. This is needed to satisfy type checking
8591         in cases where the declared object has a class-wide type. Also, in the
8592         class-wide case, change the type of the object entity to the specific
8593         result subtype of the function, to avoid passing a class-wide object
8594         without explicit initialization to the back end.
8595         (Register_Interface_DT_Entry): Moved outside the body of
8596         Freeze_Subprogram because this routine is now public; it is called from
8597         Check_Dispatching_Overriding to handle late overriding of abstract
8598         interface primitives.
8599         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
8600         adding an implicit access actual on a call to a build-in-place function.
8601         (Expand_Actuals): Test for an actual parameter that is a call to a
8602         build-in-place function and apply
8603         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
8604         (Is_Build_In_Place_Function): New function to determine whether an
8605         entity is a function whose calls should be handled as build-in-place.
8606         (Is_Build_In_Place_Function_Call): New function to determine whether an
8607         expression is a function call that should handled as build-in-place.
8608         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
8609         calls to build-in-place functions as the initialization of an allocator.
8610         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
8611         handling calls to build-in-place functions in contexts that do not
8612         involve init of a separate object (for example, actuals of subprogram
8613         calls).
8614         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
8615         handling calls to build-in-place functions as the initialization of an
8616         object declaration.
8617         (Detect_Infinite_Recursion): Add explicit parameter Process to
8618         instantiation of Traverse_Body to avoid unreferenced warning.
8619         (Check_Overriding_Inherited_Interfaces): Removed.
8620         (Register_Interface_DT_Entry): Code cleanup.
8621         (Register_Predefined_DT_Entry): Code cleanup.
8622         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
8623         inlined statements if within a transient scope.
8624         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
8625         formal parameters with occurrences of actuals in inlined body, establish
8626         visibility on the proper view of the actual's subtype for the body's
8627         context.
8628         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
8629         compatibility mode and we have an imported CPP subprogram because
8630         for now we assume that imported CPP primitives correspond with
8631         objects whose constructor is in the CPP side (and therefore we
8632         don't need to generate code to register them in the dispatch table).
8633         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
8634         aligned selected component.
8635         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
8636         the actual of an in-mode parameter is a type conversion.
8637         (Expand_Actuals): If the call does not come from source and the actual
8638         is potentially misaligned, let gigi handle it rather than rejecting the
8639         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
8640         Class Wide types as returning by reference independantly of their
8641         controlled status since with HIE runtimes class wide types are not
8642         potentially controlled anymore.
8643
8644 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
8645
8646         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
8647         references that are private components of the protected object.
8648         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
8649         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
8650         instantiation to deal with warnings.
8651         (Initialize_Protection): If expression for priority is non-static, use
8652         System_Priority as its expected type, in case the expression has not
8653         been analyzed yet.
8654
8655 2006-10-31  Robert Dewar  <dewar@adacore.com>
8656
8657         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
8658         initialization of Homonym_Len.
8659         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
8660         names from fully qualified name. Fixes problem of duplicate
8661         external names differing only in the presence of such a block name.
8662
8663 2006-10-31  Thomas Quinot  <quinot@adacore.com>
8664             Pablo Oliveira  <oliveira@adacore.com>
8665
8666         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
8667         subprogram Ids, even if they are not yet assigned.
8668         (Build_Subprogram_Id): It is now this function that will take care of
8669         calling Assign_Subprogram_Ids if necessary.
8670         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
8671         should be done only once they are assigned.
8672         (Build_From_Any_Function, case of tagged types): Add missing call to
8673         Allocate_Buffer.
8674         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
8675         type for an RACW type.
8676         (Add_RACW_Features): When processing an RACW declaration for which the
8677         designated type is already frozen, enforce E.2.2(14) rules immediately.
8678         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
8679         special reordering of controlling formals.
8680
8681         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
8682         associated stub type for an RACW type.
8683
8684 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
8685
8686         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
8687         fixed-point operations in an integer context, i.e. as operands of a
8688         conversion to an integer type, indicate that result must be rounded.
8689
8690 2006-10-31  Robert Dewar  <dewar@adacore.com>
8691
8692         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
8693         cases, pass the encoding method, since it is now required by the run
8694         time.
8695
8696         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
8697         assumption that Str'First = 1.
8698         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
8699         it on to the Value_Wide_Wide_Character call.
8700         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
8701         properly handles a string of the form quote-encoded_wide_char-quote.
8702
8703         * s-wchcnv.adb: Minor reformatting
8704
8705 2006-10-31  Javier Miranda  <miranda@adacore.com>
8706
8707         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8708         run-time membership test to ensure that the constructed object
8709         implements the target abstract interface.
8710
8711 2006-10-31  Robert Dewar  <dewar@adacore.com>
8712
8713         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
8714         Machine_Attribute pragma internally to implement the user pragma.
8715         Add processing for pragma Interface so that it is now completely
8716         equivalent to pragma Import.
8717
8718         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
8719         so that it can be applied to all entities, including record components
8720         and enumeration literals.
8721         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
8722         priority ranges are correct, verify compatibility against task
8723         dispatching and locking policies, and if everything is correct an entry
8724         is added to the table containing priority specific dispatching entries
8725         for this compilation unit.
8726         (Delay_Config_Pragma_Analyze): Delay processing
8727         Priority_Specific_Dispatching pragmas because when processing the
8728         pragma we need to access run-time data, such as the range of
8729         System.Any_Priority.
8730         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
8731         Allow pragma Unreferenced as a context item
8732         Add pragma Preelaborable_Initialization
8733         (Analyze_Pragma, case Interface): Interface is extended so that it is
8734         now syntactically and semantically equivalent to Import.
8735         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
8736         insertion characters.
8737         Add handling for Pragma_Wide_Character_Encoding
8738         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
8739         never supercedes a real restriction, and that a real restriction
8740         always supercedes a warning.
8741         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
8742         appropriate form.
8743
8744 2006-10-31  Bob Duff  <duff@adacore.com>
8745             Ed Schonberg  <schonberg@adacore.com>
8746             Robert Dewar  <dewar@adacore.com>
8747
8748         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
8749         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
8750         Is_Inherently_Limited_Type, because return-by-reference has no meaning
8751         in Ada 2005.
8752         (Find_Node_To_Be_Wrapped): Use new method of determining the result
8753         type of the function containing a return statement, because the
8754         Return_Type field was removed. We now use the Return_Applies_To field.
8755
8756         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
8757         (Build_Task_Image_Decl): If procedure is not called from an
8758         initialization procedure, indicate that function that builds task name
8759         uses the sec. stack. Otherwise the enclosing initialization procedure
8760         will carry the indication.
8761         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
8762         N_Object_Declaration instead.
8763         (Kill_Dead_Code): New interface to implement -gnatwt warning for
8764         conditional dead code killed, and change implementation accordingly.
8765         (Insert_Actions): Add N_Return_Object_Declaration case.
8766         Correct comment to mention N_Extension_Aggregate node.
8767         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
8768         attempts to save information for global variables which cannot be
8769         safely tracked.
8770         (Get_Current_Value_Condition): Handle conditions the other way round
8771         (constant on left). Also handle right operand of AND and AND THEN
8772         (Set_Current_Value_Condition): Corresponding changes
8773         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8774         (Get_Current_Value_Condition): Handle simple boolean operands
8775         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8776         (Get_Current_Value_Condition): If the variable reference is within an
8777         if-statement, does not appear in the list of then_statments, and does
8778         not come from source, treat it as being at unknown location.
8779         (Get_Current_Value_Condition): Enhance to allow while statements to be
8780         processed as well as if statements.
8781         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
8782         come from source.
8783         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
8784         of loop. This is safe now that we fixed Kill_Current_Values.
8785         (OK_To_Do_Constant_Replacement): Check whether current scope is
8786         Standard, before examining outer scopes.
8787
8788 2006-10-31  Vincent Celier  <celier@adacore.com>
8789
8790         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
8791         When True, apply VMS treatment to children of packages A, G, I and S.
8792         For F320-016
8793
8794         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
8795
8796 2006-10-31  Robert Dewar  <dewar@adacore.com>
8797             Ed Schonberg  <schonberg@adacore.com>
8798
8799         * freeze.adb: Add handling of Last_Assignment field
8800         (Warn_Overlay): Supply missing continuation marks in error msgs
8801         (Freeze_Entity): Add check for Preelaborable_Initialization
8802
8803         * g-comlin.adb: Add Warnings (Off) to prevent new warning
8804
8805         * g-expect.adb: Add Warnings (Off) to prevent new warning
8806
8807         * lib-xref.adb: Add handling of Last_Assignment field
8808         (Generate_Reference): Centralize handling of pragma Obsolescent here
8809         (Generate_Reference): Accept an implicit reference generated for a
8810         default in an instance.
8811         (Generate_Reference): Accept a reference for a node that is not in the
8812         main unit, if it is the generic body corresponding to an subprogram
8813         instantiation.
8814
8815         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
8816
8817         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
8818         -gnatwq/Q.
8819         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
8820         exception handler.
8821         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
8822         use clauses, to avoid messages on packages used to qualify, and also
8823         to avoid messages from obsolescent units.
8824         (Warn_On_Useless_Assignments): Don't generate messages for imported
8825         and exported variables.
8826         (Warn_On_Useless_Assignments): New procedure
8827         (Output_Obsolescent_Entity_Warnings): New procedure
8828         (Check_Code_Statement): New procedure
8829
8830         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
8831         Change name Is_Ada_2005 to Is_Ada_2005_Only
8832         (Last_Assignment): New field for useless assignment warning
8833
8834 2006-10-31  Olivier Hainque  <hainque@adacore.com>
8835
8836         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
8837         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
8838
8839 2006-10-31  Bob Duff  <duff@adacore.com>
8840             Robert Dewar  <dewar@adacore.com>
8841             Ed Schonberg  <schonberg@adacore.com>
8842
8843         * g-awk.adb (Default_Session, Current_Session): Compile this file in
8844         Ada 95 mode, because it violates the new rules for AI-318.
8845
8846         * g-awk.ads: Use overloaded subprograms in every case where we used to
8847         have a default of Current_Session. This makes the code closer to be
8848         correct for both Ada 95 and 2005.
8849
8850         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
8851         code, relying on the fact that the compiler generates a warning
8852         instead of an error in -gnatg mode.
8853
8854         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
8855         E_Return_Statement entity kind.
8856         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
8857
8858         * par.adb (P_Interface_Type_Definition): Addition of one formal to
8859         report an error if the reserved word abstract has been previously found.
8860         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
8861
8862         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
8863         parenthesized range attribute usage
8864         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
8865
8866         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
8867         in the syntax for extended_return_statement. This is not in the latest
8868         RM, but the ARG is expected to issue an AI allowing this.
8869         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
8870         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
8871         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
8872         P_Return_Statement): Parse the new syntax for extended_return_statement.
8873
8874         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
8875         Output_End_Missing): Add error-recovery code for the new
8876         extended_return_statement syntax; that is, the new E_Return entry on
8877         the scope stack.
8878
8879         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
8880         limited to nonlimited, because otherwise we violate the new Ada 2005
8881         rules about returning limited types in function Create_AST_Handler in
8882         s-asthan.adb.
8883
8884         * sem.adb (Analyze): Add cases for new node kinds
8885         N_Extended_Return_Statement and N_Return_Object_Declaration.
8886
8887         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
8888         type is in the same category as type of context before applying check,
8889         to prevent anomalies in instantiations.
8890         (Resolve_Aggregate): Remove test for limited components in aggregates.
8891         It's unnecessary in Ada 95, because if it has limited components, then
8892         it must be limited. It's wrong in Ada 2005, because limited aggregates
8893         are now allowed.
8894         (Resolve_Record_Aggregate): Move check for limited types later, because
8895         OK_For_Limited_Init requires its argument to have been resolved.
8896         (Get_Value): When copying the component default expression for a
8897         defaulted association in an aggregate, use the sloc of the aggregate
8898         and not that of the original expression, to prevent spurious
8899         elaboration errors, when the expression includes function calls.
8900         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
8901         were missing. We also didn't handle qualified expressions. Now also
8902         allow function calls. Use new common routine OK_For_Limited_Init.
8903         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
8904         with space can upper case letter).
8905
8906         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
8907         Has_Static_Discriminants flag
8908         (Record_Type_Declaration): Diagnose an attempt to declare an interface
8909         type with discriminants.
8910         (Process_Range_Expr_In_Decl): Do validity checks on range
8911         (Build_Discriminant_Constraints): Use updated form of
8912         Denotes_Discriminant.
8913         (Process_Subtype): If the subtype is a private subtype whose full view
8914         is a concurrent subtype, introduce an itype reference to prevent scope
8915         anomalies in gigi.
8916         (Build_Derived_Record_Type, Collect_Interface_Primitives,
8917         Record_Type_Declaration):  The functionality of the subprograms
8918         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
8919         is now performed by a single routine.
8920         (Build_Derived_Record_Type): If the type definition includes an explicit
8921         indication of limitedness, then the type must be marked as limited here
8922         to ensure that any access discriminants will not be treated as having
8923         a local anonymous access type.
8924         (Check_Abstract_Overriding): Issue a detailed error message when an
8925         abstract subprogram was not overridden due to incorrect mode of its
8926         first parameter.
8927         (Analyze_Private_Extension_Declaration): Add support for the analysis of
8928         synchronized private extension declarations. Verify that the ancestor is
8929         a limited or synchronized interface or in the generic case, the ancestor
8930         is a tagged limited type or synchronized interface and all progenitors
8931         are either limited or synchronized interfaces.
8932         Derived_Type_Declaration): Check for presence of private extension when
8933         dealing with synchronized formal derived types.
8934         Process_Full_View): Enchance the check done on the usage of "limited" by
8935         testing whether the private view is synchronized.
8936         Verify that a synchronized private view is completed by a protected or
8937         task type.
8938         (OK_For_Limited_Init_In_05): New function.
8939         (Analyze_Object_Declaration): Move check for limited types later,
8940         because OK_For_Limited_Init requires its argument to have been resolved.
8941         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8942         in order to alleviate the upward compatibility introduced by AI-318.
8943         (Constrain_Corresponding_Record): If the constraint is for a component
8944         subtype, mark the itype as frozen, to avoid out-of-scope references to
8945         discriminants in the back-end.
8946         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
8947         this subprogram against wrong sources.
8948         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
8949         discriminant of limited type completed with a protected type, when the
8950         discriminant is used to constrain a private component of the type, and
8951         expansion is disabled.
8952         (Find_Type_Of_Object): Do not treat a return subtype that is an
8953         anonymous subtype as a local_anonymous_type, because its accessibility
8954         level is the return type of the enclosing function.
8955         (Check_Initialization): In -gnatg mode, turn the error "cannot
8956         initialize entities of limited type" into a warning.
8957         (OK_For_Limited_Init): Return true for generated nodes, since it
8958         sometimes violates the legality rules.
8959         (Make_Incomplete_Declaration): If the type for which an incomplete
8960         declaration is created happens to be the currently visible entity,
8961         preserve the homonym chain when removing it from visibility.
8962         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
8963         inherited subprograms.
8964         (Access_Definition): If this is an access to function that is the return
8965         type of an access_to_function definition, context is a type declaration
8966         and the scope of the anonymous type is the current one.
8967         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
8968         incomplete subtype to the set of private dependents of the original
8969         incomplete type.
8970         (Constrain_Discriminated_Type): Emit an error message whenever an
8971         incomplete subtype is being constrained.
8972         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
8973         corresponding subtype of the full view of the original incomplete type.
8974         (Check_Incomplete): Properly detect invalid usage of incomplete types
8975         and subtypes.
8976
8977 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
8978
8979         * g-catiio.ads, g-catiio.adb (Value): New function.
8980         Given an input String, try and parse a valid Time value.
8981
8982 2006-10-31  Vincent Celier  <celier@adacore.com>
8983
8984         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
8985         Integer_Address arithmetic, as in Set_Valid.
8986
8987 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
8988             Robert Dewar  <dewar@adacore.com>
8989
8990         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
8991         handling executable extension manually and duplicating code.
8992
8993         * make.adb: Implement new -S switch
8994         (Gnatmake): Use new function Osint.Executable_Name instead
8995         of handling executable extension manually.
8996
8997         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
8998         is specified, the executable name ends with this suffix.
8999         Take advantage of Osint.Executable_Name instead of duplicating code.
9000
9001         * switch-m.adb: Recognize new gnatmake -S switch
9002
9003         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
9004         variable.
9005         (Get_Target_Parameters): Set Executable_Extension_On_Target if
9006         available.
9007
9008         * makeusg.adb: Add line for gnatmake -S switch
9009
9010 2006-10-31  Vincent Celier  <celier@adacore.com>
9011
9012         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
9013         call it with -static-libgcc, as there are some platforms, such as
9014         Darwin, where one of these two switches is compulsory to link.
9015
9016 2006-10-31  Vincent Celier  <celier@adacore.com>
9017
9018         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
9019         instead of ADA_PROJECT_PATH, for the project path.
9020         (Gnatls): When displaying the project path directories, use host dir
9021         specs.
9022
9023         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
9024         names in the project path, as absolute paths may correspond to
9025         multi-valued VMS logical names.
9026
9027 2006-10-31  Vincent Celier  <celier@adacore.com>
9028
9029         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
9030         absolute path name.
9031         (Locate_Regular_File): Ditto
9032         (Change_Dir): Remove, no longer used
9033         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
9034         on Windows. Get it calling Get_Current_Dir.
9035         (OpenVMS): Remove imported boolean, no longer needed.
9036         (Normalize_Pathname)[VMS]: Do not resolve directory names.
9037         (Pid_To_Integer): New function to convert a Process_Id to  Integer
9038
9039 2006-10-31  Thomas Quinot  <quinot@adacore.com>
9040
9041         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
9042         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
9043         to No_Socket.
9044         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
9045         W_Sig_Socket.
9046
9047 2006-10-31  Robert Dewar  <dewar@adacore.com>
9048
9049         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
9050         initial letter o as a zero.
9051
9052 2006-10-31  Robert Dewar  <dewar@adacore.com>
9053
9054         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
9055
9056 2006-10-31  Robert Dewar  <dewar@adacore.com>
9057
9058         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
9059         variant records
9060         (Layout_Variant_Record): Retrieve the discriminants from the entity
9061         rather than from the type definition, because in the case of a full
9062         type for a private type we need to take the discriminants from the
9063         partial view.
9064         (Layout_Component_List): When applying the Max operator to variants with
9065         a nonstatic size, check whether either operand is static and scale that
9066         operand from bits to storage units before applying Max.
9067         (Layout_Type): In VMS, if a C-convention access type has no explicit
9068         size clause (and does not inherit one in the case of a derived type),
9069         then the size is reset to 32 from 64.
9070
9071 2006-10-31  Vincent Celier  <celier@adacore.com>
9072
9073         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
9074         its file has already been loaded, according to the unit being loaded,
9075         not to the current value of Multiple_Unit_Index.
9076
9077 2006-10-31  Thomas Quinot  <quinot@adacore.com>
9078             Eric Botcazou  <ebotcazou@adacore.com>
9079             Arnaud Charlet  <charlet@adacore.com>
9080
9081         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
9082         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
9083         possible.
9084         (a-except.o): Pass it to the compiler.
9085         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
9086         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
9087         a-calend-mingw.adb version.
9088
9089         * Makefile.rtl: Added s-dsaser.
9090         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
9091         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
9092         Ada.Dispatching.Round_Robin.
9093         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
9094
9095         * Make-lang.in: Remove all references to gt-ada-decl.h.
9096         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
9097         sources.
9098         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
9099         Update dependencies.
9100
9101         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
9102
9103 2006-10-31  Vincent Celier  <celier@adacore.com>
9104
9105         * mlib-utl.adb (Initialized): Remove, no longer used
9106         (Initialize): Remove, no longer used
9107         (Ar): If Ar_Exec is null, get the location of the archive builder and,
9108         if there is one, the archive indexer. Fail if the archive builder cannot
9109         be found.
9110         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
9111         be found.
9112
9113 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9114
9115         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
9116         Process_Body_Clauses): If the context of a body includes a use clause
9117         for P.Q then a with_clause for P in the same body is not redundant,
9118         even if the spec also has a with_clause on P.
9119         Add missing continuation mark to error msg
9120         (Build_Limited_Views): A limited view of a type is tagged if its
9121         declaration includes a record extension.
9122         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
9123         node, even if the subunit has errors. This avoids malfunction by
9124         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
9125         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
9126         generation of obsolescent messages for with statements (cannot do
9127         this too early, or we cannot implement avoiding the messages in the
9128         case of obsolescent units withing obsolescent units).
9129         (Install_Siblings): If the with_clause is on a remote descendant of
9130         an ancestor of the current compilation unit, find whether there is
9131         a sibling child unit that is immediately visible.
9132         (Remove_Private_With_Clauses): New procedure, invoked after completing
9133         the analysis of the private part of a nested package, to remove from
9134         visibility the private with_clauses of the enclosing package
9135         declaration.
9136         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
9137         now centralized in Generate_Reference.
9138         (Install_Limited_Context_Clauses): Remove superfluous error
9139         message associated with unlimited view visible through use
9140         and renamings. In addition, at the point in which the error
9141         is reported, we add the backslash to the text of the error
9142         to ensure that it is reported as a single error message.
9143         Use new // insertion for some continuation messages
9144         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
9145         to create implicit with_clause for parent unit mentioned in original
9146         limited_with_clause.
9147         (Install_Limited_With_Unit): Set entity of parent identifiers if the
9148         unit is a child unit. For ASIS queries.
9149         (Analyze_Subunit): If the subunit appears within a child unit, make all
9150         ancestor child units directly visible again.
9151
9152 2006-10-31  Robert Dewar  <dewar@adacore.com>
9153
9154         * par-ch10.adb (P_Context_Clause): Minor error message fix
9155
9156 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9157             Javier Miranda  <miranda@adacore.com>
9158
9159         * par-ch12.adb: Grammar update and cleanup.
9160         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
9161         support for synchronized derived type definitions.
9162         Add the new actual Abstract_Present to every call to
9163         P_Interface_Type_Definition.
9164         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
9165         a formal object declaration with an access definition or a subtype mark
9166         with a null exclusion.
9167         (P_Generic_Association): Handle association with box, and others_choice
9168         with box, to support Ada 2005 partially parametrized formal packages.
9169
9170 2006-10-31  Robert Dewar  <dewar@adacore.com>
9171             Javier Miranda  <miranda@adacore.com>
9172
9173         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
9174         (P_Type_Declaration): Remove barrier against the reserved word "limited"
9175         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
9176         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
9177         private extensions.
9178         (P_Type_Declaration): Add the new actual Abstract_Present to every call
9179         to P_Interface_Type_Definition.
9180         (P_Interface_Type_Definition): Addition of one formal to report an error
9181         if the reserved word abstract has been previously found.
9182         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
9183         object renaming declaration with an access definition or subtype mark
9184         with a possible null exclusion.
9185
9186         * par-ch9.adb: Minor error msg fix
9187
9188         * par-load.adb: Add missing continuation mark to error msg
9189
9190         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
9191
9192 2006-10-31  Vincent Celier  <celier@adacore.com>
9193
9194         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
9195         unknown attribute in unknown package or in package that does not need
9196         to be checked.
9197         (Parse_Package_Declaration): Do not issue warning for unknown package in
9198         quiet output.
9199
9200 2006-10-31  Vincent Celier  <celier@adacore.com>
9201
9202         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
9203         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
9204         Packages_To_Check.
9205
9206 2006-10-31  Vincent Celier  <celier@adacore.com>
9207
9208         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
9209         on VMS, change "__" to '.' before checking the name.
9210         (Record_Ada_Source): Always add the source file name in the list of
9211         of sources, even if it is not the first time, as it is for another
9212         source index.
9213         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
9214         dot, instead of replacing only the first '_'.
9215
9216         * prj-part.adb (Parse): Convert project file path to canonical form
9217
9218         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
9219         extended, the project id of the project extending it is recorded in its
9220         data, even when it has already been processed as an imported project.
9221
9222 2006-10-31  Robert Dewar  <dewar@adacore.com>
9223
9224         * repinfo.adb (List_Entities): Don't list entities from renaming
9225         declarations.
9226
9227 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9228             Robert Dewar  <dewar@adacore.com>
9229
9230         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
9231         only a restriction warning is active for the given restriction. This is
9232         desirable because we do not want to modify code in the case where only
9233         a warning is set.
9234         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
9235         causes overriding of real restrictions.
9236         Take advantage of new No_Restrictions constant.
9237
9238         * raise.h: (__gnat_set_globals): Change profile.
9239
9240 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9241
9242         * rtsfind.adb: Remove s-polint from comment as it exists no more.
9243
9244         * rtsfind.ads: 
9245         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
9246         Move all the entities in obsolete package System.PolyORB_Interface to
9247         System.Partition_Interface.
9248         (RE_Storage_Size): New function in System.Tasking.
9249         (RE_Get_Ceiling): New entity.
9250         (RE_Set_Ceiling): New entity.
9251         (RO_PE_Get_Ceiling): New entity.
9252         (RO_RE_Set_Ceiling): New entity.
9253         (Inherit_CPP_DT): New entity
9254
9255 2006-10-31  Robert Dewar  <dewar@adacore.com>
9256
9257         * scng.adb (Scan, case of numeric literal): Better msg for identifier
9258         starting with a digit.
9259
9260 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9261             Thomas Quinot  <quinot@adacore.com>
9262             Javier Miranda  <miranda@adacore.com>
9263             Gary Dismukes  <dismukes@adacore.com>
9264
9265         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
9266         properly an attempt to apply Unchecked_Access to a protected operation.
9267         (OK_Self_Reference): New subprogram to check the legality of an access
9268         attribute whose prefix is the type of an enclosing aggregate.
9269         Generalizes previous mechanism to handle attribute references nested
9270         arbitrarily deep within the aggregate.
9271         (Analyze_Access_Attribute): An access attribute whose prefix is a type
9272         can appear in an aggregate if this is a default-initialized aggregate
9273         for a self-referential type.
9274         (Resolve_Attribute, case Access): Ditto.
9275         Add support for new implementation defined attribute Stub_Type.
9276         (Eval_Attribute, case Attribute_Stub_Type): New case.
9277         (Analyze_Attribute, case Attribute_Stub_Type): New case.
9278         (Stream_Attribute_Available): Implement using new subprogram from
9279         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
9280         Has_Specified_Stream_Attribute flag.
9281         Disallow Storage_Size and Storage_Pool for access to subprogram
9282         (Resolve_Attribute, case 'Access et al): Take into account anonymous
9283         access types of return subtypes in extended return statements. Remove
9284         accessibility checks on anonymous access types when Unchecked_Access is
9285         used.
9286         (Analyze_Attribute): Add support for the use of 'Class to convert
9287         a class-wide interface to a tagged type.
9288         Add support for the attribute Priority.
9289         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
9290         whether the designated type is discriminated with a constrained partial
9291         view and require static matching in that case.
9292         Add local variable Des_Btyp. The Designated_Type
9293         of an access to incomplete subtype is either its non-limited view if
9294         coming from a limited with or its etype if regular incomplete subtype.
9295
9296         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
9297         Fix predicate to identify and allow cases of (expander-generated)
9298         references to tag of designated object of a RACW.
9299         (Validate_Static_Object_Name): In Ada 2005, a formal object is
9300         non-static, and therefore cannot appear as a primary in a preelaborable
9301         package.
9302         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
9303         Has_Read_Write_Attributes.
9304         (Has_Read_Write_Attributes): Reimplement in termes of
9305         Has_Stream_Attribute_Definition.
9306         (Missing_Read_Write_Attributes): When checking component types in a
9307         record, unconditionally call Missing_Read_Write_Attributes recursively
9308         (remove guard checking for Is_Record_Type / Is_Access_Type).
9309
9310 2006-10-31  Robert Dewar  <dewar@adacore.com>
9311
9312         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
9313         useless assignments here and conditionalize it on absence of exception
9314         handlers.
9315         (Analyze_Exception_Handlers): Small code reorganization of error
9316         detection code, for new handling of formal packages.
9317
9318 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9319             Hristian Kirtchev  <kirtchev@adacore.com>
9320
9321         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
9322         that has been constant-folded, preserve information of original tree,
9323         for ASIS uses.
9324         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
9325         generated private extension declaration if the formal derived type is
9326         synchronized. Carry synchronized present over to the generated private
9327         extension.
9328         (Validate_Derived_Type_Instance): Ensure that the actual of a
9329         synchronized formal derived type is a synchronized tagged type.
9330         (Instantiate_Formal_Package): When creating the instantiation used to
9331         validate the actual package of a formal declared without a box, check
9332         whether the formal itself depends on a prior actual.
9333         (Instantiate_Formal_Subprogram): Create new entities for the defining
9334         identifiers of the formals in the renaming declaration, for ASIS use.
9335         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
9336         a renaming declaration or a subtype declaration for an actual in an
9337         instance, capture location information of declaration in generic, for
9338         ASIS use.
9339         (Instantiate_Formal_Package): Add comments on needed additional tests.
9340         AI-317 (partial parametrization) is fully implemented.
9341         (Validate_Private_Type_Instance): Add check for actual which
9342         must have preelaborable initialization
9343         Use new // insertion for some continuation messages
9344         (Analyze_Formal_Object_Declaration): Change usage of Expression to
9345         Default_Expression. Add type retrieval when the declaration has an
9346         access definition. Update premature usage of incomplete type check.
9347         (Check_Access_Definition): New subsidiary routine. Check whether the
9348         current compilation version is Ada 05 and the supplied node has an
9349         access definition.
9350         (Instantiate object): Alphabetize local variables. Handle the creation
9351         of new renaming declarations with respect to the kind of definition
9352         used - either an access definition or a subtype mark. Guard against
9353         unnecessary error message in the context of anonymous access types after
9354         they have been resolved. Add check for required null exclusion in a
9355         formal object declaration.
9356         (Switch_View): A private subtype of a non-private type needs to be
9357         switched (the base type can have been switched without its private
9358         dependents because of the last branch of Check_Private_View.
9359         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
9360         value from BT.
9361         (Instantiate_Type): Emit an error message whenever a class-wide type of
9362         a tagged incomplete type is used as a generic actual.
9363         (Find_Actual_Type): Extend routine to handle a component type in a child
9364         unit that is imported from a formal package in a parent.
9365         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
9366         agree on constrainedness, rather than checking against ultimate ancestor
9367         (Instantiate_Subprogram_Body): Create a cross-reference link to the
9368         generic body, for navigation purposes.
9369
9370 2006-10-31  Robert Dewar  <dewar@adacore.com>
9371             Thomas Quinot  <quinot@adacore.com>
9372
9373         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
9374         type.
9375         (New_Stream_Subprogram): When processing an attribute definition clause
9376         for a stream-oriented subprogram, record an entity node occurring at
9377         the point of clause to use for checking the visibility of the clause,
9378         as defined by 8.3(23) as amended by AI-195.
9379         (New_Stream_Subprogram): New procedure, factoring behaviour from both
9380          New_Stream_Function and New_Stream_Procedure.
9381         (New_Stream_Function, New_Stream_Procedure): Removed.
9382         (Analyze_Attribute_Definition_Clause, case Address): Check new
9383         Alignment_Check check
9384
9385 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9386             Javier Miranda  <miranda@adacore.com>
9387             Robert Dewar  <dewar@adacore.com>
9388
9389         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
9390         generate the same errors compiling under -gnatc.
9391         (Try_Object_Operation): If no candidate interpretation succeeds, but
9392         there is at least one primitive operation with the right name, report
9393         error in call rather than on a malformed selected component.
9394         (Analyze_Selected_Component): If the prefix is an incomplete type from
9395         a limited view, and the full view is available, use the full view to
9396         determine whether this is a prefixed call to a primitive operation.
9397         (Operator_Check): Verify that a candidate interpretation is a binary
9398         operation before checking the type of its second formal.
9399         (Analyze_Call): Add additional warnings for function call contexts not
9400         yet supported.
9401         (Analyze_Allocator): Move the check for "initialization not allowed for
9402         limited types" after analyzing the expression. This is necessary,
9403         because OK_For_Limited_Init looks at the structure of the expression.
9404         Before analysis, we don't necessarily know what sort of expression it
9405         is. For example, we don't know whether F(X) is a function call or an
9406         indexed component; the former is legal in Ada 2005; the latter is not.
9407         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
9408         were missing. We also didn't handle qualified expressions. Now also
9409         allow function calls. Use new common routine OK_For_Limited_Init.
9410         (Analyze_Type_Conversion): Do not perform some legality checks in an
9411         instance, because the error message will be redundant or spurious.
9412         (Analyze_Overloaded_Selected_Component): Do not do style check when
9413         setting an entity, since we do not know it is the right entity yet.
9414         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
9415         (Analyze_Overloaded_Selected_Component): Same change
9416         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
9417         since regular incomplete subtypes are transformed into corresponding
9418         subtypes of their full views.
9419         (Complete_Object_Operation): Treat name of transformed subprogram call
9420         as coming from source, for browsing purposes.
9421         (Try_Primitive_Operation): If formal is an access parameter, compare
9422         with base type of object to determine whether it is a primitive
9423         operation.
9424         (Operator_Check): If no interpretation of the operator matches, check
9425         whether a use clause on any candidate might make the operation legal.
9426         (Try_Class_Wide_Operation): Check whether the first parameter is an
9427         access type whose designated type is class-wide.
9428
9429 2006-10-31  Robert Dewar  <dewar@adacore.com>
9430             Ed Schonberg  <schonberg@adacore.com>
9431             Gary Dismukes  <dismukes@adacore.com>
9432
9433         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
9434         warn on infinite loops.
9435         Add \\ to some continuation messages
9436         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
9437         (Process_Bounds): If the bounds are integer literals that result from
9438         constant-folding, and they carry a user-defined type, preserve that type
9439         rather than treating this as an integer range.
9440         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
9441         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
9442         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
9443         left hand side of assignment.
9444         (Analyze_Assignment): Add suport to manage assigments to the attribute
9445         priority of a protected object.
9446         (Check_Possible_Current_Value_Condition): Allow fully qualified names
9447         not just identifiers.
9448         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
9449         or AND THEN for possible tracking.
9450         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
9451         case of while loops so we can track values in the loop body.
9452
9453 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9454             Hristian Kirtchev  <kirtchev@adacore.com>
9455             Bob Duff  <duff@adacore.com>
9456
9457         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
9458         procedure cannot be a protected operation (it is a basic_declaration,
9459         not a subprogram_declaration).
9460         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
9461         Subp. Add logic for entry processing.
9462         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
9463         Determine whether an entry or subprogram of a protected or task type
9464         override an inherited primitive of an implemented interface.
9465         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
9466         Update the actual used in calls to Check_Overriding_Indicator.
9467         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
9468         generate the proper reference to the parent unit, for cross-reference.
9469         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
9470         Is_Formal.
9471         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9472         (Add_Extra_Formal): Revise procedure to allow passing in associated
9473         entity, scope, and name suffix, and handle setting of the new
9474         Extra_Formals field.
9475         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
9476         pass new parameters. Add support for adding the new extra access formal
9477         for functions whose calls are treated as build-in-place.
9478         (Analyze_A_Return_Statement): Correct casing in error message.
9479         Move Pop_Scope to after Analyze_Function_Return, because an extended
9480         return statement really is a full-fledged scope. Otherwise, visibility
9481         doesn't work right. Correct use of "\" for continuation messages.
9482         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
9483         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
9484         the node doesn't get properly marked as analyzed.
9485         (Analyze_Subprogram_Body): If subprogram is a function that returns
9486         an anonymous access type that denotes a task, build a Master Entity
9487         for it.
9488         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
9489         proper usage of null exclusion in a result definition.
9490         (Process_Formals): Code cleanup and new error message.
9491         (Process_Formals): Detect incorrect application of null exclusion to
9492         non-access types.
9493         (Conforming_Types): Handle conformance between [sub]types and itypes
9494          generated for entities that have null exclusions applied to them.
9495         (Maybe_Primitive_Operation): Add an additional type retrieval when the
9496          base type is an access subtype. This case arrises with null exclusions.
9497         (New_Overloaded_Entity): Do not remove the overriden entity from the
9498         homonym chain if it corresponds with an abstract interface primitive.
9499         (Process_Formals): Replace membership test agains Incomplete_Kind with a
9500         call to the synthesized predicate Is_Incomplete_Type.
9501         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
9502         primitives.
9503         (Analyze_Subprogram_Declaration): Check that abstract interface
9504         primitives are abstract or null.
9505         (Analyze_Subprogram_Specification): Remove previous check for abstract
9506         interfaces because it was not complete.
9507         (Has_Interface_Formals): Removed.
9508
9509 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9510             Javier Miranda  <miranda@adacore.com>
9511
9512         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
9513         of Analyze_Package_Body, to create Itype references for anonymous
9514         access types created in the package declaration, whose designated types
9515         may have only a limited view.
9516         (Analyze_Package_Specification): For the private part of a nested
9517         package, install private_with_clauses of enclosing compilation unit if
9518         we are in its visible part.
9519         (Declare_Inherited_Private_Subprograms): Complete barrier
9520         to ensure that the primitive operation has an alias to some parent
9521         primitive. This is now required because, after the changes done for the
9522         implementation of abstract interfaces, the contents of the list of
9523         primitives has entities whose alias attribute references entities of
9524         such list of primitives.
9525         (Analyze_Package_Specification): Simplify code that handles parent units
9526         of instances and formal packages.
9527         (Uninstall_Declarations): Check the convention consistency among
9528         primitive overriding operations of a tagged record type.
9529
9530 2006-10-31  Robert Dewar  <dewar@adacore.com>
9531             Hristian Kirtchev  <kirtchev@adacore.com>
9532             Javier Miranda  <miranda@adacore.com>
9533             Ed Schonberg  <schonberg@adacore.com>
9534
9535         * sem_ch8.adb: Minor error msg rewording
9536         (Undefined): When checking for misspellings, invert arguments (to get
9537         expected and found set right)
9538         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
9539         (Analyze_Generic_Renaming): Same fix
9540         (Use_One_Package): Do not take into account the internal entities of
9541         abstract interfaces during the analysis of entities that are marked
9542         as potentially use-visible.
9543         (Find_Type): Handle the case of an attribute reference for
9544         implementation defined attribute Stub_Type (simply let the analysis of
9545         the attribute reference rewrite it).
9546         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
9547         type that appears in a Use_Type clause.
9548         (Analyze_Object_Renaming): Add support for renaming of the Priority
9549         attribute.
9550         (Find_Type): In Ada 2005, a task type can be used within its own body,
9551         when it appears in an access definition.
9552         (Analyze_Object_Renaming): Remove warning on null_exclusion.
9553         (Analyze_Object_Renaming): Introduce checks for required null exclusion
9554          in a formal object declaration or in a subtype declaration.
9555         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
9556         (Check_Null_Exclusion): New local routine to
9557         Analyze_Subprogram_Renaming. Check whether the formals and return
9558         profile of a renamed subprogram have required null exclusions when
9559         their counterparts of the renaming already impose them.
9560         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
9561         Determine whether an entity is inside a generic scope.
9562         (In_Open_Scope): First pass of documentation update.
9563         (Find_Expanded_Name): Add support for shadow entities associated with
9564         limited withed packages. This is required to handle nested packages.
9565         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
9566         that makes a renaming of a limited withed package illegal.
9567
9568 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9569             Ed Schonberg  <schonberg@adacore.com>
9570
9571         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
9572         Check_Overriding_Indicator.
9573         (Analyze_Task_Definition): Ditto.
9574         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
9575         (Check_Overriding_Indicator): To find overridden interface operation,
9576         examine only homonyms that have an explicit subprogram declaration, not
9577         inherited operations created by an unrelated type derivation.
9578         (Check_Overriding_Indicator): When checking for the presence of "null"
9579         in a procedure, ensure that the queried node is a procedure
9580         specification.
9581         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
9582         type when the formal is an access to variable.
9583         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
9584         (Analyze_Task_Type): Same addition
9585         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
9586         provide navigation capabilities for entries.
9587
9588 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9589             Ed Schonberg  <schonberg@adacore.com>
9590             Javier Miranda  <miranda@adacore.com>
9591             Gary Dismukes  <dismukes@adacore.com>
9592
9593         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
9594         inherited from an interface ancestor by another interface in the
9595         context of an instance as 'late'.
9596         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
9597         of a call to a function that dispatches on access result.
9598         (Check_Dispatching_Operation): In case of late overriding of a primitive
9599         that covers abstract interface subprograms we register it in all the
9600         secondary dispatch tables associated with abstract interfaces.
9601         (Check_Dispatching_Call): Add check that a dispatching call is not made
9602         to a function with a controlling result of a limited type. This is a
9603         current implementation restriction.
9604         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
9605         (Check_Dispatching_Operation): Do no emit a warning if the controlling
9606         argument is an interface type that is a generic formal.
9607         (Is_Interface_Subprogram): Removed.
9608         (Check_Dispatching_Operation): If the subprogram is not a dispatching
9609         operation, check the formals to handle the case in which it is
9610         associated with an abstract interface type.
9611
9612 2006-10-31  Robert Dewar  <dewar@adacore.com>
9613             Ed Schonberg  <schonberg@adacore.com>
9614
9615         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
9616         Add new calls to this procedure during traversal
9617         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
9618         another unit if expansion is disabled.
9619
9620 2006-10-31  Robert Dewar  <dewar@adacore.com>
9621
9622         * sem_eval.adb (Compile_Time_Compare): Make use of information from
9623         Current_Value in the conditional case, to evaluate additional
9624         comparisons at compile time.
9625
9626 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9627             Hristian Kirtchev  <kirtchev@adacore.com>
9628             Javier Miranda  <miranda@adacore.com>
9629
9630         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
9631         subprogram type to provide better diagnostics in case of ambiguity.
9632         (Covers): Handle coverage of formal and actual anonymous access types in
9633         the context of generic instantiation.
9634         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
9635         abstract interface types; this is required to handle concurrent types
9636         with discriminants and abstract interface types.
9637         (Covers): Include type coverage of both regular incomplete subtypes and
9638         incomplete subtypes of incomplete type visibles through a limited with
9639         clause.
9640
9641 2006-10-31  Robert Dewar  <dewar@adacore.com>
9642             Hristian Kirtchev  <kirtchev@adacore.com>
9643             Ed Schonberg  <schonberg@adacore.com>
9644
9645         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
9646         messages for entities in packages which are not used.
9647         (Collect_Synchronized_Interfaces): New procedure.
9648         (Overrides_Synchronized_Primitive): New function.
9649         (Denotes_Discriminant): Extend predicate to apply to task types.
9650         Add missing continuation marks in error msgs
9651         (Unqualify): New function for removing zero or more levels of
9652         qualification from an expression. There are numerous places where this
9653         ought to be used, but we currently only deal properly with zero or one
9654         level.
9655         (In_Instance); The analysis of the actuals in the instantiation of a
9656         child unit is not within an instantiation, even though the parent
9657         instance is on the scope stack.
9658         (Safe_To_Capture_Value): Exclude the case of variables that are
9659         renamings.
9660         (Check_Obsolescent): Removed
9661         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
9662         is an aliased view, even when rewritten as a reference to the target
9663         object in an assignment.
9664         (Get_Subprogram_Entity): New function
9665         (Known_To_Be_Assigned): New function
9666         (Type_Access_Level): Compute properly the access level of a return
9667         subtype that is an anonymous access type.
9668         (Explain_Limited_Type): Correct use of "\" for continuation messages.
9669         (Is_Transfer): The new extended_return_statement causes a transfer of
9670         control.
9671         (Has_Preelaborable_Initialization): New function
9672         (Has_Null_Exclusion): New function. Given a node N, determine whether it
9673         has a null exclusion depending on its Nkind.
9674         Change Is_Lvalue to May_Be_Lvalue
9675         (May_Be_Lvalue): Extensive additional code to deal with subprogram
9676         arguments (IN parameters are not Lvalues, IN OUT parameters are).
9677         (Safe_To_Capture_Value): Extend functionality so it can be used for
9678         the current value condition case.
9679         (Has_Compatible_Alignment): New function
9680         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
9681         objects to handle the Ada 2005 case, where aliasedness no longer implies
9682         that the object is constrained. In particular, for dereferenced names,
9683         the designated object must be assumed to be unconstrained.
9684         (Kill_Current_Values): Properly deal with the case where we encounter
9685         a loop in the scope chain.
9686         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
9687         a value.
9688         (Compile_Time_Constraint_Error): Improve error message in error case
9689
9690         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
9691         associated with entities of abstract interface primitives.
9692         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
9693
9694 2006-10-31  Robert Dewar  <dewar@adacore.com>
9695
9696         * s-osinte-tru64.adb: 
9697         Mark Asm statements Volatile to prevent warnings (seems a
9698         reasonable change anyway)
9699         Fixes new warnings
9700
9701         * s-mastop-irix.adb: Add Volatile to Asm statements
9702         Suppresses warning, and seems appropriate in any case
9703
9704         * s-osinte-vms.adb: Add Volatile to Asm statement
9705
9706         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
9707
9708         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
9709         returned.
9710         Add call to Check_Code_Statement
9711
9712 2006-10-31  Robert Dewar  <dewar@adacore.com>
9713             Ed Schonberg  <schonberg@adacore.com>
9714             Bob Duff  <duff@adacore.com>
9715
9716         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
9717         Synchronized_Present): Add Formal_Derived_Type_Definition and
9718         Private_Extension_Declaration to the list of assertions.
9719         (Is_Entry_Barrier_Function): New flag
9720         (Has_Self_Reference): New flag on aggregates, to indicate that they
9721         contain a reference to the enclosing type, inserted through a default
9722         initialization.
9723         (Next_Rep_Item): Move from Node4 to Node5.
9724         (Entity): Add this field for N_Attribute_Definition_Clause.
9725         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
9726         (N_Return_Object_Declaration): Remove this node kind. We now use
9727         N_Object_Declaration instead.
9728         (Actual_Designated_Subtype): Move to a different place to make room in
9729         N_Extended_Return_Statement.
9730         (Procedure_To_Call): Move to a different place to make room in
9731         N_Extended_Return_Statement.
9732         (Return_Type): Removed this field to make room in return statements
9733         (both kinds).
9734         (Return_Statement_Entity): New field in return statements, in part to
9735         replace Return_Type, and in part to support the fact that return
9736         statements are now pushed on the scope stack during semantic analysis.
9737         (Return_Object_Declarations): New field to support extended return
9738         statements.
9739         (N_Extended_Return_Statement): New node for extended_return_statement
9740         nonterminal.
9741         (N_Return_Object_Declaration): New node for part of
9742         extended_return_statement nonterminal. Needed because all the necessary
9743         fields won't fit in N_Extended_Return_Statement.
9744         Generic_associations now carry the Box_Present flag, to indicate a
9745         default for an actual in a partially parametrized formal package.
9746
9747         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
9748         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
9749         and for the new predefined dispatching policies: EDF_Across_Priorities,
9750         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
9751         Introduce new name Stub_Type for implementation defined attribute.
9752         Add pragma Preelaborable_Initialization
9753         Add entry for Priority attribute.
9754         Add Pragma_Wide_Character_Encoding
9755         (Get_Convention_Name): Given a convention id, this function returns the
9756         corresponding name id from the names table.
9757
9758 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9759             Robert Dewar  <dewar@adacore.com>
9760             Bob Duff  <duff@adacore.com>
9761
9762         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
9763         print null exclusion twice in the case of an access definition,
9764         Implement new -gnatL switch
9765         Remove N_Return_Object_Declaration. We now use
9766         N_Object_Declaration instead. Implement the case for
9767         N_Extended_Return_Statement. Alphabetize the cases.
9768         Add cases for new nodes N_Extended_Return_Statement and
9769         N_Return_Object_Declaration. The code is not yet written.
9770         Update the output for N_Formal_Object_Declaration
9771         and N_Object_Renaming_Declaration.
9772         (Write_Itype): Account for the case of a modular integer subtype whose
9773         base type is private.
9774
9775 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9776
9777         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
9778         Remove elaboration code, now done in the binder.
9779
9780         * s-rident.ads: Make this unit Preelaborate.
9781         (No_Restrictions): New constant used to clean up code and follow
9782         preelaborate constraints.
9783
9784         * s-stalib.adb: 
9785         Add System.Restrictions dependence, referenced directly from the
9786         binder generated file.
9787
9788 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
9789
9790         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
9791         True when AAMP extended floating-point is in use (48-bit). Change type
9792         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
9793         the two byte array types on AFloat. Change type of IV_Ilf overlay
9794         variable from Byte8 to ByteLF. Add appropriate initializations of
9795         floating-point overlays for AAMP cases.
9796
9797 2006-10-31  Javier Miranda  <miranda@adacore.com>
9798
9799         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
9800         (Get_Ceiling): New subprogram that returns
9801         the ceiling priority of the protected object.
9802         (Set_Ceiling): New subprogram that sets the new ceiling priority of
9803         the protected object.
9804
9805         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
9806
9807         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
9808
9809 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
9810
9811         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
9812         requeuing to the same protected object to give higher priority tasks
9813         the opportunity to execute.
9814
9815 2006-10-31  Robert Dewar  <dewar@adacore.com>
9816
9817         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
9818         add more precise check for the character sequence that follows '[' to
9819         avoid possible confusion in case if '[' is the last character of a
9820         string literals.
9821         (Scan_Wide): Always allow brackets encoding
9822
9823 2006-10-31  Olivier Hainque  <hainque@adacore.com>
9824
9825         * s-stchop.ads: make this unit preelaborate. This is desirable in
9826         general and made mandatory by the use of this unit by s-taprop which
9827         is itself preelaborate.
9828
9829         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
9830         Td_Events component.
9831
9832 2006-10-31  Vincent Celier  <celier@adacore.com>
9833
9834         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
9835         in file names.
9836
9837 2006-10-31  Vincent Celier  <celier@adacore.com>
9838
9839         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
9840
9841 2006-10-31  Vincent Celier  <celier@adacore.com>
9842
9843         * makegpr.adb (Check_Compilation_Needed): Take into account path names
9844         with spaces.
9845         (Check_Compilation_Needed): When checking a C or C++ source, do not
9846         resolve symbolic links.
9847         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
9848         When not in verbose mode and Ellipse is True, display "..." for the
9849         first argument with Display set to False.
9850         (Build_Global_Archive): Always set Display True for the first object
9851         file. Call Display_Command with Ellipse set to True.
9852
9853 2006-10-31  Matt Heaney  <heaney@adacore.com>
9854
9855         * a-crbtgo.ads: Commented each subprogram
9856
9857         * a-crbtgo.adb: Added reference to book from which algorithms were
9858         adapted.
9859
9860         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
9861         indicate which child.
9862         (Generic_Conditional_Insert): changed parameter name from "Success" to
9863         "Inserted".
9864         (Generic_Unconditional_Insert_With_Hint): improved algorithm
9865
9866         * a-coorse.adb (Replace_Element): changed parameter name in call to
9867         conditional insert operation.
9868
9869         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
9870
9871         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
9872         Generic_Iteration
9873
9874         * a-ciorse.adb (Replace_Element): changed parameter name in call to
9875         conditional insert operation.
9876
9877         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
9878         Generic_Iteration.
9879
9880         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
9881         instead of mode inout.
9882
9883         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
9884         draft
9885         (Generic_Read): preserve existing buckets array if possible
9886         (Generic_Write): don't send buckets array length anymore
9887
9888         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
9889         instead of mode inout.
9890
9891         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
9892         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9893
9894         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
9895         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9896         (Replace_Element): local operation is now an instantiation
9897
9898         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
9899         check current length.
9900         (Generic_Replace_Element): new operation
9901
9902 2006-10-31  Doug Rupp  <rupp@adacore.com>
9903
9904         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
9905         Call TBK$SYMBOLIZE without omitting parameters.
9906
9907 2006-10-31  Vincent Celier  <celier@adacore.com>
9908
9909         * symbols-processing-vms-ia64.adb,
9910         symbols-processing-vms-alpha.adb (Process): Do not include symbols
9911         that come from generic instantiations in bodies.
9912
9913 2006-10-31  Pat Rogers  <rogers@adacore.com>
9914
9915         * a-rttiev.ads, a-rttiev.adb: 
9916         This is a significant redesign primarily for the sake of automatic
9917         timer task termination but also to fix a design flaw.
9918         Therefore we are now using an RTS lock, instead of a protected
9919         object, to provide mutual exclusion to the queue of pending events
9920         and the type Timing_Event is no longer a protected type.
9921
9922 2006-10-31  Robert Dewar  <dewar@adacore.com>
9923             Cyrille Comar  <comar@adacore.com>
9924             Ben Brosgol  <brosgol@adacore.com>
9925
9926         * debug.adb:  Update flags documentation
9927
9928         * gnat_ugn.texi: Add documentation for new -gnatwq switch
9929         Clean up documentation for several other warning switches
9930         Clarify how task stack size can be specified with various
9931         versions of Windows.
9932         Add note that -gnatVo includes ranges including loops
9933         Add documentation for -gnatL switch
9934         Add note on elaboration warning for initializing variables
9935         Add documentation for new -gnatwt warning switch
9936         Document new form of pragma Warnings (On|Off, string)
9937         Add comment on use of pragma Warnings to control warnings
9938         Add documentation for -gnatjnn switch
9939         Modify section on interfacing with C for VMS 64-bit.
9940         Add doc for -gnatVe/E
9941         Add documentation of new warning flags -gnatww/-gnatwW
9942         Add warnings about address clause overlays to list of warnings
9943         (Exception Handling Control): Document that the option --RTS must be
9944         used consistently for gcc and gnatbind.
9945         Clarify that inlining is not always possible
9946         Update documentation on pragma Unchecked_Union.
9947
9948         * gnat_rm.texi: 
9949         Add documentation for new extended version of pragma Obsolescent
9950         Add documentation for implementation defined attribute 'Stub_Type.
9951         Add note on use of Volatile in asm statements
9952         Add documentation on use of pragma Unreferenced in context clause
9953         Document new form of pragma Warnings (On|Off, pattern)
9954         Document pragma Wide_Character_Encoding
9955         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
9956         enforced if code generation is active.
9957         Add section on pragma Suppress to document GNAT specific check
9958         Alignment_Check
9959         Clarify difference between No_Dispatching_Calls & No_Dispatch.
9960         Add documentation for pragma Restrictions (No_Elaboration_Code)
9961
9962         * gnat-style.texi: 
9963         Add comments on layout of subprogram local variables in the
9964         presence of nested subprograms.
9965
9966         * ug_words: Resync.
9967
9968         * elists.ads: Minor reformatting
9969         Node returns Node_Or_Entity_Id (doc change only)
9970
9971         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
9972
9973         * g-arrspl.ads (Create): Update comments.
9974
9975         * sem.ads: Add details on the handling of the scope stack.
9976
9977         * usage.adb: Update documentation.
9978
9979         * validsw.ads, validsw.adb: 
9980         Add definition of Validity_Check_Components and implement -gnatVe/E
9981
9982         * vms_data.ads: Add missing VMS qualifiers.
9983
9984         * s-addope.ads: Add documentation on overflow and divide by zero
9985
9986 2006-10-31  Robert Dewar  <dewar@adacore.com>
9987             Thomas Quinot  <quinot@adacore.com>
9988             Arnaud Charlet  <charlet@adacore.com>
9989
9990         * fmap.adb: Put routines in alpha order
9991
9992         * g-boumai.ads: Remove redundant 'in' keywords
9993
9994         * g-cgi.adb: Minor reformatting
9995
9996         * g-cgi.ads: Remove redundant 'in' keywords
9997
9998         * get_targ.adb: Put routines in alpha order
9999
10000         * prj-attr.ads: Minor reformatting
10001
10002         * s-atacco.ads: Minor reformatting
10003
10004         * scn.adb: Put routines in alpha order
10005
10006         * sinput-l.adb: Minor comment fix
10007
10008         * sinput-p.adb: Minor comment fix
10009
10010         * s-maccod.ads: Minor reformatting
10011
10012         * s-memory.adb: Minor reformatting
10013
10014         * s-htable.adb: Fix typo in comment.
10015
10016         * s-secsta.adb: Minor comment update.
10017
10018         * s-soflin.adb: Minor reformatting
10019
10020         * s-stoele.ads: 
10021         Add comment about odd qualification in Storage_Offset declaration
10022
10023         * s-strxdr.adb: 
10024         Remove unnecessary 'in' keywords for formal parameters.
10025
10026         * treeprs.adt: Minor reformatting
10027
10028         * urealp.adb: Put routines in alpha order
10029
10030         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
10031         taking string.
10032
10033         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10034
10035         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
10036
10037         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
10038         workaround as on other platforms.
10039
10040         * g-eacodu-vms.adb: Remove redundant 'in' keywords
10041         * g-expect-vms.adb: Remove redundant 'in' keywords
10042
10043         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
10044         clear error message if the list-of-files file cannot be opened.
10045
10046         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
10047         equality operator is always visible.
10048
10049         * lang.opt: Woverlength-strings: New option.
10050
10051         * nmake.adt: 
10052         Update copyright, since nmake.ads and nmake.adb have changed.
10053
10054         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
10055         (Binder_Output_Time_Stamps_Set): removed.
10056         (Old_Binder_Output_Time_Stamp): idem.
10057         (New_Binder_Output_Time_Stamp): idem.
10058         (Recording_Time_From_Last_Bind): idem.
10059         (Recording_Time_From_Last_Bind): Make constant.
10060
10061         * output.ads, output.adb (Write_Str): Allow LF characters
10062         (Write_Spaces): New procedure
10063
10064         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
10065
10066         * inline.adb: Minor reformatting
10067
10068         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10069
10070         * s-mastop-vms.adb: Remove redundant 'in' keywords
10071
10072         * s-osprim-vms.adb: Remove redundant 'in' keywords
10073
10074         * s-trafor-default.adb: Remove redundant 'in' keywords
10075
10076         * 9drpc.adb: Remove redundant 'in' keywords
10077
10078         * s-osinte-mingw.ads: Minor reformatting
10079
10080         * s-inmaop-posix.adb: Minor reformatting
10081
10082         * a-direio.ads: Remove quotes from Compile_Time_Warning message
10083
10084         * a-exexda.adb: Minor code reorganization
10085
10086         * a-filico.adb: Minor reformatting
10087
10088         * a-finali.adb: Minor reformatting
10089
10090         * a-nudira.ads: Remove quote from Compile_Time_Warning message
10091
10092         * a-numeri.ads: Minor reformatting
10093
10094         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
10095
10096         * exp_pakd.ads: Fix obsolete comment
10097
10098         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
10099         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
10100         Probably not a bug, but certainly neater and more efficient.
10101
10102         * a-tienio.adb: Minor reformatting
10103
10104         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
10105         Avoid assuming low bound of string is 1.
10106
10107         * gnatbind.adb: Change Bindusg to package and rename procedure as
10108         Display, which now ensures that it only outputs usage information once.
10109         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
10110
10111         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
10112         Table'First.
10113
10114         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
10115         warning.
10116         (Match): Add pragma Assert to ensure that Matches'First is zero
10117
10118         * g-regpat.ads (Match): Document that Matches lower bound must be zero
10119
10120         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
10121         documented preconditions (also kills warnings about bad indexes).
10122
10123         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
10124         is 1.
10125         (Build_Import_Library): Ditto;
10126
10127         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
10128
10129         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
10130
10131         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
10132         lower bound of choice table is 1.
10133
10134         * sem_case.ads (Analyze_Choices): Document that lower bound of
10135         Choice_Table is 1.
10136
10137         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
10138         string is 1.
10139
10140         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
10141         and add appropriate Assert pragma to suppress warnings.
10142
10143         * atree.h, atree.ads, atree.adb
10144         Change Elist24 to Elist25
10145         Add definitions of Field28 and Node28
10146         (Traverse_Field): Use new syntactic parent table in sinfo.
10147
10148         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10149
10150         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10151
10152         * exp_tss.adb: Put routines in alpha order
10153
10154         * fe.h: Remove redundant declarations.
10155
10156 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
10157
10158         * utils.c (builtin_function): Rename to gnat_builtin_function.
10159         Move common code to add_builtin_function.
10160         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
10161         gnat_builtin_function.
10162         * gigi.h (builtin_function): Rename to gnat_builtin_function.
10163         Change the signature.
10164
10165 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
10166
10167         * Makefile.in: Add TEXI2PDF definition.
10168         * Make-lang.in: Add "ada.pdf" target.
10169
10170 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
10171
10172         * decl.c, utils.c: Fix comment typos.
10173         * utils.c: Fix a typo.
10174
10175 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
10176
10177         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
10178         on "pure" Ada subprograms if SJLJ exceptions are used.
10179         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
10180         on the declaration node of JMPBUF_SAVE.
10181         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
10182         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
10183         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
10184
10185 2006-08-20  Laurent GUERBY  <laurent@guerby.net>
10186
10187         PR ada/28716
10188         g-socket.adb (Bind_Socket): Call Set_Address.
10189
10190 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10191
10192         PR ada/15802
10193         * decl.c (same_discriminant_p): New static function.
10194         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
10195         subtype and we have discriminants, fix up the COMPONENT_REFs
10196         for the discriminants to make them reference the corresponding
10197         fields of the parent subtype after it has been built.
10198
10199 2006-09-15  Roger Sayle  <roger@eyesopen.com>
10200
10201         PR ada/18817
10202         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
10203         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
10204
10205 2006-09-13  Olivier Hainque  <hainque@adacore.com>
10206
10207         PR ada/29025
10208         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
10209         of a SAVE_EXPR, just make the operand addressable/not-readonly and
10210         let the common gimplifier code make and propagate a temporary copy.
10211         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
10212         out/in-out actuals and defer setting the addressable/readonly bits
10213         to the gimplifier.
10214
10215 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10216
10217         PR ada/28591
10218         * decl.c (components_to_record): Defer emitting debug info for the
10219         record type associated with the variant until after we are sure to
10220         actually use it.
10221
10222 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10223
10224         PR ada/21952
10225         * gigi.h (gnat_internal_attribute_table): Declare.
10226         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
10227         * utils.c (gnat_internal_attribute_table): New global variable.
10228         (builtin_function): Always call decl_attributes on the builtin.
10229         (handle_const_attribute): New static function.
10230         (handle_nothrow_attribute): Likewise.
10231
10232 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10233
10234         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
10235
10236 2006-06-23  Olivier Hainque  <hainque@adacore.com>
10237
10238         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
10239         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
10240
10241 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
10242             Eric Botcazou  <ebotcazou@adacore.com>
10243
10244         PR ada/18692
10245         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
10246         check-gnat into check-acats.
10247
10248 2006-06-17  Karl Berry  <karl@gnu.org>
10249
10250         * gnat-style.texi (@dircategory): Use "Software development"
10251         instead of "Programming", following the Free Software Directory.
10252
10253 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10254
10255         PR ada/27944
10256         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
10257
10258 2006-06-06  Laurent GUERBY  <laurent@guerby.net>
10259
10260         PR ada/27769
10261         mlib-utl.adb: Use Program_Name.
10262
10263 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
10264
10265         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
10266         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
10267         trans.c, utils.c: Fix comment typos.  Follow spelling
10268         conventions.
10269         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
10270         conventions.
10271
10272 2006-05-19  Nicolas Setton  <setton@adacore.com>
10273
10274         * misc.c (gnat_dwarf_name): New function.
10275         (LANG_HOOKS_DWARF_NAME): Define to it.
10276
10277 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10278
10279         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
10280         (ada/misc.o): Likewise.
10281         (ada/utils.o): Likewise.
10282
10283 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
10284
10285         * Makefile.in: Add Ada support for GNU/kFreeBSD.
10286         * s-osinte-kfreebsd-gnu.ads: New file.
10287
10288 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
10289
10290         * Make-lang.in: Rename docdir to gcc_docdir.
10291
10292 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
10293
10294         * gigi.h (get_ada_base_type): Delete.
10295         * utils2.c (get_ada_base_type): Likewise.
10296         * trans.c (convert_with_check): Operate in the real base type.
10297
10298 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10299
10300         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
10301
10302 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
10303
10304         * utils.c (create_var_decl): Use have_global_bss_p when deciding
10305         whether to make the decl common.
10306
10307 2006-02-20  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
10308
10309         * Make-lang.in (Ada): Remove.
10310         (.PHONY): Remove Ada
10311
10312 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10313
10314         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
10315         aggregate, check the interpretations of the other operand to find one
10316         that may be a boolean array.
10317
10318         (Analyze_Selected_Component): Fix flow-of-control typo in case where
10319         the prefix is a private extension.
10320
10321 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
10322
10323         PR ada/26315
10324         * utils2.c (find_common_type): If both input types are BLKmode and
10325         have the same constant size, keep using the first one.
10326
10327         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
10328
10329         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
10330
10331         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
10332
10333 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
10334
10335         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
10336         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
10337         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
10338         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
10339         Abort_Defer/Undefer pairs to avoid the possibility of a task being
10340         aborted while owning a lock.
10341
10342 2006-02-17  Javier Miranda  <miranda@adacore.com>
10343             Robert Dewar  <dewar@adacore.com>
10344
10345         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
10346         through an access to class-wide interface we force the displacement of
10347         the pointer to the allocated object to reference the corresponding
10348         secondary dispatch table.
10349         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
10350         if Long_Shifts are supported on the target, even if 64 bit divides
10351         are not supported (configurable run time mode).
10352         (Expand_N_Type_Conversion): Do validity check if validity checks on
10353         operands are enabled.
10354         (Expand_N_Qualified_Expression): Do validity check if validity checks
10355         on operands are enabled.
10356
10357 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10358
10359         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
10360         must be materialized when the renamed expression is an explicit
10361         dereference.
10362
10363 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10364
10365         * freeze.adb (Statically_Discriminated_Components): Return false if
10366         the bounds of the type of the discriminant are not static expressions.
10367
10368         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
10369         the bounds of the discriminant type are not static.
10370
10371 2006-02-17  Robert Dewar  <dewar@adacore.com>
10372
10373         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
10374         then we close To if it is valid.
10375
10376 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
10377
10378         * init.c (facility_resignal_table): new array
10379         (__gnat_default_resignal_p): enhance default predicate to resignal if
10380         VMS condition has one of the predefined facility codes.
10381
10382 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
10383
10384         * Makefile.in: Use VMS64 specialized versions of several units in
10385         Interfaces.C hierarchy to be compatible with HP C default size choices.
10386         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
10387
10388 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10389
10390         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
10391         instantiation, the corresponding entity is the related_instance of the
10392         wrapper package created for the instance.
10393
10394 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10395
10396         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
10397         the current instance is nested within another instance in a child unit.
10398
10399 2006-02-17  Javier Miranda  <miranda@adacore.com>
10400             Ed Schonberg  <schonberg@adacore.com>
10401
10402         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
10403         type we cannot inherit the primitive operations; we inherit the
10404         Corresponding_Record_Type (which has the list of primitive operations).
10405         (Check_Anonymous_Access_Types): When creating anonymous access types for
10406         access components, use Rewrite in order to preserve the tree structure,
10407         for ASIS use.
10408         (Analyze_Object_Declaration): For limited types with access
10409         discriminants with defaults initialized by an aggregate, obtain
10410         subtype from aggregate as for other mutable types.
10411         (Derived_Type_Declaration): If the derived type is a limited interface,
10412         set the corresponding flag (Is_Limited_Record is not sufficient).
10413
10414 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
10415
10416         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
10417         to inline a function that returns an unconstrained type, the return
10418         expression must be the first variable declared in the body of the
10419         function.
10420
10421 2006-02-17  Javier Miranda  <miranda@adacore.com>
10422
10423         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
10424         abstract interface type, the static analysis is not enough to know if
10425         the interface is implemented or not by the source tagged type. Hence
10426         we must pass the work to the expander to generate the required code to
10427         evaluate the conversion at run-time.
10428         (Resolve_Equality_Op): Do not apply previous
10429         transformation if expansion is disasbled, to prevent anomalies when
10430         locating global references in a generic unit.
10431
10432 2006-02-17  Vincent Celier  <celier@adacore.com>
10433
10434         * snames.ads, snames.adb: New standard names for new project attributes:
10435         archive_builder, archive_indexer, compiler_pic_option,
10436         config_body_file_name, config_body_file_name_pattern,
10437         config_file_switches, config_file_unique, config_spec_file_name,
10438         config_spec_file_name_pattern, default_builder_switches,
10439         default_global_compiler_switches, default_language,
10440         dependency_file_kind, global_compiler_switches, include_path,
10441         include_path_file, language_kind, linker_executable_option,
10442         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
10443         roots, runtime_project.
10444
10445 2006-02-17  Matthew Heaney  <heaney@adacore.com>
10446
10447         * a-convec.ads, a-convec.adb: 
10448         (operator "&"): handle potential overflow for large index types
10449         (Insert): removed Contraint_Error when using large index types
10450         (Insert_Space): removed Constraint_Error for large index types
10451         (Length): moved constraint check from Length to Insert
10452
10453         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
10454         as not null access.
10455         Explicit raise statements now include an exception message.
10456         (operator "&"): handle potential overflow for large index types
10457         (Insert): removed Contraint_Error when using large index types
10458         (Insert_Space): removed Constraint_Error for large index types
10459         (Length): moved constraint check from Length to Insert
10460
10461 2006-02-17  Robert Dewar  <dewar@adacore.com>
10462
10463         * s-wchcnv.adb: Document handling of [ on output (we do not change
10464         this to ["5B"] and the new comments say why not.
10465
10466         * gnat_ugn.texi: 
10467         Add note for -gnatVo that this now includes the cases of type
10468         conversions and qualified expressions.
10469         Add comments on handling of brackets encoding for Text_IO
10470
10471 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
10472             Thomas Quinot  <quinot@adacore.com>
10473             Robert Dewar  <dewar@adacore.com>
10474             Javier Miranda  <miranda@adacore.com>
10475
10476         * expander.adb: Fix typo in comment
10477
10478         * exp_pakd.adb: Fix typo
10479         Minor comment reformatting.
10480
10481         * g-dyntab.adb: Minor reformatting
10482
10483         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
10484         aliased subprograms to look for the abstract interface subprogram.
10485
10486 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10487
10488         * env.c (__gnat_setenv): Use size_t.
10489         (__gnat_unsetenv): Likewise.
10490         (__gnat_clearenv): Likewise.
10491
10492 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
10493
10494         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
10495
10496 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10497
10498         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
10499         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
10500         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
10501         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
10502         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
10503         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
10504         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
10505         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
10506         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
10507         no longer used.
10508
10509 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
10510
10511         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
10512         protection against race conditions is not needed.
10513         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
10514         fallback handler.
10515         (Set_Specific_Handler): Add mutual exclusive access to the specific
10516         handler.
10517         (Specific_Handler): Add mutual exclusive access for retrieving the
10518         specific handler.
10519
10520         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
10521         back handler.
10522
10523         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
10524         Fall_Back_Handler and Specific_Handler.
10525
10526         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
10527         termination handlers.
10528         Set two different owerflow depending on the maximal stack size.
10529
10530         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
10531         protection against race conditions is not needed when executing the
10532         task termination handler.
10533
10534 2006-02-13  Robert Dewar  <dewar@adacore.com>
10535
10536         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
10537         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
10538         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10539         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
10540         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
10541         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
10542         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
10543         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
10544         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
10545         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10546         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
10547         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
10548         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
10549         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
10550         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
10551         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
10552         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
10553         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
10554         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
10555         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
10556         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
10557         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
10558         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
10559         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
10560         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
10561         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
10562         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
10563         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
10564         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
10565         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
10566         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
10567         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
10568         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
10569         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
10570         reformatting.
10571
10572 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
10573
10574         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
10575         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
10576         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
10577         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
10578         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
10579         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
10580         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
10581         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
10582         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
10583
10584 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10585
10586         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
10587         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
10588         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
10589         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
10590         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
10591         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
10592         replaced by anonymous access type.
10593         (pthread_sigmask): Now take an access sigset_t
10594
10595         * s-osinte-hpux.ads:  Ditto.
10596         (pthread_mutex_t, pthread_cond_t): Update definitions to support
10597         properly 32 and 64 bit ABIs.
10598
10599 2006-02-13  Pascal Obry  <obry@adacore.com>
10600
10601         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
10602         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
10603         s-taprop-linux.adb, s-taprop-solaris.adb,
10604         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
10605         adjustement is already done when calling this routine.
10606
10607 2006-02-13  Pascal Obry  <obry@adacore.com>
10608
10609         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
10610         table to take advantage of the 16 priority levels available on Windows
10611         2000 and XP. On NT4 there are only 7 priority levels, this is properly
10612         supported by this new mapping.
10613
10614 2006-02-13  Nicolas Setton  <setton@adacore.com>
10615
10616         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
10617         (get_encoding): New subprogram. Extracts the encodings from an encoded
10618         Ada name.
10619
10620 2006-02-13  Pascal Obry  <obry@adacore.com>
10621             Nicolas Roche  <roche@adacore.com>
10622             Arnaud Charlet  <charlet@adacore.com>
10623
10624         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
10625         support.
10626         (__gnat_try_lock): Add unicode support by using a specific section on
10627         Windows.
10628         (__gnat_get_current_dir): Idem.
10629         (__gnat_open_read): Idem.
10630         (__gnat_open_rw): Idem.
10631         (__gnat_open_create): Idem.
10632         (__gnat_create_output_file): Idem.
10633         (__gnat_open_append): Idem.
10634         (__gnat_open_new): Idem.
10635         (__gnat_file_time_name): Idem.
10636         (__gnat_set_file_time_name): Idem.
10637         (__gnat_stat): Idem.
10638         (win32_no_block_spawn): Idem.
10639         (__gnat_locate_exec_on_path): Idem.
10640         (__gnat_opendir): New routine.
10641         (__gnat_closedir): Idem.
10642         (__gnat_readdir): Add new parameter length (pointer to int). Update
10643         implementation to use it and add specific Win32 code for Unicode
10644         support.
10645         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
10646         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
10647         (convert_addresses): Do not define this dummy routine on VMS.
10648
10649         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
10650         runtime Unicode support will be activated.
10651         (S2WS): String to Wide-String conversion. This version just copy a
10652         string in non Unicode version.
10653         (WS2S): Wide-String to String conversion. This version just copy a
10654         string in non Unicode version.
10655
10656         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
10657         (Open): Now import __gnat_opendir from adaint.c.
10658         (Read): Change the implementation to support unicode characters. It is
10659         not possible to use strlen() on Windows as this version supports only
10660         standard ASCII characters. So the length of the directory entry is now
10661         returned from the imported __gnat_readdir routine.
10662         Update copyright notice.
10663
10664         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
10665         (opendir): Moved to adaint.c.
10666
10667         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
10668         (Get_Directory): Fix wrong indexing.
10669         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
10670         __gnat_getenv from env.c
10671         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
10672         from env.c
10673
10674         * env.h, env.c: New file.
10675
10676         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
10677         adaint.c by __gnat_getenv from env.c
10678
10679         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
10680         adaint.c by __gnat_getenv from env.c
10681
10682         * Make-lang.in: Add env.o in the list of C object needed by gnat1
10683         and gnatbind.
10684         Update dependencies.
10685
10686 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10687             Olivier Hainque  <hainque@adacore.com>
10688             Eric Botcazou  <ebotcazou@adacore.com>
10689
10690         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
10691         
10692         * gigi.h (value_factor_p): Add prototype and description, now public.
10693
10694         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
10695         promotion for field with rep clause if the associated size was proven
10696         to be in error.
10697         Expand comments describing attempts to use a packable type.
10698         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
10699         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
10700         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
10701         necessary since these are not different types and pointers may
10702         actually designate any subtype in this hierarchy.
10703         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
10704         discriminants but put them into record only if not Unchecked_Union;
10705         pass flag to components_to_record showing Unchecked_Union.
10706         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
10707         components before variants; don't set TYPE_UNCHECKED_UNION_P.
10708         (components_to_record): New argument UNCHECKED_UNION.
10709         Remove special case code for Unchecked_Union and instead use main code
10710         with small changes.
10711
10712         PR ada/26096
10713         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
10714         variable with the expression being built, only its inner field.
10715
10716         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
10717         emit_sequence_entry_statements.
10718         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
10719         (establish_gnat_vms_condition_handler): Move before
10720         Subprogram_Body_to_gnu.
10721         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
10722         for a subprogram if it has a foreign convention or is exported.
10723         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
10724         substituted for a CONST_DECL.
10725         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
10726         Etype to assoc_to_constructor.
10727         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
10728         discriminants of Unchecked_Union.
10729         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
10730         don't need cluttering preprocessor directives.
10731         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
10732         condition handler as current in the compiled function.
10733         (body_with_handlers_p): New function. Tell whether a given sequence of
10734         statements node is attached to a package or subprogram body and involves
10735         exception handlers possibly nested within inner block statements.
10736         (emit_sequence_entry_statements): New function, to emit special
10737         statements on entry of sequences when necessary. Establish GNAT
10738         condition handler in the proper cases for VMS.
10739         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
10740         emit_sequence_entry_statements.
10741
10742         * utils2.c (find_common_type): If both input types are BLKmode and
10743         have a constant size, use the smaller one.
10744         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
10745         the same.
10746
10747         * utils.c (value_factor_p): Make public, to allow uses from other gigi
10748         units.
10749         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
10750         (convert, case UNION_TYPE): Remove special treatment for unchecked
10751         unions.
10752
10753         PR ada/18659
10754         (update_pointer_to): Update variants of pointer types to unconstrained
10755         arrays by attaching the list of fields of the main variant.
10756
10757 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10758             Robert Dewar  <dewar@adacore.com>
10759
10760         * a-exexpr.adb, a-exexpr-gcc.adb
10761         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
10762         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
10763         Remove code unused for exception propagation for the compiler itself
10764         from a-except.adb and update to still share separate packages.
10765
10766         * a-except.ads, a-except.adb: Ditto.
10767         Add comments that this version is now used only by the compiler and
10768         other basic tools. The full version that includes the Ada 2005 stuff
10769         is in separate files a-except-2005.ads/adb. The reason is that we do
10770         not want to cause bootstrap problems with compilers not recognizing
10771         Wide_Wide_String.
10772         Add exception reason code PE_Implicit_Return
10773         Add new exception reason code (Null Exception_Id)
10774
10775         * a-except-2005.adb, a-except-2005.ads: New files.
10776
10777         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
10778
10779         * s-wchcon.adb: New file.
10780
10781         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
10782         (traceback.o deps): Likewise.
10783         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
10784         Activate build of GMEM instrumentation library on VMS targets.
10785         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
10786         Use a-except-2005.ads/adb for all run-time library builds unless
10787         specified otherwise.
10788         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
10789         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
10790         Use s-parame.adb on all native platforms.
10791         Use s-parame-vxworks.adb on all vxworks platforms.
10792         Add env.c env.h in LIBGNAT_SRCS
10793         Add env.o in LIBGNAT_OBJS
10794         (GNATMAKE_OBJS): Remove ctrl_c.o object.
10795         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
10796         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10797         supports VxWorks 6 RTPs.
10798         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
10799         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10800
10801         * types.h, types.ads (Terminate_Program): New exception
10802         Add comment on modifying multiple versions of a-except.adb when the
10803         table of exception reasons is modified.
10804         Add exception reason code PE_Implicit_Return
10805         Add new exception reason code (Null Exception_Id)
10806
10807         * clean.adb (Initialize): Get the target parameters before checking
10808         if target is OpenVMS. Move the OpenVMS specific code here from package
10809         body elaboration code.
10810
10811 2006-02-13  Thomas Quinot  <quinot@adacore.com>
10812             Vincent Celier  <celier@adacore.com>
10813             Robert Dewar  <dewar@adacore.com>
10814
10815         * ali-util.adb (Get_File_Checksum): Update to account for change in
10816         profile of Initialize_Scanner.
10817
10818         * gprep.adb (Gnatprep): Update to account for change in profile of
10819         Initialize_Scanner.
10820         (Process_One_File): Same.
10821
10822         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
10823         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
10824         that behaviour using the new Unit information recorded in the source
10825         files table, rather than going through all units every time.
10826         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
10827         (Get_Source_Unit): Same.
10828
10829         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
10830         change in profile of Initialize_Scanner.
10831         (Prepare_To_Preprocess): Same.
10832
10833         * lib.ads: Fix typo in comment (templace -> template).
10834
10835         * prj-part.adb (Parse_Single_Project): Update to account for change in
10836         profile of Initialize_Scanner.
10837
10838         * scn.adb (Initialize_Scanner): Account for change in profile of
10839         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
10840         Also record the association of the given Source_File_Index to the
10841         corresponding Unit_Number_Type.
10842
10843         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
10844         procedure.
10845         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
10846         Remove Unit formal for generic scanner: this formal
10847         is only relevant to Scn (the scanner instance used to parse Ada source
10848         files), not to other instances. Update comment accordingly.
10849         (Scan): Use new function Snames.Is_Keyword_Name.
10850
10851         * sinfo-cn.adb: Fix typo in comment.
10852
10853         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
10854         Unit.
10855
10856         * sinput.ads (Source_File_Record): New component Unit, used to capture
10857         the unit identifier (if any) associated to a source file.
10858
10859         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
10860         Unit in Source_File_Record.
10861
10862         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
10863         in profile of Initialize_Scanner.
10864
10865         * scans.adb (Initialize_Ada_Keywords): New procedure
10866
10867         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
10868         Ada keywords in the Namet table, without the need to call
10869         Initialize_Scanner.
10870
10871         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
10872         (Is_Keyword_Name): New function
10873
10874         * snames.ads: Add subtype Configuration_Pragma_Names
10875         Add pragma Ada_2005 (synonym for Ada_05)
10876         (Is_Keyword_Name): New function
10877
10878         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
10879
10880 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10881
10882         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
10883         index.
10884
10885         * a-stwima.adb (To_Set): Add extra check when N = 0.
10886
10887         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
10888
10889 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
10890
10891         * s-parame-mingw.adb, s-parame-linux.adb,
10892         s-parame-solaris.adb: Removed, replaced by s-parame.adb
10893
10894         * s-parame-vxworks.ads: Fix typo.
10895
10896         * s-parame-vxworks.adb: New file.
10897
10898         * s-parame.adb: Version now used by all native platforms.
10899         (Default_Stack_Size): Use 2 megs for default stack size and use
10900         __gl_default_stack_size when available.
10901         (Minimum_Stack_Size): Use 12K.
10902
10903         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
10904         (Create_Task): Refine implementation taking advantage of the XP stack
10905         size support. On XP, we now create the thread using the flag
10906         STACK_SIZE_PARAM_IS_A_RESERVATION.
10907
10908         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
10909
10910         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
10911         XP and 0 on older Windows versions.
10912
10913         * interfac-vms.ads: Removed, no longer used.
10914
10915 2006-02-13  Matthew Heaney  <heaney@adacore.com>
10916
10917         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
10918         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
10919         a-cohase.adb: All explicit raise statements now include an exception
10920         message.
10921
10922         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
10923         (Update_Element_Preserving_Key): renamed op to just Update_Element.
10924         Explicit raise statements now include an exception message
10925
10926         * a-cihase.ads, a-cohase.ads: Removed comment.
10927
10928         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
10929         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
10930         a-szbzha.adb, a-szfzha.ads: New files.
10931
10932 2006-02-13  Matthew Heaney  <heaney@adacore.com>
10933
10934         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
10935         quicksort.
10936
10937 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
10938
10939         * lang.opt: Wvariadic-macros: New option.
10940         Wold-style-definition: Likewise.
10941         Wmissing-format-attribute: Likewise.
10942
10943         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
10944         -Wold-style-definition and -Wmissing-format-attribute.
10945
10946 2006-02-13  Robert Dewar  <dewar@adacore.com>
10947
10948         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
10949
10950         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
10951
10952 2006-02-13  Nicolas Roche  <roche@adacore.com>
10953
10954         * a-envvar.adb, a-envvar.ads: New files.
10955
10956 2006-02-13  Douglas Rupp  <rupp@adacore.com>
10957
10958         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
10959
10960         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
10961
10962 2006-02-13  Pat Rogers  <rogers@adacore.com>
10963
10964         * a-rttiev.adb, a-rttiev.ads: New files.
10965
10966 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
10967
10968         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
10969         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
10970
10971         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
10972
10973 2006-02-13  Robert Dewar  <dewar@adacore.com>
10974
10975         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
10976         sem_case.adb: Minor code reorganization (not Present should be No)
10977
10978 2006-02-13  Geert Bosch  <bosch@adacore.com>
10979             Gary Dismukes  <dismukes@adacore.com>
10980
10981         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
10982         0, since the lower bound of the actual string may be greater than one.
10983
10984         PR ada/20753
10985         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
10986         layout is requested.
10987
10988 2006-02-13  Vincent Celier  <celier@adacore.com>
10989
10990         * back_end.adb (Scan_Compiler_Arguments): Check if
10991         Search_Directory_Present is True and, if it is, add the argument in
10992         the source search directory path.
10993
10994         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
10995         Search_Directory_Present to True.
10996
10997 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
10998
10999         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
11000         volatile, to tell the compiler to preserve this variable at any level
11001         of optimization.
11002         (Gen_Versions_Ada): Temporarily work around codegen bug.
11003
11004 2006-02-13  Vincent Celier  <celier@adacore.com>
11005
11006         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
11007         gcc to link with option -shared-libgcc.
11008         (Gnatlink): Remove duplicate switches -shared-libgcc
11009
11010 2006-02-13  Robert Dewar  <dewar@adacore.com>
11011
11012         * gnatvsn.ads (Current_Year): New constant, used to easily update
11013         copyright on all GNAT tools.
11014
11015         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
11016         copyright notice.
11017
11018 2006-02-13  Robert Dewar  <dewar@adacore.com>
11019
11020         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
11021         after hyphen (small aesthetic change useful for a range of numbers
11022         using ^-^.
11023         Suppress range checks for a couple of assignments which otherwise
11024         cause validity checks with validity checking turned on.
11025
11026         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
11027         Improvement in error message for object.
11028         (Rep_Item_Too_Late): Remove '!' in warning message.
11029
11030 2006-02-13  Robert Dewar  <dewar@adacore.com>
11031             Eric Botcazou  <ebotcazou@adacore.com>
11032
11033         * err_vars.ads: Suppress range checks for a couple of assignments
11034         which otherwise cause validity checks with validity checking turned on.
11035         Update comments.
11036
11037         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
11038         Make message unconditional if it is a warning.
11039         (Error_Msg_NEL): Always output warning messages.
11040         Suppress range checks for a couple of assignments which otherwise
11041         cause validity checks with validity checking turned on.
11042
11043         * errout.ads (Message Insertion Characters): Document that '!' is
11044         implied by '?' in error messages.
11045
11046         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
11047         (Gnat1drv): Use a goto to end of main subprogram instead of
11048         Exit_Program (E_Success) so that finalization can occur normally.
11049
11050 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
11051
11052         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
11053         wrapped around.
11054
11055 2006-02-13  Vincent Celier  <celier@adacore.com>
11056
11057         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
11058         Unchecked_Conversion functions.
11059         (Modification_Time): Use direct conversion of OS_Time to Calendar time
11060         when OpenVMS returns False.
11061
11062         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
11063         a-dirval.adb (OpenVMS): New Boolean function
11064
11065 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11066             Thomas Quinot  <quinot@adacore.com>
11067
11068         * checks.adb (Build_Discriminant_Checks): If the expression being
11069         checks is an aggregate retrieve the values of its discriminants to
11070         generate the check, rather than creating a temporary and a reference
11071         to it.
11072         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
11073         (Install_Null_Excluding_Check): Ditto
11074         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
11075         not for the renamed object, so that the actual itype is attached in the
11076         proper context.
11077
11078 2006-02-13  Robert Dewar  <dewar@adacore.com>
11079             Vincent Celier  <celier@adacore.com>
11080
11081         * debug.adb: Eliminate numeric switches for binder/gnatmake
11082
11083         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
11084         switches for the compiler.
11085         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
11086         (Scan_Make_Switches): When failing with an illegal switch, output an
11087         error message with the full switch.
11088         Eliminate numeric switches for binder/gnatmake
11089
11090         * switch.ads, switch.adb (Bad_Switch): New procedure
11091
11092         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
11093         Remove 0-9 as debug flag character possibilities
11094         -d is now controlling the primary stack size when its value is a
11095         positive. Also add checks against invalid values, and support for kb,
11096         mb. Ditto for -D switch.
11097
11098 2006-02-13  Robert Dewar  <dewar@adacore.com>
11099             Serguei Rybin  <rybin@adacore.com>
11100
11101         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
11102         save/restore routines.
11103         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11104         were not always properly handled previously.
11105         Since we are changing the tree format anyway, also get rid of the
11106         junk obsolete Immediate_Errors flag.
11107         (Tree_Read): Change the way of reading Tree_Version_String - now we
11108         read the version string from the tree even if its length is not the
11109         same as the length of the version string computed from Gnatvsn.
11110         (Search_Directory_Present): New Boolean flag for the compiler.
11111         Define Tree_Version_String as a dynamic string.
11112         (Default_Stack_Size): new variable, used to handle switch -d.
11113
11114         * par-prag.adb: 
11115         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
11116         only for main unit.
11117         Add pragma Ada_2005 (synonym for Ada_05)
11118         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11119         were not always properly handled previously.
11120
11121         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
11122         explicit Ada_95 to Ada_2005.
11123
11124 2006-02-13  Javier Miranda  <miranda@adacore.com>
11125             Robert Dewar  <dewar@adacore.com>
11126             Ed Schonberg  <schonberg@adacore.com>
11127
11128         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
11129         against errors in the source program: a private types for which the
11130         corresponding full type declaration is missing and pragma CPP_Virtual
11131         is used.
11132         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
11133         (Is_Known_Null): New flag
11134         (Has_Pragma_Pure): New flag
11135         (No_Return): Present in all entities, set only for procedures
11136         (Is_Limited_Type): A type whose ancestor is an interface is limited if
11137         explicitly declared limited.
11138         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
11139         entities. Only used for component marked Is_Tag. If present it stores
11140         the Offset_To_Top function used to provide this value in tagged types
11141         whose ancestor has discriminants.
11142
11143         * exp_ch2.adb: Update status of new Is_Known_Null flag
11144
11145         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
11146
11147         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
11148         the categorization sense if Is_Pure was set by pragma Pure_Function.
11149
11150 2006-02-13  Quentin Ochem  <ochem@adacore.com>
11151             Olivier Hainque  <hainque@adacore.com>
11152
11153         * bindusg.adb: Updated documentation for -d and -D switches.
11154
11155         * raise.h (__gnat_set_globals): added new parameter for
11156         Default_Stack_Size.
11157
11158         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
11159         (__gnat_handle_vms_condition): Adjust context before raise.
11160         (__gnat_install_handler): Restore the global vector setup for GCC
11161         versions before 3.4, as the frame based circtuitry is not available
11162         in this case.
11163         (__gnat_set_globals): added a parameter default_stack_size
11164         (__gl_default_stack_size): new variable.
11165
11166 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11167
11168         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
11169         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
11170         does not exist in the Ada RM.
11171         (Compatible_Int_Bounds): Determine whether two integer range bounds
11172         are of equal length and have the same start and end values.
11173         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
11174         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
11175         aggregate when it is part of an object declaration.
11176         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
11177         constrains discriminants of its parent, add explicitly the discriminant
11178         constraints of the ancestor by retrieving them from the
11179         stored_constraint of the parent.
11180
11181 2006-02-13  Robert Dewar  <dewar@adacore.com>
11182
11183         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
11184         attribute Mechanism_Code is applied to renamed subprogram, modify
11185         prefix to point to base subprogram.
11186         Max/Min attributes now violate Restriction No_Implicit_Conditionals
11187
11188         * sinfo.ads: Document that Mechanism_Code cannot be applied to
11189         renamed subprograms so that the front-end must replace the prefix
11190         appropriately.
11191
11192 2006-02-13  Javier Miranda  <miranda@adacore.com>
11193             Gary Dismukes  <dismukes@adacore.com>
11194
11195         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
11196         availability of RE_Interface_Tag.
11197         (Build_Initialization_Call): Fix wrong access to the discriminant value.
11198         (Freeze_Record_Type): Do not generate the tables associated with
11199         timed and conditional dispatching calls through synchronized
11200         interfaces if compiling under No_Dispatching_Calls restriction.
11201         When compiling for Ada 2005, for a nonabstract
11202         type with a null extension, call Make_Controlling_Function_Wrappers
11203         and insert the wrapper function declarations and bodies (the latter
11204         being appended as freeze actions).
11205         (Predefined_Primitive_Bodies): Do not generate the bodies of the
11206         predefined primitives associated with timed and conditional
11207         dispatching calls through synchronized interfaces if we are
11208         compiling under No_Dispatching_Calls.
11209         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
11210         service is available before generating a call.
11211         (Make_Controlling_Function_Wrappers): New procedure.
11212         (Expand_N_Full_Type_Declaration): Create a class-wide master for
11213         access-to-limited-interfaces because they can be used to reference
11214         tasks that implement such limited interface.
11215         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
11216         procedure spec and body of the Offset_To_Top function that is generated
11217         when the parent of a type with discriminants has secondary dispatch
11218         tables.
11219         (Init_Secondary_Tags): Handle the case in which the parent of the type
11220         containing secondary dispatch tables has discriminants to generate the
11221         correct arguments to call Set_Offset_To_Top.
11222         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
11223
11224         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
11225         Add Wide_[Wide_]Expanded_Name.
11226         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
11227         the same functionality of Get_Prim_Op_Address but applied to predefined
11228         primitive operations because the pointers to the predefined primitives
11229         are now saved in a separate table.
11230         (Parent_Size): Modified to get access to the separate table of primitive
11231         operations or the parent type.
11232         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
11233         functionality of Set_Prim_Op_Address but applied to predefined primitive
11234         operations.
11235         (Set_Signature): New subprogram used to store the signature of a DT.
11236         (Displace): If the Offset_To_Top value is not static then call the
11237         function generated by the expander to get such value; otherwise use
11238         the value stored in the table of interfaces.
11239         (Offset_To_Top): The type of the actual has been changed to Address to
11240         give the correct support to tagged types with discriminants. In this
11241         case this value is stored just immediately after the tag field.
11242         (Set_Offset_To_Top): Two new formals have been added to indicate if the
11243         offset_to_top value is static and hence pass this value to the run-time
11244         to store it in the table of interfaces, or else if this value is dynamic
11245         and then pass to the run-time the address of a function that is
11246         generated by the expander to provide this value for each object of the
11247         type.
11248
11249         * rtsfind.ads (Default_Prin_Op_Count): Removed.
11250         (Default_Prim_Op_Count): New entity
11251         (Get_Predefined_Prim_Op_Address): New entity
11252         (Set_Predefined_Prim_Op_Address): New entity
11253         (RE_Set_Signature): New entity
11254
11255 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11256             Ed Schonberg  <schonberg@adacore.com>
11257
11258         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
11259         Make_Adjust_Call done for a newly-allocated object.
11260
11261         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
11262         in a subprogram are wrapped in a cleanup block, indicate that the
11263         subprogram contains an inner block with an exception handler.
11264         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
11265         Adjust call is for a newly-allocated object. In that case we must not
11266         assume that the finalization list chain pointers are correct (since they
11267         come from a bit-for-bit copy of the original object's pointers) so if
11268         the attach level would otherwise be zero (no change), we set it to 4
11269         instead to cause the pointers to be reset to null.
11270
11271         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
11272         reset chain pointers to null.
11273
11274 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11275
11276         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
11277         string, and the context requires a loop for the assignment (e.g.
11278         because the left-hand side is packed), generate a unique name for the
11279         temporary that holds the string, to prevent spurious name clashes.
11280
11281 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11282             Javier Miranda  <miranda@adacore.com>
11283             Robert Dewar  <dewar@adacore.com>
11284             Gary Dismukes  <dismukes@adacore.com>
11285
11286         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
11287         return unconstrained arrays.
11288         Update comments.
11289         (Expand_Call):  An indirect call through an access parameter of a
11290         protected operation is not a protected call.
11291         Add circuit to raise CE in Ada 2005 mode following call
11292         to Raise_Exception.
11293         (Register_DT_Entry): Do nothing if
11294         the run-time does not give support to abstract interfaces.
11295         (Freeze_Subprogram): In case of dispatching operations, do not generate
11296         code to register the operation in the dispatch table if the source
11297         is compiled with No_Dispatching_Calls.
11298         (Register_Predefined_DT_Entry): Generate code that calls the new
11299         run-time subprogram Set_Predefined_Prim_Op_Address instead of
11300         Set_Prim_Op_Address.
11301
11302         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
11303         on array assignments if the right-hand side is a function call that has
11304         been inlined. Check is performed on the assignment in the block.
11305         (Process_Bounds): If bounds and range are overloaded, apply preference
11306         rule for root operations to disambiguate, and diagnose true ambiguity.
11307         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
11308         a tag-indeterminate right-hand side even when Expander_Active is True.
11309         Needed to ensure that dispatching calls to T'Input are allowed and
11310         get the tag of the target class-wide object.
11311
11312         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
11313         an inherited primitive operation that already overrides several
11314         abstract interface primitives. For transitivity, the new entity must
11315         also override all the abstract interface primitives covered by the
11316         inherited overriden primitive.
11317         Emit warning if new entity differs from homograph in same scope only in
11318         that one has an access parameter and the other one has a parameter of
11319         a general access type with the same designated type, at the same
11320         position in the signature.
11321         (Make_Inequality_Operator): Use source locations of parameters and
11322         subtype marks from corresponding equality operator when creating the
11323         tree structure for the implicit declaration of "/=". This does not
11324         change anything in behaviour except that the decoration of the
11325         components of the subtree created for "/=" allows ASIS to get the
11326         string images of the corresponding identifiers.
11327         (Analyze_Return_Statement): Remove '!' in warning message.
11328         (Check_Statement_Sequence): Likewise.
11329         (Analyze_Subprogram_Body): For an access parameter whose designated type
11330         is an incomplete type imported through a limited_with clause, use the
11331         type of the corresponding formal in the body.
11332         (Check_Returns): Implicit return in No_Return procedure now raises
11333         Program_Error with a compile time warning, instead of beging illegal.
11334         (Has_Single_Return):  Function returning unconstrained type cannot be
11335         inlined if expression in unique return statement is not an identifier.
11336         (Build_Body_To_Inline): It is possible to inline a function call that
11337         returns an unconstrained type if all return statements in the function
11338         return the same local variable. Subsidiary procedure Has_Single_Return
11339         verifies that the body conforms to this restriction.
11340
11341         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
11342         same type, and  one of them is of an anonymous access type, convert
11343         the other operand to it, so that this is a valid binary operation for
11344         gigi.
11345         (Resolve_Type_Conversion): Handle subtypes of protected types and
11346         task types when accessing to the corresponding record type.
11347         (Resolve_Allocator): Add '\' in 2-line warning message.
11348         Remove '!' in warning message.
11349         (Resolve_Call): Add '\' in 2-line warning message.
11350         (Valid_Conversion): Likewise.
11351         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
11352         resulting type may be an access type with an implicit dereference.
11353         Obtain the proper component from the designated type.
11354         (Make_Call_Into_Operator): Handle properly a call to predefined equality
11355         given by an expanded name with prefix Standard, when the operands are
11356         of an anonymous access type.
11357         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
11358         Explicit_Dereference and Resolve_Selected_Component, to verify that the
11359         prefix of the expression is not of an incomplete type. Allows full
11360         diagnoses of all semantic errors.
11361         (Resolve_Actuals): If the actual is an allocator whose directly
11362         designated type is a class-wide interface we build an anonymous
11363         access type to use it as the type of the allocator. Later, when
11364         the subprogram call is expanded, if the interface has a secondary
11365         dispatch table the expander will add a type conversion to force
11366         the displacement of the pointer.
11367         (Resolve_Call): If a function that returns an unconstrained type is
11368         marked Inlined_Always and inlined, the call will be inlined and does
11369         not require the creation of a transient scope.
11370         (Check_Direct_Boolean_Op): Removed
11371         (Resolve_Comparison_Op): Remove call to above
11372         (Resolve_Equality_Op): Remove call to above
11373         (Resolve_Logical_Op): Inline above, since this is only call.
11374         (Valid_Conversion): Handle properly conversions between arrays of
11375         convertible anonymous access types.
11376
11377         PR ada/25885
11378         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
11379         the literal in an unchecked conversion, because GCC 4.x needs a static
11380         value for a string bound.
11381
11382 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11383             Hristian Kirtchev  <kirtchev@adacore.com>
11384
11385         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
11386         components of the corresponding record, take into account component
11387         definitions that are access definitions.
11388         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
11389         procedure is not considered a dispatching call and will be expanded
11390         properly.
11391
11392 2006-02-13  Javier Miranda  <miranda@adacore.com>
11393
11394         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
11395         controlling argument of the dispatching call is an abstract interface
11396         class-wide type then we use it directly.
11397         Check No_Dispatching_Calls restriction.
11398         (Default_Prim_Op_Position): Remove the code that looks for the last
11399         entity in the list of aliased subprograms. This code was wrong in
11400         case of renamings.
11401         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
11402         when the source is compiled with the No_Dispatching_Calls restriction.
11403         (Init_Predefined_Interface_Primitives): No need to inherit primitives
11404         if we are compiling with restriction No_Dispatching_Calls.
11405         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
11406         subprograms if we are compiling under No_Dispatching_Calls restriction.
11407         (Make_DT): Generate a dispatch table with a single dummy entry if
11408         we are compiling with the No_Dispatching_Calls restriction. In
11409         addition, in this case we don't generate code that calls to the
11410         following run-time subprograms: Set_Type_Kind, Inherit_DT.
11411         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
11412         of this subprogram if compiling with the No_Dispatching_Calls
11413         restriction.
11414         (Expand_Type_Conversion): Instead of using the actual parameter,
11415         the argument passed as parameter to the conversion function was
11416         erroneously referenced by the expander.
11417         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
11418         Set_Predefined_Primitive_Op_Address and Set_Signature.
11419         (Expand_Dispatching_Call): Generate call to
11420         Get_Predefined_Prim_Op_Address for predefined primitives.
11421         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
11422         predefined primitives.
11423         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
11424         primitives we reserve one dummy entry to ensure that the tag does not
11425         point to some memory that is associated with some other object. In
11426         addition, remove all the old code that generated the assignments
11427         associated with the signature of the dispatch table and replace them
11428         by a call to the new subprogram Set_Signature.
11429         (Set_All_DT_Position): Change the algorithm because now we have a
11430         separate dispatch table associated with predefined primitive operations.
11431         (Expand_Interface_Conversion): In case of non-static offset_to_top
11432         add explicit dereference to get access to the object after the call
11433         to displace the pointer to the object.
11434         (Expand_Interface_Thunk): Modify the generation of the actual used
11435         in the calls to the run-time function Offset_To_Top to fulfil its
11436         new interface.
11437         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
11438
11439 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11440
11441         * exp_dist.adb (Copy_Specification): For access parameters, copy
11442         Null_Exclusion flag, which will have been set for stream subprograms
11443         in Ada2005 mode.
11444
11445 2006-02-13  Pascal Obry  <obry@adacore.com>
11446
11447         * expect.c (__gnat_expect_portable_execvp): New implementation. The
11448         previous implementation was using the C runtime spawnve routine but
11449         the corresponding wait was using directly the Win32 API. This was
11450         causing some times a lock when waiting for an event using
11451         WaitForSingleObject in __gnat_waitpid. This new implementation uses
11452         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
11453         API fixes this problem.
11454
11455 2006-02-13  Robert Dewar  <dewar@adacore.com>
11456
11457         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
11458         call.
11459
11460 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11461
11462         * exp_pakd.ads: Fix typos in comments.
11463
11464         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
11465         array reference that is an explicit dereference, mark the converted
11466         (packed) array reference as analyzed to prevent a forthcoming
11467         reanalysis from resetting its type to the original (non-packed) array
11468         type.
11469
11470 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11471             Javier Miranda  <miranda@adacore.com>
11472             Eric Botcazou  <ebotcazou@adacore.com>
11473
11474         * exp_util.ads, exp_util.adb (Find_Prim_Op,
11475         Is_Predefined_Primitive_Operation): When
11476         searching for the predefined equality operator, verify that operands
11477         have the same type.
11478         (Is_Predefined_Dispatching_Operation): Remove the code that looks
11479         for the last entity in the list of aliased subprograms. This code
11480         was wrong in case of renamings.
11481         (Set_Renamed_Subprogram): New procedure
11482         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
11483         Exp_Type constant computed when entering this subprogram.
11484         (Known_Null): New function
11485         (OK_To_Do_Constant_Replacement): New function
11486         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
11487         (Side_Effect_Free): An attribute reference 'Input is not free of
11488         side effect, unlike other attributes that are functions. (from code
11489         reading).
11490         (Remove_Side_Effects): Expressions that involve packed arrays or records
11491         are copied at the point of reference, and therefore must be marked as
11492         renamings of objects.
11493         (Is_Predefined_Dispatching_Operation): Return false if the operation is
11494         not a dispatching operation.
11495
11496         PR ada/18819
11497         (Remove_Side_Effects): Lift enclosing type conversion nodes for
11498         elementary types in all cases.
11499
11500 2006-02-13  Javier Miranda  <miranda@adacore.com>
11501
11502         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
11503         task types when accessing to the corresponding record type.
11504         Remove '!' in warning message.
11505
11506 2006-02-13  Olivier Hainque  <hainque@adacore.com>
11507
11508         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
11509         to avoid useless and space inefficient overalignments on targets where
11510         Max_Alignment is larger than 16.
11511
11512 2006-02-13  Pascal Obry  <obry@adacore.com>
11513
11514         * g-catiio.adb (Sec_Number): New type used to compute the number of
11515         seconds since 1-1-1970.
11516         (Image) [Natural]: The parameter was an Integer, as we can't deal with
11517         negative numbers (years, months...) it is better to have a Natural here.
11518         Code clean-up.
11519         (Image) [Number]: Change parameter from Long_Integer to Number.
11520         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
11521         overflow for dates past year 2038.
11522
11523 2006-02-13  Matthew Heaney  <heaney@adacore.com>
11524
11525         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
11526         Constraint_Error.
11527
11528 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
11529
11530         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
11531         native platforms.
11532         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
11533         finalization can occur normally.
11534
11535 2006-02-13  Vincent Celier  <celier@adacore.com>
11536
11537         * gnatcmd.adb (Rules_Switches): New table
11538         (Add_To_Rules_Switches): New procedure
11539         (GNATCmd): For command CHECK, put all options following "-rules" in the
11540         Rules_Switches table. Append these -rules switches after the -cargs
11541         switches.
11542
11543 2006-02-13  Robert Dewar  <dewar@adacore.com>
11544
11545         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
11546         These two cases were generating incorrect output, and if this unit
11547         was built with checks on, generated a discriminant mismatch constraint
11548         error.
11549
11550 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11551             Robert Dewar  <dewar@adacore.com>
11552
11553         * lib-xref.adb (Get_Type_Reference): For a private type whose full
11554         view is an array type, indicate the component type as well, for
11555         navigation purposes.
11556         (Generate_Reference): Don't consider array ref on LHS to be a case
11557         of violating pragma Unreferenced.
11558         Do not give Ada 2005 warning except on real reference.
11559
11560 2006-02-13  Vincent Celier  <celier@adacore.com>
11561
11562         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
11563         main source, add switch -mdebug-main=_ada_ so that the executable can
11564         be debugged by the standard VMS debugger.
11565         (Gnatmake): Set No_Main_Subprogram to True when there is no main
11566         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
11567         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
11568         of the last source, as the binding and linking phases are never
11569         performed.
11570         Set all executable obsolete when rebuilding a library.
11571
11572         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
11573         options.
11574
11575 2006-02-13  Javier Miranda  <miranda@adacore.com>
11576
11577         PR ada/23973
11578         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
11579         code to improve the error message reported when the program has
11580         declarations of abstract interface types and it is not compiled with
11581         the -gnat05 switch.
11582         (P_Access_Definition): Reorganize the code to improve the error
11583         message reported when the new Ada 2005 syntax for anonymous
11584         access types is used and the program is not compiled with the
11585         -gnat05 switch.
11586
11587 2006-02-13  Robert Dewar  <dewar@adacore.com>
11588
11589         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
11590         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
11591         (MODE_IN)
11592
11593 2006-02-13  Javier Miranda  <miranda@adacore.com>
11594
11595         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
11596         against source containing syntax errors.
11597
11598 2006-02-13  Vincent Celier  <celier@adacore.com>
11599
11600         * prj.adb (Reset): Initialize the first element of table Namings with
11601         the standard naming data.
11602
11603 2006-02-13  Vincent Celier  <celier@adacore.com>
11604
11605         * prj.ads (Error_Warning): New enumeration type
11606
11607         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
11608         unknown, use the location of the project to report the error.
11609         (When_No_Sources): New global variable
11610         (Report_No_Ada_Sources): New procedure
11611         (Check): New parameter When_No_Sources. Set value of global variable
11612         When_No_Sources,
11613         (Find_Sources): Call Report_No_Ada_Sources when appropriate
11614         (Get_Sources_From_File): Ditto
11615         (Warn_If_Not_Sources): Better warning messages indicating the unit name
11616         and the file name.
11617
11618         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
11619         Call Prj.Proc.Process with parameter When_No_Sources.
11620
11621         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
11622         Call Recursive_Check with parameter When_No_Sources.
11623         (Recursive_Check): New parameter When_No_Sources. Call itself and
11624         Prj.Nmsc.Check with parameter When_No_Sources.
11625         (Process): New parameter When_No_Sources. Call Check with parameter
11626         When_No_Sources.
11627         (Copy_Package_Declarations): New procedure to copy renamed parameters
11628         and setting the location of the declared attributes to the location
11629         of the renamed package.
11630         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
11631         packages.
11632
11633 2006-02-13  Vincent Celier  <celier@adacore.com>
11634
11635         * prj-makr.adb (Make): Preserve the comments from the original project
11636         file.
11637         When removing nodes (attributes Source_Dirs, Source_Files,
11638         Source_List_File and package Naming), save the comments and attach the
11639         saved comments to the newly created nodes.
11640         Do not add a with clause for the naming package if one already exists.
11641
11642 2006-02-13  Javier Miranda  <miranda@adacore.com>
11643             Gary Dismukes  <dismukes@adacore.com>
11644             Robert Dewar  <dewar@adacore.com>
11645
11646         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
11647
11648         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
11649         aliased entities to look for the overriden abstract interface
11650         subprogram.
11651         (Is_Interface_Subprogram): Complete documentation.
11652         (Check_Dispatching_Operation): Do not generate code to register the
11653         operation in the dispatch table if the source is compiled with
11654         restriction No_Dispatching_Calls.
11655         (Override_Dispatching_Operation): Check for illegal attempt to override
11656         No_Return procedure with procedure that is not No_Return
11657         (Check_Dispatching_Call): Suppress the check for an abstract operation
11658         when the original node of an actual is a tag-indeterminate attribute
11659         call, since the attribute, which must be 'Input, can never be abstract.
11660         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
11661         call to the Input attribute (even when rewritten).
11662         (Propagate_Tag): Augment comment to indicate the possibility of a call
11663         to an Input attribute.
11664
11665         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
11666         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
11667
11668         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
11669         No_Wide_Characters is no longer partition-wide
11670         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
11671         rather than GNAT
11672
11673 2006-02-13  Douglas Rupp  <rupp@adacore.com>
11674
11675         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
11676
11677 2006-02-13  Javier Miranda  <miranda@adacore.com>
11678
11679         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
11680         handles default-initialized components to keep separate the management
11681         of this feature but also avoid the unrequired resolution and
11682         expansion of components that do not have partially initialized
11683         values.
11684         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
11685         (Check_Bounds): Likewise.
11686         (Check_Length): Likewise.
11687
11688 2006-02-13  Javier Miranda  <miranda@adacore.com>
11689             Ed Schonberg  <schonberg@adacore.com>
11690
11691         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
11692         abstract interface type call analyze_and_resolve to expand the type
11693         conversion into the corresponding displacement of the
11694         reference to the base of the object.
11695         (Eval_Attribute, case Width): For systems where IEEE extended precision
11696         is supported, the maximum exponent occupies 4 decimal digits.
11697         (Accessibility_Message): Add '\' in 2-line warning message.
11698         (Resolve_Attribute): Likewise.
11699         (case Attribute_Access): Significantly revise checks
11700         for illegal access-to-subprogram Access attributes to properly enforce
11701         the rules of 3.10.2(32/2).
11702         Diagnose use of current instance with an illegal attribute.
11703
11704         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
11705         to a Node_Id.
11706         (Enclosing_Generic_Unit): New function to return a node's innermost
11707         enclosing generic declaration node.
11708         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
11709         (Type_Access_Level): The accessibility level of anonymous acccess types
11710         associated with discriminants is that of the current instance of the
11711         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
11712         (Compile_Time_Constraint_Error): Handle case of conditional expression.
11713         (Kill_Current_Values_For_Entity): New function
11714         (Enter_Name): Change formal type to Entity_Id
11715
11716 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
11717             Ed Schonberg  <schonberg@adacore.com>
11718             Gary Dismukes  <dismukes@adacore.com>
11719
11720         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
11721         Analyze_Compilation_Unit.
11722         Detect and warn on redundant with clauses detected in a package spec
11723         and/or body when -gnatwr is used.
11724         (Analyze_Context): Analyze config pragmas before other items
11725         (Install_Context_Items): Don't analyze config pragmas here
11726         (Install_Limited_Withed_Unit): Set limited entity of package in
11727         with_clause so that cross-reference information or warning messages on
11728         unused packages can be properly generated
11729         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
11730         has Error_Posted set. Prevent infinite loops in illegal programs.
11731         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
11732         to the point of the error test requiring the current unit to be private.
11733         This ensures that private with clauses are not exempted from the basic
11734         checking for being a descendant of the same library unit parent as a
11735         withed private descendant unit.
11736         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
11737         handle private with clauses properly, as well as to account for cases
11738         where the withed unit is a public descendant of a private ancestor
11739         (in which case the current unit must be a descendant of the private
11740         ancestor's parent). The spec comments were updated accordingly. Also,
11741         the old error message in this subprogram was replaced with error
11742         messages that mirror the errors tested and reported by
11743         Check_Private_Child_Unit.
11744         Parameter and variable names improved for readability.
11745         (Install_Limited_Context_Clauses): Remove test for a withed unit being
11746         private as the precondition for calling
11747         Check_Private_Limited_Withed_Unit since that subprogram has been
11748         revised to test public units as well as private units.
11749
11750 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11751             Robert Dewar  <dewar@adacore.com>
11752             Ed Schonberg  <schonberg@adacore.com>
11753             Javier Miranda  <miranda@adacore.com>
11754
11755         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
11756         that Scope_Stack.First = 1.
11757         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11758         were not always properly handled previously.
11759         (Formal_Entity): Complete rewrite, to handle properly some complex case
11760         with multiple levels of parametrization by formal packages.
11761         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
11762         to the corresponding derived type declaration for proper semantics.
11763
11764         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
11765         (Check_Component): Enforce restriction on components of
11766         unchecked_unions: a component in a variant cannot contain tasks or
11767         controlled types.
11768         (Unchecked_Union): Allow nested variants and multiple discriminants, to
11769         conform to AI-216.
11770         Add pragma Ada_2005 (synonym for Ada_05)
11771         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11772         were not always properly handled previously.
11773         Document that pragma Propagate_Exceptions has no effect
11774         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11775         (Set_Convention_From_Pragma): Check that if a convention is
11776         specified for a dispatching operation, then it must be
11777         consistent with the existing convention for the operation.
11778         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
11779         longer required to specify an vtable-ptr component in the record. For
11780         compatibility reasons we leave the support for the previous definition.
11781         (Analyze_Pragma, case No_Return): Allow multiple arguments
11782
11783         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
11784         non-overrideen inherited operation with a controlling result as
11785         illegal only its implicit declaration comes from the derived type
11786         declaration of its result's type.
11787         (Check_Possible_Deferred_Completion): Relocate the object definition
11788         node of the subtype indication of a deferred constant completion rather
11789         than directly analyzing it. The analysis of the generated subtype will
11790         correctly decorate the GNAT tree.
11791         (Record_Type_Declaration): Check whether this is a declaration for a
11792         limited derived record before analyzing components.
11793         (Analyze_Component_Declaration): Diagnose record types  not explicitly
11794         declared limited when a component has a limited type.
11795         (Build_Derived_Record_Type): Code reorganization to check if some of
11796         the inherited subprograms of a tagged type cover interface primitives.
11797         This check was missing in case of a full-type associated with a private
11798         type declaration.
11799         (Constant_Redeclaration): Check that the subtypes of the partial and the
11800         full view of a constrained deferred constant statically match.
11801         (Mentions_T): A reference to the current type in an anonymous access
11802         component declaration  must be an entity name.
11803         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
11804         class_wide type to refer to full type, not to the incomplete one.
11805         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
11806         available. Required to give support to the certified run-time.
11807         (Analyze_Component_Declaration): In case of anonymous access components
11808         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
11809         (Process_Discriminants): For an access discriminant, use the
11810         discriminant specification as the associated_node_for_itype, to
11811         simplify accessibility checks.
11812
11813 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11814             Javier Miranda  <miranda@adacore.com>
11815
11816         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
11817         abstract interpretations on an operator, remove interpretations that
11818         yield Address or a type derived from it, if one of the operands is an
11819         integer literal.
11820         (Try_Object_Operation.Try_Primitive_Operation,
11821         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
11822         location when creating the new reference to a primitive or class-wide
11823         operation as a part of rewriting a subprogram call.
11824         (Try_Primitive_Operations): If context requires a function, collect all
11825         interpretations after the first match, because there may be primitive
11826         operations of the same type with the same profile and different return
11827         types. From code reading.
11828         (Try_Primitive_Operation): Use the node kind to choose the proper
11829         operation when a function and a procedure have the same parameter
11830         profile.
11831         (Complete_Object_Operation): If formal is an access parameter and prefix
11832         is an object, rewrite as an Access reference, to match signature of
11833         primitive operation.
11834         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
11835         by an expanded name with prefix Standard, when the operands are of an
11836         anonymous access type.
11837         (Remove_Abstract_Operations): If the operation is abstract because it is
11838         inherited by a user-defined type derived from Address, remove it as
11839         well from the set of candidate interpretations of an overloaded node.
11840         (Analyze_Membership_Op): Membership test not applicable to cpp-class
11841         types.
11842
11843 2006-02-13  Bob Duff  <duff@adacore.com>
11844
11845         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
11846         redundant use clauses.
11847         In particular, if the scope of two use clauses overlaps, but one is not
11848         entirely included in the other, we should not warn.  This can happen
11849         with nested packages.
11850         (Analyze_Subprogram_Renaming): Protect the compiler against previously
11851         reported errors. The bug was reported when the compiler was built
11852         with assertions enabled.
11853         (Find_Type): If the node is a 'Class reference and the prefix is a
11854         synchronized type without a corresponding record, return the type
11855         itself.
11856
11857 2006-02-13  Javier Miranda  <miranda@adacore.com>
11858
11859         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
11860         if this is the full-declaration associated with a private declaration
11861         that implement interfaces, then the private type declaration must be
11862         limited.
11863         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
11864         as aliased. The use of the 'access attribute is not available for such
11865         object (for this purpose the object should be explicitly marked as
11866         aliased, but being an anonymous type this is not possible).
11867
11868 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11869             Robert Dewar  <dewar@adacore.com>
11870
11871         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
11872         compilation unit is an elaboration scope.
11873         (Add_Task_Proc): Add '\' in 2-line warning message.
11874         (Activate_All_Desirable): Deal with case of unit with'ed by parent
11875
11876 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11877             Javier Miranda  <miranda@adacore.com>
11878
11879         * sem_type.adb (Write_Overloads): Improve display of candidate
11880         interpretations.
11881         (Add_One_Interp): Do not add to the list of interpretations aliased
11882         entities corresponding with an abstract interface type that is an
11883         immediate ancestor of a tagged type; otherwise we have a dummy
11884         conflict between this entity and the aliased entity.
11885         (Disambiguate): The predefined equality on universal_access is not
11886         usable if there is a user-defined equality with the proper signature,
11887         declared in the same declarative part as the designated type.
11888         (Find_Unique_Type): The universal_access equality operator defined under
11889         AI-230 does not cover pool specific access types.
11890         (Covers): If one of the types is a generic actual subtype, check whether
11891         it matches the partial view of the other type.
11892
11893 2006-02-13  Thomas Quinot  <quinot@adacore.com>
11894
11895         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
11896         line. This is necessary to allow In_Extended_Main_Unit to provide
11897         correct results for itypes while writing out expanded source.
11898         (Close_File): No need to update the source_index_table here since it's
11899         now done for each line.
11900
11901 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
11902             Robert Dewar  <dewar@adacore.com>
11903
11904         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
11905         preserve the source unit where the itype is declared, and prevent a
11906         backend abort.
11907         (Note_Implicit_Run_Time_Call): New procedure
11908         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
11909         E_Subprogram_Type)
11910
11911         * sprint.ads: Document use of $ for implicit run time routine call
11912
11913 2006-02-13  Quentin Ochem  <ochem@adacore.com>
11914
11915         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
11916         task name.
11917
11918 2006-02-13  Bob Duff  <duff@adacore.com>
11919
11920         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
11921         Scan_Unsigned, so we do not scan leading blanks and sign twice.
11922         Integer'Value("- 5") and Integer'Value("-+5") now correctly
11923         raise Constraint_Error.
11924
11925         * s-vallli.adb (Scan_Long_Long_Integer): Call
11926         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
11927         do not scan leading blanks and sign twice.
11928         Integer'Value("- 5") and Integer'Value("-+5") now correctly
11929         raise Constraint_Error.
11930
11931         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
11932         Scan_Long_Long_Unsigned): Split out most of the processing from
11933         Scan_Long_Long_Unsigned out into
11934         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
11935         This prevents scanning leading blanks and sign twice.
11936         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
11937         See RM-3.5(44).
11938
11939         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
11940         out most of the processing from Scan_Unsigned out into
11941         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
11942         This prevents scanning leading blanks and sign twice.
11943
11944         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
11945         use with Modular'Value attribute.
11946         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
11947         attribute.
11948
11949 2006-02-13  Robert Dewar  <dewar@adacore.com>
11950
11951         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
11952
11953 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
11954
11955         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
11956         (PPC VxWorks): Likewise.
11957         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
11958         (forced_callee): Make non-inlinable and non-pure.
11959         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
11960
11961 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
11962             Ben Brosgol  <brosgol@adacore.com>
11963             Robert Dewar  <dewar@adacore.com>
11964
11965         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
11966         support.
11967         Document that gnatbind -M option is for cross environments only.
11968         Added description of using gnatmem to trace gnat rtl allocs and deallocs
11969         Add note on use of $ to label implicit run time calls
11970         Add documentation for -gnatyI (check mode IN)
11971         Updated chapter on compatibility with HP Ada
11972         VMS-oriented edits.
11973         Ran spell and corrected errors
11974         Add documentation for gnatbind -d and rework documentation of -D
11975         at the same time.
11976         Add subprogram/data elimination section.
11977         Minor editing of annex A.
11978         Add section for gnatcheck.
11979         Add documentation for restriction No_Dispatching_Calls
11980         Add documentation for pragma Ada_2005
11981         Remove mention of obsolete pragma Propagate_Exceptions
11982         Document that pragma Unreferenced can appear after DO in ACCEPT
11983         Clarify Pure_Function for library level units
11984         Mention Max/Min in connection with No_Implicit_Conditionals
11985         No_Wide_Characters restriction is no longer partition-wide
11986         Add a nice example for Universal_Literal_String attribute
11987         Document that pragma No_Return can take multiple arguments
11988
11989         * ug_words: Added entry for gnatcheck
11990
11991         * g-ctrl_c.ads (Install_Handler): Enhance comments
11992
11993         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
11994
11995         * g-trasym.ads: Add documentation on how to do off line symbolic
11996         traceback computation.
11997
11998         * s-fatgen.adb: Add comments for Unaligned_Valid
11999
12000         * stand.ads: Fix typo in comment
12001
12002 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12003
12004         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
12005
12006 2006-02-06  Roger Sayle  <roger@eyesopen.com>
12007
12008         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
12009
12010 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12011
12012         PR target/25926
12013         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
12014         implementation that calls __main.
12015
12016 2006-01-25  Peter O'Gorman  <peter@pogma.com>
12017
12018         PR bootstrap/25859
12019         * Makefile.in (GCC_LINK): Remove quotes.
12020         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
12021         or $(GCC_LINK).
12022
12023         (powerpc-darwin): Pass -shared-libgcc when building shared library.
12024
12025 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12026
12027         PR ada/24533
12028         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
12029
12030 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12031
12032         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
12033
12034 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12035
12036         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
12037         needed.
12038
12039 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12040
12041         * Make-lang.in: Update dependencies
12042
12043 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12044
12045         * Make-lang.in: Add rule for ada/exp_sel.o
12046
12047 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12048
12049         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
12050
12051 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
12052
12053         * gnatvsn.ads (Library_Version): Bump to version 4.2
12054         (ASIS_Version_Number): Bumped.
12055
12056 2005-12-09  Doug Rupp  <rupp@adacore.com>
12057
12058         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
12059         Ada bind file prefix on VMS from b$ to b__.
12060         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
12061         __init.
12062
12063         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
12064         Targparm.OpenVMS_On_Target.
12065         (Object_Suffix): Initialize with target object suffix.
12066         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
12067
12068         * butil.adb: Change some Hostparm.OpenVMS checks to
12069         Targparm.OpenVMS_On_Target.
12070
12071         * clean.adb: Change some Hostparm.OpenVMS checks to
12072         Targparm.OpenVMS_On_Target.
12073         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
12074         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
12075         Ada bind file prefix on VMS from b$ to b__.
12076
12077         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
12078         --GCC so that Get_Target_Parameters can find system.ads.
12079         (Gnatlink): Call Get_Target_Parameters in mainline.
12080         Initialize standard packages for Targparm.
12081         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12082         (Process_Args): Also Check for object files with target object
12083         extension.
12084         (Make_Binder_File_Names): Create with target object extension.
12085         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
12086         to b__.
12087
12088         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
12089         Targparm.OpenVMS_On_Target.
12090         ({declaration},Build_Library,Check_Library): Change Ada bind file
12091         prefix on VMS from b$ to b__.
12092
12093         * osint-b.adb: Change some Hostparm.OpenVMS checks to
12094         Targparm.OpenVMS_On_Target.
12095         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
12096         b__.
12097
12098         * targext.c: New file.
12099
12100         * Makefile.in: add support for vxworks653 builds
12101         (../../vxaddr2line): gnatlink with targext.o.
12102         (TOOLS_LIBS): Move targext.o to precede libgnat.
12103         (init.o, initialize.o): Minor clean up in dependencies.
12104         (GNATLINK_OBJS): Add targparm.o, snames.o
12105         Add rules fo building targext.o and linking it explicitly with all
12106         tools.
12107         Also add targext.o to gnatlib.
12108
12109         * Make-lang.in: Add rules for building targext.o and linking it in
12110         with gnat1 and gnatbind.
12111         Add entry for exp_sel.o.
12112
12113         * osint.adb Change some Hostparm.OpenVMS checks to
12114         Targparm.OpenVMS_On_Target.
12115         (Object_File_Name): Use target object suffix.
12116
12117         * osint.ads (Object_Suffix): Remove, no longer used.
12118         (Target_Object_Suffix): Initialize with target object suffix.
12119
12120         * rident.ads: Add special exception to license.
12121
12122         * targparm.adb (Get_Target_Parameters): Set the value of
12123         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
12124         value.
12125         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
12126         
12127         * targparm.ads: Add special exception to license.
12128
12129         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
12130         function.
12131         (Copy_File): Make sure from file is closed if error on to file
12132         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
12133
12134         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
12135         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
12136
12137         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
12138         target object suffix.
12139
12140 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
12141             Quentin Ochem  <ochem@adacore.com>
12142             Florian Villoing  <villoing@adacore.com>
12143
12144         * a-taster.ads, a-taster.adb: New files.
12145
12146         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
12147         link to the version that does nothing. This way the task termination
12148         routine is not executed twice for the environment task when finishing
12149         because of an unhandled exception.
12150
12151         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
12152         handler because of an unhandled exception.
12153
12154         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
12155         System.Tasking.Utilities instead of that in System.Tasking.Stages.
12156
12157         * s-finimp.adb (initialization code): Modify the soft link for the
12158         finalization of the global list instead of Adafinal.
12159
12160         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
12161         non-tasking version of the soft link for task termination. We do
12162         nothing since if we are using the non-tasking version it
12163         means that the task termination functionality is not used.
12164         (Null_Finalize_Global_List): Add this null version for the procedure
12165         in charge of finalizing the global list for controlled objects.
12166         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
12167         instead for handling run-time termination in a more flexible way.
12168         (Adafinal_NT): This new procedure will take care of finalizing the
12169         global list for controlled objects if needed, but no tasking
12170         finalization.
12171
12172         * s-tarest.adb (Task_Lock): Do not try to lock again the
12173         Global_Task_Lock if we already own it. Otherwise, we get blocked in
12174         some run-time operations.
12175         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
12176         until all nested locks have been released.
12177         (Task_Wrapper): Call the fall-back task termination handler. It
12178         applies to all tasks but the environment task.
12179         (Finalize_Global_Tasks): Add the call for the task termination
12180         procedure for the environment task.
12181         (Task_Wrapper): suppress warnings around declaration of
12182         Secondary_Stack_Address.
12183
12184         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
12185         moved to the Common_ATCB record.
12186         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
12187         Common_ATCB record.
12188         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
12189         Common_ATCB record.
12190
12191         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
12192         Fall_Back_Handler, and Specific_Handler.
12193
12194         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
12195         defined in Ada.Task_Termination, to avoid circular dependencies.
12196         (Termination_Handler): Redefine this type here, alredy defined in
12197         Ada.Task_Termination, for avoiding circular dependencies.
12198         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
12199         for storing task termination handlers. In addition,
12200         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
12201         Common_ATCB because it is used by both the regular and the restricted
12202         run times.
12203         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
12204         Common_ATCB because it is used by both the regular and the restricted
12205         run times.
12206         (Common_ATCB): Added a dynamic task analyzer field.
12207
12208         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
12209         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
12210         (Task_Wrapper): Call the task termination handler. It applies to all
12211         tasks but the environment task.
12212         (Finalize_Global_Tasks): Call the task termination procedure for the
12213         environment task. The call to Finalize_Global_List is now performed
12214         using the soft links mechanism.
12215         (Task_Wrapper): added dynamic stack analysis.
12216
12217         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
12218         potentially blocking operations has been moved from
12219         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
12220         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
12221         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
12222         this run-time check.
12223
12224         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
12225         of task termination procedure.
12226         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
12227         link for the task termination procedure.
12228
12229         * bindusg.adb: (Bindusg): Added documentation for -u option.
12230
12231         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
12232         (Get_Main_C): Add handling of dynamic stack analysis.
12233         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
12234
12235         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
12236         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
12237         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
12238
12239         * opt.ads: Added flags used by dynamic stack measurement.
12240         (Max_Line_Length): Remove (not used anymore)
12241
12242         * s-io.ads, s-io.adb (Standard_Error): new subprogram
12243         (Standart_Output): new subprogram
12244         (Set_Output): new subprogram
12245         (Put): now uses the value of Current_Out to know if the output has to be
12246         send to stderr or stdout.
12247         
12248         * s-stausa.ads: Complete implementation.
12249
12250         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
12251         
12252         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
12253         list of Ada 05 files.
12254         (GNAT Library Units): Add AltiVec files.
12255
12256         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
12257         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
12258         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
12259
12260 2005-12-09  Nicolas Setton  <setton@adacore.com>
12261
12262         * adaint.c (__gnat_locate_regular_file): Return immediately if
12263         file_name is empty.
12264
12265 2005-12-09  Javier Miranda  <miranda@adacore.com>
12266             Hristian Kirtchev  <kirtchev@adacore.com>
12267
12268         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
12269         to the specification because the frontend generates code that uses this
12270         subprogram.
12271         (Set_Interface_Table): Add missing assertion.
12272         Update documentation describing the run-time structure.
12273         (Displace): New subprogram that displaces the pointer to the object
12274         to reference one of its secondary dispatch tables.
12275         (IW_Membership): Modified to use the new table of interfaces.
12276         (Inherit_TSD): Modified to use the new table of interfaces.
12277         (Register_Interface_Tag): Use the additional formal to fill the
12278         contents of the new table of interfaces.
12279         (Set_Interface_Table): New subprogram that stores in the TSD the
12280         pointer to the table of interfaces.
12281         (Set_Offset_To_Top): Use the additional formal to save copy of
12282         the offset value in the table of interfaces.
12283         Update structure of GNAT Primary and Secondary dispatch table diagram.
12284         Add comment section on GNAT dispatch table prologue.
12285         (Offset_To_Signature): Update the constant value of the Signature field.
12286         (Dispatch_Table): Update comment on hidden fields in the prologue.
12287         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
12288         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
12289         the type of formal parameter T to Tag, introduce additional assertions.
12290         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
12291         conversion.
12292         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
12293
12294         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
12295         in all the calls to Expand_Interface_Thunk. Instead of referencing the
12296         record component containing the tag of the secondary dispatch table we
12297         have to use the Offset_To_Top run-time function to get this information;
12298         otherwise if the pointer to the base of the object has been displace
12299         we get a wrong value if we use the 'position attribute.
12300
12301         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
12302         all the calls to Expand_Interface_Thunk.
12303         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
12304         interfaces; hence the call to Set_Interface_Table was clearly wrong.
12305         (Collect_All_Interfaces): Modify the internal subprogram Collect to
12306         ensure that the interfaces implemented by the ancestors are placed
12307         at the header of the generated list.
12308         (Expand_Interface_Conversion): Handle the case in which the displacement
12309         associated with the interface conversion is not statically known. In
12310         this case we generate a call to the new run-time subprogram Displace.
12311         (Make_DT): Generate and fill the new table of interfaces.
12312         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
12313         Get_Tagged_Kind and Set_Tagged_Kind.
12314         (Tagged_Kind): New function that determines the tagged kind of a type
12315         with respect to limitedness and concurrency and returns a reference to
12316         RE_Tagged_Kind.
12317         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
12318         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
12319         primary dispatch table for a type.
12320         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
12321         secondary dispatch table respectively of a tagged type.
12322
12323         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
12324         (Expand_Interface_Conversion): New subprogram to indicate if the
12325         displacement of the type conversion is statically known.
12326         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
12327
12328         * rtsfind.ads (RE_Offset_To_Top): New entity
12329         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
12330         accessible to users.
12331         (Re_Displace): New entity
12332         (RE_Interface_Data): New entity
12333         (RE_Set_Interface_Data): New_Entity
12334         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
12335         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
12336         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
12337         RE_TK_Tagged, RE_TK_Task.
12338
12339         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
12340         Init_Secondary_Tags_Internal to allow its use with interface types and
12341         also to generate the code for the new additional actual required
12342         by Set_Offset_To_Top.
12343         (Build_Init_Statements): In case of components associated with abstract
12344         interface types there is no need to generate a call to its IP.
12345         (Freeze_Record_Type): Generate Select Specific Data tables only for
12346         concurrent types.
12347         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
12348         the bodies and specifications of the predefined primitive operations
12349         dealing with dispatching selects and abort, 'Callable, 'Terminated only
12350         for concurrent types.
12351
12352         * exp_sel.ads, exp_sel.adb: New files.
12353
12354         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
12355         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
12356         properly protected objects and attach handler in the case of the
12357         restricted profile.
12358         Move embeded package Select_Expansion_Utilities into a separate external
12359         package.
12360         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
12361         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
12362         (Build_K, Build_S_Assignment): New subprograms, part of the select
12363         expansion utilities.
12364         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
12365         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
12366         where the trigger is a dispatching procedure of a limited tagged type.
12367
12368 2005-12-09  Olivier Hainque  <hainque@adacore.com>
12369
12370         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
12371         pointer initialization values. Make a SAVE_EXPR instead. Add comments
12372         about the use and expansion of SAVE_EXPRs in the various possible
12373         renaming handling cases.
12374         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
12375         abusing DECL_FCONTEXT.
12376
12377 2005-12-09  Matthew Heaney  <heaney@adacore.com>
12378
12379         * a-convec.adb (Merge): Added assertions to check whether vector params
12380         are sorted.
12381
12382         * a-coinve.adb (Merge): Added assertions to check whether vector params
12383         are sorted.
12384
12385         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
12386         draft.
12387         (Cursor'Read): raises PE
12388
12389         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
12390         to its default value.
12391
12392         * a-cihama.adb: Manually check whether cursor's key and elem are
12393         non-null
12394
12395         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
12396         (Merge): Assert that target and source lists are in order
12397         (Swap): Declare non-const temporaries, to pass to Splice
12398
12399         * a-cdlili.ads: (Splice): Changed param name and param mode
12400
12401         * a-cdlili.adb: (Splice): Changed param name and param mode
12402         (Merge): Assert that target and source lists are in order
12403         (Swap): Declare non-const temporaries, to pass to Splice
12404
12405         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
12406         (Write): declare Stream param as not null
12407
12408         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
12409         an exception message.
12410
12411 2005-12-09  Thomas Quinot  <quinot@adacore.com>
12412             Robert Dewar  <dewar@adacore.com>
12413
12414         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
12415         which is the absolute maximum length we can support.
12416
12417         * frontend.adb: For the processing of configuration pragma files,
12418         remove references to Opt.Max_Line_Length, which is not checked anymore.
12419
12420         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
12421         length.
12422
12423         * scn.adb, scng.adb: 
12424         Always check line length against the absolute supported maximum,
12425         Hostparm.Max_Line_Length.
12426
12427         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
12428         value for the maximum line length is Max_Line_Length (not
12429         Column_Number'Last).
12430         Minor error msg update
12431         (Set_Style_Check_Options): New interface returning error msg
12432         Minor code reorganization (processing for 'M' was out of alpha order)
12433
12434         * switch-c.adb: New interface for Set_Style_Check_Options
12435
12436         * stylesw.ads (Set_Style_Check_Options): New interface returning error
12437         msg.
12438
12439 2005-12-09  Javier Miranda  <miranda@adacore.com>
12440
12441         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
12442         with IP subprogram were only supported if there were limited types.
12443
12444         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
12445         records with IP subprogram were only supported if there were limited
12446         types.
12447
12448 2005-12-09  Olivier Hainque  <hainque@adacore.com>
12449             Eric Botcazou  <ebotcazou@adacore.com>
12450
12451         * trans.c (tree_transform, emit_check): Adjust calls to
12452         build_call_raise, passing the now expected GNAT_NODE argument.
12453
12454         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
12455         source line information than what the current global locus indicates
12456         when appropriate.
12457
12458         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
12459         field has overflowed.
12460         (build_call_raise): Add a GNAT_NODE argument to convey better source
12461         line information than what the current global locus indicates when
12462         appropriate.
12463         (build_component_ref): Adjust call to build_call_raise.
12464
12465 2005-12-09  Pascal Obry  <obry@adacore.com>
12466
12467         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
12468         the iterator is quitting iteration on parent directory.
12469
12470 2005-12-09  Javier Miranda  <miranda@adacore.com>
12471
12472         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
12473         and the assignment to a class-wide object, before the assignment we
12474         generate a run-time check to ensure that the tag of the Target is
12475         covered by the tag of the source.
12476
12477 2005-12-09  Robert Dewar  <dewar@adacore.com>
12478
12479         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
12480         parameter in call to Image_Wide_Character.
12481
12482         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
12483         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
12484         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
12485         annoying FFFE/FFFF inconsistency.
12486
12487 2005-12-09  Robert Dewar  <dewar@adacore.com>
12488             Javier Miranda  <miranda@adacore.com>
12489             Ed Schonberg  <schonberg@adacore.com>
12490
12491         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
12492         of type conversion.
12493         (Find_Interface): New subprogram that given a tagged type and one of its
12494         component associated with the secondary table of an abstract interface
12495         type, return the entity associated with such abstract interface type.
12496         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
12497         base type to create anonymous subtype, because entity may be a locally
12498         declared subtype or generic actual.
12499         (Find_Interface): New subprogram that given a tagged type and one of its
12500         component associated with the secondary table of an abstract interface
12501         type, return the entity associated with such abstract interface type.
12502
12503         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
12504         conversion cannot be handled at compile time. In this case we pass this
12505         information to the expander to generate the appropriate code.
12506
12507 2005-12-09  Robert Dewar  <dewar@adacore.com>
12508             Ed Schonberg  <schonberg@adacore.com>
12509             Gary Dismukes  <dismukes@adacore.com>
12510             Javier Miranda  <miranda@adacore.com>
12511             Hristian Kirtchev  <kirtchev@adacore.com>
12512
12513         * einfo.adb (Itype_Printed): New flag
12514         (Is_Limited_Type): Derived types do not inherit limitedness from
12515         interface progenitors.
12516         (Is_Return_By_Reference_Type): Predicate does not apply to limited
12517         interfaces.
12518
12519         * einfo.ads (Itype_Printed): New flag
12520         Move Is_Wrapper_Package to proper section
12521         Add missing Inline for Is_Volatile
12522
12523         * output.ads, output.adb (Write_Erase_Char): New procedure
12524         (Save/Restore_Output_Buffer): New procedures
12525         (Save/Restore_Output_Buffer): New procedures
12526
12527         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
12528         Add missing support for anonymous access type
12529         (Write_Id): Insert calls to Write_Itype
12530         (Write_Itype): New procedure to output itypes
12531
12532         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
12533         use of "limited" in declaration.
12534
12535         * sinfo.ads, sinfo.adb: 
12536         Formal derived types can carry an explicit "limited" indication.
12537
12538         * sem_ch3.adb: Add with and use of Targparm.
12539         (Create_Component): If Frontend_Layout_On_Target is True and the
12540         copied component does not have a known static Esize, then reset
12541         the size and positional fields of the new component.
12542         (Analyze_Component_Declaration): A limited component is
12543         legal within a protected type that implements an interface.
12544         (Collect_Interfaces): Do not add to the list the interfaces that
12545         are implemented by the ancestors.
12546         (Derived_Type_Declaration): If the parent of the full-view is an
12547         interface perform a transformation of the tree to ensure that it has
12548         the same parent than the partial-view. This simplifies the job of the
12549         expander in order to generate the correct object layout, and it is
12550         needed because the list of interfaces of the full-view can be given in
12551         any order.
12552         (Process_Full_View): The parent of the full-view does not need to be
12553         a descendant of the parent of the partial view if both parents are
12554         interfaces.
12555         (Analyze_Private_Extension_Declaration): If declaration has an explicit
12556         "limited" the parent must be a limited type.
12557         (Build_Derived_Record_Type): A derived type that is explicitly limited
12558         must have limited ancestor and progenitors.
12559         (Build_Derived_Type): Ditto.
12560         (Process_Full_View): Verify that explicit uses of "limited" in partial
12561         and full declarations are consistent.
12562         (Find_Ancestor_Interface): Remove function.
12563         (Collect_Implemented_Interfaces): New procedure used to gather all
12564         implemented interfaces by a type.
12565         (Contain_Interface): New function used to check whether an interface is
12566         present in a list.
12567         (Find_Hidden_Interface): New function used to determine whether two
12568         lists of interfaces constitute a set equality. If not, the first
12569         differing interface is returned.
12570         (Process_Full_View): Improve the check for the "no hidden interface"
12571         rule as defined by AI-396.
12572
12573 2005-12-09  Robert Dewar  <dewar@adacore.com>
12574
12575         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
12576         types, not on record subtypes.
12577         (Freeze_Entity): Code cleanup. Add barrier to the loop
12578         that generates the references for primitive operations. This allows to
12579         remove an unnecessary exception handler.
12580         Code reformatting and comment clean ups.
12581
12582 2005-12-09  Vincent Celier  <celier@adacore.com>
12583
12584         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
12585         If GNAT CHECK is called with a project file, but with no
12586         source on the command line, call gnatcheck with all the compilable
12587         sources of the project.
12588         Take into account the new command Check, for gnatcheck. Treat as for
12589         other ASIS tools: take into account project, specific package Check and
12590         Compiler switches.
12591         For ASIS tools, add the switches in package Compiler for
12592         the invocation of the compiler.
12593
12594         * prj-attr.adb: Add package Check and its attributes
12595
12596         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
12597
12598         * vms_conv.adb (Initialize): Change Params of command Check to
12599         unlimited files.
12600         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12601         Add data for new command Check
12602
12603         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
12604         ELIM.
12605         Add qualifiers for Check command options
12606         (Command_Type): New command Check
12607
12608 2005-12-09  Thomas Quinot  <quinot@adacore.com>
12609
12610         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
12611         command line switch overruns the output buffer.
12612
12613 2005-12-09  Robert Dewar  <dewar@adacore.com>
12614
12615         * sem_prag.adb: Processing for new pragma Complete_Representation
12616         (Analyze_Pragma, case Debug): Implement two argument form.
12617
12618         * par-prag.adb: Entry for new pragma Complete_Representation
12619         (Prag, case Debug): Recognize two argument form of pragma Debug
12620         New interface for Set_Style_Check_Options.
12621
12622         * sem_ch13.adb: Implement new pragma Complete_Representation.
12623
12624         * snames.adb, snames.ads, snames.h: Entry for new pragma
12625         Complete_Representation.
12626
12627 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
12628
12629         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
12630         available user-specified stream attributes on limited parameters to
12631         also test the type directly rather than only its underlying type (for
12632         Ada 95) and, in the case of Ada 2005, to check that the user-specified
12633         attributes are visible at the point of the subprogram declaration.
12634         For Ada 2005, the error message is modified to indicate that the
12635         type's stream attributes must be visible (again, only for -gnat05).
12636
12637 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
12638
12639         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
12640         anonymous access types.
12641
12642         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
12643         matching of anonymous access types and anonymous access to subprogram
12644         types. 'R'M 4.9.1 (2/2).
12645
12646 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
12647
12648         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
12649         rule prematurely when operands are universal, remaining ambiguities
12650         will be removed during resolution.
12651         Code cleanup.
12652
12653         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
12654         that are Ada 2005 functions.
12655         (Has_Abstract_Interpretation): Subsidiary to
12656         Remove_Conversions, to remove ambiguities caused by abstract operations
12657         on numeric types when operands are universal.
12658
12659 2005-12-09  Robert Dewar  <dewar@adacore.com>
12660
12661         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
12662         for case where spec is categorized.
12663
12664 2005-12-09  Javier Miranda  <miranda@adacore.com>
12665
12666         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
12667         types use the corresponding record type. This was not needed before
12668         the implementation of Ada 2005 synchronized types because
12669         concurrent types were never tagged types in Ada 95.
12670
12671 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
12672
12673         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
12674         first subtype of the type of the expression to verify that it is a
12675         legal Time type.
12676
12677 2005-12-09  Robert Dewar  <dewar@adacore.com>
12678
12679         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
12680         decoded names.
12681
12682 2005-12-09  Quentin Ochem  <ochem@adacore.com>
12683             Robert Dewar  <dewar@adacore.com>
12684             Ed Falis  <falis@adacore.com>
12685             Florian Villoing  <villoing@adacore.com>
12686             Thomas Quinot  <quinot@adacore.com>
12687             Arnaud Charlet  <charlet@adacore.com>
12688
12689         * gnat_ugn.texi: Created section "Stack Related Tools"
12690         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
12691         "Stack Related Tools"
12692         Added subsection "Static Stack Usage Analysis"
12693         Added subsection "Dynamic Stack Usage Analysis"
12694         Include documentation of itypes in sprint listing (-gnatG)
12695         Documented gnatbind -D switch (default sec stack size for fixed sec
12696         stacks).
12697         Added Interrupt_State and Persistent_BSS to list of configuration
12698         pragmas.
12699         Add missing doc for maximum value of nnn in -gnatyMnnn
12700
12701         * gnat_rm.texi: Document the AltiVec binding.
12702         Add documentation for pragma Complete_Representation
12703         Shortened an overly long line (> 79 chars)
12704         Clarify documentation of unchecked conversion in implementation
12705         defined cases.
12706         Document two argument form of pragma Debug
12707
12708         * types.ads (Column_Number): Update documentation.
12709
12710         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
12711         library level Finalize_Storage_Only objects (these are not attached to
12712         any finalization list).
12713
12714         * system-mingw.ads: (Underlying_Priorities): Update comment.
12715
12716 2005-12-09  Robert Dewar  <dewar@adacore.com>
12717
12718         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
12719         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
12720         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
12721         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
12722         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
12723         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
12724         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
12725         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
12726         reformatting.
12727
12728 2005-12-09  Robert Dewar  <dewar@adacore.com>
12729
12730         * s-vaflop-vms-alpha.adb: (Ne_F): New function
12731         (Ne_G): New function
12732
12733         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
12734         for tag assignment.
12735         (Rewrite_Comparison): Handle case where operation is not a comparison
12736         and ignore, and also handle type conversion case.
12737
12738 2005-12-09  Thomas Quinot  <quinot@adacore.com>
12739
12740         * exp_aggr.ads: Fix typo in comment.
12741         ???-mark Convert_Aggr_In_Assignment as needing documentation.
12742
12743 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
12744
12745         * layout.adb: Replace various uses of byte by storage unit throughout.
12746         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
12747         static size, convert to storage units before returning, to conform to
12748         spec.
12749
12750 2005-12-09  Matthew Gingell  <gingell@adacore.com>
12751
12752         * g-exctra.ads: Fix typo in comment.
12753
12754 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12755
12756         * utils.c: Minor reformatting.
12757
12758 2005-12-09  Robert Dewar  <dewar@adacore.com>
12759
12760         * g-soccon.ads: 
12761         Further comment fixes to make the status of the default file clear
12762
12763         * s-bitops.adb: Clarify comment for Bits_Array
12764
12765 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12766
12767         * Make-lang.in (ada.install-normal): Remove.
12768
12769 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12770
12771         * Make-lang.in: Remove all dependencies on s-gtype.
12772
12773 2005-12-05  Richard Guenther  <rguenther@suse.de>
12774
12775         * utils.c (convert): Use fold_convert where appropriate.
12776
12777 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
12778
12779         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
12780         a period is meant.
12781
12782 2005-12-02  Richard Guenther  <rguenther@suse.de>
12783
12784         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
12785
12786 2005-12-01  Roger Sayle  <roger@eyesopen.com>
12787
12788         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
12789         nodes.
12790
12791 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
12792
12793         * mlib-prj.adb (Build_Library): Initialize Delete.
12794
12795 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
12796
12797         * socket.c: Add extern int h_errno for rtems since networking header
12798         files are not available at this point in a tool bootstrap. Newlib
12799         only has basic C library header files.
12800
12801 2005-11-19  Richard Guenther  <rguenther@suse.de>
12802         Roger Sayle  <roger@eyesopen.com>
12803
12804         PR ada/23717
12805         * misc.c (internal_error_function): Don't use vsprintf to format
12806         the error message text, instead use pp_format_text and the new
12807         pretty printer APIs.  This allows handling of %qs, %w, etc.
12808
12809 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
12810
12811         PR ada/24857
12812         * Makefile.in: Use s-auxdec-empty for RTEMS.
12813
12814 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12815
12816         PR ada/22333
12817         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
12818         a temporary if taking the address of something that is neither
12819         reference, declaration, or constant, since the gimplifier
12820         can't handle that case.
12821
12822 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
12823
12824         PR ada/24857
12825         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
12826
12827 2005-11-16  Richard Guenther  <rguenther@suse.de>
12828
12829         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
12830
12831 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
12832
12833         PR ada/24855
12834         * raise-gcc.c: Add missing stdarg.h include.
12835  
12836 2005-11-16  Richard Guenther  <rguenther@suse.de>
12837
12838         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
12839         (ada/misc.o): Likewise.
12840
12841 2005-11-14  Thomas Quinot  <quinot@adacore.com>
12842
12843         * g-soccon.ads: Minor reformatting. Update comments.
12844
12845         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
12846         gain visibility on the declaration of struct timeval.
12847
12848         * g-soccon-freebsd.ads,
12849         g-soccon-darwin.ads,
12850         g-soccon-tru64.ads,
12851         g-soccon-aix.ads,
12852         g-soccon-irix.ads,
12853         g-soccon-hpux.ads,
12854         g-soccon-solaris.ads,
12855         g-soccon-vms.ads,
12856         g-soccon-mingw.ads,
12857         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
12858
12859         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
12860         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
12861         g-soccon-linux-x86.ads: New files.
12862
12863         * g-socthi-mingw.adb: 
12864         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
12865
12866         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
12867         (time_t, suseconds_t): New types constructed to match the tv_sec
12868         and tv_usec fields of C struct timeval.
12869         (Timeval): Construct structure in terms of the new types.
12870         (Host_Errno): New function (imported from socket.c), returns last hosts
12871         database error.
12872
12873         * g-socthi-vxworks.adb:  Add error handling circuitry.
12874
12875         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
12876         components of struct timeval.
12877         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
12878         (Check_Selector): In error conditions, clear internal socket sets to
12879         avoid a memory leak.
12880         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
12881         Send_Timeout, Receive_Timeout.
12882
12883         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
12884         the tv_sec and tv_usec fields of C struct timeval.
12885         (Timeval): Construct structure in terms of the new types.
12886         (Host_Errno): New function (imported from socket.c), returns last hosts
12887         database error.
12888
12889         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
12890         hosts database last error code.
12891
12892         * gen-soccon.c: Complete value expansion should not be performed on
12893         TARGET, as it has the form of a math expression, and some components
12894         may be platform-defined macros.
12895         For VxWorks, generate the OK and ERROR values.
12896         New constants giving the sizes of the components of C struct timeval.
12897
12898 2005-11-14  Robert Dewar  <dewar@adacore.com>
12899             Ed Schonberg  <schonberg@adacore.com>
12900
12901         PR ada/18434
12902         * types.ads: Include All_Checks in Suppress_Array
12903
12904         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
12905         not(a=b), since we no longer do this rewriting, and hence it is not
12906         needed.
12907         (Elaboration_Checks_Suppressed): Add special casing to
12908         deal with different cases of static and dynamic elaboration checks (all
12909         checks does not count in the first case, but does in the second).
12910         (Expr_Known_Valid): Do not assume that the result of any arbitrary
12911         function call is valid, since this is not the case.
12912         (Ensure_Valid): Do not apply validity check to a real literal
12913         in a universal or fixed context
12914
12915         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
12916         elementary types using the operator in standard. It is cleaner not to
12917         modify the programmers intent, especially in the case of floating-point.
12918         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
12919         it did not matter because we always rewrote a/=b to not(a=b).
12920         (Expand_Allocator_Expression): For an allocator expression whose nominal
12921         subtype is an unconstrained packed type, convert the expression to its
12922         actual constrained subtype.
12923         Implement warning for <= or >= where < or > not possible
12924         Fix to Vax_Float tests (too early in many routines, causing premature
12925         Vax_Float expansions.
12926
12927         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
12928         to be used with packages and generic packages as well as with
12929         subprograms.
12930         (Suppress): Set All_Checks, but not Elaboration_Check, for case
12931         of pragma Suppress (All_Checks)
12932         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
12933         a string literal for precise control over warnings.
12934         Avoid raise of pragma in case of unrecognized pragma and just return
12935         instead.
12936
12937         * sem_prag.ads: Minor reformatting
12938
12939         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
12940         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12941         Switch. Do not handle any exception.
12942         Include -gnatwx as part of -gnatg (warn on redundant parens)
12943         Allow optional = after -gnatm
12944         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
12945         longer sets Elaboration_Checks.
12946         Code to set warning mode moved to Sem_Warn
12947         so that it can be shared by pragma processing.
12948
12949         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
12950         statement.
12951
12952         * s-taprop-solaris.adb: 
12953         Change some <= to =, to avoid new warning
12954
12955         * a-exexda.adb, prj-proc.adb: 
12956         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
12957         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
12958
12959 2005-11-14  Robert Dewar  <dewar@adacore.com>
12960
12961         * exp_vfpt.adb: Handle /= case
12962         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
12963         so that we do not get duplicate scaling for fixed point conversions.
12964
12965         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
12966
12967 2005-11-14  Matthew Gingell  <gingell@adacore.com>
12968
12969         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
12970         Increase default priority on Lynx from 15 to 17, and meet the Ada
12971         requirement that Default_Priority be ((Priority'First +
12972         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
12973
12974 2005-11-14  Vincent Celier  <celier@adacore.com>
12975
12976         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12977         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12978         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
12979         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
12980         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
12981         mlib-tgt-lynxos.adb (DLL_Prefix): New function
12982
12983 2005-11-14  Doug Rupp  <rupp@adacore.com>
12984
12985         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
12986         private part.
12987
12988 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
12989
12990         * s-traces-default.adb, s-trafor-default.ads,
12991         s-tratas-default.adb: Fix compilation errors.
12992
12993 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
12994
12995         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
12996         raising the exception so the memory used is freed.
12997
12998 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
12999
13000         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
13001         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
13002         (convert_address): Update comments and list of platforms using this.
13003
13004         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
13005         no longer used.
13006
13007 2005-11-14  Pascal Obry  <obry@adacore.com>
13008             Vincent Celier  <celier@adacore.com>
13009
13010         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
13011         GNAT.Command_Line.
13012
13013         * memroot.adb: Remove redundant with/use clause on
13014         System.Storage_Elements.
13015
13016 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13017
13018         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
13019         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
13020         related code to a-exexpr.adb
13021         (Save_Occurrence_And_Private): Move GCC EH related code to
13022         a-exexpr-gcc.adb
13023         (Raise_Current_Excep): Add new variable Id with pragma
13024         volatile, to ensure that the variable lives on stack.
13025
13026         * a-exexpr-gcc.adb, raise-gcc.c: New file.
13027
13028         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
13029         from a-except.adb.
13030         Move GCC EH related code to a-exexpr-gcc.adb
13031
13032         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
13033         64-bit Solaris
13034         Split the Linux version of g-soccon into separate variants for 32 and 64
13035         bit platforms.
13036         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
13037         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
13038         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
13039         of host variable $(RANLIB_FLAGS).
13040         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
13041         Code clean up: remove unused/obsolete targets.
13042         (EH_MECHANISM): New variable introduced to differenciate between the
13043         two EH mechanisms statically.
13044         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
13045         (LIBGNAT_OBJS): Add raise-gcc.o
13046         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
13047         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13048         supports VxWorks 6 RTPs.
13049         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
13050         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13051
13052         * raise.c: Move all GCC EH-related routines to raise-gcc.c
13053
13054 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
13055
13056         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
13057         deferral level, when abort is not allowed, to a later stage (the
13058         Task_Wrapper).
13059         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
13060         it will not get changed by the generated code. It was previously done
13061         in Create_Task.
13062
13063 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13064             Olivier Hainque  <hainque@adacore.com>
13065             Eric Botcazou  <ebotcazou@adacore.com>
13066
13067         * decl.c:
13068         Factor common code to build a storage type for an unconstrained object
13069         from a fat or thin pointer type and a constrained object type.
13070         (annotate_value): Handle BIT_AND_EXPR.
13071         (annotate_rep): Don't restrict the back annotation of inherited
13072         components to the type_annotate_only case.
13073         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
13074         we are not defining the type.
13075         <E_Record_Type>: Likewise.
13076         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
13077         to get advantage of the new maybe_stabilize_reference interface, to
13078         ensure that what we reference is indeed stabilized instead of relying
13079         on assumptions on what the stabilizer does.
13080         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
13081         type imported through a limited_with clause, use its non-limited view.
13082         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
13083         differentiation.
13084         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
13085         of #if sections + explicit comparisons of convention identifiers.
13086         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
13087         before early-returning for certain types when code generation is
13088         disabled.
13089         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
13090         nullification of gnu_expr we do for objects with address clause and
13091         that we are not defining.
13092         (elaborate_expression_1): Do not create constants when creating
13093         variables needed by the debug info: the dwarf2 writer considers that
13094         CONST_DECLs is used only to represent enumeration constants, and emits
13095         nothing for them.
13096         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
13097         object with an address clause into an indirect reference, drop the
13098         initializing expression.
13099         Include "expr.h".
13100         (STACK_CHECK_BUILTIN): Delete.
13101         (STACK_CHECK_PROBE_INTERVAL): Likewise.
13102         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
13103         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
13104         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
13105         corresponding to the renamed object as ignored for debugging purposes.
13106
13107         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
13108         related): For a prefix that is a dereference of a fat or thin pointer,
13109         if there is an actual subtype provided by the front-end, use that
13110         subtype to build an actual type with bounds template.
13111         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
13112         is provided by the front-end, use that subtype to compute the size of
13113         the deallocated object.
13114         (gnat_to_gnu): When adding a statement into an elaboration procedure,
13115         check for a potential violation of a No_Elaboration_Code restriction.
13116         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13117         with extra arguments to control whether to recurse through non-values
13118         and to let the caller know if the stabilization has succeeded.
13119         (gnat_stabilize_reference): Now a simple wrapper around
13120         maybe_stabilize, for common uses without restriction on lvalues and
13121         without need to check for the success indication.
13122         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
13123         pass false instead of 0 as the FORCE argument which is a bool.
13124         (Identifier_to_gnu): Remove checks ensuring that an renamed object
13125         attached to a renaming pointer has been properly stabilized, as no such
13126         object is attached otherwise.
13127         (call_to_gnu): Invoke create_var_decl to create the temporary when the
13128         function uses the "target pointer" return mechanism.
13129         Reinstate conversion of the actual to the type of the formal
13130         parameter before any other specific treatment based on the passing
13131         mechanism. This turns out to be necessary in order for PLACEHOLDER
13132         substitution to work properly when the latter type is unconstrained.
13133
13134         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
13135         common pattern.
13136         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13137         with extra arguments to control whether to recurse through non-values
13138         and to let the caller know if the stabilization has succeeded.
13139
13140         * utils2.c (gnat_build_constructor): Only sort the fields for possible
13141         static output of record constructor if all the components are constant.
13142         (gnat_build_constructor): For a record type, sort the list of field
13143         initializers in increasing bit position order.
13144         Factor common code to build a storage type for an unconstrained object
13145         from a fat or thin pointer type and a constrained object type.
13146         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
13147         types variants, and process special cases of VIEW_CONVERT expressions
13148         as their NOP_EXPR counterpart to ensure we get to the
13149         CORRESPONDING_VARs associated with CONST_DECls.
13150         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
13151         on the right-hand side.
13152
13153         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
13154         a common pattern.
13155         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
13156         are converting back to its original type.
13157         (convert) <JM input>: Fallthrough regular conversion code instead of
13158         extracting the object if converting to a type variant.
13159         (create_var_decl): When a variable has an initializer requiring code
13160         generation and we are at the top level, check for a potential violation
13161         of a No_Elaboration_Code restriction.
13162         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
13163         SIZE and SIZE_UNIT which we need for later back-annotations.
13164         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
13165         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
13166         is an unchecked union.
13167         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
13168         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
13169         main variant, just replace the VIEW_CONVERT_EXPR.
13170         <UNION_TYPE>: Revert 2005-03-02 change.
13171
13172         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
13173
13174         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
13175
13176 2005-11-14  Matthew Heaney  <heaney@adacore.com>
13177
13178         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
13179         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
13180         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
13181         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
13182         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
13183         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
13184         Compiles against the spec for ordered maps described in sections
13185         A.18.6 of the most recent (August 2005) AI-302 draft.
13186
13187 2005-11-14  Olivier Hainque  <hainque@adacore.com>
13188
13189         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
13190         to ensure bias adjustments take place when need be and to prevent
13191         occurrences of intermediate overflows.
13192
13193 2005-11-14  Matthew Gingell  <gingell@adacore.com>
13194             Olivier Hainque  <hainque@adacore.com>
13195
13196         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
13197         ia64 HP-UX.
13198
13199         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
13200         tracebacks on ia64 HP-UX and provide explanatory comment.
13201         Enable backtraces on ia64 GNU/Linux.
13202         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
13203         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
13204
13205 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
13206             Javier Miranda  <miranda@adacore.com>
13207
13208         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
13209         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
13210         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
13211         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
13212
13213         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
13214         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
13215         assertions).
13216
13217         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
13218         subprogram that generates the external name associated with a
13219         secondary dispatch table.
13220         (Get_Secondary_DT_External_Name): New subprogram that generates the
13221         external name associated with a secondary dispatch table.
13222
13223 2005-11-14  Emmanuel Briot  <briot@adacore.com>
13224
13225         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
13226         line in the ALI file to include both an instantiation reference, and a
13227         returned value.
13228
13229 2005-11-14  Vincent Celier  <celier@adacore.com>
13230
13231         * clean.adb (Check_Project): Look for Ada code in extending project,
13232         even if Ada is not specified as a language.
13233         Use new function DLL_Prefix for DLL_Name
13234         (Clean_Interface_Copy_Directory): New procedure
13235         (Clean_Library_Directory): New procedure
13236         (Clean_Directory): Remove procedure, no longer used
13237         (Clean_Project): Do not delete any file in an externally built project
13238
13239         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
13240         directory of an extending project, even when there are no Ada source
13241         present.
13242         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
13243         (Set_Ada_Paths.Add.Recursive_Add): Ditto
13244
13245         * mlib-prj.adb (Check_Library): For all library projects, get the
13246         library file timestamp.
13247         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
13248         (Build_Library): Use new function DLL_Prefix for the DLL_Name
13249         (Clean): Remove procedure, no longer used
13250         (Ultimate_Extension_Of): New function
13251         (Build_Library): When cleaning the library directory, only remove an
13252         existing library file and any ALI file of a source of the project.
13253         When cleaning the interface copy directory, remove any source that
13254         could be a source of the project.
13255
13256         * prj.ads, prj.adb (Project_Empty): Add values of new components
13257         Library_TS and All_Imported_Projects.
13258         (Project_Empty): Add values for new components of Project_Data:
13259         Library_ALI_Dir and Display_Library_ALI_Dir
13260
13261         * prj-attr.adb: New project level attribute name Library_ALI_Dir
13262
13263         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
13264         attribute Library_ALI_Dir.
13265         (Check_Library_Attributes): The library directory cannot be the same as
13266         any source directory of the project tree.
13267         (Check_Stand_Alone_Library): The interface copy directory cannot be
13268         the same as any source directory of the project tree.
13269
13270         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
13271         all temporary files.
13272
13273 2005-11-14  Robert Dewar  <dewar@adacore.com>
13274             Ed Schonberg  <schonberg@adacore.com>
13275
13276         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13277         (Check_Elab_Call): A call within a protected body is never an
13278         elaboration call, and does not require checking.
13279         (Same_Elaboration_Scope): Take into account protected types for both
13280         entities.
13281         (Activate_Elaborate_All_Desirable): New procedure
13282
13283         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
13284         desirable
13285
13286         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
13287         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
13288
13289         * lib-writ.ads, lib-writ.adb: 
13290         Implement new AD/ED for Elaborate_All/Elaborate desirable
13291         Use new Elaborate_All_Desirable flag in N_With_Clause node
13292
13293         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
13294         N_Free_Statement nodes.
13295         Define new class N_Subprogram_Instantiation
13296         Add Elaborate_Desirable flag to N_With_Clause node
13297         Add N_Delay_Statement (covering two kinds of delay)
13298
13299         * debug.adb: Introduce d.f flag for compiler
13300         Add -da switch for binder
13301
13302 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13303             Cyrille Comar  <comar@adacore.com>
13304
13305         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
13306         for task component, in the case of a limited aggregate. The enclosed
13307         object declaration will create it earlier. Otherwise, in the case of a
13308         nested aggregate, the object may appear in the wrong scope.
13309         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
13310         (Gen_Assign): If the component being assigned is an array type and the
13311         expression is itself an aggregate, wrap the assignment in a block to
13312         force finalization actions on the temporary created for each row of the
13313         enclosing object.
13314         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
13315         structures are initialized after all discriminants are set so that
13316         they can be accessed even when their offset is dynamic.
13317
13318 2005-11-14  Robert Dewar  <dewar@adacore.com>
13319             Hristian Kirtchev  <kirtchev@adacore.com>
13320
13321         * sem_attr.adb: Implement Machine_Rounding attribute
13322         (Analyze_Access_Attribute): The access attribute may appear within an
13323         aggregate that has been expanded into a loop.
13324         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
13325         'Terminated whenever the prefix is of a task interface class-wide type.
13326         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
13327         the prefix is of a task interface class-wide type.
13328
13329         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
13330         to avoid warnings.
13331
13332         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
13333         Remove pragma Inline for [Unaligned_]Valid.
13334         Add comments that Valid routines do not work for Vax_Float
13335
13336         * exp_attr.adb: Implement Machine_Rounding attribute
13337
13338         * snames.h: Add entry for Machine_Rounding attribute
13339
13340 2005-11-14  Javier Miranda  <miranda@adacore.com>
13341             Robert Dewar  <dewar@adacore.com>
13342             Hristian Kirtchev  <kirtchev@adacore.com>
13343
13344         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
13345         and related): For a prefix that is an explicit dereference of an
13346         access to unconstrained packed array type, annotate the dereference
13347         with an actual subtype so GIGI can make a correct size computation.
13348         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
13349         'Unrestricted_Access, if the designated type is an interface we
13350         add a type conversion to force the displacement of the pointer
13351         to the secondary dispatch table.
13352         Use Universal_Real instead of Long_Long_Float when we need a high
13353         precision float type for the generated code (prevents gratuitous
13354         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13355         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
13356         'Terminated for task interface class-wide objects. Generate a call to
13357         the predefined dispatching routine used to retrieve the _task_id from
13358         a task corresponding record.
13359         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
13360
13361         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13362         (Check_Dispatching_Operation): Protect the frontend againts
13363         previously detected errors.
13364
13365         * Makefile.rtl: Add new instantiations of system.fat_gen
13366
13367         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
13368         Change name of instantiated package for better consistency
13369         with newly added system.fat_gen instantiations.
13370
13371         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
13372         s-fvagfl.ads: New files.
13373
13374 2005-11-14  Cyrille Comar  <comar@adacore.com>
13375             Thomas Quinot  <quinot@adacore.com>
13376
13377         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
13378         assignment of a value of a tagged type that has been rewritten to a
13379         block statement, it is known by construction that no checks are
13380         necessary for the statements within the block: analyze it with checks
13381         suppressed.
13382         (Expand_N_If_Statement): When killing a dead then-branch in an
13383         if-statement that has elsif_parts, recompute the Current_Value node
13384         for any entity whose value is known from the condition of the first
13385         elsif_part.
13386         (Expand_N_Return_Statement): When returning a mutable record, convert
13387         the return value into its actual subtype in order to help the backend
13388         to return the actual size instead of the maximum. This is another
13389         aftermath of not returning mutable records on the sec-stack anymore.
13390
13391         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
13392         handling of error msg for suspicious reverse range iteration.
13393         (Check_Possible_Current_Value_Condition): Move declaration from body to
13394         spec, to allow this subprogram to be called from exp_ch5.
13395
13396 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13397
13398         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
13399         generate a set of nested array aggregates instead of a single flat
13400         aggregate for multi-dimensional arrays.
13401
13402 2005-11-14  Pascal Obry  <obry@adacore.com>
13403
13404         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
13405         by spawnve is a process handle, no need to convert. Add a parameter
13406         close to control wether the process handle must be closed.
13407         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
13408         a process handle, not need to convert.
13409         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
13410
13411         * g-expect.adb: (Kill): Document the new close parameter.
13412         (Close): Do not release the process handle in the kill there as
13413         waitpid() is using it.
13414         (Send_Signal): Release the process handle.
13415
13416 2005-11-14  Robert Dewar  <dewar@adacore.com>
13417
13418         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
13419         need a high precision float type for the generated code (prevents
13420         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13421         used).
13422
13423         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
13424         need a high precision float type for the generated code (prevents
13425         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13426         used).
13427         (Expand_Width_Attribute): In configurable run-time, the attribute is not
13428         allowed on non-static enumeration subtypes. Force a load error to emit
13429         the correct diagnostic.
13430
13431 2005-11-14  Thomas Quinot  <quinot@adacore.com>
13432             Robert Dewar  <dewar@adacore.com>
13433             Ed Schonberg  <schonberg@adacore.com>
13434
13435         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
13436         subtype to compute the size of the designated object at run-time,
13437         create such a subtype and store it in the Actual_Designated_Subtype
13438         attribute of the N_Free_Statement.
13439         Generate itype for classwide designated object in both cases of
13440         user-specified storage pool: specific and class-wide, not only in the
13441         specific case.
13442         Raise CE when trying to set a not null access type object to null.
13443         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
13444         an explicit loop, because freeze nodes make its position variable.
13445
13446         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
13447         null object.
13448
13449 2005-11-14  Javier Miranda  <miranda@adacore.com>
13450
13451         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
13452         Build_Stream_Procedure): Add the null-excluding attribute to the first
13453         formal.
13454         This has no semantic meaning under Ada95 mode but it is a
13455         requirement under Ada05 mode.
13456
13457         * par-ch3.adb (P_Access_Definition): Addition of warning message if
13458         the null exclusion is used under Ada95 mode
13459         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
13460         (P_Access_Definition): Remove assertion that forbids the use of
13461         the null-exclusion feature in Ada95.
13462
13463 2005-11-14  Robert Dewar  <dewar@adacore.com>
13464
13465         * impunit.adb: Exclude container helper units not intended for use by
13466         users.
13467
13468 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13469
13470         * freeze.adb (Freeze_Entity): For an access formal that is an access
13471         to subprogram, freeze the anonymous subprogram type at the same time,
13472         to prevent later freezing in the wrong scope, such as the enclosing
13473         subprogram body.
13474         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
13475         subprogram whenever available.
13476
13477 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13478
13479         PR ada/23732
13480         * gnatvsn.ads (Library_Version): Bump to 4.1
13481
13482 2005-11-14  Robert Dewar  <dewar@adacore.com>
13483
13484         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
13485         Storage_Offset to avoid wrap around causing invalid results.
13486
13487 2005-11-14  Pascal Obry  <obry@adacore.com>
13488
13489         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
13490         cross-compiler.
13491         (Scan_Bind_Arg): Fail with an error message if -M option is used
13492         on a native compiler.
13493
13494 2005-11-14  Robert Dewar  <dewar@adacore.com>
13495             Vincent Celier  <celier@adacore.com>
13496
13497         * gprep.adb: Implement -C switch to scan comments
13498
13499         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
13500
13501         * scans.ads: Comment updates (including new use of Tok_Comment in
13502         preprocessing)
13503
13504         * opt.ads: Add documentation for flags that are used by gprmake,
13505         currently and in the next version of gprmake.
13506         (Verbosity_Level): New variable
13507         Add Replace_In_Comments switch
13508
13509         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
13510         and -vm.
13511         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
13512
13513 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
13514
13515         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
13516         message, friendlier.
13517
13518 2005-11-14  Robert Dewar  <dewar@adacore.com>
13519
13520         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
13521
13522 2005-11-14  Doug Rupp  <rupp@adacore.com>
13523
13524         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
13525
13526 2005-11-14  Robert Dewar  <dewar@adacore.com>
13527
13528         * interfac.ads: Change declarations of IEEE float types so that we no
13529         longer need a separate version of this package for VMS.
13530
13531 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13532
13533         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
13534         internal entity created for the declaration of a child subprogram body
13535         with no spec as coming from source, to generate proper cross-reference
13536         information.
13537
13538 2005-11-14  Vincent Celier  <celier@adacore.com>
13539
13540         * make.adb (Compile_Sources): Change verbose message to minimum
13541         verbosity level High for "is in an Ada library", "is a read-only
13542         library" and "is an internal library",
13543         (Create_Binder_Mapping_File): Path name of ALI file for library project
13544         must include the library directory, not the object directory.
13545         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
13546         for new switches -vl, -vm and -vh.
13547         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
13548         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
13549         (Compile_Sources): Do not attempt to compile if an ALI file is missing
13550         in a project that is externally built.
13551         (Compute_All_Imported_Projects): New procedure
13552         (Gnatmake): Check if importing libraries should be regenerated because
13553         at least an imported library is more recent.
13554         (Initialize): For each project compute the list of the projects it
13555         imports directly or indirectly.
13556         (Add_Library_Search_Dir): New procedure, used in place of
13557         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13558         put in the search paths.
13559         (Add_Source_Search_Dir): New procedure, used in place of
13560         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13561         put in the search paths.
13562         (Mark_Directory): Resolve the absolute path the directory before marking
13563         it.
13564
13565         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
13566         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13567         Switch. Do not handle any exception.
13568         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
13569         so that the switch is recognized as valid.
13570         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
13571
13572 2005-11-14  GNAT Script  <nobody@adacore.com>
13573
13574         * Make-lang.in: Makefile automatically updated
13575
13576 2005-11-14  Pascal Obry  <obry@adacore.com>
13577
13578         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
13579         used.
13580         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
13581         In both cases the last argument was dropped.
13582
13583 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
13584
13585         * namet.h: (Column_Numbe): New type.
13586         (Get_Column_Number): Define to sinput__get_column_number.
13587         (Instantiation): Define to sinput__instantiation.
13588         (Get_Column_Number): Declare.
13589         (Instantiation): Likewise.
13590
13591 2005-11-14  Robert Dewar  <dewar@adacore.com>
13592
13593         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
13594         syntax, which could cause compiler hangs.
13595
13596 2005-11-14  Vincent Celier  <celier@adacore.com>
13597
13598         * prj-ext.adb: Take into account new environment variable
13599         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
13600         are defined.
13601         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
13602         normalize its path name, making it absolute and resolving symbolic
13603         links, and replace the original if resolved path is different.
13604
13605 2005-11-14  Vincent Celier  <celier@adacore.com>
13606
13607         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
13608         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
13609
13610 2005-11-14  Emmanuel Briot  <briot@adacore.com>
13611
13612         * prj-pp.adb (Print): Do not output the with statement if the
13613         associated name is empty, which happens for virtual extending projects.
13614         (Print): Preserve the "extends all" attribute when printing the project.
13615
13616         * prj-tree.ads (String_Value_Of): Add comment about returned value for
13617         a virtual extending project.
13618
13619 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13620
13621         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
13622         rhs of an assignment even if the type is unconstrained, when the
13623         context is non-expanding.
13624         In an inlined body, if the context type is private,
13625         resolve with its full view, which must be a composite type.
13626
13627 2005-11-14  Robert Dewar  <dewar@adacore.com>
13628             Ed Schonberg  <schonberg@adacore.com>
13629
13630         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13631         Do not give obsolescent warning on with of subprogram (since we
13632         diagnose calls)
13633         (Analyze_With_Clause): Add test for obsolescent package
13634         (Install_Context_Clauses): If the unit is the body of a child unit, do
13635         not install twice the private declarations of the parents, to prevent
13636         circular lists of Use_Clauses in a parent.
13637         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
13638         compiling body of child unit.
13639         Use new class N_Subprogram_Instantiation
13640         (Expand_With_Clause): If this is a private with_clause for a child unit,
13641         appearing in the context of a package declaration, then the implicit
13642         with_clauses generated for parent units are private as well.
13643         (License_Check): Do not generate message if with'ed unit is internal
13644
13645 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
13646             Ed Schonberg  <schonberg@adacore.com>
13647             Thomas Quinot  <quinot@adacore.com>
13648
13649         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
13650         names are internal, because they will not have a corresponding partner
13651         in the actual package.
13652         (Analyze_Formal_Package): Move the setting of the formal package spec's
13653         Generic_Parent field so that it occurs prior to analyzing the package,
13654         to allow proper operation of Install_Parent_Private_Declarations.
13655         (Analyze_Package_Instantiation): Set the instantiated package entity's
13656         Package_Instantiation field.
13657         (Get_Package_Instantiation_Node): Move declaration to package spec.
13658         Retrieve the N_Package_Instantiation node when the Package_Instantiation
13659         field is present.
13660         (Check_Generic_Child_Unit): Within an inlined call, the only possible
13661         instantiation is Unchecked_Conversion, for which no parents are needed.
13662         (Inline_Instance_Body): Deinstall and record the use_clauses for all
13663         parent scopes of a scope being removed prior to inlining an instance
13664         body.
13665         (Analyze_Package_Instantiation): Do not perform front-end inlining when
13666         the current context is itself an instance within a non-instance child
13667         unit, to prevent scope stack errors.
13668         (Save_References): If the node is an aggregate that is an actual in a
13669         call, rewrite as a qualified expression to preserve some type
13670         information, to resolve possible ambiguities in the instance.
13671         (Instance_Parent_Unit): New global variable to record the ultimate
13672         parent unit associated with a generic child unit instance (associated
13673         with the existing Parent_Unit_Visible flag).
13674         (type Instance_Env): New component Instance_Parent_Unit for stacking
13675         parents recorded in the global Instance_Parent_Unit.
13676         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
13677         stack.
13678         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
13679         it's not a top-level unit, and only do this if Instance_Parent_Unit is
13680         not already set. Replace test of Is_Child_Unit with test of parent's
13681         scope against package Standard. Add comments and a ??? comment.
13682         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
13683         on a child instance parent to test that the parent equals
13684         Instance_Parent rather than simply checking that the unit is not a
13685         child unit.
13686         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
13687         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
13688         a formal interface are ancestors of the corresponding actual.
13689         (Validate_Formal_Interface_Type): Additional legality checks.
13690         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
13691         interface types with ancestors.
13692         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
13693         to diagnose attempts to use generic within its own declaration.
13694
13695 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13696             Javier Miranda  <miranda@adacore.com>
13697
13698         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
13699         discriminant.
13700         (Build_Private_Derived_Type): The entity of the created full view of the
13701         derived type does not come from source. If after installing the private
13702         declarations of the parent scope the parent is still private, use its
13703         full view to construct the full declaration of the derived type.
13704         (Build_Derived_Record_Type): Relax the condition that controls the
13705         execution of the check that verifies that the partial view and
13706         the full view agree in the set of implemented interfaces. In
13707         addition, this test now only takes into account the progenitors.
13708         (Derive_Interface_Subprograms): No need to derive subprograms
13709         of ancestors that are interfaces.
13710         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
13711         associated code.
13712         Change name Is_Package to Is_Package_Or_Generic_Package
13713         (Complete_Subprograms_Derivation): Handle the case in which the full
13714         view is a transitive derivation of the ancestor of the partial view.
13715         (Process_Full_View): Rename local subprogram Find_Interface_In_
13716         Descendant to Find_Ancestor_Interface to leave the code more clear.
13717         Remove wrong code that avoids the generation of an error message
13718         when the immediate ancestor of the partial view is an interface.
13719         In addition some minor reorganization of the code has been done to
13720         leave it more clear.
13721         (Analyze_Type_Declaration): If type has previous incomplete tagged
13722         partial view, inherit properly its primitive operations.
13723         (Collect_Interfaces): Make public, for analysis of formal
13724         interfaces.
13725         (Analyze_Interface_Declaration): New procedure for use for regular and
13726         formal interface declarations.
13727         (Build_Derived_Record_Type): Add support for private types to the code
13728         that checks if a tagged type implements abstract interfaces.
13729         (Check_Aliased_Component_Type): The test applies in the spec of an
13730         instance as well.
13731         (Access_Type_Declaration): Clean up declaration of malformed type
13732         declared as an access to its own classwide type, to prevent cascaded
13733         crash.
13734         (Collect_Interfaces): For private extensions and for derived task types
13735         and derived protected types, the parent may be an interface that must
13736         be included in the interface list.
13737         (Access_Definition): If the designated type is an interface that may
13738         contain tasks, create Master_Id for it before analyzing the expression
13739         of the declaration, which may be an allocator.
13740         (Record_Type_Declaration): Set properly the interface kind, for use
13741         in allocators, the creation of master id's for task interfaces, etc.
13742
13743 2005-11-14  Javier Miranda  <miranda@adacore.com>
13744             Ed Schonberg  <schonberg@adacore.com>
13745
13746         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
13747         omitted in case of stream attribute subprograms.
13748         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
13749         appear immediately after a subprogram body, when there is no previous
13750         subprogram declaration.
13751         Change name Is_Package to Is_Package_Or_Generic_Package
13752         (Process_Formals): A non null qualifier on a non null named access
13753         type is not an error, and is a warning only if Redundant_Constructs
13754         are flagged.
13755
13756 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
13757             Ed Schonberg  <schonberg@adacore.com>
13758
13759         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
13760         nested within Analyze_Package_Specification to install the private
13761         declarations and use clauses within each of the parent units of a
13762         package instance of a generic child package.
13763         (Analyze_Package_Specification): When entering a private part of a
13764         package associated with a generic instance or formal package, the
13765         private declarations of the parent must be installed (by calling new
13766         procedure Install_Parent_Private_Declarations).
13767         Change name Is_Package to Is_Package_Or_Generic_Package
13768         (Preserve_Full_Attributes): For a synchronized type, the corresponding
13769         record is absent in a generic context, which does not indicate a
13770         compiler error.
13771
13772 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13773
13774         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13775         not try to rewrite a renamed stream attribute, because the operations
13776         on the type may not have been generated.
13777         Handle properly a renaming_as_body generated for a stream operation
13778         whose default is abstract because the object type itself is abstract.
13779         (Find_Type): If the type is incomplete and appears as the prefix of a
13780         'Class reference, it is tagged, and its list of primitive operations
13781         must be initialized properly.
13782         (Chain_Use_Clauses): When chaining the use clauses that appear in the
13783         private declaration of a parent unit, prior to compiling the private
13784         part of a child unit, find on the scope stack the proper parent entity
13785         on which to link the use clause.
13786         (Note_Redundant_Use): Emit a warning when a redundant use clause is
13787         detected.
13788         (Analyze_Object_Renaming): An attribute reference is not a legal object
13789         if it is not a function call.
13790
13791 2005-11-14  Robert Dewar  <dewar@adacore.com>
13792             Ed Schonberg  <schonberg@adacore.com>
13793
13794         * sem_eval.adb: Implement d.f flag
13795         (Subtype_Statically_Match): A generic actual type has unknown
13796         discriminants when the corresponding actual has a similar partial view.
13797         If the routine is called to validate the signature of an inherited
13798         operation in a child instance, the generic actual matches the full view,
13799
13800 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
13801             Ed Schonberg  <schonberg@adacore.com>
13802             Robert Dewar  <dewar@adacore.com>
13803             Thomas Quinot  <quinot@adacore.com>
13804
13805         * sem_res.adb (Resolve_Call): Provide a better error message whenever
13806         a procedure call is used as a select statement trigger and is not an
13807         entry renaming or a primitive of a limited interface.
13808         (Valid_Conversion): If the operand has a single interpretation do not
13809         remove address operations.
13810         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
13811         statement to inhibit warning.
13812         (Resolve_Unary_Op): Do not produce a warning when
13813         processing an expression of the form -(A mod B)
13814         Use Universal_Real instead of Long_Long_Float when we need a high
13815         precision float type for the generated code (prevents gratuitous
13816         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13817         (Resolve_Concatenation_Arg): Improve error message when argument is an
13818         ambiguous call to a function that returns an array.
13819         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
13820         there is an implicit operator in the given scope if we are within an
13821         instance: legality check has been performed on the generic.
13822         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
13823         after resolving operand, to avoid false warnings on overloaded calls.
13824
13825 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13826             Javier Miranda  <miranda@adacore.com>
13827
13828         PR ada/15604
13829         * sem_type.adb (Covers): In an inlined body, a composite type matches
13830         a private type whose full view is a composite type.
13831         (Interface_Present_In_Ancestor): Protect the frontend against
13832         previously detected errors to ensure that its compilation
13833         with assertions enabled gives the same output that its
13834         compilation without assertions.
13835         (Interface_Present_In_Ancestor): Add support for private types.
13836         Change name In_Actual to In_Generic_Actual (clean up)
13837         (Disambiguate): New predicate In_Actual, to recognize expressions that
13838         appear in the renaming declaration generated for generic actuals, and
13839         which must be resolved in the outer context.
13840
13841 2005-11-14  Robert Dewar  <dewar@adacore.com>
13842             Thomas Quinot  <quinot@adacore.com>
13843             Hristian Kirtchev  <kirtchev@adacore.com>
13844             Ed Schonberg  <schonberg@adacore.com>
13845
13846         * sem_util.ads, sem_util.adb: Change name Is_Package to
13847         Is_Package_Or_Generic_Package.
13848         (Check_Obsolescent): New procedure.
13849         (Set_Is_Public): Remove obsolete junk test.
13850         (Set_Public_Status): Do not set Is_Public on an object whose declaration
13851         occurs within a handled_sequence_of_statemets.
13852         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
13853         for a parameterless procedure.
13854         (Enter_Name): Recognize renaming declarations created for private
13855         component of a protected type within protected operations, so that
13856         the source name of the component can be used in the debugger.
13857
13858 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
13859             Robert Dewar  <dewar@adacore.com>
13860
13861         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
13862         of a generic subprogram are not visible outside the body.
13863         (Set_Warning_Switch): New procedure (code to set warning mode moved
13864         here from Switch.C so that it can be shared by pragma processing.
13865         (Check_References): Special case warning for non-modified non-imported
13866         volatile objects.
13867         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
13868         form with a string literal argument
13869
13870 2005-11-14  Javier Miranda  <miranda@adacore.com>
13871
13872         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
13873         anonymous access.
13874         (Write): Addition of "not null" to the anonymous access.
13875         (Read): Addition of "not null" to the anonymous access.
13876         (Write): Addition of "not null" to the anonymous access.
13877
13878         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
13879         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
13880         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
13881         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
13882         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
13883         "not null" to the anonymous access.
13884
13885 2005-11-14  Robert Dewar  <dewar@adacore.com>
13886
13887         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
13888         offset values
13889
13890 2005-11-14  Vincent Celier  <celier@adacore.com>
13891
13892         * switch.adb (Bad_Switch): New procedure
13893         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
13894         message when in error.
13895
13896         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
13897         Too_Many_Output_Files): Remove declarations, no longer used.
13898         (Scan_Nat): New parameter Switch
13899         (Scan_Pos): Ditto
13900         (Bad_Switch): New procedure
13901
13902         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
13903         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
13904         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
13905         to Osint.Fail. Do not handle any exception.
13906
13907 2005-11-14  Vincent Celier  <celier@adacore.com>
13908
13909         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
13910         designates a non existent directory.
13911
13912 2005-11-14  Robert Dewar  <dewar@adacore.com>
13913
13914         * xgnatugn.adb: Replace invalid membership test by 'Valid
13915
13916 2005-11-14  Vincent Celier  <celier@adacore.com>
13917
13918         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
13919         there is no object directory.
13920
13921 2005-11-14  Robert Dewar  <dewar@adacore.com>
13922
13923         * usage.adb: Minor adjustment to output format, use nn instead of nnn
13924         (so that -gnateInnn does not run into next column)
13925
13926 2005-11-14  Ed Falis  <falis@adacore.com>
13927
13928         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
13929         "constrained"
13930
13931 2005-11-14  Cyrille Comar  <comar@adacore.com>
13932
13933         * s-chepoo.ads: Add comments on Dereference.
13934         Remove unnecessary inherited abstract primitives.
13935         Cosmetic cleanup.
13936
13937 2005-11-14  Robert Dewar  <dewar@adacore.com>
13938
13939         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
13940         node parameter, not needed, since it is available as Declaration_Node.
13941
13942 2005-11-14  Geert Bosch  <bosch@adacore.com>
13943
13944         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
13945         grammatically correct.
13946
13947 2005-11-14  Vincent Celier  <celier@adacore.com>
13948
13949         * s-fileio.ads: Correct spelling error in comment
13950
13951 2005-11-14  Cyrille Comar  <comar@adacore.com>
13952             Robert Dewar  <dewar@adacore.com>
13953             Vincent Celier  <celier@adacore.com>
13954             Ben Brosgol  <brosgol@adacore.com>
13955             Jose Ruiz  <ruiz@adacore.com>
13956             Pascal Obry  <obry@adacore.com>
13957
13958         * gnat_ugn.texi: 
13959         Document that -fstack-check is needed for strict compliance with the
13960         Ada 95 Reference Manual.
13961         Correct reference to VAX systems to meet HP guidelines
13962         Add documentation for new gnatmake switches -vl, -vm and -vh
13963         Replace DEC Ada by HP Ada
13964         Replace DIGITAL by HP
13965         Remove empty section on tools in compatibility section
13966         Clarify the Windows convention semantics.
13967         Document the Win32 calling convention.
13968         The Stdcall, Win32 and DLL convention are synonyms.
13969         Add a note in -gnatR description about zero size record components
13970         Note on new >= and <= warnings for -gnatwc
13971         Document that equal sign after -gnatm is optional.
13972         Note that strip is working fine on DLL built with a Library
13973         Project. The restriction apply only to DLL built with gnatdll.
13974         Update section about the way to debug a DLL.
13975         Update information about the DLL convention.
13976         Document -C switch for gnatprep
13977         Document new attribute Library_ALI_Dir
13978         Update elaboration doc to include implicit Elaborate pragmas now
13979         generated for subprogram instantiations.
13980         Document limitation on executable names that include spaces for --GCC,
13981         --GNATBIND, and --GNATLINK switches.
13982         Document that -w causes -gnatws to be added at start of gcc switches
13983
13984         * gnat_rm.texi: Document that -mieee is needed for generating infinite
13985         and NaN values in case of overflow on machines that are not fully
13986         compliant with the IEEE floating-point standard.
13987         Create a section describing the set of compiler options needed for
13988         strict compliance with the Ada 95 Reference Manual.
13989         Add documentation for pragma Obsolescent applied to a package
13990         Clarify potential issues of mixed language programs related to the
13991         I/O buffering enabling in the elaboration of the GNAT runtime.
13992         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
13993         This documentation only patch adds extra documentsion for pragma
13994         Restrictions (No_Elaboration_Code), explaining why it is not possible
13995         to document this restriction in terms of allowed source constructs.
13996         Document string literal form of pragma Warnings
13997         Document new attribute Library_ALI_Dir
13998         Add documentation on stable attributes in project files that was missing
13999
14000         * gnat-style.texi: Indicate that paragraphs within a single comment
14001         should be separated by empty comment lines
14002
14003         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
14004         /05 respectively)
14005
14006         * bindusg.adb: Minor cleanup, put -m before -M for consistency
14007
14008 2005-11-14  Robert Dewar  <dewar@adacore.com>
14009
14010         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
14011         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
14012         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
14013         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
14014         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
14015         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
14016         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
14017         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
14018         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
14019         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
14020         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
14021         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
14022         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
14023         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
14024         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
14025         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
14026         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
14027         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
14028         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
14029         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
14030         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14031         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
14032         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
14033         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
14034         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
14035         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
14036         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
14037         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
14038         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
14039         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
14040         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
14041         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
14042         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
14043         system-interix.ads, system-solaris-sparc.ads,
14044         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
14045         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
14046         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
14047         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
14048         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
14049         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
14050         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
14051         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14052         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
14053         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
14054         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
14055         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
14056         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
14057         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
14058         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
14059         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
14060         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
14061         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
14062         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
14063         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
14064         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
14065         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
14066         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
14067         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
14068         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
14069         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14070         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
14071         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
14072         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
14073         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
14074         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
14075         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
14076         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14077         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
14078         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
14079         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
14080         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14081         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
14082         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
14083         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
14084         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
14085         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
14086         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
14087         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
14088         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
14089         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
14090         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
14091         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
14092         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
14093         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
14094         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
14095         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
14096         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
14097         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
14098         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
14099         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
14100         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
14101         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
14102         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
14103         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
14104         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
14105         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
14106         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
14107         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
14108         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
14109         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
14110         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
14111         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
14112         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
14113         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
14114         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14115         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
14116         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
14117         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
14118         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
14119         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
14120         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
14121         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
14122         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
14123         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
14124         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
14125         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
14126         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
14127         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
14128         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
14129         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
14130         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
14131         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
14132         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
14133         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
14134         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
14135         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
14136         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
14137         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
14138         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
14139         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
14140         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
14141         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
14142         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
14143         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
14144         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
14145         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
14146         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
14147         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
14148         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
14149         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
14150         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
14151         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
14152         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
14153         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
14154         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
14155         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
14156         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
14157         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
14158         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
14159         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
14160         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
14161         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
14162         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
14163         a-numaux-darwin.ads, a-numaux-darwin.adb,
14164         a-swuwha.ads, a-stunha.ads: Minor reformatting
14165
14166 2005-11-14  Robert Dewar  <dewar@adacore.com>
14167
14168         PR ada/18434
14169         * osint-m.adb: Add pragma Elaborate_All for Osint
14170
14171 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
14172
14173         PR ada/23995
14174         * trans.c (call_to_gnu): Restore statement lost in translation.
14175
14176 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
14177
14178         * init.c: Use the Linux-specific section for the IA-64/Linux target.
14179         (__gnat_adjust_context_for_raise): Add conditional code so that the
14180         IA-64 is also supported.
14181
14182 2005-11-03  James E Wilson  <wilson@specifix.com>
14183
14184         PR ada/23427
14185         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
14186         TREE_OVERFLOW check.
14187
14188 2005-09-21  Olivier Hainque  <hainque@adacore.com>
14189
14190         PR ada/22418
14191         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
14192         as we create them to store a size in bits.
14193
14194 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
14195
14196         PR ada/21937
14197         PR ada/22328
14198         PR ada/22381
14199         PR ada/22383
14200         PR ada/22419
14201         PR ada/22420
14202         * utils2.c (build_return_expr): New helper function.
14203         * gigi.h (build_return_expr): Declare it.
14204         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
14205         of manually building the RETURN_EXPR tree.
14206         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
14207         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
14208         build_binary_op for the "target pointer" case.  Use build_return_expr
14209         instead of manually building the RETURN_EXPR tree.
14210
14211 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
14212
14213         PR ada/23788
14214         * s-tpinop.ads: Make this unit Preelaborate.
14215
14216 2005-09-16  Andreas Jaeger  <aj@suse.de>
14217
14218         * socket.c: Add string.h for memcpy.
14219
14220 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
14221
14222         * dec-io.ads, dec-io.adb: Removed, no longer used.
14223
14224 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14225
14226         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
14227
14228         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14229         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
14230         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
14231         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
14232         dependent units are Preelaborate.
14233         (Initialize): Call Interrupt_Managemeent.Initialize and
14234         OS_Primitives.Initialize to ensure proper initialization of this unit.
14235         Remove use of System.Soft_Links
14236         Make this unit Preelaborate.
14237
14238         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
14239         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
14240         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
14241         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
14242         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14243         s-tratas.ads, s-tasinf.ads: Minor reformatting.
14244         Add pragma Preelaborate, since these packages are suitable for this
14245         categorization.
14246         Update comments.
14247
14248         * s-traent-vms.ads, s-intman-dummy.adb,
14249         s-taprop-dummy.adb: Make this unit Preelaborate.
14250
14251         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14252         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
14253         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
14254         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
14255         s-intman-solaris.adb, s-intman-irix-athread.adb,
14256         s-intman-irix.adb: Mark this unit Preelaborate.
14257         (Initialize): New procedure.
14258         Update comments.
14259
14260         * s-taspri-linux.ads: Removed.
14261
14262         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
14263         as done by other implementations (e.g. posix).
14264
14265         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
14266         responsible for deferring abort.
14267         Mark this unit Preelaborate.
14268
14269         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
14270         proper initialization of the tasking run-time.
14271
14272         * s-tasdeb.ads: Mark this unit Preelaborate.
14273         (Known_Tasks): Add explicit default value to avoid elaboration code.
14274
14275         * s-inmaop-vms.adb (Elaboration code): Add call to
14276         Interrupt_Management.Initialize since the elaboration code depends on
14277         proper initialization of this package.
14278
14279         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
14280         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
14281         s-osprim-posix.adb: Make this unit Preelaborate.
14282
14283         * a-calend.adb: Add call to OS_Primitives.Initialize
14284
14285         * a-elchha.adb: Update use of Except.Id.Full_Name.
14286         Minor reformatting.
14287         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
14288
14289         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
14290         Move with clauses outside Warnings Off now that dependent units are
14291         Preelaborate.
14292         Use raise xxx with "..."; Ada 2005 form.
14293
14294         * a-taside.ads, a-taside.adb:
14295         Remove some dependencies, to make it easier to make this unit truly
14296         Preelaborate.
14297         Rewrite some code to be conformant with Preelaborate rules.
14298
14299         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
14300         marked Preelaborate in the future.
14301
14302         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
14303         these units Preelaborate.
14304
14305         * s-exctab.adb: Update use of Except.Id.Full_Name.
14306
14307         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
14308         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
14309         Set_Exc_Stack_Addr): Removed, no longer used.
14310         Remove reference to *Machine_State_Addr*, no longer needed.
14311
14312         * s-stalib.ads: Mark this unit as Preelaborate[_05].
14313         (Exception_Data): Full_Name is now a System.Address so that this unit
14314         can be made Preelaborate.
14315         Clean up/simplify code thanks to Full_Name being a System.Address.
14316         Remove obsolete pragma Suppress (All_Checks), no longer needed.
14317
14318         * s-taskin.ads, s-taskin.adb:
14319         Move with clauses outside Warnings Off now that dependent units are
14320         Preelaborate.
14321         Make this unit Preelaborate.
14322         (Initialize): New proceduure, replace elaboration code and makes the
14323         set up of the tasking run-time cleaner.
14324         (Detect_Blocking): Now a function instead of a deferred boolean, to
14325         obey Preelaborate rules.
14326
14327         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
14328         soft links, no longer used.
14329
14330         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
14331         packages are suitable for this categorization.
14332
14333         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
14334         since we compile run-time sources in Ada 2005 mode.
14335         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
14336         avoid having s-taprop*.adb depend on s-soflin and to avoid code
14337         duplication.
14338         Remove reference to *Machine_State_Addr*, no longer needed.
14339
14340 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14341
14342         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
14343         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14344         Remove reference to System.Exceptions.
14345
14346         * s-mastop-x86.adb: Removed, no longer used.
14347
14348         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
14349
14350         * a-excach.adb: Minor reformatting.
14351
14352         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
14353         instead fix new warnings that were hidden by this change.
14354         (AAA, ZZZ): Removed, replaced by...
14355         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
14356         are used instead of constants, to help make Ada.Exception truly
14357         preelaborate.
14358         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
14359         Raise_Storage_Error): File is now a System.Address, to simplify code.
14360         (Elab code): Removed, no longer used.
14361         (Null_Occurrence): Remove Warnings Off and make this construct
14362         preelaborate.
14363         Remove code related to front-end zero cost exception handling, since
14364         it is no longer used.
14365         Remove -gnatL/-gnatZ switches.
14366
14367         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
14368         Update use of Except.Msg.
14369
14370         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
14371         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
14372         to front-end zero cost exception handling, since it is no longer used.
14373         Remove -gnatL/-gnatZ switches.
14374
14375         * lib-writ.ads: Minor reformatting
14376         Remove doc of UX
14377
14378         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
14379
14380         * Make-lang.in: Remove references to s-except.ads
14381
14382         * s-except.ads: Removed, no longer used.
14383
14384         * s-mastop.ads, s-mastop.adb:
14385         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14386         Remove reference to System.Exceptions.
14387
14388         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
14389         switch-b.adb: Remove code related to front-end zero cost exception
14390         handling, since it is no longer used.
14391         Remove -gnatL/-gnatZ switches.
14392
14393 2005-09-01  Robert Dewar  <dewar@adacore.com>
14394             Gary Dismukes  <dismukes@adacore.com>
14395             Javier Miranda  <miranda@adacore.com>
14396
14397         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
14398         type by valid test and generate warning.
14399         (Tagged_Membership): Generate call to the run-time
14400         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
14401         Change formal name Subtype_Mark to Result_Definition in several calls to
14402         Make_Function_Specification.
14403         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
14404         check for proper accessibility of the operand of a class-wide allocator.
14405         The check can be left out if checks are suppressed or if the expression
14406         has a specific tagged type whose level is known to be safe.
14407
14408         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
14409         generates the run-time check associated with null-excluding entities.
14410         (Expand_N_Return_Statement): Add tests to determine if the accessibility
14411         check on the level of the return expression of a class-wide function
14412         can be elided. The check usually isn't needed if the expression has a
14413         specific type (unless it's a conversion or a formal parameter). Also
14414         add a test for whether accessibility checks are suppressed. Augment
14415         the comments to describe the conditions for performing the check.
14416
14417 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
14418             Javier Miranda  <miranda@adacore.com>
14419             Gary Dismukes  <dismukes@adacore.com>
14420             Ed Schonberg  <schonberg@adacore.com>
14421
14422         * a-tags.adb (IW_Membership): Give support to
14423         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
14424         subprogram has been extended to look for the tag in the ancestors tag
14425         table.
14426         Update the structure of the GNAT Dispatch Table to reflect the
14427         additional two tables used in dispatching selects.
14428         Introduce appropriate array types and record components in
14429         Type_Specific_Data to reflect the two tables.
14430         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
14431         the TSD of a tag, indexed by position.
14432         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
14433         operation kind in the TSD of a tag, indexed by position.
14434
14435         * a-tags.ads: Introduce an enumeration type to capture different
14436         primitive operation kinds. Define a constant reflecting the number of
14437         predefined primitive operations.
14438         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
14439         of an entry wrapper.
14440         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
14441         callable entity of a primitive operation.
14442
14443         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
14444         primitive operations used in dispatching selects for limited
14445         interfaces, limited tagged, task and protected types what implement a
14446         limited interface.
14447         (Freeze_Type): Generate the bodies of the primitive operations used in
14448         dispatching selects for limited tagged, task and protected types that
14449         implement a limited interface. Generate statements to populate the two
14450         auxiliary tables used for dispatching in select statements.
14451         (Freeze_Record_Type): Add call to initialize the dispatch table entries
14452         associated with predefined interface primitive operations.
14453         (Build_Dcheck_Function): Change Set_Subtype_Mark to
14454         Set_Result_Definition.
14455         (Build_Variant_Record_Equality): Change Subtype_Mark to
14456         Result_Definition.
14457         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
14458         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
14459         (Build_Assignment): Simplify the code that adds the run-time-check.
14460         (Expand_N_Object_Declaration): Code cleanup.
14461
14462         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
14463         entries when there is a protected type that implements a limited
14464         interface.
14465
14466         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
14467         common routines used in expansion of dispatching selects.
14468         (Add_Private_Declarations): Select the appropriate protection type when
14469         there is a protected type that implements a limited interface.
14470         (Build_Parameter_Block): Generate a wrapped parameter block.
14471         (Build_Protected_Subprogram_Body): Select the appropriate type for
14472         locking entries when there is a protected type that implements a
14473         limited interface.
14474         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
14475         classified as entry wrappers.
14476         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
14477         asynchronous selects.
14478         (Expand_N_Conditional_Entry_Call): Add support for expansion of
14479         dispatching conditional selects.
14480         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
14481         protection when there is a protected type that implements limited
14482         interfaces.
14483         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
14484         timed selects.
14485         (Extract_Dispatching_Call): Extract the entity of the name of a
14486         dispatching call, the object parameter, actual parameters and
14487         corresponding formals.
14488         (Make_Initialize_Protection): Correct logic of protection initialization
14489         when there is a protected type that implements a limited interface.
14490         (Parameter_Block_Pack): Populate a wrapped parameter block with the
14491         values of actual parameters.
14492         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
14493         block and assign them to the original actual parameters.
14494
14495         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
14496         (Build_Protected_Sub_Specification): Change the type and name of the
14497         last formal to account for the increased variety of protection modes.
14498
14499         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
14500         entities. Used to save the value of the Is_Hidden attribute when the
14501         limited-view is installed.
14502         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
14503         the attribute of procedures classified as entry wrappers.
14504         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
14505         entity of a primitive wrapper.
14506         (Write_Entity_Flags): Output the name and value of the
14507         Is_Primitive_Wrapper attribute.
14508         (Write_Field27_Name): Output the name and entity of the field Wrapped_
14509         Entity.
14510         (Underlying_Type): If we have an incomplete entity that comes from
14511         the limited view then we return the Underlying_Type of its non-limited
14512         view if it is already available.
14513         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
14514         including operators.
14515         (Write_Field26_Name): Add entry for Overridden_Operation
14516         (Overridden_Operation): New attribute of functions and procedures.
14517
14518         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
14519         predefined position in the dispatch table for the primitive operations
14520         used in dispatching selects.
14521         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
14522         predefined primitive operations and replace it with
14523         Default_Prim_Op_Count.
14524         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
14525         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
14526         the names of the generated primitive operations used in dispatching
14527         selects.
14528         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
14529         case of abstract interface types. They will be inherit by the objects
14530         implementing the interface.
14531         (Make_DT): There is no need to inherit the dispatch table of the
14532         ancestor interface for the elaboration of abstract interface types.
14533         The dispatch table will be inherited by the object implementing the
14534         interface.
14535         (Copy_Secondary_DTs): Add documentation.
14536         (Validate_Position): Improve this static check in case of
14537         aliased subprograms because aliased subprograms must have
14538         the same position.
14539         (Init_Predefined_Interface_Primitives): New subprogram that initializes
14540         the entries associated with predefined primitives of all the secondary
14541         dispatch tables.
14542         (Build_Anonymous_Access_Type): Removed.
14543         (Expand_Interface_Actuals): With the previous cleanup there is no need
14544         to build an anonymous access type. This allows further cleanup in the
14545         code generated by the expander.
14546         (Expand_Interface_Conversion): If the actual is an access type then
14547         build an internal function to handle the displacement. If the actual
14548         is null this function returns null because no displacement is
14549         required; otherwise performs a type conversion that will be
14550         expanded in the code that returns the value of the displaced actual.
14551         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
14552         conversions that have no effect in the generated code because no
14553         displacement is required. Code cleanup; use local variables to
14554         avoid repeated calls to the subprogram directly_designated_type().
14555
14556         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
14557         Classify the primitive operations used in dispatching selects as
14558         predefined.
14559         (Implements_Limited_Interface): Determine whether some type either
14560         directly implements a limited interface or extends a type that
14561         implements a limited interface.
14562         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
14563         (Expand_Subtype_From_Expr): Do not build actual subtype if the
14564         expression is limited.
14565         (Find_Interface_Tag): Add code to handle class-wide types and
14566         entities from the limited-view.
14567
14568         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
14569         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
14570         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
14571         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
14572         Set_Prim_Op_Kind.
14573
14574         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
14575         of procedure name or prefix that appears as a trigger in a triggering
14576         alternative.
14577
14578         * uintp.ads: Introduce constants Uint_11 and Uint_13.
14579
14580 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14581
14582         * s-tataat.adb, a-tasatt.adb:
14583         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
14584
14585         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
14586         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
14587         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
14588         longer used.
14589
14590 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14591             Jose Ruiz  <ruiz@adacore.com>
14592
14593         * s-taprop-vxworks.adb:
14594         Move with clauses outside Warnings Off now that dependent units are
14595         Preelaborate.
14596         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
14597         initialization of this unit.
14598         (Specific): Add new procedures Initialize and Delete so that this
14599         package can be used for VxWorks 5.x and 6.x
14600         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
14601         differences between VxWorks 5.x and 6.x
14602         Minor reformatting.
14603         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
14604         caller.
14605         Use only Preelaborate-compatible constructs.
14606
14607         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
14608         Primitives.Operations.
14609         (Delete, Initialize): New procedures.
14610
14611         * s-osinte-vxworks.adb: Body used to handle differences between
14612         VxWorks 5.x and 6.x
14613         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
14614
14615         * s-osinte-vxworks.ads: Minor reformatting.
14616         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
14617         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
14618         and 6.
14619         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
14620         between Vxworks 5 and 6.
14621         (taskLock, taskUnlock): Removeed, no longer used.
14622
14623         * adaint.c: The wait.h header is not located in the sys directory on
14624         VxWorks when using RTPs.
14625         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
14626         using RTPs.
14627         (__gnat_dup): dup is available on Vxworks when using RTPs.
14628         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
14629
14630         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
14631
14632         * expect.c: The wait.h header is not located in the sys directory on
14633         VxWorks when using RTPs.
14634
14635 2005-09-01  Thomas Quinot  <quinot@adacore.com>
14636
14637         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
14638
14639         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
14640
14641         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
14642         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14643         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
14644         g-soccon-freebsd.ads: Add new constants:
14645          IP_MULTICAST_IF
14646          SO_RCVTIMEO/SO_SNDTIMEO
14647          IOV_MAX
14648
14649         * gen-soccon.c:
14650         Move all target-specific file inclusions and macro definitions to
14651         gsocket.h, in order to ensure that any C code in socket.c will see a
14652         set of constants that is consistent with the contents of g-soccon.ads.
14653
14654         * gsocket.h: Code imported from gen-soccon.c:
14655         Move all target-specific file inclusions and macro definitions to
14656         gsocket.h, in order to ensure that any C code in socket.c will see a set
14657         of constants that is consistent with the contents of g-soccon.ads.
14658         This change also makes gen-soccon self-contained (removing dependencies
14659         upon GCC internal headers).
14660
14661         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
14662         iovecs at a time.
14663         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
14664
14665         * socket.c: Minor reformatting.
14666
14667 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
14668             Thomas Quinot  <quinot@adacore.com>
14669
14670         * fname-sf.adb, mlib-tgt.ads,
14671         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
14672         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
14673         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
14674         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
14675         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
14676         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
14677         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
14678         makegpr.adb: Remove redundant use_clauses.
14679
14680 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
14681
14682         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
14683         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
14684         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
14685         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
14686         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
14687         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
14688         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
14689         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
14690         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14691         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
14692         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
14693         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
14694         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
14695         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
14696         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
14697         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14698         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
14699         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
14700         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
14701         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
14702         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
14703         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
14704         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
14705         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
14706         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
14707         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
14708         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
14709         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
14710         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
14711         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
14712         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
14713         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
14714         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
14715         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
14716         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
14717         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
14718         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
14719         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
14720         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
14721         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
14722         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
14723         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
14724         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
14725         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
14726         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
14727         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
14728         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
14729         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
14730         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
14731         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
14732         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
14733         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
14734         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
14735         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
14736         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
14737         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
14738         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
14739         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
14740         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
14741         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
14742         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
14743         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
14744         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
14745         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
14746         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
14747         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
14748         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
14749         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
14750         and always use the no parameter form for consistency.
14751
14752         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
14753
14754 2005-09-01  Robert Dewar  <dewar@adacore.com>
14755
14756         * binde.adb: Minor reformatting
14757         (Find_Elab_Order): Output warning if -p used with static elab order
14758
14759 2005-09-01  Robert Dewar  <dewar@adacore.com>
14760
14761         * checks.adb (Check_Needed): New procedure, deals with removing checks
14762         based on analysis of short-circuited forms. Also generates warnings for
14763         improper use of non-short-circuited forms.
14764         Code clean ups.
14765
14766 2005-09-01  Robert Dewar  <dewar@adacore.com>
14767
14768         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14769         with 'Valid tests.
14770
14771 2005-09-01  Robert Dewar  <dewar@adacore.com>
14772
14773         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14774         spec.
14775         Implement new insertion char < (conditional warning)
14776         * errutil.adb, erroutc.adb: Implement new insertion char <
14777         (conditional warning).
14778         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
14779         (Error_Msg_Warn): New variable for < insertion char.
14780         * prj-nmsc.adb: Implement new errout insertion char < (conditional
14781         warning).
14782         (Check_For_Source): Change value of Source_Id only after the current
14783         source has been dealt with.
14784
14785 2005-09-01  Robert Dewar  <dewar@adacore.com>
14786             Doug Rupp  <rupp@adacore.com>
14787
14788         * exp_attr.adb: Handle vax fpt for 'Valid attribute
14789         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
14790         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
14791         (Valid_D, Valid_F, Valid_G): New functions
14792
14793 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
14794             Hristian Kirtchev  <kirtchev@adacore.com>
14795             Javier Miranda  <miranda@adacore.com>
14796
14797         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
14798         from object notation, the original node is unanalyzed and carries no
14799         semantic information, so that accessiblity checks must be performed on
14800         the type of the actual itself.
14801         (Expand_N_Subprogram_Declaration): Change last actual parameter for
14802         compatibility with Build_Protected_Sub_Specification.
14803         (Check_Overriding_Inherited_Interfaces): Add suport to handle
14804         overloaded primitives.
14805         (Register_Interface_DT_Entry): Use the new name of the formal
14806         the the calls to Expand_Interface_Thunk
14807
14808         * exp_dbug.ads: Augment comments on encoding of protected types to
14809         include the generation of dispatching subprograms when the type
14810         implements at least one interface.
14811
14812         * lib.ads: Extend information in Load_Stack to include whether a given
14813         load comes from a Limited_With_Clause.
14814
14815         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
14816         whether a potential circularity is harmless, because it includes units
14817         loaded through a limited_with clause. Extends previous treatment which
14818         did not handle properly arbitrary combinations of limited and
14819         non-limited clauses.
14820
14821 2005-09-01  Nicolas Setton  <setton@adacore.com>
14822
14823         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
14824         to be encoded as typ___XBLU_lowerbound__upperbound instead of
14825         typ___XB_lowerbound__upperbound.
14826
14827 2005-09-01  Thomas Quinot  <quinot@adacore.com>
14828
14829         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
14830         dummy access formal for RACW/RAS TypeCode TSS.
14831         (Build_TypeCode_Call): Do not generate dummy null access actual for
14832         calls to the TypeCode TSS.
14833
14834 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
14835
14836         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
14837         fully qualified name, to distinguish instances with the same local name.
14838
14839         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
14840         fully qualified.
14841
14842 2005-09-01  Robert Dewar  <dewar@adacore.com>
14843
14844         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
14845         packed arrays.
14846
14847 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
14848
14849         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
14850         (Free): New deallocation procedure for filter elements
14851         (Close): Deallocate any existing filter for the concerned connection
14852
14853 2005-09-01  Laurent Pautet  <pautet@adacore.com>
14854
14855         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
14856         position set is provided, we compute one in order to reduce the maximum
14857         length of the keys.  This computation first selects a character
14858         position between 1 and the minimum length of the keys in order to
14859         avoid reducing one of the keys to an empty string.
14860         (Initialize, Compute): When the ratio V to K is too low, the algorithm
14861         does not converge. The initialization procedure now comes with a
14862         maximum number of iterations such that when exceeded, an exception is
14863         raised in Compute. The user can initialize this ratio to another value
14864         and try again
14865         Reformating and updated headers.
14866
14867 2005-09-01  Javier Miranda  <miranda@adacore.com>
14868
14869         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
14870         that given an entity T creates and returns an Itype that duplicates the
14871         contents of T. The returned Itype has the null-exclusion
14872         attribute set to True, and its Etype attribute references T
14873         to keep the association between the two entities.
14874         Update copyright notice
14875
14876         * sem_aggr.adb (Check_Can_Never_Be_Null,
14877         Aggregate_Constraint_Checks, Resolve_Aggregate,
14878         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
14879
14880         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
14881
14882 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
14883             Robert Dewar  <dewar@adacore.com>
14884             Hristian Kirtchev  <kirtchev@adacore.com>
14885
14886         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
14887         Result_Definition.
14888
14889         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
14890         function specs.
14891         Call Set_Result_Definition instead of Set_Subtype_Mark.
14892         (P_Subprogram_Specification): Add parsing of anonymous access result
14893         plus null exclusions. Call Set_Result_Definition instead of
14894         Set_Subtype_Mark.
14895
14896         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14897         (P_Access_Type_Definition): Add parsing for an anonymous access result
14898         subtype, plus parsing for null exclusions. Call Set_Result_Definition
14899         instead of Set_Subtype_Mark.
14900
14901         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14902         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
14903         (Result_Definition): New function for N_Function_Specifications.
14904         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
14905         N_Function_Specification.
14906         (Set_Null_Exclusion_Present): Allow this flag for
14907         N_Function_Specification.
14908         (Set_Result_Definition): New procedure for N_Function_Specifications.
14909         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
14910         and N_Function_Specification.
14911
14912         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
14913         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
14914         Add support for LIMITED NEW for Ada 2005 AI-419
14915         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
14916         syntax for anonymous access results.
14917         Replace Subtype_Mark field by Result_Definition in
14918         N_Function_Specification and N_Access_Definition specs.
14919         Add Null_Exclusion_Present to spec of N_Function_Specification.
14920         (Result_Definition): New function for N_Function_Specification and
14921         N_Access_Function_Definition.
14922         (Set_Result_Definition): New procedure for N_Function_Specification and
14923         N_Access_Function_Definition.
14924
14925         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
14926         Result_Definition for cases of N_Access_Function_Definition and
14927         N_Function_Specification.
14928         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
14929
14930 2005-09-01  Vincent Celier  <celier@adacore.com>
14931
14932         * lib-writ.adb: Update Copyright notice
14933         (Write_With_Lines): On platforms where file names are case-insensitive,
14934         record the file names in lower case.
14935         (Write_ALI): For D lines, on platforms where file names are
14936         case-insensitive, record the file names in lower case.
14937
14938 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
14939             Emmanuel Briot  <briot@adacore.com>
14940
14941         * lib-xref.adb (Output_Overridden_Op): Display information on
14942         overridden operation.
14943
14944         * lib-xref.ads: Add documentation on overridden operations.
14945
14946         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
14947         information.
14948
14949         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
14950         overriding entity information.
14951
14952 2005-09-01  Vincent Celier  <celier@adacore.com>
14953
14954         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
14955         including those that are inherited.
14956
14957 2005-09-01  Robert Dewar  <dewar@adacore.com>
14958
14959         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
14960
14961         * par-prag.adb: Implement new pragma Debug_Policy
14962
14963         * sem_prag.adb Implement new pragma Debug_Policy
14964         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
14965         Component_Size attribute specification. Give warning for ignored pragma
14966         Pack.
14967
14968         * snames.h, snames.ads, snames.adb: Introduce entries in
14969         Preset_Names for Name_Disp_Asynchronous_Select,
14970         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
14971         Name_Disp_Timed_Select.
14972         New pragma Debug_Policy
14973
14974         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
14975         explicitly.
14976         Switch -gnata also sets Debug_Pragmas_Enabled
14977
14978         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
14979         handle an explicit -gnata when compiling predefined files.
14980
14981 2005-09-01  Vincent Celier  <celier@adacore.com>
14982
14983         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
14984         directories of projects that have no Ada sources.
14985
14986 2005-09-01  Robert Dewar  <dewar@adacore.com>
14987
14988         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
14989         (makes a difference for wide characters)
14990
14991         * widechar.adb, widechar.ads:
14992         Add Wide_Char_Byte_Count feature to count chars vs bytes
14993
14994 2005-09-01  Thomas Quinot  <quinot@adacore.com>
14995             Ed Schonberg  <schonberg@adacore.com>
14996             Robert Dewar  <dewar@adacore.com>
14997
14998         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
14999         'Address attribute reference with an overloaded prefix, use the
15000         location of the prefix (not the location of the attribute reference) as
15001         the error location.
15002         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
15003         a function renaming thereof, is a valid prefix for 'Size (where it is
15004         intepreted as a function call).
15005         (Statically_Denotes_Entity): New predicate to determine whether the
15006         prefix of an array attribute can be considered static.
15007
15008         PR ada/9087
15009         (Eval_Attr): Fix failure to evaluate Component_Size for
15010         unconstrained arrays (resulted in wrong value in packed case, since
15011         back end cannot handle this case)
15012
15013 2005-09-01  Robert Dewar  <dewar@adacore.com>
15014
15015         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
15016         error msgs for most common cases.
15017         Use new errout insertion char < (conditional warning)
15018
15019 2005-09-01  Javier Miranda  <miranda@adacore.com>
15020             Ed Schonberg  <schonberg@adacore.com>
15021
15022         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
15023         become local to the whole package.
15024         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
15025         the package was already analyzed the new algorithm "replaces" the
15026         real entities by the shadow ones. This is required to ensure that
15027         the order of these entities in the homonym chains does not change;
15028         otherwise we can have undefined references at linking time because
15029         in case of conflicts the external name of the entities will have
15030         a suffix that depends on the order of the entities in the chain.
15031         (Remove_Limited_With_Clause): Complementary code that completes the
15032         new algorithm and replaces the shadow entities by the real ones.
15033         (Install_Limited_Withed_Unit): When unchaining entities before the
15034         installation of the shadow entities, only regular entities of the
15035         public part must be taken into account. This is required to
15036         keep this routine in synch with the work done by Remove_Limited_
15037         With_Clause
15038         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
15039         even if unit is analyzed, because the analysis of the unit is
15040         idempotent in any case, and the limited view of the unit may have to
15041         be installed for proper visibility.
15042         (Expand_Limited_With_Clause): Even if the unit in the implicit
15043         with_clause has been analyzed already, a limited view of the package
15044         must be built for the current context, if it does not exist yet.
15045
15046 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15047             Javier Miranda  <miranda@adacore.com>
15048             Gary Dismukes  <dismukes@adacore.com>
15049
15050         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
15051         defining entity for the instance body, make a new defining identifier
15052         rather than copying the entity of the spec, to prevent accidental
15053         sharing of the entity list.
15054         (Check_Private_View): When exchanging views of private types, build the
15055         list of exchanged views as a stack, to ensure that on exit the exchanges
15056         are undone in the proper order.
15057         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
15058         Restore the compilation environment in case of instantiation_error.
15059         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
15060         for an anonymous access result.
15061         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
15062         (Formal_Entity): Handle properly the case of a formal package that
15063         denotes a generic package renaming.
15064
15065 2005-09-01  Thomas Quinot  <quinot@adacore.com>
15066
15067         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
15068         clause if the array aggregate is surrounded by parentheses.
15069
15070 2005-09-01  Cyrille Comar  <comar@adacore.com>
15071             Gary Dismukes  <dismukes@adacore.com>
15072             Ed Schonberg  <schonberg@adacore.com>
15073             Javier Miranda  <miranda@adacore.com>
15074
15075         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
15076         underlying type
15077         to check if a type is Constrained in cases related to code generation
15078         (rather than semantic checking) since otherwise we do not generate
15079         similar code for mutable private types depending if their
15080         discriminants are visible or not.
15081         (Check_Abstract_Overriding): Do not complain about failure to override
15082         the primitive operations used in dispatching selects since they will
15083         always be overriden at the freeze point of the type.
15084         (Access_Definition): Separate out handling for resetting the scope
15085         of an anonymous access function result type. Retrieve the scope
15086         of the associated function rather than using Current_Scope, which
15087         does not have a consistent value (depends on whether we're in the
15088         middle of analyzing formal parameters). Add ??? comment about
15089         finding a cleaner way to handle the special cases of scope setting.
15090         (Process_Incomplete_Dependents): A protected operation is never a
15091         dispatching operation (only its wrapper may be).
15092         (Build_Derived_Record_Type): In case of tagged private types that
15093         implement interfaces add derivation of predefined primitive
15094         operations.
15095         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
15096         by two parameters that are used in case of derivation from abstract
15097         interface types: No_Predefined_Prims is used to avoid the derivation
15098         of predefined primitives from the interface, and Predefined
15099         Prims_Only is used to complete the derivation predefined primitives
15100         in case of private tagged types implementing interfaces.
15101         Fix typo in comments
15102         (Find_Interface_In_Descendant): Protect the frontend against
15103         wrong code with large circularity chains.
15104         (Is_Private_Overriding): Add support for entities overriding interface
15105         subprograms. The test failed because Entities associated with overriden
15106         interface subprograms are always marked as hidden (and used to build
15107         the secondary dispatch table); in this case the overriden entity is
15108         available through the field abstract_interface_alias (cf. override_
15109         dispatching_operation)
15110         (Access_Definition): Set the scope of the type to Current_Scope for the
15111         case of a function with an anonymous access result type.
15112         (Access_Subprogram_Declaration): Handle creation of the type entity for
15113         an access-to-function type with an anonymous access result.
15114         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
15115         in handling for N_Access_Function_Definition.
15116         (Analyze_Subtype_Declaration): Modify the text of error message.
15117         (Derived_Type_Declaration): Modify the text of error message.
15118         (Process_Subtype): Modify the text of error message plus cleanup
15119         of one redundant error message.
15120         (Analyze_Component_Declaration): Code cleanup.
15121         (Analyze_Object_Declaration): Code cleanup.
15122         (Analyze_Subtype_Declaration): Propagate the null-exclusion
15123         attribute in case of access types. Code cleanup.
15124         (Array_Type_Declaration): Code cleanup.
15125         (Process_Discriminants): Create the new null-excluding itype
15126         if required. Code cleanup.
15127         (Process_Subtype): Create the new null-excluding itype if
15128         required. Code cleanup.
15129         (Build_Derived_Record_Type): Code cleanup to avoid calling
15130         twice the subprogram derive_subprograms in case of private
15131         types that implement interfaces. In this particular case the
15132         subprogram Complete_Subprograms_Derivation already does the
15133         job associated with the second call.
15134
15135         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
15136         conversion to the full view when generating an operation for a
15137         discriminant whose type may currently be private.
15138
15139 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15140             Javier Miranda  <miranda@adacore.com>
15141
15142         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
15143         V (Obj.F), the rewriting does not involve the indexed component, but
15144         only the selected component itself.
15145         Do not apply the transformation if the analyzed node is an actual of a
15146         call to another subprogram.
15147         (Complete_Object_Operation): Retain the entity of the
15148         dispatching operation in the selector of the rewritten node. The
15149         entity will be used in the expansion of dispatching selects.
15150         (Analyze_One_Call): Improve location of the error message associated
15151         with interface.
15152         (Analyze_Selected_Component): No need to resolve prefix when it is a
15153         function call, resolution is done when parent node is resolved, as
15154         usual.
15155         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
15156         when attempting to resolve a call transformed from its object notation.
15157         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
15158         of the argument list for each interpretation of the operation.
15159         (Try_Object_Operation): The designated type of an access parameter may
15160         be an incomplete type obtained through a limited_with clause, in which
15161         case the primitive operations of the type are retrieved from its full
15162         view.
15163         (Analyze_Call): If this is an indirect call, and the return type of the
15164         access_to_subprogram is incomplete, use its full view if available.
15165
15166 2005-09-01  Javier Miranda  <miranda@adacore.com>
15167             Gary Dismukes  <dismukes@adacore.com>
15168
15169         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
15170         access types the null-exclusion and access-to-constant attributes must
15171         also match.
15172         (Analyze_Return_Statement): When the result type is an anonymous access
15173         type, apply a conversion of the return expression to the access type
15174         to ensure that appropriate accessibility checks are performed.
15175         (Analyze_Return_Type): For the case of an anonymous access result type,
15176         generate the Itype and set Is_Local_Anonymous_Access on the type.
15177         Add ??? placeholder for check to disallow returning a limited object
15178         in Ada 2005 unless it's an aggregate or a result of a function call.
15179         Change calls from Subtype_Mark to Result_Definition.
15180         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
15181         Result_Definition in call to Make_Function_Specification.
15182         (Build_Body_To_Inline): Change Set_Subtype_Mark to
15183         Set_Result_Definition.
15184         (Make_Inequality_Operator): Change formal Subtype_Mark to
15185         Result_Definition in call to Make_Function_Specification.
15186         (Process_Formals): Create the new null-excluding itype if required.
15187         (New_Overloaded_Entity): For an entity overriding an interface primitive
15188         check if the entity also covers other abstract subprograms in the same
15189         scope. This is required to handle the general case, that is, overriding
15190         other interface primitives and overriding abstract subprograms inherited
15191         from some abstract ancestor type.
15192         (New_Overloaded_Entity): For an overriding entity that comes from
15193         source, note the operation that it overrides.
15194         (Check_Conformance, Type_Conformant): Addition of one new formal
15195         to skip controlling formals in the analysis. This is used to
15196         handle overloading of abstract interfaces.
15197         (Base_Types_Match): Add missing case for types imported from
15198         limited-with clauses
15199         (New_Overloaded_Entity): Add barrier to protect the use of
15200         the "alias" attribute.
15201
15202 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15203
15204         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
15205         verify that the procedure and the entry are mode conformant.
15206         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
15207         as a different operator, which is often a cut-and-paste error.
15208
15209 2005-09-01  Javier Miranda  <miranda@adacore.com>
15210             Ed Schonberg  <schonberg@adacore.com>
15211
15212         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
15213         used in controlling parameters exclude null because it is necessary to
15214         read the tag to dispatch, and null has no tag.
15215         (Override_Dispatching_Operation): If the previous operation is inherited
15216         from an interface, it becomes hidden  and does not participate in later
15217         name resolution.
15218
15219 2005-09-01  Javier Miranda  <miranda@adacore.com>
15220             Ed Schonberg  <schonberg@adacore.com>
15221             Gary Dismukes  <dismukes@adacore.com>
15222
15223         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
15224         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
15225         the expander will generate the corresponding run-time check to evaluate
15226         the expression.
15227         (Resolve_Call): Check for legal type of procedure name or prefix that
15228         appears as a trigger in a triggering alternative.
15229         (Valid_Conversion): If expression is ambiguous and the context involves
15230         an extension of System, remove System.Address interpretations.
15231         (Resolve_Qualified_Expression): Reject the case of a specific-type
15232         qualification applied to a class-wide argument. Enhance comment
15233         to explain checking of Original_Node.
15234         (Resolve_Type_Conversion): The location of the error message was not
15235         general enough to handle the general case and hence it has been removed.
15236         In addition, this patch improves the text of the message.
15237         (Resolve_Type_Conversion): Add missing support for access to interface
15238         types.
15239         (Resolve_Type_Conversion): If the target is a class-wide interface type,
15240         do not expand if the expression is the actual in a call, because proper
15241         expansion will take place when the call itself is expanded.
15242         (Resolve_Allocator): If the context is an unchecked conversion, the
15243         allocator inherits its storage pool, if any, from the target type of
15244         the conversion.
15245
15246 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15247             Javier Miranda  <miranda@adacore.com>
15248
15249         * sem_type.adb (Add_One_Interp): If a candidate operation is an
15250         inherited interface operation that has an implementation, use the
15251         implementation to avoid spurious ambiguities.
15252         (Interface_Present_In_Ancestor): In case of concurrent types we can't
15253         use the Corresponding_Record_Typ attribute to look for the interface
15254         because it is set by the expander (and hence it is not always
15255         available). For this reason we traverse the list of interfaces
15256         (available in the parent of the concurrent type).
15257         (Interface_Present_In_Ancestor): Handle entities from the limited view
15258
15259 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15260
15261         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
15262         from the list of required components.
15263         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
15264         primitive procedure of a limited interface with a controlling first
15265         parameter.
15266         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
15267         of an entry.
15268         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
15269         capture if it is generated in the second operand of a short-circuit
15270         operation.
15271         Do not capture values for variables with address clauses.
15272         (Is_Object_Reference): Treat a function call as an object reference only
15273         if its type is not Standard_Void_Type.
15274
15275 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
15276
15277         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
15278         to a variable that is statically known to be constant.
15279
15280 2005-09-01  Geert Bosch  <bosch@adacore.com>
15281             Robert Dewar  <dewar@adacore.com>
15282
15283         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
15284         (VAXGF_Safe_First): Idem.
15285
15286 2005-09-01  Robert Dewar  <dewar@adacore.com>
15287             Arnaud Charlet  <charlet@adacore.com>
15288
15289         * g-dirope.ads: Minor reformatting
15290         Document that bounds of result of Base_Name match the input index
15291         positions.
15292         Add documentation on environment variable syntax for Expand_Path
15293
15294         * gnat_ugn.texi: Update documentation to include mention of -m switches
15295         Document new treatment of wide characters in max line length
15296         style check.
15297         Remove -gnatL/-gnatZ switches, no longer used.
15298         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
15299         of -gnata switch.
15300
15301         * gnat_rm.texi: Add doc for two argument form of pragma
15302         Float_Representation.
15303         Add documentation for pragma No_Strict_Aliasing
15304         Add note that explicit component clause overrides pragma Pack.
15305         Add documentation of pragma Debug_Policy
15306
15307 2005-09-01  Matthew Heaney  <heaney@adacore.com>
15308
15309         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
15310         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
15311         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
15312         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
15313         draft (Draft 13, August 2005) of Ada Amendment 1.
15314
15315 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
15316
15317         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
15318         Note that the platform-specific version of g-soccon.ads for VMS is now
15319         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
15320         really is a package spec).
15321         Replace s-taspri-linux.ads by s-taspri-posix.ads
15322         Remove references to s-mastop-x86.adb
15323
15324         * system-vxworks-xscale.ads: Removed, no longer used.
15325         * s-vxwork-xscale.ads: Removed, no longer used.
15326
15327 2005-09-01  Robert Dewar  <dewar@adacore.com>
15328
15329         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
15330         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
15331         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
15332         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
15333         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
15334         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
15335         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
15336         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
15337         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
15338         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
15339         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
15340         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
15341         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
15342         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
15343         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
15344         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
15345         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
15346         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
15347         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
15348         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
15349         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
15350
15351 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
15352
15353         PR ada/23187
15354         * adaint.c
15355         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
15356
15357 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
15358             Doug Rupp  <rupp@adacore.com>
15359
15360         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
15361         when needed.
15362         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
15363         this code in the GNAT run-time.
15364
15365         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
15366
15367         PR ada/21053
15368         * init.c (__gnat_error_handler [many]): Mark "msg" as const
15369         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
15370
15371         (__gnat_inside_elab_final_code): Moved here from
15372         Standard_Library and only defined for the compiler.
15373         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
15374         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
15375         using RTPs because directly vectored Interrupt routines are not
15376         supported on this configuration.
15377         (getpid): Do not redefine this function on VxWorks when using RTPs
15378         because this primitive is well supported by the RTP libraries.
15379         (copy_msg): Correct the code that checks for buffer overflow.
15380         Discovered during code reading.
15381
15382 2005-08-29  Olivier Hainque  <hainque@adacore.com>
15383
15384         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
15385         a library level mutable variable with an initializer, tell
15386         build_allocator to ignore the initializer's size. It may not be large
15387         enough for all the values that might be assigned to the variable later
15388         on.
15389
15390 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
15391             Eric Botcazou  <ebotcazou@adacore.com>
15392
15393         * trans.c: Protect < in error msg with quote
15394         Replace GCC_ZCX by Back_End_Exceptions.
15395         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
15396         has been sufficiently aligned in the record.
15397
15398 2005-08-15  James E. Wilson  <wilson@specifix.com>
15399
15400         * system-linux-alpha.ads: Change ia64 to alpha.
15401
15402 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
15403
15404         * decl.c, utils.c: Fix comment typos.
15405
15406 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
15407
15408         * decl.c, init.c, initialize.c: Fix comment typos.
15409
15410 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
15411
15412         Make CONSTRUCTOR use VEC to store initializers.
15413         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
15414         CONSTRUCTOR_ELTS.
15415         * trans.c (extract_values): Likewise.
15416         * utils.c (convert, remove_conversions): Likewise.
15417         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
15418         gnat_build_constructor): Likewise.
15419
15420 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
15421
15422         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
15423         DECL_SECTION_NAME.
15424         (compare_field_bitpos): Likewise.
15425
15426 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
15427
15428         * utils.c (create_var_decl): Only set DECL_COMMON on
15429         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
15430         VAR_OR_FUNCTION_DECL_P.
15431
15432 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
15433
15434         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
15435         removed.
15436
15437 2005-07-07  Pascal Obry  <obry@adacore.com>
15438
15439         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
15440         returned type on Windows.
15441
15442         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
15443         routine.
15444
15445         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
15446         exception in this case.
15447         Simplify the code as "Image (Image'Range)" = "Image".
15448
15449 2005-07-07  Vincent Celier  <celier@adacore.com>
15450
15451         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
15452         the destructor/constructor attributes for <lib>final/<lib>init.
15453
15454         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
15455
15456 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
15457
15458         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
15459         type if the parameter is not passed by copy but reference by default.
15460
15461 2005-07-07  Javier Miranda  <miranda@adacore.com>
15462
15463         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
15464         Reimplementation of the support for abstract interface types in order
15465         to leave the code more clear and easy to maintain.
15466
15467         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
15468         abstract interface types in order to leave the code clearer and easier
15469         to maintain.
15470
15471         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
15472         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
15473         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
15474         appropriate entry of the secondary dispatch table.
15475         (Make_DT): Add code to inherit the secondary dispatch tables of
15476         the ancestors.
15477
15478         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
15479         implementing both functionalities by means of a common routine, each
15480         routine has its own code.
15481
15482 2005-07-07  Javier Miranda  <miranda@adacore.com>
15483
15484         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
15485
15486         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
15487         types:
15488         --
15489           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15490         --
15491
15492         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
15493         use of tag incomplete types.
15494
15495         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
15496         give support to tagged incomplete types.
15497
15498         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
15499         expression is a discriminant reference and its type is private, as can
15500         happen within a stream operation for a mutable record, use the full
15501         view of the type to resolve the case alternatives.
15502         (Analyze_Assignment): Check wrong dereference of incomplete types.
15503
15504         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
15505         types.
15506
15507         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
15508         incomplete types.
15509
15510         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
15511         N_Incomplete_Type_Declaration nodes.
15512
15513         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
15514         Tag_Present to give support to tagged incomplete types:
15515         --
15516           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15517         --
15518
15519 2005-07-07  Olivier Hainque  <hainque@adacore.com>
15520
15521         PR ada/22301
15522         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
15523         definitions for the Unwind wrappers in the compiler case.
15524
15525 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
15526             Javier Miranda  <miranda@adacore.com>
15527
15528         * par-load.adb (Load): If a child unit is loaded through a limited_with
15529         clause, each parent must be loaded as a limited unit as well.
15530
15531         * sem_ch10.adb (Previous_Withed_Unit): Better name for
15532         Check_Withed_Unit. Return true if there is a previous with_clause for
15533         this unit, whether limited or not.
15534         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
15535         the current unit.
15536         (Is_Visible_Through_Renamings): New local subprogram of install_limited
15537         _withed_unit that checks if some package installed through normal with
15538         clauses has a renaming declaration of package whose limited-view is
15539         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
15540         of the current Draft document for Ada 2005.
15541         (Analyze_Context): Complete the list of compilation units that
15542         are allowed to contain limited-with clauses. It also contains
15543         checks that were previously done by Install_Limited_Context_Clauses.
15544         This makes the code more clear and easy to maintain.
15545         (Expand_Limited_With_Clause) It is now a local subprogram of
15546         Install_Limited_Context_Clauses, and contains the code that adds
15547         the implicit limited-with clauses for parents of child units.
15548         This functionality was prevously done by Analyze_Context.
15549
15550         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
15551         incomplete type.
15552
15553         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
15554         been erroneously named in a limited-with clause of its own context.
15555         In this case the error has been previously notified by Analyze_Context.
15556
15557 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
15558
15559         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
15560         generic package that contains local declarations with the same name.
15561         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
15562
15563 2005-07-07  Bernard Banner  <banner@adacore.com>
15564
15565         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
15566         ia64 platform only on platforms that you the GCC unwind library
15567         rather than the system unwind library.
15568
15569 2005-07-07  Thomas Quinot  <quinot@adacore.com>
15570
15571         * expect.c: Minor reformatting
15572
15573 2005-07-07  Sergey Rybin  <rybin@adacore.com>
15574
15575         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
15576         --no-separate-is
15577
15578         * gnat_ugn.texi: Add description for new gnatpp option
15579         (--no-separate-is)
15580
15581 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15582
15583         * g-expect-vms.adb, g-expect.ads, g-expect.adb
15584         (Get_Command_Output): New subprogram to launch a process and get its
15585         standard output as a string.
15586
15587 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15588             Olivier Hainque  <hainque@adacore.com>
15589
15590         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
15591         fetch a code-range descriptor associated with the machine state. On
15592         failure set the machine state's PC to 0; on success, pass the
15593         descriptor to exc_virtual_unwind.
15594
15595         * init.c (Tru64 section): New function __gnat_set_code_loc.
15596
15597 2005-07-04  Vincent Celier  <celier@adacore.com>
15598
15599         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15600         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15601         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
15602         Remove all auto-initialization code, as this is now done through the
15603         constructor mechanism.
15604
15605         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
15606         __gnat_sals_init_using_constructors): New functions.
15607
15608         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
15609         Linker_Constructor and Linker_Destructor when switch -a is used.
15610
15611         * bindusg.adb: Add line for new switch -a
15612
15613         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
15614         (Gnatbind): When switch -a is used, check if it is allowed
15615
15616         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
15617
15618 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
15619
15620         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
15621         This prevents us from hitting a limitation during the debug info
15622         generation when using stabs.
15623         (Prims_Ptr): Likewise.
15624
15625 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
15626             Ed Schonberg  <schonberg@adacore.com>
15627             Javier Miranda  <miranda@adacore.com>
15628
15629         * checks.adb (Null_Exclusion_Static_Checks): In the case of
15630         N_Object_Declaration, only perform the checks if the Object_Definition
15631         is not an Access_Definition.
15632
15633         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
15634         where the parent of an the access definition is an N_Object_Declaration
15635         when determining the Associated_Node_For_Itype and scope of an
15636         anonymous access-to-subprogram type.
15637
15638         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
15639         Corresponding_Spec on the body created for a null procedure. Add ???
15640         comment. Remove New_Copy_Tree call on body argument to
15641         Set_Body_To_Inline.
15642
15643         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
15644         discriminants, use the type of the actual as well, because the
15645         discriminants may be read by the called subprogram.
15646
15647         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
15648         access type we do not need to handle non-limited views.
15649         (Build_Derived_Record_Type): Additional check to check that in case of
15650         private types, interfaces are only allowed in private extensions.
15651
15652 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15653
15654         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
15655         <Pragma_Linker_Destructor>: Likewise.
15656
15657         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
15658         Pragma_Linker_Destructor.
15659
15660         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
15661         ATTR_LINK_DESTRUCTOR.
15662         (static_ctors, static_dtors): New variables.
15663
15664         * misc.c (gnat_expand_body): Output current function as constructor
15665         and destructor if requested.
15666
15667         * par-prag.adb: Add processing for pragma Linker_Constructor and
15668         Linker_Destructor.
15669
15670         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
15671         extracted from Check_Interrupt_Or_Attach_Handler.
15672         (Check_Interrupt_Or_Attach_Handler): Invoke it.
15673         Implement pragma Linker_Constructor and Linker_Destructor with the
15674         help of Find_Unique_Parameterless_Procedure.
15675         Replace Name_Alias with Name_Target for pragma Linker_Alias.
15676
15677         * snames.h, snames.ads, snames.adb:
15678         Add Name_Linker_Constructor and Name_Linker_Destructor.
15679         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
15680         * snames.adb: Remove Name_Alias.
15681
15682         * trans.c: Include cgraph.h.
15683         (build_global_cdtor): New function.
15684         (Compilation_Unit_to_gnu): Build global constructor and destructor if
15685         needed.
15686         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
15687         of objects too.
15688         (addressable_p) <COMPONENT_REF>: Unconditionally test
15689         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
15690
15691         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
15692         variable if it is external.
15693
15694         (static_ctors, static_dtors): New global variables.
15695         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
15696         <ATTR_LINK_DESTRUCTOR>: Likewise.
15697         (end_subprog_body): Chain function as constructor and destructor
15698         if requested.
15699
15700         * exp_util.adb (Force_Evaluation): Unconditionally invoke
15701         Remove_Side_Effects with Variable_Ref set to true.
15702         (Remove_Side_Effects): Handle scalar types first. Use a renaming
15703         for non-scalar types even if Variable_Ref is true and for class-wide
15704         expressions.
15705
15706 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15707
15708         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
15709         to prevent spurious warnings.
15710
15711 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15712
15713         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
15714         Itypes. Itypes are really unexpected there.
15715         (Build_TypeCode_Function): Generalise special processing for Itypes to
15716         handle the case of numeric implicit base types as well as enumerated
15717         ones.
15718
15719 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15720
15721         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
15722         controlled, indicate the expected type of the dereference that is
15723         created for the call to Deep_Finalize, to prevent spurious errors when
15724         the designated type is private and completed with a derivation from
15725         another private type.
15726
15727 2005-07-04  Vincent Celier  <celier@adacore.com>
15728
15729         * make.adb (Change_To_Object_Directory): When unable to change the
15730         current dir to the object directory, output the full path of the
15731         directory.
15732
15733 2005-07-04  Matthew Gingell  <gingell@adacore.com>
15734
15735         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
15736
15737         * indepsw-linux.adb: Replace by...
15738
15739         * indepsw-gnu.adb: ...this new file
15740
15741 2005-07-04  Vincent Celier  <celier@adacore.com>
15742
15743         * mlib-prj.adb (Auto_Initialize): New constant String
15744         (SALs_Use_Constructors): New Boolean function
15745         (Build_Library): Call gnatbind with Auto_Initialize switch when
15746         SALs_Use_Constructors returns True.
15747
15748         * mlib-tgt.ads: Minor reformatting
15749
15750         * mlib-utl.ads: Minor reformatting
15751
15752         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
15753
15754 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15755
15756         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
15757         single protected declarations can have an interface list.
15758         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
15759         with seriously malformed entry declarations, and lead to compilation
15760         abandoned messages.
15761
15762 2005-07-04  Javier Miranda  <miranda@adacore.com>
15763
15764         * par-load.adb: Load the context items in two rounds.
15765
15766 2005-07-04  Robert Dewar  <dewar@adacore.com>
15767
15768         * scng.adb: Do not consider Mod used as an attribute to be a keyword
15769
15770 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15771             Javier Miranda  <miranda@adacore.com>
15772
15773         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15774         type extension needs a limited view.
15775         Remove previous restriction on private types available through the
15776         limited-view (only tagged private types were previously allowed).
15777         (Install_Withed_Unit): In the code that implements the
15778         legality rule given in AI-377, exclude a child unit with the name
15779         Standard, because it is a homonym of the Standard environment package.
15780
15781 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15782
15783         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
15784         overloaded function call, carry interpretations from the original tree
15785         to the copy.
15786
15787 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15788
15789         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
15790         types check whether some designated type is a limited view, and use
15791         the non-limited view if available.
15792
15793 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
15794
15795         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
15796         constraint of full view of a private view T1 if present, when T2 is a
15797         discriminated full view.
15798
15799 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15800
15801         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
15802         actual that is a view conversion of a bit packed array reference.
15803
15804 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15805
15806         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
15807         present before checking whether an interface type covers a synchronized
15808         type.
15809
15810 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
15811
15812         * sem_util.adb (Is_Object_Reference): An indexed or selected component
15813         whose prefix is an implicit dereference is an object reference. Removes
15814         spurious errors when compiling with -gnatc.
15815
15816 2005-07-04  Robert Dewar  <dewar@adacore.com>
15817
15818         PR ada/22039
15819         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
15820
15821 2005-07-04  Matthew Gingell  <gingell@adacore.com>
15822
15823         * tracebak.c: Enable tracebacks on ia64 platforms
15824
15825 2005-07-04  Vincent Celier  <celier@adacore.com>
15826
15827         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
15828         the GNAT BIND command, as gnatbind accepts multiples ALI files with
15829         the -L or -n switches.
15830
15831 2005-07-04  Vincent Celier  <celier@adacore.com>
15832
15833         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
15834         correctly computed and the main project data is not modified while
15835         doing so.
15836         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
15837         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
15838         c++linker as this does not work on some platforms.
15839
15840 2005-07-04  Matthew Heaney  <heaney@adacore.com>
15841
15842         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
15843         was changed.
15844         * a-coinve.adb: Perform constraint checks explicitly.
15845
15846 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15847             Thomas Quinot  <quinot@adacore.com>
15848
15849         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
15850         new target gen-soccon.
15851
15852 2005-07-04  Robert Dewar  <dewar@adacore.com>
15853
15854         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
15855
15856 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15857
15858         * g-socket.ads (Check_Selector): Minor rewording of comment.
15859
15860 2005-07-04  Vincent Celier  <celier@adacore.com>
15861
15862         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
15863
15864 2005-07-04  Thomas Quinot  <quinot@adacore.com>
15865
15866         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
15867
15868 2005-07-04  Sergey Rybin  <rybin@adacore.com>
15869
15870         * gnat_ugn.texi: Add description of --eol gnatpp option
15871
15872 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15873             Thomas Quinot  <quinot@adacore.com>
15874
15875         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
15876         if the user wants all calls of a subprogram to be flagged,
15877         independently of whether they are made from within the same unit or
15878         another unit.
15879         Mention restriction for pragma Linker_Alias on some platforms.
15880         Document pragma Linker_Constructor and Linker_Destructor.
15881         Rewrite documentation of Weak_External, Linker_Section and
15882         Linker_Alias pragmas.
15883
15884 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
15885
15886         * s-stausa.ads, s-stausa.adb: New files.
15887
15888 2005-06-30  Kelley Cook
15889
15890         * all files:  Update FSF address in copyright headers.
15891         * gen-soccon.co (main): Output new FSF address in generated files.
15892
15893 2005-06-28  Paul Brook  <paul@codesourcery.com>
15894
15895         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
15896
15897 2005-06-14  Olivier Hainque  <hainque@adacore.com>
15898             Eric Botcazou  <ebotcazou@adacore.com>
15899
15900         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
15901         exc_unwind, now that we are generating proper .debug_frame output for
15902         that target.
15903
15904         * tracebak.c: Remove the mips-irix section, as we are now using the
15905         s-mastop based unwinder again.
15906         Under SPARC/Solaris, take into account the stack bias to compute the
15907         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
15908         ABI.
15909
15910 2005-06-14  Doug Rupp  <rupp@adacore.com>
15911
15912         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
15913
15914         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
15915
15916 2005-06-14  Pascal Obry  <obry@adacore.com>
15917
15918         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
15919         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
15920         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
15921         package name).
15922
15923         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
15924         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
15925         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
15926         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15927         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
15928         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
15929         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
15930         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
15931         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
15932         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
15933         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
15934         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
15935         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
15936         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
15937         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
15938         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
15939         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
15940         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
15941         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
15942         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
15943         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
15944         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
15945         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
15946         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
15947         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
15948         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
15949         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
15950         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
15951         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
15952         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
15953         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
15954         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
15955         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
15956         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
15957         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
15958         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
15959         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
15960         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
15961         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
15962         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
15963         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
15964         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
15965         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
15966         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
15967         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
15968         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
15969         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
15970         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
15971         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
15972         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
15973         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15974         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
15975         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
15976         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
15977         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
15978         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15979         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
15980         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
15981         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
15982         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
15983         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
15984         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
15985         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
15986         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
15987         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
15988         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
15989         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
15990         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
15991         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
15992         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
15993         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
15994         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
15995         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
15996         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
15997         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
15998         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
15999         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
16000         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
16001         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
16002         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
16003         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
16004         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
16005         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
16006         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
16007         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
16008         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
16009         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
16010         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
16011         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
16012         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
16013         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
16014         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
16015         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
16016         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
16017         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
16018         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
16019         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
16020         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
16021         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
16022         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
16023         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
16024         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
16025         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
16026         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
16027         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
16028         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
16029         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
16030         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
16031         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
16032         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
16033         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
16034         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
16035         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16036         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
16037         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
16038         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
16039         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
16040         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
16041         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
16042         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
16043         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
16044         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
16045         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
16046         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
16047         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
16048         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
16049         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
16050         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
16051         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
16052         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
16053         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
16054         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
16055         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
16056
16057 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
16058             Arnaud Charlet  <charlet@adacore.com>
16059
16060         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
16061         longer protected objects. They have been replaced by lower-level
16062         suspension objects made up by a mutex and a condition variable (or
16063         their equivalent given a particular OS) plus some internal data to
16064         reflect the state of the suspension object.
16065         (Initialize, Finalize): Add this initialization procedure for
16066         Suspension_Object, which is a controlled type.
16067         (Finalize): Add the finalization procedure for Suspension_Object,
16068         which is a controlled type.
16069
16070         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
16071         Ada.Synchronous_Task_Control because there is no longer a need for a
16072         VxWorks specific version of this package. Target dependencies
16073         has been moved to System.Task_Primitives.Operations.
16074
16075         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
16076         longer needed.
16077         (InitializeCriticalSection, EnterCriticalSection,
16078         LeaveCriticalSection, DeleteCriticalSection): Replace the type
16079         pCriticalSection by an anonymous access type so that we avoid problems
16080         of accessibility to local objects.
16081
16082         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
16083         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16084         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
16085         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
16086         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
16087         set the environment task mask here.
16088         (Current_State): Add this function that returns the state of the
16089         suspension object.
16090         (Set_False): Add this procedure that sets the state of the suspension
16091         object to False.
16092         (Set_True): Add this procedure that sets the state of the suspension
16093         object to True, releasing the task that was suspended, if any.
16094         (Suspend_Until_True): Add this procedure that blocks the calling task
16095         until the state of the object is True. Program_Error is raised if
16096         another task is already waiting on that suspension object.
16097         (Initialize): Add this procedure for initializing the suspension
16098         object. It initializes the mutex and the condition variable which are
16099         used for synchronization and queuing, and it sets the internal state
16100         to False.
16101         (Finalize): Add this procedure for finalizing the suspension object,
16102         destroying the mutex and the condition variable.
16103
16104         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16105         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
16106         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
16107         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
16108         which provides a low-level abstraction (using operating system
16109         primitives) for Ada.Synchronous_Task_Control.
16110         This object is made up by a mutex (for ensuring mutual exclusion), a
16111         condition variable (for queuing threads until the condition is
16112         signaled), a Boolean (State) indicating whether the object is open,
16113         and a Boolean (Waiting) reflecting whether there is a task already
16114         suspended on this object.
16115
16116         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
16117         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
16118         s-intman-vms.ads, s-intman-mingw.adb,
16119         (Initialize_Interrupts): Removed, no longer used.
16120
16121         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
16122         (Setup_Interrupt_Mask): New procedure.
16123
16124         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
16125
16126         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
16127
16128         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
16129         this is no longer done in the body of s-taprop
16130         (Server_Task): Explicitely test for Pending_Action in case
16131         System.Parameters.No_Abort is True.
16132
16133         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
16134         is no longer done in the body of s-taprop
16135
16136 2005-06-14  Robert Dewar  <dewar@adacore.com>
16137
16138         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16139         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16140         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16141         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16142         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16143         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
16144         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
16145         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16146         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
16147         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
16148         system-linux-hppa.ads, system-vms_64.ads,
16149         system-vxworks-alpha.ads: Minor comment update for
16150         AI-362 (unit is Pure).
16151
16152         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
16153         Add pragma Pure_05 for AI-362
16154         Make remaining conversion functions obsolescent in Ada 95
16155
16156         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16157         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
16158         Add entries for a-wichun and a-zchuni
16159         Add a-widcha a-zchara for AI-395
16160         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
16161
16162         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16163         Add entries for a-wichun.o and a-zchuni.o
16164         Entries for a-widcha.o and a-zchara.o
16165         Add entry for a-chacon.o
16166
16167         * a-ztenau.adb: Add with of Ada.Characters.Conversions
16168
16169         * a-chacon.ads, a-chacon.adb: New files.
16170
16171         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
16172         categorization violations.
16173
16174         * a-strmap.ads: Add pragma Pure_05 for AI-362
16175         * a-strmap.ads: Add note on implicit categorization for AI-362
16176
16177         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
16178
16179         * par-prag.adb: Dummy entry for pragma Persistent_BSS
16180         Set Ada_Version_Explicit, for implementation of AI-362
16181         Add processing for pragma Pure_05 and Preelaborate_05
16182         Add entry for Assertion_Policy pragma
16183
16184         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
16185         when needed for proper processing of categorization stuff
16186
16187         * sem_cat.adb:
16188         For several cases, make errors in preealborate units warnings,
16189         instead of errors, if GNAT_Mode is set. For AI-362.
16190
16191         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
16192         preelaborate unit is now warning if in GNAT mode
16193
16194         * s-stoele.ads: Document AI-362 for pragma preelaborate
16195
16196 2005-06-14  Doug Rupp  <rupp@adacore.com>
16197
16198         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
16199         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
16200         Default_Exception_Msg_Max_Length: new parameter.
16201
16202         * a-except.ads: (Exception_Msg_Max_Length): Set to
16203         System.Parameters.Default_Exception_Msg_Max_Length
16204         Add pragma Preelaborate_05 for AI-362
16205         Add warnings off to allow categorization violations for AI-362
16206
16207 2005-06-14  Vincent Celier  <celier@adacore.com>
16208
16209         * gnatsym.adb: Adapt to modification of package Symbols: procedure
16210         Process is now in package Processing.
16211
16212         * symbols.ads, symbols.adb:
16213         (Processing): New package, containing procedure Process
16214
16215         * symbols-vms-alpha.adb:
16216         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
16217
16218         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
16219         symbols-processing-vms-ia64.adb: New files.
16220
16221 2005-06-14  Pascal Obry  <obry@adacore.com>
16222
16223         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
16224         implementation. This new version generates the proper DllMain routine
16225         to initialize the SAL. The DllMain is generated in Ada and compiled
16226         before being added as option to the library build command.
16227
16228 2005-06-14  Doug Rupp  <rupp@adacore.com>
16229             Pascal Obry  <obry@adacore.com>
16230
16231         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
16232         call to decc$translate_vms.
16233         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
16234         need to remove those quotes before catenating the filename.
16235         (__gnat_locate_exec_on_path): improvements to the Win32 section:
16236         * avoid allocating the memory twice for better efficiency;
16237         * allocate 32K buffer for environment expansion as suggested by MSDN;
16238         * prepend ".;" to the path so that current directory is searched too.
16239
16240 2005-06-14  Robert Dewar  <dewar@adacore.com>
16241
16242         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
16243         instead of raising CE (AI-241)
16244         Add warnings off to allow categorization violations for AI-362
16245
16246 2005-06-14  Robert Dewar  <dewar@adacore.com>
16247
16248         * ali-util.adb, gnatbind.adb: Remove references to
16249         Force_RM_Elaboration_Order.
16250
16251         * switch-b.adb: Remove recognition of -f switch
16252
16253 2005-06-14  Pascal Obry  <obry@adacore.com>
16254
16255         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
16256         implementation which is slightly more efficient.
16257
16258 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
16259             Javier Miranda  <miranda@adacore.com>
16260             Ed Schonberg  <schonberg@adacore.com>
16261             Hristian Kirtchev  <kirtchev@adacore.com>
16262
16263         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
16264         allocator's designated type is a class-wide type, and compiling for
16265         Ada 2005, emit a run-time check that the accessibility level of the
16266         type given in the allocator's expression is not deeper than the level
16267         of the allocator's access type.
16268
16269         (Tagged_Membership): Modified to gives support to abstract interface
16270         types.
16271
16272         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
16273         Access_Level.
16274         (Descendant_Tag): New predefined function
16275         (Is_Descendant_At_Same_Level): New predefined function
16276         (Get_Access_Level): New private function
16277         (Set_Access_Level): New private procedure
16278         (IW_Membership): New function. Given the tag of an object and the tag
16279         associated with an interface, evaluate if the object implements the
16280         interface.
16281         (Register_Interface_Tag): New procedure used to initialize the table of
16282         interfaces used by the IW_Membership function.
16283         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
16284         of the dispatch table.
16285         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
16286         table of interfaces of the parent.
16287         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
16288         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
16289         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
16290         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
16291         Ada 2005 semantics for the new predefined function.
16292
16293         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
16294         call to Descendant_Tag rather than Internal_Tag.
16295         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
16296         the accessibility level of the attribute's Item parameter is not deeper
16297         than the level of the attribute's prefix type. Tag_Error is raised if
16298         the check fails. The check is only emitted for Ada_05.
16299         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
16300         requested stream attribute, use it.
16301         (Expand_N_Attribute_Reference): If the designated type is an interface
16302         then rewrite the referenced object as a conversion to force the
16303         displacement of the pointer to the secondary dispatch table.
16304         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
16305         is a dereference of an object with a constrained partial view.
16306
16307         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
16308         type is a class-wide type, emit a run-time check that the accessibility
16309         level of the returned object is not deeper than the level of the
16310         function's master (only when compiling for Ada 2005).
16311
16312         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
16313         Action_Nb_Arg): Add entries for new Get_Access_Level and
16314         Set_Access_Level routines in these tables.
16315         (Make_DT): Generate a call to set the accessibility level of the
16316         tagged type in its TSD.
16317         (Make_DT): Code cleanup. The functionality of generating all the
16318         secondary dispatch tables has been moved to freeze_record_type.
16319         (Make_Abstract_Interface_DT): Minor code cleanup.
16320         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
16321         this subprogram implements a new algorithm that provides the
16322         same functionality and it is more clear in case of primitives
16323         associated with abstract interfaces.
16324         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
16325         clean up, the functionality of this subprogram is now provided
16326         by Set_All_DT_Position.
16327         (Write_DT): New subprogram: a debugging procedure designed to be called
16328         within gdb to display the dispatch tables associated with a tagged
16329         type.
16330         (Collect_All_Interfaces): New subprogram that collects the whole list
16331         of interfaces that are directly or indirectly implemented by a tagged
16332         type.
16333         (Default_Prim_Op_Position): New subprogram that returns the fixed
16334         position in the dispatch table of the default primitive operations.
16335         (Expand_Interface_Actuals): New subprogram to generate code that
16336         displaces all the actuals corresponding to class-wide interfaces to
16337         reference the interface tag of the actual object.
16338         (Expand_Interface_Conversion): New subprogram. Reference the base of
16339         the object to give access to the interface tag associated with the
16340         secondary dispatch table.
16341         (Expand_Interface_Thunk): New subprogram that generates the code of the
16342         thunk. This is required for compatibility with the C+ ABI.
16343         (Make_Abstract_Interface_DT): New subprogram that generate the
16344         declarations for the secondary dispatch tables associated with an
16345         abstract interface.
16346         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
16347         attribute for each primitive operation covering interface subprograms
16348         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
16349         These subprograms were upgraded to give support to abstract interfaces
16350
16351         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
16352         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
16353         RE_Set_Access_Level.
16354         (RE_Unit_Table): Add entries for new Ada.Tags operations.
16355         Add support to call the followig new run-time subprograms:
16356         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
16357
16358         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
16359         match its full declaration when both have an access definition with
16360         statically matching designated subtypes.
16361         (Analyze_Component_Declaration): Delete commented out code that was
16362         incorrectly setting the scope of an anonymous access component's type.
16363         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
16364         an access discriminant when the containing type is nonlimited.
16365         (Make_Incomplete_Type_Declaration): Create an incomplete type
16366         declaration for a record type that includes self-referential access
16367         components.
16368         (Check_Anonymous_Access_Types): Before full analysis of a record type
16369         declaration, create anonymous access types for each self-referential
16370         access component.
16371         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
16372         an access component in this context is a Local_Anonymous_Access, for
16373         proper accessibility checks.
16374         (Access_Definition): Set properly the scope of the anonymous access type
16375         created for a stand-alone access object.
16376         (Find_Type_Of_Object): An object declaration may be given with an access
16377         definition.
16378         (Complete_Subprograms_Derivation): New subprogram used to complete
16379         type derivation of private tagged types implementing interfaces.
16380         In this case some interface primitives may have been overriden
16381         with the partial-view and, instead of re-calculating them, they
16382         are included in the list of primitive operations of the full-view.
16383         (Build_Derived_Record_Type): Modified to give support to private
16384         types implemening interfaces.
16385         (Access_Definition): Reject ALL on anonymous access types.
16386         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
16387         type derivation to occur at a deeper accessibility level than the
16388         parent type.
16389         For the case of derivation within a generic body however, disallow the
16390         derivation if the derived type has an ancestor that is a formal type
16391         declared in the formal part of an enclosing generic.
16392         (Analyze_Object_Declaration): For protected objects, remove the check
16393         that they cannot contain interrupt handlers if not declared at library
16394         level.
16395         (Add_Interface_Tag_Components): New subprogram to add the tag components
16396         corresponding to all the abstract interface types implemented by a
16397         record type or a derived record type.
16398         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16399         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16400         Process_Full_View, Record_Type_Declaration): Modified to give
16401         support to abstract interface types
16402         (Collect_Interfaces): New subprogram that collects the list of
16403         interfaces that are not already implemented by the ancestors
16404         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
16405         when partial view has no discriminants and full view has defaults.
16406         (Constrain_Access): Reject a constraint on a general access type
16407         if the discriminants of the designated type have defaults.
16408         (Access_Subprogram_Declaration): Associate the Itype node with the inner
16409         full-type declaration or subprogram spec. This is required to handle
16410         nested anonymous declarations.
16411         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16412         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16413         Process_Full_View, Record_Type_Declaration): Modified to give
16414         support to abstract interface types
16415         (Derive_Subprograms): Addition of a new formal to indicate if
16416         we are in the case of an abstact-interface derivation
16417         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
16418         to the specification because it is requied to analyze all the
16419         identifiers found in a list of interfaces
16420
16421         * debug.adb: Complete documentation of flag "-gnatdZ"
16422
16423         * exp_ch3.adb: Implement config version of persistent_bss pragma
16424         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
16425         testing for TSS presence to properly enforce visibility rules.
16426         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
16427         Make_Abstract_Interfaces_DT to generate the secondary tables
16428         associated with abstract interfaces.
16429         (Build_Init_Procedure): Modified to initialize all the tags
16430         corresponding.
16431         (Component_Needs_Simple_Initialization): Similar to other tags,
16432         interface tags do not need initialization.
16433         (Freeze_Record_Type): Modified to give support to abstract interface
16434         types.
16435         (Expand_N_Object_Declaration): Do not generate an initialization for
16436         a scalar temporary marked as internal.
16437
16438         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
16439         in-out parameter that is a component in an initialization procedure,
16440         whose constraint might depend on discriminants, and that may be
16441         misaligned because of packing or representation clauses.
16442         (Is_Legal_Copy): New predicate to determine whether a possibly
16443         misaligned in-out actual can actually be passed by copy/return. This
16444         is an error in case the type is by_reference, and a warning if this is
16445         the consequence of a DEC import pragma on the subprogram.
16446         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
16447         interface types
16448         (Expand_Inlined_Call): Mark temporary generated for the return value as
16449         internal, so that no useless scalar normalization is generated for it.
16450         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
16451         null procedure can always be inlined.
16452         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
16453         procedure, generate an explicit empty body for it.
16454
16455         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
16456         Given a type implementing an interface, returns the corresponding
16457         access_disp_table value.
16458         (Find_Interface_Tag): New subprogram. Given a type implementing an
16459         interface, returns the record component containing the tag of the
16460         interface.
16461         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
16462         previous ones that return the corresponding tag and access_disp_table
16463         entities.
16464         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
16465         is a predefined primitive operation.
16466         (Expand_Subtype_From_Expr): If the expression is a selected component
16467         within an initialization procedure, compute its actual subtype, because
16468         the component may depend on the discriminants of the enclosing record.
16469
16470         * i-cpp.ads, i-cpp.adb:
16471         This package has been left available for compatibility with previous
16472         versions of the frontend. As part of the new layout this is now a
16473         dummy package that uses declarations available at a-tags.ads
16474
16475         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
16476         "constant access" and "aliased [constant] access" when not compiling
16477         with -gnat05.
16478         Suppress Ada 2005 keyword warning if -gnatwY used
16479         (P_Identifier_Declarations): Add support for object declarations with
16480         access definitions.
16481         (Private_Extension_Declaration): Complete the documentation
16482         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
16483         attribute in case of private extension declaration
16484         (P_Type_Declaration): Mark as "abstract" the type declarations
16485         corresponding with protected, synchronized and task interfaces
16486         (P_Declarative_Items): "not" and "overriding" are overriding indicators
16487         for a subprogram or instance declaration.
16488
16489         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
16490         instantiation that is a dispatching operation has controlling access
16491         parameters that are null excluding.
16492         Save and restore Ada_Version_Explicit, for implementation of AI-362
16493         (Validate_Derived_Type_Instance): Add check for abstract interface
16494         types.
16495         (Analyze_Formal_Package): Establish Instantiation source for the copy of
16496         the generic that is created to represent the formal package.
16497         (Analyze_Package_Instantiation): Instantiate body immediately if the
16498         package is a predefined unit that contains inlined subprograms, and
16499         we are compiling for a Configurable_Run_Time.
16500         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
16501         If the program has a null default, generate an empty body for it.
16502
16503         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
16504         error message condition, null procedures are correctly detected now.
16505         (New_Overloaded_Entity): Bypass trivial overriding indicator check
16506         for subprograms in the context of protected types. Instead, the
16507         indicator is examined in Sem_Ch9 while analysing the subprogram
16508         declaration.
16509         (Check_Overriding_Indicator): Check consistency of overriding indicator
16510         on subprogram stubs as well.
16511         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
16512         the library level.
16513         (Analize_Subprogram_Specification): When analyzing a subprogram in which
16514         the type of the first formal is a concurrent type, replace this type
16515         by the corresponding record type.
16516         (Analyze_Subprogram_Body): Undo the previous work.
16517         (Analyze_Procedure_Call): If the call has the form Object.Op, the
16518         analysis of the prefix ends up analyzing the call itself, after which
16519         we are done.
16520         (Has_Interface_Formals): New subprogram subsidiary to analyze
16521         subprogram_specification that returns true if some non
16522         class-wide interface subprogram is found
16523         (New_Overloaded_Entity): Modified to give support to abstract
16524         interface types
16525         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
16526         access to subprograms must be recursive.
16527         (Is_Unchecked_Conversion): Improve the test that recognizes
16528         instantiations of Unchecked_Conversion, and allows them in bodies that
16529         are to be inlined by the front-end. When the body comes from an
16530         instantiation, a reference to Unchecked_Conversion will be an
16531         Expanded_Name, even though the body has not been analyzed yet.
16532         Replace Is_Overriding and Not_Overriding in subprogram_indication with
16533         Must_Override and Must_Not_Override, to better express intent of AI.
16534         (Analyze_Subprogram_Body): If an overriding indicator is given, check
16535         that it is consistent with the overrinding status of the subprogram
16536         at this point.
16537         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
16538         always inlined.
16539         If the subprogram is a null procedure, indicate that it does not need
16540         a completion.
16541
16542         * sem_disp.adb (Check_Controlling_Type): Give support to entities
16543         available through limited-with clauses.
16544         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
16545         allowed as the last primitive of a tagged type if it has no previous
16546         spec.
16547         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
16548         to give support to abstract interface types
16549
16550         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
16551         in the case where the target type is an anonymous access type of an
16552         object or component (that is, when Is_Local_Anonymous_Access is true).
16553         Prevent the special checks for conversions of access discriminants in
16554         the case where the discriminant belongs to a nonlimited type, since
16555         such discriminants have their accessibility level defined in the same
16556         way as a normal component of an anonymous access type.
16557         (Resolve_Allocator): When an allocator's designated type is a class-wide
16558         type, check that the accessibility level of type given in the
16559         allocator's expression or subtype indication is not statically deeper
16560         than the level of the allocator's access type.
16561         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
16562         name in a discriminant constraint of a record component.
16563         (Resolve_Explicit_Dereference): Do not check whether the type is
16564         incomplete when the dereference is a use of an access discriminant in
16565         an initialization procedure.
16566         (Resolve_Type_Conversion): Handle conversions to abstract interface
16567         types.
16568         (Valid_Tagged_Conversion): The conversion of a tagged type to an
16569         abstract interface type is always valid.
16570         (Valid_Conversion): Modified to give support to abstract interface types
16571         (Resolve_Actuals): Enable full error reporting on view conversions
16572         between unrelated by_reference array types.
16573         The rule for view conversions of arrays with aliased components is
16574         weakened in Ada 2005.
16575         Call to obsolescent subprogram is now considered to be a violation of
16576         pragma Restrictions (No_Obsolescent_Features).
16577         (Check_Direct_Boolean_Operator): If the boolean operation has been
16578         constant-folded, there is nothing to check.
16579         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
16580         check on possible violation of restriction No_Direct_Boolean_Operators
16581         until after expansion of operands, to prevent spurious errors when
16582         operation is constant-folded.
16583
16584         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
16585         Has_Compatible_Type): Modified to give support to abstract interface
16586         types.
16587         (Interface_Present_In_Ancestor): New function to theck if some ancestor
16588         of a given type implements a given interface
16589
16590         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
16591         prefix is a parameterless function that returns an access_to_procedure.
16592         (Transform_Object_Operation): Handle properly function calls of the
16593         form Obj.Op (X), which prior to analysis appear as indexed components.
16594         (Analyze_One_Call): Complete the error notification to help new Ada
16595         2005 users.
16596         (Analyze_Allocator): For an allocator without an initial value, where
16597         the designated type has a constrained partial view, a discriminant
16598         constraint is illegal.
16599
16600 2005-06-14  Robert Dewar  <dewar@adacore.com>
16601
16602         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
16603         do with treatment of Set_Col when positioned at end of line character.
16604
16605 2005-06-14  Robert Dewar  <dewar@adacore.com>
16606
16607         * atree.adb: (Elist*): Protect against uninitialized field
16608
16609 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16610
16611         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
16612         for an attribute reference that returns an access type.
16613         (Apply_Discriminant_Check): No need for check if (designated) type has
16614         constrained partial view.
16615
16616         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
16617         both bound checks, rather than a conjunction.
16618         (Insert_Valid_Check): If the expression is an actual that is an indexed
16619         component of a bit-packed array, force expansion of the packed element
16620         reference, because it is specifically inhibited elsewhere.
16621
16622 2005-06-14  Vincent Celier  <celier@adacore.com>
16623
16624         * clean.adb (Clean_Project): Correctly delete executable specified as
16625         absolute path names.
16626
16627         * make.adb (Gnatmake): Allow relative executable path names with
16628         directory information even when project files are used.
16629         (Change_To_Object_Directory): Fail gracefully when unable to change
16630         current working directory to object directory of a project.
16631         (Gnatmake): Remove exception handler that could no longer be exercized
16632         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
16633         may be deallocated by Normalize_Arguments.
16634         (Collect_Arguments): Eliminate empty arguments
16635
16636         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
16637         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
16638         (Check_Project): Return False when Project is No_Project. Return True
16639         when All_Projects is True.
16640         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
16641         All_Projects to True.
16642         Minor reformatting
16643
16644 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16645             Javier Miranda  <miranda@adacore.com>
16646             Thomas Quinot  <quinot@adacore.com>
16647             Robert Dewar  <dewar@adacore.com>
16648             Hristian Kirtchev  <kirtchev@adacore.com>
16649             Gary Dismukes  <dismukes@adacore.com>
16650
16651         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
16652         anonymous access types, to indicate that the accessibility level of
16653         the type is determined by that of the enclosing declaration.
16654         (Has_Persistent_BSS): New flag
16655         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
16656         of this attribute with functions.
16657         (Is_Primitive_Wrapper): Remove the barrier.
16658         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
16659         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
16660         New subprograms.
16661         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
16662         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
16663         New subprograms.
16664         (Is_Pure_Unit_Access_Type): New flag
16665         (Abstract_Interfaces): Complete the assertion to cover all usages.
16666         (Set_Is_Interface): Complete the assertion to cover all usages.
16667         (Is_Primitive_Wrapper): New attribute.
16668         (Is_Obsolescent): Now applies to all entities (though it is only set
16669         for subprograms currently)
16670         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
16671         which solves various problems concerning access subtypes.
16672         (Has_Persistent_BSS): New flag
16673         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
16674         Remove these subprograms because this attribute is currently
16675         not used.
16676         New entity flags:
16677         Has_Specified_Stream_Input (Flag190)
16678         Has_Specified_Stream_Output (Flag191)
16679         Has_Specified_Stream_Read (Flag192)
16680         Has_Specified_Stream_Write (Flag193)
16681         Present in all type and subtype entities. Set for a given view if the
16682         corresponding stream-oriented attribute has been defined by an
16683         attribute definition clause. When such a clause occurs, a TSS is set
16684         on the underlying full view; the flags are used to track visibility of
16685         the attribute definition clause for partial or incomplete views.
16686         (Is_Pure_Unit_Access_Type): New flag
16687         Clarify use of Is_Internal.
16688         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
16689         internally generated to wrap the invocation of tasks and protected
16690         types that implement interfaces.
16691         (Implementation_Base_Type): Documentation correction
16692         (Is_Obsolescent): Now applies to all entities (though it is only set
16693         for subprograms currently)
16694         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
16695         which solves various problems concerning access subtypes.
16696
16697         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
16698         for examined parameters. Identify unequal parameter list lengths as
16699         non-conformant parameters.
16700         (Overriding_Possible): Do not check for "All" qualifier in declaration
16701         of controlling access parameter, following prescription of AI-404.
16702         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
16703         that build the procedure body that wraps an entry invocation
16704         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
16705         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
16706         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
16707         give support to abstract interface types
16708
16709         * freeze.adb (Freeze_Entity): Issue error message if
16710         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
16711         type has no storage pool (Ada 2005) AI-366.
16712         Also modified to give support to abstract interface types
16713         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
16714         Inline_Always pragma.
16715
16716         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
16717         now begin an entry declaration.
16718         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
16719         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
16720         a subprogram declaration preceded by an overriding indicator.
16721         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
16722         declarations or subprogram declarations preceded by reserved words
16723         "not" or "overriding".
16724         (P_Entry_Declaration): Update comment. Parse and check overriding
16725         indicator, set semantic flags of entry declarations.
16726         (P_Task): New error message in case of private applied
16727         to a task type declaration.
16728         (P_Protected): New error message in case of private applied
16729         to a task type declaration.
16730
16731         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
16732         in which the full view of a type implementing an interface is a
16733         concurrent type.
16734         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
16735         Declare_Inherited_Private_Subprograms): If an explicit operation
16736         overrides an operation that is inherited in the private part, mark the
16737         explicit one as overriding, to enable overriding indicator checks.
16738         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
16739         full view to partial view, to simplify handling in back-end.
16740
16741         * sprint.adb: Print interface lists where needed: derived types,
16742         protected types, task types.
16743         output "is null" for null procedures. Part of implementation of
16744
16745         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
16746         relaxation of rules for access types in pure, shared passive partitions.
16747
16748         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
16749         first read discriminants into temporary objects, performing checks on
16750         the read values, then possibly performing discriminant checks on the
16751         actual (if it is constrained), and only finally reading the components
16752         into a constrained temporary object.
16753         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
16754         case of reading discriminants of a mutable record type to recognize
16755         the new form of the code generated by
16756         Build_Mutable_Record_Read_Procedure.
16757
16758         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
16759         of a simple call to Make_TSS_Name.
16760         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
16761         buffer, in order for Is_TSS to work correctly on local TSS names.
16762
16763         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
16764         Is_Local_Anonymous_Access to check legaliy of attributes in the
16765         context of  access components and stand-alone access objects.
16766         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
16767         treated as available for a limited private type if there is an
16768         attribute_definition_clause that applies to its full view, but not in
16769         other cases where the attribute is available for the full view
16770         (specifically, the sole fact that the full view is non-limited does not
16771         make the attribute available for the partial view).
16772         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16773         non-overloaded intrinsic subprogram.
16774         (Check_Stream_Attribute): Reject an attribute reference for an
16775         unavailable stream attribute even if the prefix is not a limited type
16776         (case of a 'Input attribute reference for an abstract, non-classwide
16777         type)
16778         (Stream_Attribute_Available): New function to determine whether a stream
16779         attribute is available at a place.
16780         (Check_Attribute): Use Stream_Attribute_Available instead of just
16781         testing for TSS presence on the implementation base type.
16782         (Analyze_Attribute): Modified to give support to task interfaces.
16783         (Analyze_Access_Attribute): Add error check for use of an Access (or
16784         Unrestricted_Access) attribute with a subprogram marked as
16785         Inline_Always.
16786         (Analyze_Attribute, case Attribute_Address): Add error check for use of
16787         an Address attribute with a subprogram marked as Inline_Always.
16788         Update Eval_Attribute to handle new value of Width from AI-395
16789
16790         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
16791         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
16792         Factor common code across the stream-oriented attribute circcuits into
16793         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
16794         processing is functionally identical to the previous duplicated one,
16795         except that an expression that denotes an abstract subprogram will now
16796         be rejected, as mandated by AI-195 item 5.
16797
16798         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
16799         Is_Local_Anonymous_Access to apply accessibility checks to access
16800         components and stand-alone access objects.
16801         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
16802         elsewhere.
16803         (Is_Potentially_Persistent_Type): New function
16804         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
16805         a heap-object whose type has a constrained partial view, the object is
16806         unconstrained and the component may depend on a discriminant, making its
16807         renaming illegal.
16808
16809         * sinfo.ads, sinfo.adb
16810         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
16811         (Must_Override): Flag applicable to N_Entry_Declaration.
16812         Indicate that interface_list can appear in single task and single
16813         protected declarations.
16814         Replace Is_Overriding and Not_Overriding with Must_Override and
16815         Must_Not_Override, to better express intent of AI.
16816         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
16817         of an overriding indicator in a subprogram or instance.
16818         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
16819         Add the overriding indicator [[not] overriding] construct to the
16820         following grammar productions:
16821          ENTRY_DECLARATION
16822          GENERIC_INSTANTIATION
16823          SUBPROGRAM_SPECIFICATION
16824
16825         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
16826         can start with an overriding indicator.
16827
16828         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
16829         flags accordingly on subrogram specifications or instances.
16830
16831         * sem_ch8.adb:
16832         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
16833         overriding_indicator, if present, is consistent with status of spec.
16834         Improve error message for null-excluding checks on controlling access
16835         parameters.
16836         (Check_In_Previous_With_Clause): Protect the frontend against
16837         previously reported critical errors in the context clauses.
16838         Save and restore Ada_Version_Explicit, for implementation of AI-362
16839         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
16840         operation verify that controlling formals of the renamed entity that
16841         are access parameters are explicitly non-null.
16842         (Find_Expanded_Name): Improve error message when prefix is an illegal
16843         reference to a private child unit.
16844
16845         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
16846         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
16847         Rewrite to correspond to new wide character names in AI-395
16848
16849         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
16850         default procedures.
16851
16852 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16853             Robert Dewar  <dewar@adacore.com>
16854
16855         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
16856         code, not on the bodies of predefined operations, to cut down on
16857         spurious noise.
16858
16859 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16860
16861         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
16862         be expanded in place. The size computation does not require a
16863         subtraction, which would raise an exception on a compiler built with
16864         assertions when the upper bound is Integer'first.
16865         (Flatten): For an array of composite components, take into account the
16866         size of the components to determine whether it is safe to expand the
16867         array into a purely positional representation.
16868
16869 2005-06-14  Thomas Quinot  <quinot@adacore.com>
16870
16871         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
16872         denoting a formal parameter into account.
16873
16874 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16875
16876         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
16877         the entry_call alternative of a conditional entry call, wrap the
16878         conditional entry call itself.
16879
16880 2005-06-14  Nicolas Setton  <setton@adacore.com>
16881             Ed Schonberg  <schonberg@adacore.com>
16882
16883         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
16884         the "simple_choice" member in a variant record, in accordance with the
16885         description in the package spec: the information output for a constant
16886         should be "S number", not "SS number".
16887         (Get_Encoded_Name): Return at once if not generating code. Avoids name
16888         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
16889
16890 2005-06-14  Thomas Quinot  <quinot@adacore.com>
16891
16892         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
16893         RACW without any primitives, do not generate the if statement for
16894         dispatching by name in the PolyORB/DSA case, as it would be malformed
16895         (it would have an Elsif_Parts list that is not No_List, but with a
16896         length of 0).
16897
16898 2005-06-14  Robert Dewar  <dewar@adacore.com>
16899
16900         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
16901
16902 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
16903
16904         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
16905         can determine whether pragma Suppress_Exception_Locations is in effect.
16906
16907         * utils2.c (build_call_raise): Do not pass the file name to the
16908         exception handler if pragma Suppress_Exception_Locations is in effect.
16909         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
16910
16911 2005-06-14  Emmanuel Briot  <briot@adacore.com>
16912
16913         * g-debpoo.adb (Deallocate, Dereference): Improve output.
16914
16915 2005-06-14  Nicolas Roche  <roche@adacore.com>
16916
16917         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
16918         to ""
16919         (Next_Level): Fix minor bug in handling of ../dir case
16920         (Read): Add dir separator to Directory name so that "" is understood as
16921          "/"
16922
16923 2005-06-14  Pascal Obry  <obry@adacore.com>
16924
16925         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
16926         releasing the items.
16927
16928 2005-06-14  Vincent Celier  <celier@adacore.com>
16929             Cyrille Comar  <comar@adacore.com>
16930
16931         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
16932         with output file descriptor and with output file name.
16933         (Dup, Dup2): Now global procedures as they are used by two subprograms
16934         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
16935
16936 2005-06-14  Thomas Quinot  <quinot@adacore.com>
16937
16938         PR ada/6717
16939         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
16940         broadcast address.
16941         (Create_Selector): Bind listening socket used to create the signalling
16942         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
16943         Set listen backlog to 1 to ensure that we detect socket theft by a
16944         failure of our own connect(2) call.
16945         (Check_Selector): Improve documentation of the selector mechanism.
16946         (Broadcast_Inet_Addr): New constant.
16947
16948 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
16949
16950         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
16951         type which turns out to be an incomplete and incorrect fix.
16952         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
16953         of the type is declared in a record (for determination of insertion
16954         type).
16955         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
16956         a private type and ensure that the primary entity is used for the type
16957         of the newly created function's V formal by taking the Etype of the
16958         view.
16959
16960 2005-06-14  Javier Miranda  <miranda@adacore.com>
16961             Jose Ruiz  <ruiz@adacore.com>
16962             Robert Dewar  <dewar@adacore.com>
16963             Ed Schonberg  <schonberg@adacore.com>
16964
16965         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
16966         that indicates if we are parsing a compilation unit found in a
16967         limited-with clause.
16968         It is use to avoid the circularity check.
16969
16970         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
16971         we are parsing a compilation unit found in a limited-with clause. This
16972         is use to avoid the circularity check.
16973
16974         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
16975         unit as a consequence of parsing a limited-with clause. This is used
16976         to avoid the circularity check.
16977
16978         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
16979         (Analyze_Context): Limited-with clauses are now allowed
16980         in more compilation units.
16981         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
16982         againts previously reported critical errors in context clauses
16983         (Install_Limited_Withed_Unit): Code cleanup plus static detection
16984         of two further errors: renamed subprograms and renamed packages
16985         are not allowed in limited with clauses.
16986         (Install_Siblings): Do not install private_with_clauses on the package
16987         declaration for a non-private child unit.
16988         (Re_Install_Parents): When a parent of the subunit is reinstalled,
16989         reset visibility of child units properly.
16990         (Install_Withed_Unit): When a child unit appears in a with_clause of its
16991         parent, it is immediately visible.
16992
16993 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
16994             Emmanuel Briot  <briot@adacore.com>
16995
16996         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
16997         declared within an inlined body as referenced, to prevent spurious
16998         warnings.
16999         (Output_One_Ref): If an entity renames an array component, indicate in
17000         the ALI file that this aliases (renames) the array. Capture as well
17001         function renamings that rename predefined operations.
17002         Add information about generic parent for package and subprogram
17003         instances.
17004         (Get_Type_Reference): For a subtype that is the renaming of an actual in
17005         an instantiation, use the first_subtype to ensure that we don't generate
17006         cross-reference information for internal types.
17007         For objects and parameters of a generic private type, retain the '*'
17008         indicator to distinguish such an entity from its type.
17009
17010         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
17011         to store information about instantiated entities.
17012
17013         * ali.adb (Scan_ALI): Add support for parsing the reference to the
17014         generic parent
17015
17016         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
17017         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
17018         information.
17019
17020 2005-06-10  Doug Rupp  <rupp@adacore.com>
17021             Arnaud Charlet  <charlet@adacore.com>
17022             Olivier Hainque  <hainque@adacore.com>
17023             Jose Ruiz  <ruiz@adacore.com>
17024
17025         * Make-lang.in: Add initialize.o when needed.
17026         Remove obsolete references to RT_FLAGS.
17027         Add missing dependencies for sdefault.o
17028
17029         * initialize.c: New file.
17030
17031         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
17032         [VMS] cond_signal_table: Fix problem in declaration.
17033         [VMS] __gnat_error_handler: rewrite.
17034         Move all __gnat_initialize() routines to initialize.c
17035         Specialize the former "hpux" section to "hppa hpux", as this is what the
17036         section really is here for and we now have other hpux ports that need
17037         different contents.
17038         (__gnat_adjust_context_for_raise) i386-linux: First version of this
17039         function for this target. Adjust PC by one in the machine context. This
17040         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
17041         it is more reliable to do that in the signal handler itself.
17042         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
17043         flags, so that the handler is passed the context structure to adjust
17044         prior to the raise.
17045         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
17046         SA_SIGINFO sigaction should look like. Call
17047         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
17048         Machine_State_Operations stuff.
17049         Add conditional code so that the x86_64 is also supported.
17050
17051 2005-06-14  Pascal Obry  <obry@adacore.com>
17052
17053         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
17054         the library name.
17055
17056 2005-06-14  Robert Dewar  <dewar@adacore.com>
17057
17058         * opt.ads, opt.adb: New flags for persistent_bss mode
17059         Add Ada_Version_Explicit, for implementation of AI-362
17060         Add Assertions_Enabled_Config and associated handling
17061         Needed since setting can be changed with Assertion_Policy pragma
17062         Add new flag Warn_On_Ada_2005_Compatibility
17063
17064         * switch-c.adb: Recognize -gnatwy/Y
17065         Set Ada_Version_Explicit, for implementation of AI-362
17066         The -gnatg switch now includes -gnatyu
17067
17068         * usage.adb: Add -gnatwy/Y
17069         Remove wrong asterisk on -gnatwX line
17070         Add line for -gnatyu switch
17071
17072 2005-06-14  Vincent Celier  <celier@adacore.com>
17073
17074         * osint.adb (Add_Default_Search_Dirs): Put source and object
17075         directories of project files before directories coming from
17076         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
17077
17078 2005-06-14  Robert Dewar  <dewar@adacore.com>
17079
17080         PR ada/15613
17081         * par-ch2.adb (Scan_Pragma_Argument): New procedure
17082         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
17083
17084 2005-06-14  Vincent Celier  <celier@adacore.com>
17085
17086         * prep.adb (Preprocess): Ignore error when scanning the first token of
17087         a line.
17088
17089 2005-06-14  Vincent Celier  <celier@adacore.com>
17090
17091         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
17092         (Check_Stand_Alone_Library): If the specified reference symbol file does
17093         not exist, only issue a warning when the symbol policy is not
17094         Controlled. And, when symbol policy is Compliant, set the symbol
17095         policy to Autonomous.
17096
17097 2005-06-14  Vincent Celier  <celier@adacore.com>
17098
17099         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
17100         when the project file in a with clause is not the last one, that is the
17101         project file name is followed by a comma.
17102         * prj-pp.adb: (First_With_In_List): New Boolean global variable
17103         (Print): Issue list of project files separated by commas in with clauses
17104         according to the values returned by Is_Not_Last_In_List.
17105         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
17106         (Set_Is_Not_Last_In_List): New procedure
17107
17108 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
17109
17110         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
17111
17112 2005-06-14  Robert Dewar  <dewar@adacore.com>
17113
17114         * scng.adb: Add call to new Check_EOF routine
17115         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
17116         Add some comments regarding wide character handling
17117
17118         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
17119
17120         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
17121
17122         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
17123         characters are now considered graphic characters and hence yield false
17124         in this call.
17125
17126         * nmake.adt: Modify header so that xnmake does not generate output
17127         files with multiple blank lines.
17128
17129         * treeprs.adt: Remove a blank line so that output from xtreeprs does
17130         not have an extra blank line
17131
17132 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
17133
17134         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
17135         expression when the component type is an anonymous access type to
17136         ensure that appropriate accessibility checks are done.
17137
17138         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
17139         expression of an assignment when the target object is of an anonymous
17140         access type. This ensures that required accessibility checks are done.
17141         (One_Bound): Move the check for type Universal_Integer to
17142         Process_Bounds.
17143         (Process_Bounds): Check whether the type of the preanalyzed range is
17144         Universal_Integer, and in that case set Typ to Integer_Type prior
17145         to setting the type of the original range and the calls to One_Bound.
17146
17147 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17148
17149         * sem_case.adb (Expand_Others_Choice): Improve warning.
17150
17151 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17152
17153         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
17154         constraint of full view if present, when other type is discriminated.
17155         (Eval_Relational_Op): Recognize tests of pointer values against Null,
17156         when the pointer is known to be non-null, and emit appropriate warning.
17157
17158 2005-06-14  Robert Dewar  <dewar@adacore.com>
17159             Ed Schonberg  <schonberg@adacore.com>
17160
17161         PR ada/10671
17162         * sem_prag.adb: Implement pragma Persistent_BSS
17163         Remove obsolete pragma Persistent_Data, Persistent_Object
17164         Set Ada_Version_Explicit, for implementation of AI-362
17165         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
17166         Add processing for pragma Pure_05 and Preelaborate_05
17167         Add processing for Assertion_Policy pragma
17168         Add pragma identifiers for Assert
17169         (Analyze_Pragma, case Assert): Check number of arguments
17170         (Process_Inline): Additional guard against an illegal program, where the
17171         argument of the pragma is undefined, and warnings on redundant
17172         constructs are enabled.
17173         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
17174         Ada_05 to this pragma, specifying that the pragma is only active in
17175         Ada_05 mode.
17176         (Check_Arg_Order): New procedure
17177         Add appropriate calls to this procedure throughout
17178         Also throughout, check entity name before doing any other checks
17179
17180         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
17181         Remove obsolete pragma Persistent_Data, Persistent_Object
17182         Add entries for pragma Pure_05 and Preelaborate_05
17183         Add entries for Assertion_Policy pragma and associated names
17184         Add some names for pragma argument processing
17185
17186         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
17187
17188 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
17189
17190         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
17191         appears within a negation (either from source or as a rewriting of
17192         inequality) adjust text of warning accordingly.
17193
17194 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17195
17196         * s-strxdr.adb: Follow AI95-00132
17197
17198 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
17199
17200         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
17201
17202 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
17203             Jose Ruiz  <ruiz@adacore.com>
17204
17205         * s-tposen.adb, s-tpobop.adb
17206         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
17207         the exception id.
17208         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
17209         there is no violation of the Max_Entry_Queue_Length restriction (if it
17210         has been set); Program_Error is raised otherwise.
17211         (Requeue_Call): Before requeuing the task on the target entry queue we
17212         check that there is no violation of the Max_Entry_Queue_Length
17213         restriction (if it has been set); Program_Error is raised otherwise.
17214
17215 2005-06-14  Robert Dewar  <dewar@adacore.com>
17216
17217         * styleg.adb: Fix several remaining problems in -gnatyu switch
17218         Blank line count not reset at start
17219         Scanning outside source buffer in some cases
17220         Confusing message for blanks at end of file
17221         Non-empty blank lines not recognized
17222
17223         * nmake.adt: Modify header so that xnmake does not generate output
17224         files with multiple blank lines.
17225
17226         * treeprs.adt: Remove a blank line so that output from xtreeprs does
17227         not have an extra blank line
17228
17229 2005-06-14  Sergey Rybin  <rybin@adacore.com>
17230
17231         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
17232
17233 2005-06-14  Doug Rupp  <rupp@adacore.com>
17234             Vincent Celier  <celier@adacore.com>
17235
17236         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
17237         Update copyright.
17238
17239         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17240         Remove "Library" command.
17241         Change keyword for style check -gnatyd from NOCRLF to
17242         DOS_LINE_ENDINGS.
17243         Remove useless second style check keyword NONE
17244         Remove help documentation for inexistent style check keyword
17245         RM_COLUMN_LAYOUT.
17246         Add help documentation for style check keywords DOS_LINE_ENDINGS,
17247         UNNECESSARY_BLANK_LINES and XTRA_PARENS
17248         Add UNNECESSARY_BLANK_LINES for -gnatyu
17249         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
17250
17251         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17252
17253 2005-06-14  Vincent Celier  <celier@adacore.com>
17254
17255         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
17256         gprmake was invoked with -d.
17257         (Compile_Sources): If -d was used, output the "completed ..." message
17258         for each compilation.
17259         (Scan_Arg): Recognize new switch -d
17260         When -c and at least one main is specified, set
17261         Unique_Compile to True to guarantee that no other sources will be
17262         compiled.
17263
17264 2005-06-14  Matthew Heaney  <heaney@adacore.com>
17265
17266         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
17267         * a-swuwha.ads, a-swuwha.adb: New files
17268
17269         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
17270         * a-szuzha.ads, a-szuzha.adb: New files.
17271
17272         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
17273         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
17274         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
17275         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
17276         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
17277         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
17278         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
17279         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
17280         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
17281         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
17282         Ada 2005 RM.
17283
17284 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
17285             Olivier Hainque  <hainque@adacore.com>
17286             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17287             Pascal Obry  <obry@adacore.com>
17288
17289         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
17290
17291         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
17292         making a temporary around a procedure call because of non-addressable
17293         actual parameter.
17294         (process_freeze_entity): If entity is a private type, capture size
17295         information that may have been computed for the full view.
17296         (tree_transform, case N_Allocator): If have initializing expression,
17297         check type for Has_Constrained_Partial_View and pass that to
17298         build_allocator.
17299         (tree_transform, case N_Return_Statement): Pass extra arg to
17300         build_allocator.
17301
17302         * decl.c (annotate_value): Remove early return if -gnatR is not
17303         specified.
17304         (gnat_to_gnu_field): Don't make a packable type for a component clause
17305         if the position is byte aligned, the field is aliased, and the clause
17306         size isn't a multiple of the packable alignment. It serves no useful
17307         purpose packing-wise and would be rejected later on.
17308         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
17309
17310         PR ada/20515
17311         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
17312         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
17313         instead.
17314         (create_concat_name): Idem.
17315
17316 2005-06-10  Robert Dewar  <dewar@adacore.com>
17317             Eric Botcazou  <ebotcazou@adacore.com>
17318             Ben Brosgol  <brosgol@adacore.com>
17319             Cyrille Comar  <comar@adacore.com>
17320             Sergey Rybin  <rybin@adacore.com>
17321             Pascal Obry  <obry@adacore.com>
17322
17323         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
17324         Document second argument (Ada_05) of pragma Obsolescent
17325         Add note that call to subprogram marked with pragma Obsolescent
17326         is now considered to be a violation of program Restrictions
17327         (No_Obsolescent_Features).
17328         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
17329         that only machine-dependent attributes are supported.
17330
17331         * gnat_ugn.texi:
17332         Commented out menu lines and empty section for gnatclean examples
17333         Document -gnatwy/Y
17334         Fix some over long lines
17335         Clarify and enhance documentation of ADA_PROJECT_PATH.
17336         Rework section 2.11.2(3) about linking with a non-GNU compiler.
17337         Mention new switch -fcallgraph-info.
17338         Mention new switch -fstack-usage.
17339         For gnatpp, replace '-notab' with '-N' and add this option to Index
17340         Corrected VMS example.
17341         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
17342         Minor reformatting
17343         Add documentation for -gnatyu switch (unnecessary blank lines)
17344         Document new switch -U for GNAT PRETTY and GNAT METRIC
17345         Add note about Stdcall being handled as C convention on non Windows OS.
17346         Remove some junk typo in description of gnatbind -S switch
17347         Remove reference to Extensions_Allowed pragma
17348         Document the new order of the directories to be searched (source and
17349         object directories of project files before directories in ADA_*_PATH
17350         environment variables.
17351
17352         * g-trasym.ads: Document that IRIX is supported
17353
17354 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
17355
17356         * Makefile.in: Add initialize.o when needed.
17357         Adapt to new VMS package body Symbols and subunits
17358         No specialized version of a-sytaco is needed for VxWorks.
17359
17360         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
17361         * a-zchara.ads, a-widcha.ads: New files.
17362
17363         * system-hpux-ia64.ads: New file.
17364
17365         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
17366         is imported from the VxWorks kernel.
17367
17368 2005-06-14  Robert Dewar  <dewar@adacore.com>
17369
17370         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
17371         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
17372         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
17373         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
17374         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
17375         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
17376         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
17377         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
17378         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
17379         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
17380         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
17381         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
17382
17383 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17384
17385         * xeinfo.adb: Fix typo in comment
17386
17387 2005-06-14  Javier Miranda  <miranda@adacore.com>
17388
17389         * repinfo.ads: Fix typo in comment
17390
17391 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
17392
17393         * s-finimp.adb (Parent_Tag): Delete this imported function (function
17394         Parent_Tag is now in the visible part of Ada.Tags).
17395         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
17396         using imported function.
17397
17398 2005-06-14  Bernard Banner  <banner@adacore.com>
17399
17400         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
17401         also apply for handling support for VxSim 653.
17402
17403 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
17404
17405         * xsnames.adb: Add automatic generation of snames.h.
17406
17407 2005-06-14  Thomas Quinot  <quinot@adacore.com>
17408
17409         * gen-soccon.c: Add IP_MULTICAST_IF constant
17410         Minor reformatting and adjustments to prevent warnings.
17411
17412 2005-06-14  Pascal Obry  <obry@adacore.com>
17413
17414         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
17415
17416 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
17417
17418         * trans.c (gnat_gimplify_expr): Call
17419         recompute_tree_invarant_for_addr_expr when we change
17420         the operand of the ADDR_EXPR.
17421
17422 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17423
17424         * misc.c: Don't include errors.h.
17425
17426 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17427
17428         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
17429
17430 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
17431
17432         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
17433         comment typos.
17434         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
17435
17436 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
17437
17438         PR ada/20270
17439         * Makefile.in: Make TGT_LIB behave correctly.
17440
17441 2005-04-23  DJ Delorie  <dj@redhat.com>
17442
17443         * misc.c: Adjust warning() callers.
17444
17445 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
17446
17447         PR ada/18847
17448         * a-nudira.adb (Value): Check for valid string.
17449         * a-nuflra.adb (Value): Likewise.
17450
17451 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
17452
17453         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
17454
17455 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
17456
17457         * adaint.c, init.c, tracebak.c: Fix comment typos.
17458         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
17459
17460 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
17461             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17462
17463         * Makefile.in: Add make ifeq define for hppa linux tasking support.
17464         * system-hpux.ads: Define Signed_Zeros to be True.
17465         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
17466
17467 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
17468
17469         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
17470         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
17471         typos.
17472
17473 2005-03-30  Tom Tromey  <tromey@redhat.com>
17474
17475         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
17476
17477 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17478
17479         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
17480
17481 2005-03-29  Robert Dewar  <dewar@adacore.com>
17482
17483         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
17484         fixed-point expression has value that is not a multiple of the Small
17485         value.
17486
17487         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
17488
17489         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
17490         nanoseconds.
17491
17492         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
17493
17494 2005-03-29  Vincent Celier  <celier@adacore.com>
17495
17496         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
17497         (Build_Dynamic_Library.Version_String): Return the empty string when
17498         Lib_Version is empty or when the symbol policy is not Autonomous.
17499
17500         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
17501         a symbol is not in the reference symbol file, increase the Major ID
17502         and set the Minor ID to 0.
17503         Use gsmatch=lequal instead of gsmatch=equal
17504
17505 2005-03-29  Doug Rupp  <rupp@adacore.com>
17506
17507         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
17508         name and translate.
17509
17510 2005-03-29  Javier Miranda  <miranda@adacore.com>
17511
17512         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
17513         (Inherit_DT): The first formal has been redefined as a Tag.
17514         This allows us the removal of the subprogram Get_TSD.
17515         (TSD): Replace the call to Get_TSD by the actual code.
17516
17517         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
17518         (Make_DT): Upgrade the call to Inherit_TSD according to the
17519         new interface: the first formal is now a Tag.
17520
17521         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
17522         redefined as a Tag.
17523         This change allows us to remove the subprogram Get_TSD.
17524         (CPP_Get_TSD): Subprogram removed.
17525         (TSD): Replace the call to CPP_Get_TSD by the actual code.
17526
17527         * rtsfind.ads: Remove support to call the run-time
17528         subprogram Get_TSD
17529
17530 2005-03-29  Robert Dewar  <dewar@adacore.com>
17531
17532         * errutil.adb, errout.adb:
17533         Minor comment updates on Line_Terminator references
17534
17535         * par-ch10.adb: Add ??? comment about line terminator
17536
17537         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
17538         (check dos line terminator).
17539         (Check_Line_Max_Length): New procedure, split off from the existing
17540         Check_Line_Terminator routine. Separating this out allows -gnatyf to
17541         be properly recognized.
17542
17543         * styleg.adb: Add ??? comment for line terminator reference
17544
17545         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
17546         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
17547
17548         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
17549         (check dos line terminator).
17550         (Check_Line_Max_Length): New procedure, split off from the existing
17551         Check_Line_Terminator routine. Separating this out allows -gnatyf to
17552         be properly recognized.
17553
17554         * stylesw.ads, stylesw.adb:
17555         Add handling for new -gnatyd switch (check dos line terminator)
17556
17557         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
17558         Recognize -gnatwb/-gnatwB switches
17559         Include Warn_On_Bad_Fixed_Value for -gnatg
17560
17561         * usage.adb:
17562         Add line for new -gnatyd switch (check dos line terminator)
17563
17564         * usage.adb: Add lines for -gnatwb/-gnatwB
17565
17566         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
17567
17568         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
17569
17570         * gnat_ugn.texi: Fix overlong lines
17571         Document new -gnatyd switch
17572         Document new -gnatwb/-gnatwB switches
17573
17574 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17575
17576         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
17577         order to retrieve the component list of the type, before examining
17578         individual components.
17579
17580         * sem_type.adb (Covers): Types are compatible if one is the base type
17581         of the other, even though their base types might differ when private
17582         views are involved.
17583
17584 2005-03-29  Thomas Quinot  <quinot@adacore.com>
17585
17586         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
17587         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
17588         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
17589         analyzed if expansion is disabled (which could otherwise cause spurious
17590         error messages if expansion has been disabled due to previous
17591         (unrelated) errors).
17592
17593         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
17594         is disabled, the entity denoted by the argument is the access type
17595         itself, not an underlying record type, so there is no need to go back
17596         to the Corresponding_Remote_Type.
17597
17598 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
17599             Robert Dewar  <dewar@adacore.com>
17600
17601         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
17602         expand a call to an instance of
17603         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
17604         Constructor actual of the instance. A class-wide membership
17605         check is also generated, to ensure that the tag passed to the instance
17606         denotes a type in the class.
17607         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
17608         of Name_Generic_Dispatching_Constructor.
17609
17610         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
17611         05 unit for AI-260-02).
17612
17613         * a-tgdico.ads: New file.
17614
17615         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
17616         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
17617
17618         * snames.ads, snames.adb (Preset_Names): Add entry for
17619         Generic_Dispatching_Constructor.
17620
17621         PR ada/20300
17622         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
17623         character type cases.
17624         (Analyze_Subprogram_Renaming): Add special handling for
17625         the case of renaming of stream attributes when the renaming denotes a
17626         generic formal subprogram association for an abstract formal subprogram.
17627         Check that the attribute is a primitive stream attribute (and not
17628         a class-wide stream attribute) and then rewrite the attribute name
17629         as the name of the appropriate compiler-generated stream primitive.
17630
17631 2005-03-29  Robert Dewar  <dewar@adacore.com>
17632
17633         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
17634         recursive calls.
17635         (Is_Possibly_Unaligned_Object): Correct typo that
17636         resulted in inaccurate result for unaligned scalars within records.
17637
17638 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17639
17640         * freeze.adb (Freeze_Record_Type): If the type of the component is an
17641         itype whose parent is controlled and not yet frozen, do not create a
17642         freeze node for the itype if expansion is disabled.
17643
17644 2005-03-29  Vincent Celier  <celier@adacore.com>
17645
17646         * make.adb (Gnatmake): Don't fail if the main project file is declared
17647         as having no Ada sources. Do not display message "no sources to
17648         compile" in quiet output.
17649
17650 2005-03-29  Doug Rupp  <rupp@adacore.com>
17651
17652         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
17653         extra tools.
17654
17655 2005-03-29  Robert Dewar  <dewar@adacore.com>
17656
17657         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
17658         child.
17659
17660 2005-03-29  Robert Dewar  <dewar@adacore.com>
17661
17662         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
17663         missing TYPE Improve the error message generated when compiling a
17664         limited interface in Ada83 or Ada95 mode.
17665
17666 2005-03-29  Robert Dewar  <dewar@adacore.com>
17667
17668         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
17669         rather than proceed ahead using a junk attribute name.
17670
17671 2005-03-29  Vincent Celier  <celier@adacore.com>
17672
17673         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
17674
17675         * prj-part.adb (Parse_Single_Project): Set the location of a project
17676         on its defining identifier, rather than on the reserved word "project".
17677
17678         * prj-proc.adb (Expression): Adapt to the fact that default of external
17679         references may be string expressions, not always literal strings.
17680         (Recursive_Process): Set Display_Name equal to Name
17681         when Location is No_Location, that is when there is no actual file.
17682         Get the Display_Name of the project from the source, when it is not a
17683         virtual project.
17684         (Process): Use the Display_Name in error messages
17685
17686         * prj-strt.adb (External_Reference): Allow default to be string
17687         expressions, not only literal strings.
17688
17689 2005-03-29  Vincent Celier  <celier@adacore.com>
17690
17691         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
17692         file and the reference symbol file to be the same file.
17693
17694 2005-03-29  Thomas Quinot  <quinot@adacore.com>
17695
17696         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
17697         forbid conversion of a local access-to-subprogram type to a remote one.
17698
17699         * sem_util.adb (Wrong_Type): For a record type that is the expanded
17700         equivalent type for a remote access-to-subprogram type, go back to the
17701         original RAS entity when displaying an error message, so the casing is
17702         the original source casing.
17703
17704 2005-03-29  Robert Dewar  <dewar@adacore.com>
17705
17706         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
17707         on param update.
17708
17709 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17710
17711         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
17712         subtype if code is being pre-analyzed, to prevent un-expanded
17713         references to protected formals, among others.
17714         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
17715         interpretation that can be a call, include the result of the call as a
17716         possible interpretation of the dereference.
17717
17718         * sem_ch5.adb (Process_Bounds): Determine type of range by
17719         pre-analyzing a copy of the original range, and then analyze the range
17720         with the expected type.
17721
17722         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
17723         with an overloaded prefix where not all interpretations yield an
17724         access to subprogram, do not rewrite node as a call.
17725         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
17726         the node as a call once the context identifies the interpretation of
17727         the prefix whose call yields the context type.
17728         (Valid_Conversion): For the case of a conversion between
17729         local access-to-subprogram types, check subtype conformance using
17730         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
17731         detailed error message.
17732
17733 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
17734
17735         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
17736         indicator, indicate that the formal can never be null.
17737         (Process_Formals): If a formal has a non_null indicator, insert the
17738         resulting subtype immediately before the enclosing subprogram decl,
17739         and not at the beginning of the corresponding declarative part, to
17740         prevent access before elaboration (Ada2005).
17741
17742 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17743
17744         PR ada/19956
17745         * utils.c (finish_record_type): Use variable_size when setting sizes.
17746
17747 2005-03-29  Robert Dewar  <dewar@adacore.com>
17748
17749         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
17750         guarantee Unix style line terminators for the output files, even when
17751         running on windows.
17752
17753 2005-03-29  Robert Dewar  <dewar@adacore.com>
17754
17755         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
17756         buffer if an exception is raised.
17757
17758 2005-03-29  Ed Falis  <falis@adacore.com>
17759
17760         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
17761         VxWorks 653 1.4
17762
17763 2005-03-29  Robert Dewar  <dewar@adacore.com>
17764
17765         * sem_util.ads: Minor reformatting
17766         * gnat_rm.texi: Minor editing.
17767
17768 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
17769
17770         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17771         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17772
17773 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17774
17775         * adaint.c (__gnat_portable_spawn): Adjust cast.
17776
17777 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
17778
17779         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
17780
17781 2005-03-17  Pascal Obry  <obry@adacore.com>
17782
17783         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
17784         used.
17785
17786         * expect.c (__gnat_waitpid): Moved here from adaint.c.
17787         Reimplement under Win32 using Win32 API.
17788
17789         (__gnat_kill) [Win32]: Properly close the process handle before leaving
17790         this routine.
17791
17792 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
17793
17794         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
17795         (DECL_RENAMED_OBJECT): New accessor macro.
17796         (SET_DECL_RENAMED_OBJECT): New setter macro.
17797
17798         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
17799         object in all cases.  Attach the renamed object to the VAR_DECL.
17800         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
17801         field is not prescribed.
17802
17803         * misc.c (gnat_handle_option): Handle -gnatO separately.
17804         (gnat_print_decl) <VAR_DECL>: New case.
17805         Print the DECL_RENAMED_OBJECT node.
17806
17807         * lang.opt:  Declare separate -gnatO option.
17808
17809         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
17810         pointer, replace it with the renamed object.
17811         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
17812         pointer type if the source is not a fat pointer type whose underlying
17813         array has the same non-zero alias set as that of the destination array.
17814
17815 2005-03-17  Javier Miranda  <miranda@adacore.com>
17816
17817         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
17818         (Get_Inheritance_Depth): Removed.
17819         (Set_Inheritance_Depth): Removed.
17820
17821         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
17822         subprogram Get_Expanded_Name because it is not referenced by the
17823         frontend.
17824
17825         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
17826         (CPP_Get_Inheritance_Depth): Removed.
17827         (CPP_Set_Inheritance_Depth): Removed.
17828
17829         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
17830
17831 2005-03-17  Robert Dewar  <dewar@adacore.com>
17832
17833         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
17834         3, since we now expect GCC 3 to do all the work.
17835
17836 2005-03-17  Javier Miranda  <miranda@adacore.com>
17837
17838         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
17839         of one barrier to avoid wrong usage of this attribute.
17840
17841         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
17842         First_Private_Entity.
17843
17844         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
17845         the subprogram against wrong usage.
17846         Adapt the code to traverse the entities in the
17847         scope of a record_type because in addition to its usage regarding
17848         packages, this subprogram is also called by Expand_N_Freeze_Entity
17849         to install the visible declarations of the enclosing scope of a
17850         record_type_with_private to establish the proper visibility before
17851         freezing the entity and related subprograms.
17852
17853 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
17854
17855         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
17856         entry formals.
17857
17858 2005-03-17  Thomas Quinot  <quinot@adacore.com>
17859
17860         * exp_ch3.adb (Check_Attr): New subprogram.
17861         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
17862         into a new Check_Attr subprogram, in order to provide a more
17863         explanatory error message (including the name of the missing attribute).
17864         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
17865         subprogram determines whether a default implementation exists for a
17866         given stream attribute.
17867         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
17868         Determine whether to generate a default implementation for each stream
17869         attribute separately, as this depends on the specific attribute.
17870
17871         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
17872         limited extension where a stream attribute is missing for a limited
17873         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
17874         generate a bogus reference to the missing attribute to prevent
17875         cascaded errors. Instead, generate a null statement.
17876
17877         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
17878         available for a limited type if it has been specified for an ancestor
17879         of the type.
17880
17881 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
17882
17883         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
17884         entity is an operator.
17885
17886 2005-03-17  Thomas Quinot  <quinot@adacore.com>
17887
17888         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17889         spec, to make this predicate available to other units.
17890
17891         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
17892         reimplementing it.
17893
17894         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
17895         when no distribution runtime library is available.
17896
17897         * sem_res.adb, sem_dist.adb: Disable expansion of remote
17898         access-to-subprogram types when no distribution runtime library is
17899         available.
17900         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
17901         predicate available to other units.
17902
17903         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17904         spec, to make this predicate available to other units.
17905
17906 2005-03-17  Vincent Celier  <celier@adacore.com>
17907
17908         * make.adb (Insert_Project_Sources): Make sure the Q is always
17909         initialized.
17910
17911         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
17912         the default for the tree, not the global default naming.
17913
17914         * prj-proc.adb (Recursive_Process): No need to put the default naming
17915         in the project data, it's already there.
17916
17917 2005-03-17  Doug Rupp  <rupp@adacore.com>
17918
17919         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
17920
17921         * 5xcrtl.ads: Renamed to...
17922         * s-crtl-vms64.ads: ...this new file
17923
17924 2005-03-17  Robert Dewar  <dewar@adacore.com>
17925
17926         PR ada/19519
17927         * namet.adb (Copy_One_Character): Set proper wide character encoding
17928         for upper half character if we have upper half encoding.
17929
17930 2005-03-17  Robert Dewar  <dewar@adacore.com>
17931
17932         * par.adb (Par): Improved msg for attempt to recompile predefined unit
17933
17934 2005-03-17  Thomas Quinot  <quinot@adacore.com>
17935
17936         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
17937         tagged limited type, the TSS is a newly built renaming declaration:
17938         insert it using Set_TSS, not Copy_TSS.
17939
17940 2005-03-17  Javier Miranda  <miranda@adacore.com>
17941
17942         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
17943         Try_Object_Operation): Analyze the object that is accessible
17944         through the prefix of the subprogram call before we apply
17945         the transformation of the object-operation notation.
17946
17947 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
17948
17949         * s-taprob.adb (Initialize_Protection): Initialize the protected
17950         object's owner to Null_Task.
17951         (Lock): If pragma Detect_Blocking is in effect and the caller of this
17952         procedure is already the protected object's owner then Program_Error
17953         is raised. In addition the protected object's owner is updated.
17954         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
17955         of this procedure is already the protected object's owner then
17956         Program_Error is raised.
17957         In addition the protected object's owner is updated.
17958         (Unlock): Remove the ownership of the protected object.
17959
17960         * s-taprob.ads (Protection): Add the field Owner, used to store the
17961         protected object's owner.
17962         This component is needed for detecting one type of potentially blocking
17963         operations (external calls on a protected subprogram with the same
17964         target object as that of the protected action). Document the rest of
17965         the components.
17966
17967         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
17968         Initialize the protected object's owner to Null_Task.
17969         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
17970         caller of this procedure is already the protected object's owner then
17971         Program_Error is raised.
17972         Do not raise Program_Error when this procedure is called from a
17973         protected action.
17974         (Unlock_Entries): Remove the ownership of the protected object.
17975         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
17976         of this procedure is already the protected object's owner then
17977         Program_Error is raised.
17978         Do not raise Program_Error when this procedure is called from
17979         a protected action.
17980
17981         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
17982         used to store the protected object's owner.
17983
17984         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
17985         effect and this procedure (a potentially blocking operation) is called
17986         from whithin a protected action, Program_Error is raised.
17987         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
17988         and this procedure (a potentially blocking operation) is called from
17989         whithin a protected action, Program_Error is raised.
17990
17991 2005-03-17  Vincent Celier  <celier@adacore.com>
17992             Nicolas Setton  <setton@adacore.com>
17993
17994         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
17995         switch, not supported by the linker on Darwin. Add '_' before
17996         <library>init, as this character is added unconditionally by the
17997         compiler.
17998         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
17999         correct one ".dylib". This fixes detection of the archive files when
18000         building library projects.
18001
18002 2005-03-17  Vincent Celier  <celier@adacore.com>
18003
18004         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
18005         -gnat83, -gnat95 and -gnat05.
18006
18007 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
18008
18009         * gnat_ugn.texi: Document gnatmem restriction
18010
18011 2005-03-17  Thomas Quinot  <quinot@adacore.com>
18012
18013         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
18014         cleanup
18015
18016 2005-03-17  Robert Dewar  <dewar@adacore.com>
18017
18018         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
18019         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
18020         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
18021
18022         * casing.adb: Comment improvements
18023
18024 2005-03-17  Pascal Obry  <obry@adacore.com>
18025
18026         * g-expect.adb: Minor reformatting.
18027
18028 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
18029
18030         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
18031         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
18032         to dependencies.
18033
18034 2005-03-15  Vincent Celier  <celier@adacore.com>
18035
18036         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
18037         Add new parameter In_Tree to specify the project tree: needed
18038         by the project manager. Adapt to changes in project manager
18039         using new parameter In_Tree.
18040
18041 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
18042
18043         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
18044         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
18045         ada/bldtools to avoid make -jN failures.
18046
18047 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18048
18049         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
18050         to NULL_TREE on entry.
18051
18052 2005-03-15  Robert Dewar  <dewar@adacore.com>
18053
18054         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18055         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18056         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18057         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18058         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18059         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
18060         system-interix.ads, system-solaris-sparc.ads,
18061         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18062         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
18063         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
18064         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
18065         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
18066         Compiler_System_Version to be False.
18067
18068         * opt.ads: Add new flag Opt.Address_Is_Private
18069
18070         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
18071         Add new parameter Compiler_System_Version to avoid checking for
18072         completeness of parameters when compiler is compiling itself.
18073         Allows old versions of GNAT to be compiled with new compiler.
18074
18075 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18076
18077         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
18078         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
18079         calling thread.
18080         (Stack_Base_Available): New flag.
18081         (Get_Page_Size): New overloaded functions imported from C.
18082         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
18083         PROT_ON, PROT_OFF): New constants.
18084         (mprotect): New function imported from C.
18085         (pthread_teb_t): New record type.
18086
18087         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
18088         (Create_Task): Account for the Yellow Zone and the guard page.
18089
18090 2005-03-15  Vincent Celier  <celier@adacore.com>
18091
18092         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18093         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18094         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
18095         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
18096         Library_File_Name_For): Add new parameter In_Tree
18097         to specify the project tree: needed by the project manager.
18098         Adapt to changes in project manager using new parameter In_Tree.
18099         Remove local imports, use functions in System.CRTL.
18100
18101         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
18102         to use the project manager.
18103
18104         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
18105         In_Tree to designate the project tree. Adapt to changes in the project
18106         manager, using In_Tree.
18107
18108         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
18109         Copy_Interface_Sources): Add new parameter In_Tree to specify the
18110         project tree: needed by the project manager.
18111         (Build_Library): Check that Arg'Length >= 6 before checking if it
18112         contains "--RTS=...".
18113
18114         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
18115         Library_File_Name_For): Add new parameter In_Tree to specify the
18116         project tree: needed by the project manager.
18117
18118         * prj.ads, prj.adb: Major modifications to allow several project trees
18119         in memory at the same time.
18120         Change tables to dynamic tables and hash tables to dynamic hash
18121         tables. Move tables and hash tables from Prj.Com (in the visible part)
18122         and Prj.Env (in the private part). Move some constants from the visible
18123         part to the private part. Make other constants deferred.
18124         (Project_Empty): Make it a variable, not a function
18125         (Empty_Project): Add parameter Tree. Returns the data with the default
18126         naming data of the project tree Tree.
18127         (Initialize): After updating Std_Naming_Data, copy its value to the
18128         component Naming of Project Empty.
18129         (Register_Default_Naming_Scheme): Use and update the default naming
18130         component of the project tree, instead of the global variable
18131         Std_Naming_Data.
18132         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
18133         Tree is not defaulted, return the default naming data of the Tree.
18134         (Initial_Buffer_Size): Constant moved from private part
18135         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
18136         variables initialized in procedure Initialize.
18137         (Add_To_Buffer): Add two in out parameters to replace global variables
18138         Buffer and Buffer_Last.
18139         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
18140         functions.
18141         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
18142         hash tables.
18143         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18144         for the project tree.
18145         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
18146         constant at the beginning of the package spec, so that they cane be used
18147         in subprograms before their full declarations.
18148         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
18149         (Empty_Project): Add parameter of type Project_Node_Ref
18150         (Private_Project_Tree_Data): Add component Default_Naming of type
18151         Naming_Data.
18152         (Buffer, Buffer_Last): remove global variables
18153         (Add_To_Buffer): Add two in out parameters to replace global variables
18154         Buffer and Buffer_Last.
18155         (Current_Packages_To_Check): Remove global variable
18156         (Empty_Name): Move to private part
18157         (No-Symbols): Make it a constant
18158         (Private_Project_Tree_Data): New type for the private part of the
18159         project tree data.
18160         (Project_Tree_Data): New type for the data of a project tree
18161         (Project_Tree_Ref): New type to designate a project tree
18162         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18163         for the project tree.
18164
18165         * prj-attr.ads: Add with Table; needed, as package Prj no longer
18166         imports package Table.
18167
18168         * prj-com.adb: Remove empty, no longer needed body
18169
18170         * prj-com.ads: Move most of the content of this package to package Prj.
18171
18172         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
18173         designate the project node tree and Packages_To_Check to replace
18174         global variable Current_Packages_To_Check.
18175         Add new parameters In_Tree and Packages_To_Check to local subprograms,
18176         when needed. Adapt to changes in project manager with project node tree
18177         In_Tree.
18178
18179         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
18180         project tree to most subprograms. Move tables and hash tables to
18181         private part of package Prj.
18182         Adapt to changes in project manager using project tree In_Tree.
18183
18184         * prj-makr.adb (Tree): New constant to designate the project node tree
18185         Adapt to change in project manager using project node tree Tree
18186
18187         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
18188         display the Library_Src_Dir and the Library_Dir.
18189         Add new parameter In_Tree to designate the project node tree to most
18190         subprograms. Adapt to changes in the project manager, using project tree
18191         In_Tree.
18192         (Check_Naming_Scheme): Do not alter the casing on platforms where
18193         the casing of file names is not significant.
18194         (Check): Add new parameter In_Tree to designate the
18195
18196         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
18197         designate the project tree.
18198         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
18199
18200         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
18201         to replace those that were in the private part of package Prj.
18202         Add new parameter In__Tree to designate the project node tree to most
18203         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18204         (Post_Parse_Context_Clause): When specifying the project node of a with
18205         clause, indicate that it is a limited with only if there is "limited"
18206         in the with clause, not necessarily when In_Limited is True.
18207         (Parse): Add new parameter In_Tree to designate the project node tree
18208
18209         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
18210         designate the project node tree. Adapt to change in Prj.Tree with
18211         project node tree In_Tree.
18212
18213         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
18214         tree In_Tree in the call to function Empty_Process to give its initial
18215         value to the project data Processed_Data.
18216         Add new parameters In_Tree to designate the project tree and
18217         From_Project_Node_Tree to designate the project node tree to several
18218         subprograms. Adapt to change in project manager with project tree
18219         In_Tree and project node tree From_Project_Node_Tree.
18220
18221         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
18222         to replace those that were in the private part of package Prj.
18223         Add new parameter In_Tree to designate the project node tree to most
18224         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18225
18226         * prj-tree.ads, prj-tree.adb: Add new parameter of type
18227         Project_Node_Tree_Ref to most subprograms.
18228         Use this new parameter to store project nodes in the designated project
18229         node tree.
18230         (Project_Node_Tree_Ref): New type to designate a project node tree
18231         (Tree_Private_Part): Change table to dynamic table and hash tables to
18232         dynamic hash tables.
18233
18234         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
18235         the project tree to most subprograms. Adapt to changes in project
18236         manager using project tree In_Tree.
18237
18238         * makegpr.adb (Project_Tree): New constant needed to use project
18239         manager.
18240
18241 2005-03-15  Olivier Hainque  <hainque@adacore.com>
18242
18243         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
18244         for sigactions with SA_SIGINFO set. Call
18245         __gnat_adjust_context_for_raise before raising, to perform the
18246         potentially required adjustments to the machine context for the GCC
18247         unwinder.
18248
18249         * raise.h (__gnat_adjust_context_for_raise): New prototype.
18250
18251         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
18252         Adjust PC by one in the provided machine context.
18253         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
18254         so that the handler is passed the context structure to adjust prior to
18255         the raise.
18256         (__gnat_error_handler) HPUX: Adjust the signature to match what an
18257         SA_SIGINFO sigaction should look like. Call
18258         __gnat_adjust_context_for_raise before actually raising.
18259         (__gnat_adjust_context_for_raise): Default noop to help PC
18260         adjustments before raise from signal handlers.
18261         (__gnat_error_handler): Indirectly call a predicate function to
18262         determine if a condition should be resignaled or not.
18263         (__gnat_set_resignal_predicate): User interface to modify the predicate.
18264         (__gnat_default_resignal_p): Default GNAT predicate.
18265
18266 2005-03-15  Doug Rupp  <rupp@adacore.com>
18267
18268         * adaint.c: Prefix #include of VMS system header files with vms/
18269         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
18270         Do not define a dummy function "convert_addresses" under Darwin,
18271         not needed.
18272
18273         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
18274         with vms/
18275
18276 2005-03-15  Nicolas Setton  <setton@adacore.com>
18277
18278         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
18279         PPC/AIX.
18280
18281 2005-03-15  Robert Dewar  <dewar@adacore.com>
18282
18283         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
18284         AI-386.
18285
18286         * a-retide.ads: Minor comment changes
18287
18288 2005-03-15  Robert Dewar  <dewar@adacore.com>
18289
18290         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
18291         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
18292         Realloc_For_Chunk to private part of package.
18293         New subprograms for AI-301
18294
18295         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
18296         Get_Line procedure.
18297         Avoid unnecessary use of Get/Set_Wide_String
18298
18299 2005-03-15  Robert Dewar  <dewar@adacore.com>
18300
18301         PR ada/13470
18302         * a-stunau.ads, a-stunau.adb:
18303         Change interface to allow efficient (and correct) implementation
18304         The previous changes to allow extra space in unbounded strings had
18305         left this interface a bit broken.
18306
18307         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
18308
18309         * g-spipat.ads, g-spipat.adb: New interface for Get_String
18310         Minor reformatting (function specs)
18311
18312         * g-spitbo.adb: New interface for Get_String
18313
18314         * g-spitbo.ads: Minor reformatting
18315
18316         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
18317
18318         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
18319
18320 2005-03-15  Javier Miranda  <miranda@adacore.com>
18321             Robert Dewar  <dewar@adacore.com>
18322             Thomas Quinot  <quinot@adacore.com>
18323             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18324
18325         * atree.ads, atree.adb: Add support for Elist24 field
18326
18327         * atree.h: Fix wrong definition of Field27
18328         Add support for Elist16 field
18329         Add support for Elist24 field
18330
18331         * einfo.ads, einfo.adb (Abstract_Interfaces,
18332         Set_Abstract_Interfaces): New subprograms.
18333         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
18334         subprograms.
18335         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
18336         entities rather than a single node.
18337         (Is_Interface, Set_Is_Interface): New subprogram
18338         (First_Tag_Component): New syntesized attribute
18339         (Next_Tag_Component): New synthesized attribute
18340         (Write_Entity_Flags): Upgraded to write Is_Interface
18341         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
18342         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
18343         (Task_Body_Procedure): New subprogram to read this attribute.
18344         (Set_Task_Body_Procedure): New subprogram to set this attribute.
18345         (Has_Controlled_Component): Now applies to all entities.
18346         This is only a documentation change, since it always worked to apply
18347         this to other than composite types (yielding false), but now this is
18348         official.
18349         Update documentation on Must_Be_Byte_Aligned for new spec
18350
18351         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
18352         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
18353         uses of the Access_Disp_Table attribute to reference the first dispatch
18354         table associated with a tagged type. As
18355         part of the implementation of abstract interface types,
18356         Access_Disp_Table has been redefined to contain a list of dispatch
18357         tables (rather than a single dispatch table).
18358         Similarly, upgrade all the references to Tag_Component by the
18359         new attribute First_Tag_Component.
18360         (Find_Inherited_TSS): Moved to exp_tss.
18361         Clean up test in Expand_N_Object_Declaration for cases
18362         where we need to do a separate assignment of the initial value.
18363         (Expand_N_Object_Declaration): If the expression in the
18364         declaration of a tagged type is an aggregate, no need to generate an
18365         additional tag assignment.
18366         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
18367         is to be deleted.
18368         Bit packed array ops are only called if operands are known to be
18369         aligned.
18370         (Component_Equality): When returning an N_Raise_Program_Error statement,
18371         ensure that its Etype is set to Empty to avoid confusing GIGI (which
18372         expects that only expressions have a bona fide type).
18373         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
18374         determine the amount of data to be copied.
18375
18376         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
18377         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
18378             INTERFACE_TYPE_DEFINITION ::=
18379               [limited | task | protected | synchronized] interface
18380                 [AND interface_list]
18381
18382         * par-ch3.adb (P_Type_Declaration): Modified to give support to
18383         interfaces.
18384         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
18385         interfaces.
18386         (P_Interface_Type_Definition): New subprogram that parses the new
18387         syntax rule of Ada 2005 interfaces
18388         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
18389         messages by the correct RENAMES (quotes removed).
18390
18391         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
18392         attribute First_Tag_Component.
18393
18394         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
18395         (Interface_List, Set_Interface_List): New subprograms.
18396         (Interface_Present, Set_Interface_Present): New subprograms.
18397         (Limited_Present, Set_Limited_Present): Available also in derived
18398         type definition nodes.
18399         (Protected_Present, Set_Protected_Present): Available also in
18400         record type definition and
18401         derived type definition nodes.
18402         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
18403         (Task_Present, Set_Task_Present): New subprogram.
18404         (Task_Body_Procedure): Removed.
18405         (Set_Task_Body_Procedure): Removed.
18406         These subprogram have been removed because the attribute
18407         Task_Body_Procedure has been moved to the corresponding task type
18408         or task subtype entity to leave a field free to store the list
18409         of interfaces implemented by a task (for AI-345)
18410         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
18411         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
18412         expression flag Do_Range_Check
18413         (Exception_Junk): Change to Flag7 to accomodate above change
18414         (Box_Present, Default_Name, Specification, Set_Box_Present,
18415         Set_Default_Name, Set_Specification): Expand the expression
18416         "X in N_Formal_Subprogram_Declaration" into the corresponding
18417         two comparisons. Required to use the csinfo tool.
18418
18419         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
18420         "with string" given.
18421
18422         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
18423         expression given.
18424
18425         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
18426         in 2005 mode
18427
18428         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
18429         attribute Task_Body_Procedure rather than the old semantic field that
18430         was available in the task_type_declaration node.
18431
18432         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
18433         interface type definitions.
18434         (P_Formal_Derived_Type_Definition): Modified to handle the list of
18435         interfaces.
18436
18437         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
18438         task type declaration.
18439         (P_Protected): Modified to handle the list of interfaces in a
18440         protected type declaration.
18441
18442 2005-03-15  Doug Rupp  <rupp@adacore.com>
18443             Vincent Celier  <celier@adacore.com>
18444
18445         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
18446         (Gen_Output_File_C): Likewise.
18447         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
18448
18449 2005-03-15  Thomas Quinot  <quinot@adacore.com>
18450
18451         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
18452         is an N_Raise_Constraint_Error node, create a new copy of it without
18453         going through a call to Duplicate_Subexpr.
18454
18455 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18456             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18457             Nicolas Setton  <setton@adacore.com>
18458             Ed Schonberg  <schonberg@adacore.com>
18459
18460         PR ada/19900
18461         PR ada/19408
18462         PR ada/19140
18463         PR ada/20255
18464         * decl.c (gnat_to_gnu_field): Reject aliased components with a
18465         representation clause that prescribes a size not equal to the rounded
18466         size of their types.
18467         (gnat_to_gnu_entity, case E_Component): Always look at
18468         Original_Record_Component if Present and not the entity.
18469         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
18470         of tagged extension types by not making field for components that are
18471         inside the parent.
18472         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
18473         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
18474         expression to the type of the object when the object is constant.
18475         Reverse defer_debug_incomplete_list before traversing it, so that trees
18476         are processed in the order at which they were added to the list. This
18477         order is important when using the stabs debug format.
18478         If we are deferring the output of debug information, also defer this
18479         output for a function return type.
18480         When adding fields to a record, prevent emitting debug information
18481         for incomplete records, emit the information only when the record is
18482         complete.
18483         (components_to_record): New parameter defer_debug.
18484         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
18485         (gnat_to_gnu_field_decl): New function.
18486         (substitution_list, annotate_rep): Call it.
18487         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
18488         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
18489         No longer update discriminants to not be a COMPONENT_REF.
18490         (copy_alias_set): Strip padding from input type; also handle
18491         unconstrained arrays properly.
18492
18493         * gigi.h (write_record_type_debug_info): New function.
18494         Convert to use ANSI-style prototypes. Remove unused
18495         declarations for emit_stack_check, elab_all_gnat and
18496         set_second_error_entity.
18497         (gnat_to_gnu_field_decl): New decl.
18498
18499         * utils.c (write_record_type_debug_info): New function.
18500         (finish_record_type): Delegate generation of debug information to
18501         write_record_type_debug_info.
18502         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
18503         (update_pointer_to): Fix pasto.
18504         (convert) <UNION_TYPE>: Accept slight type variations when
18505         converting to an unchecked union type.
18506
18507         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
18508         replace the N_Freeze_Entity with a null statement.
18509
18510         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
18511         within a constrained subcomponent of an enclosing record, place the
18512         freeze nodes in the scope stack entry for the enclosing record.
18513         (Undelay_Type): New Subprogram.
18514         (Set_Small_Size): Pass T, the type to modify; all callers changed.
18515         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
18516         within records; allow them to have freeze nodes if their base types
18517         aren't frozen yet.
18518
18519         * exp_util.adb (Remove_Side_Effects): Properly test for
18520         Expansion_Delayed and handle case when it's inside an
18521         N_Qualified_Expression.
18522
18523         * sem_ch3.adb (Derived_Type_Declaration): New predicate
18524         Comes_From_Generic, to recognize accurately that the parent type in a
18525         derived type declaration can be traced back to a formal type, because
18526         it is one or is derived from one, or because its completion is derived
18527         from one.
18528         (Constrain_Component_Type): If component comes from source and has no
18529         explicit constraint, no need to constrain in in a subtype of the
18530         enclosing record.
18531         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
18532         Minor change to propagate Is_Ada_2005 flag
18533
18534         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
18535         Expansion_Delayed is False.
18536         (assoc_to_constructor): Ignore fields that have a
18537         Corresponding_Discriminant.
18538         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
18539         function returns "by target", dereference the target pointer using the
18540         type of the actual return value.
18541         <all>: Be prepared for a null gnu_result.
18542         (processed_inline_subprograms): Check flag_really_no_inline
18543         instead of flag_no_inline.
18544         (set_second_error_entity): Remove unused function.
18545         (gnat_to_gnu, case N_Selected_Component): Call
18546         gnat_to_gnu_field_decl.
18547         (assoc_to_constructor): Likewise.
18548
18549 2005-03-15  Robert Dewar  <dewar@adacore.com>
18550             Ed Schonberg  <schonberg@adacore.com>
18551             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18552
18553         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
18554         Must_Be_Byte_Aligned for cases where we do not need to use a
18555         System.Pack_nn unit.
18556
18557         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
18558         as procedures.
18559         Needed now that we do some processing for IN parameters as well. This
18560         may well fix some unrelated errors.
18561         (Expand_Call): Handle case of unaligned objects (in particular those
18562         that come from packed arrays).
18563         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
18564         renamed entity is an inherited operation, re-expand the call using the
18565         original operation, which is the one to call.
18566         Detect attempt to inline parameterless recursive subprogram.
18567         (Represented_As_Scalar): Fix to work properly with private types
18568         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
18569         accurate estimate. Yields True in far fewer cases than before,
18570         improving the quality of code that depends on this test.
18571
18572         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
18573         over both visible and private declarations to remove them from tree,
18574         and mark subprograms declared in package as eliminated, to prevent
18575         spurious use in subsequent compilation of generic units in the context.
18576
18577         * exp_util.ads: Minor cleanup in variable names
18578
18579         * sem_eval.ads, sem_eval.adb: Minor reformatting
18580         (Compile_Time_Known_Bounds): New function
18581
18582 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18583
18584         * exp_ch7.adb (Convert_View): Use base types of underlying types when
18585         determining whether an unchecked conversion is needed for the argument
18586         of an initialization call.
18587
18588 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18589
18590         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
18591         that appears in the instantiation rather than the internal subtype
18592         generated in the wrapper package, to avoid anomalies in gigi when the
18593         target is derived from a private type whose full view is an access type.
18594
18595 2005-03-15  Robert Dewar  <dewar@adacore.com>
18596
18597         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
18598         not needed.
18599         Add documentation to replace the use of this flag
18600         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
18601         the x86_64.
18602
18603 2005-03-15  Thomas Quinot  <quinot@adacore.com>
18604
18605         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
18606         here from exp_attr so it can be shared between exp_attr and exp_dist.
18607         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
18608         all TSS names, not a subset thereof, and the previous name introduced
18609         an unnecessarily confusion that a distinction might exist between
18610         "OK" TSS names and some "not OK" TSS names.
18611
18612 2005-03-15  Doug Rupp  <rupp@adacore.com>
18613
18614         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
18615         Command_Name.
18616
18617 2005-03-15  Pascal Obry  <obry@adacore.com>
18618             Eric Botcazou  <ebotcazou@adacore.com>
18619
18620         PR ada/20226
18621         PR ada/20344
18622         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
18623         when IN_RTS. This is to work around a bootstrap path problem.
18624
18625         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
18626         table and pass it to __gnat_install_SEH_handler().
18627         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
18628
18629         * lang.opt: Fix specification of -fRTS=.
18630
18631 2005-03-15  Doug Rupp  <rupp@adacore.com>
18632             Bernard Banner  <banner@adacore.com>
18633             Vincent Celier  <celier@adacore.com>
18634             Arnaud Charlet  <charlet@adacore.com>
18635
18636         PR ada/6852
18637         This change works fine when gnatlib is built from the gcc directory,
18638         but does not work when using the libada Makefile, since GCC_FOR_TARGET
18639         is not passed to ada/Makefile.in, so more work is needed by a
18640         Makefile/configure expert.
18641
18642         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
18643         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
18644         Setup gnatlink switch -M for x86_64 linux, as it is already setup
18645         for Linux x86.
18646         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
18647         Run ranlib on libgccprefix.a
18648         Define PREFIX_OBJS for Darwin, to build libgccprefix.
18649         (ADA_INCLUDE_SRCS): Split Ada packages.
18650
18651 2005-03-15  Robert Dewar  <dewar@adacore.com>
18652
18653         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
18654
18655         * impunit.adb: Add GNAT.UTF_32
18656
18657         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
18658
18659         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
18660         now uses GNAT.UTF_32).
18661
18662         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
18663         capabilities for categorizing characters using Unicode categories
18664
18665 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18666
18667         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
18668         instantiation that has been rewritten as a package body, retrieve spec
18669         to generate proper name for implicit_with_clause.
18670         (Install_Parents): Recognize a parent that is an instantiation but has
18671         been rewritten as a package declaration during analysis.
18672
18673 2005-03-15  Javier Miranda  <miranda@adacore.com>
18674             Ed Schonberg  <schonberg@adacore.com>
18675
18676         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
18677         parameter reported some error we immediately return. This improves the
18678         behaviour of the frontend in case of errors.
18679         (Install_Parent, Remove_Parent): Introduce new flag
18680         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
18681         ancestor of a generic child unit, when the child is being instantiated.
18682         (Inline_Instance_Body): If we are compiling the private
18683         part or the body of a child unit, restore the proper visibility of the
18684         parents after compiling the instance body.
18685
18686 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18687             Javier Miranda  <miranda@adacore.com>
18688
18689         PR ada/15608
18690         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
18691         of a private type, in which case it is underlying_type that denotes
18692         the proper task. Also modified to use the new entity attribute
18693         that is directly available in the task type and task subtype entities
18694         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
18695         arrays when other dimensions than the first are constrained by
18696         discriminants of an enclosing record.
18697         (Insert_Explicit_Dereference): If the prefix is an indexed component or
18698         a combination of indexed and selected components, find ultimate entity
18699         and generate the appropriate reference for it, to suppress spurious
18700         warnings.
18701         (Note_Possible_Modification): If an entity name has no entity, return.
18702         (Is_Variable): A function call never denotes a variable.
18703         (Requires_Transient_Scope): For record types, recurse only on
18704         components, not on internal subtypes that may have been generated for
18705         constrained components.
18706
18707 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18708
18709         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
18710         Eliminated as candidates for resolution. Both efficient, and avoids
18711         anomalies with operators declared in deleted code.
18712         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
18713         expansion is disabled (as when compiling a generic) to prevent spurious
18714         warnings on prefixes of selected components.
18715
18716 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18717
18718         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
18719         attached to a list before checking whether it appears in the private
18720         declarations of the current package.
18721         (Make_Inequality_Operator): Insert declaration in proper declarative
18722         list rather than just setting the Parent field, so that
18723         Is_Private_Declaration can handle it properly.
18724
18725 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
18726
18727         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
18728         a renaming a body, check that the renamed subprogram in not intrinsic.
18729         (Find_Direct_Name): If several use_visible entities hide
18730         each other, and the context is a predefined file compiled through
18731         rtsfind, keep only the entity that comes from a predefined file.
18732
18733 2005-03-15  Geert Bosch  <bosch@adacore.com>
18734
18735         * s-fatgen.adb (Valid): Extend special exceptions to account for long
18736         long float padding to also cover AMD64 and IA64.
18737
18738 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
18739
18740         * s-imgwch.adb: Add with and use of Interfaces.
18741         (Img_Wide_Character): Change type of Val to Unsigned_16.
18742         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
18743
18744 2005-03-15  Matthew Gingell  <gingell@adacore.com>
18745
18746         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
18747
18748 2005-03-15  Robert Dewar  <dewar@adacore.com>
18749
18750         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
18751
18752         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
18753
18754         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
18755
18756 2005-03-15  Robert Dewar  <dewar@adacore.com>
18757
18758         * s-bitops.adb, s-bitops.ads,
18759         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
18760         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
18761         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
18762         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
18763         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
18764         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
18765         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
18766         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
18767         reformatting.
18768
18769 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18770
18771         * utils2.c (build_binary_op): Fix typo.
18772
18773 2005-03-15  Doug Rupp  <rupp@adacore.com>
18774
18775         * s-crtl.ads (popen,pclose): New imports.
18776
18777 2005-03-15  Cyrille Comar  <comar@adacore.com>
18778
18779         * comperr.adb (Compiler_Abort): remove references to obsolete
18780         procedures in the bug boxes for various GNAT builds.
18781
18782 2005-03-15  Vincent Celier  <celier@adacore.com>
18783
18784         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
18785
18786 2005-03-15  Geert Bosch  <bosch@adacore.com>
18787             Arnaud Charlet  <charlet@adacore.com>
18788             Robert Dewar  <dewar@adacore.com>
18789             Cyrille Comar  <comar@adacore.com>
18790             Sergey Rybin  <rybin@adacore.com>
18791
18792         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
18793         too specific and long-winded to be appropriate for the GNAT User's
18794         Guide.
18795         Warn about use of GCC switches not documented in the GNAT User's Guide,
18796         as these may cause generated code to not conform to Ada semantics.
18797         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
18798         Add documentation for -gnat95 and -gnat05 switches
18799         Remove paragraph documenting obsolete way to refer to third party
18800         libraries.
18801         Add a few references to Ada_05 that were missing.
18802         Update documentation on -gnatZ/-gnatL.
18803         Document limitation when using -m64 under Solaris.
18804         Change the "Name Casing" subsection of the pretty-printer section
18805         according to the changes in the dictionary processing.
18806
18807         * gnat_rm.texi: Document the Ada_05 pragma.
18808         Section on record representation clauses describes the new more
18809         relaxed rules about placement of large packed bit array components.
18810         Add documentation of GNAT.UTF_32
18811
18812 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
18813
18814         * misc.c (gnat_post_options): Turn off structural
18815         aliasing for now.
18816
18817 2005-03-08  Laurent Guerby <laurent@guerby.net>
18818
18819         * system-linux-sparc.ads: Fix typo in previous commit.
18820
18821 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
18822             Laurent Guerby <laurent@guerby.net>
18823
18824         PR ada/20035
18825         * system-linux-sparc.ads: New.
18826         * Makefile.in: Add sparc linux entry.
18827
18828 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
18829
18830         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
18831         parameters as unused.
18832
18833 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
18834         Partial merge from libada-gnattools-branch:
18835
18836         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
18837         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
18838         into code in gnattools/Makefile.in.  Remove direct dependencies on
18839         stamp-tools by tools clauses.
18840         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
18841         * config-lang.in: Add gnattools to $lang_dirs.
18842
18843 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
18844
18845         PR ada/19942
18846         * utils.c (gnat_type_for_mode): Return null instead of ICE because
18847         we asked for an unknown mode.
18848
18849 2005-02-12  Richard Henderson  <rth@redhat.com>
18850
18851         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
18852         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
18853
18854 2005-02-10  Andreas Jaeger  <aj@suse.de>
18855
18856         * init.c (__gnat_initialize): Mark parameter as unused.
18857
18858 2005-02-09  Doug Rupp  <rupp@adacore.com>
18859
18860         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
18861         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
18862
18863 2005-02-09  Doug Rupp  <rupp@adacore.com>
18864
18865         * gnatchop.adb (dup, dup2),
18866         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
18867
18868         * gnatlbr.adb (mkdir),
18869         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
18870
18871         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
18872
18873 2005-02-09  Doug Rupp  <rupp@adacore.com>
18874
18875         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
18876
18877 2005-02-09  Robert Dewar  <dewar@adacore.com>
18878             Thomas Quinot  <quinot@adacore.com>
18879             Javier Miranda  <miranda@adacore.com>
18880             Pascal Obry  <obry@adacore.com>
18881             Ed Schonberg  <schonberg@adacore.com>
18882             Doug Rupp  <rupp@adacore.com>
18883             Gary Dismukes  <dismukes@adacore.com>
18884             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18885
18886         * g-zstspl.ads: New file.
18887
18888         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
18889
18890         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
18891         Ada 95 mode
18892         Add definition of Wide_Wide_Space for AI-285
18893
18894         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
18895         interface (to support Ada 95 and Ada 2005 units).
18896         Add Unbounded_IO files
18897         Add entries for Wide_Wide packages for AI-285
18898         Add list of containers packages to Ada 2005 unit list
18899
18900         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
18901         support new Unbounded_IO package cleanly.
18902
18903         * g-utf_32.ads, g-utf_32.adb: New files.
18904
18905         * Makefile.rtl: Add entry for g-utf_32
18906         Add new files for Unbounded_IO
18907         Adjust make file for new AI-285 wide wide packages
18908         Add AI-302 containers to the run time.
18909
18910         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
18911         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
18912         subprograms for AI-301.
18913
18914         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
18915
18916         * a-stunau.ads: Minor comment correction
18917
18918         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
18919         etc.
18920         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
18921         (Check_RPC): Update to match changes in expanded code.
18922         Clean up unused entity.
18923
18924         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
18925         was not taken into account.
18926         This includes proper initialization with Normalize_Scalars.
18927         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
18928         normalize scalars cases (particularly the latter) to do a better job
18929         of finding invalid representations.
18930
18931         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
18932
18933         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
18934         used
18935
18936         * exp_dist.adb: Add support for wide wide character type
18937         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
18938         private part, generate stub bodies at the end of the private part,
18939         not the visible part.
18940         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
18941         PolyORB support.
18942         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
18943         generic wrapper to execute final processing after completing the
18944         expansion of the RPC receiver for an RACW.
18945
18946         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
18947         packages and attributes.
18948         (Preset_Names): Addition of the new reserved words of Ada 2005,
18949         that is interface, overriding and synchronized.
18950         (Get_Pragma_Id): Give support to the use of the new reserved word
18951         "interface" as a pragma name.
18952         (Is_Pragma_Name): Give support to the use of the new reserved word
18953         "interface" as a pragma name.
18954         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
18955         attribute implementation.
18956
18957         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
18958         checks to entities that are output parameters of Asm operations.
18959         Handle the Stream_Size attribute.
18960         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
18961
18962         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
18963
18964         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
18965         for second parameter being 0.0.
18966         Add support for wide wide character type.
18967         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
18968
18969         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
18970         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
18971         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
18972         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
18973         for wide wide character cases.
18974
18975         * cstand.adb: Create entities for Wide_Wide_Character and
18976         Wide_Wide_String.
18977
18978         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
18979         accordance with AI-258.
18980         Add new declarations for 16/32 bit C character types (Part of AI285)
18981
18982         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
18983         (Obsolescent_Warning): New field
18984         (Rep_Clause): New local subprogram used to share code. Returns the rep
18985         clause for which the name is given in parameter.
18986         (Has_Stream_Size_Clause): New routine.
18987         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
18988         (Address_Clause): Implementation is now using Rep_Clause.
18989         (Alignment_Clause): Idem.
18990         (Size_Clause): Idem.
18991
18992         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
18993         entity in non-Ada 2005 mode and generate warning.
18994
18995         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
18996         (Prag): Code cleanup. Remove old gnat pragma "overriding"
18997
18998         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
18999         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
19000         on the named unit if the pragma is not in the current compilation unit,
19001         so that elaboration calls in the current unit can set up an elaboration
19002         dependency on the named unit, as needed.
19003         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
19004         subprogram as well as for subprograms declared within a package.
19005         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
19006         pragma overriding.
19007
19008         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
19009         to z) to avoid some instances of duplication for Wide_Wide packages.
19010
19011         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
19012         characters.
19013
19014         * scn.adb: Char_Literal_Value field is now a Uint
19015
19016         * scng.adb: Significant rewrite to handle new Ada 2005 features
19017         allowing wide and wide wide characters in program text, e.g. for
19018         identifiers, as described in AI-285.
19019         (Set_Reserved): New procedure, makes setting up keywords cleaner.
19020         (Initialize_Scanner): Register the new reserved words of Ada 2005.
19021         (Scan): Give support to the new reserved words.
19022
19023         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
19024         warning notifying that interface, overriding, and synchronized are
19025         new reserved words.
19026         (P_Pragma): Allow the use of the new reserved word "interface" as
19027         a pragma name.
19028
19029         * gnatls.adb, gnatbind.adb,
19030         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
19031         identifiers named "interface" to "SAL_Interface".
19032
19033         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
19034         (Structured Exception handling).
19035         (Gen_Main_C): Idem.
19036
19037         * bindgen.adb:
19038         (Gen_Main_Ada): Set the default exit code if specified.
19039         (Gen_Main_C): Likewise.
19040         Part of *DC20-006.
19041         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
19042         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
19043
19044         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
19045         new -Xnnn switch.
19046
19047         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
19048         has a collision with the new Ada 2005 "interface" reserved word.
19049
19050         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
19051         generate a warning notifying that interface, overriding, and
19052         synchronized are new reserved words.
19053
19054         * scans.ads (Token_Type): Addition of the tokens corresponding to the
19055         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
19056         and Tok_Synchronized.
19057
19058         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
19059         "dispatching" rather than "primitive" operations, since dispatching
19060         calls are now allowed to abstract formal subprograms (which are not
19061         primitive).
19062         Char_Literal_Value field is now a Uint
19063         (Resolve_Slice): If the prefix is an access to an unconstrained array,
19064         compute the actual subtype of the designated object to impose the proper
19065         index constraints.
19066         (Resolve_Selected_Component): Do not insert an access check if the
19067         prefix is an access type: such a node is expanded into an explicit
19068         dereference, on which the access check is performed anyway. Removes
19069         expensive duplicate checks.
19070         (Resolve_Call): Use new flag Is_Obsolescent and field
19071         Obsolescent_Warning so that pragma Obsolescent works on library
19072         subprograms.
19073         Add support for wide wide character type
19074         (Resolve_Allocator): Replace the error message on wrong null-exclusion
19075         value by a warning message.
19076         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
19077         as fixed-point, and one of the operands is non-static and universal, it
19078         can only be an illegal exponentiation operation, in which case there is
19079         no real value to retrieve.
19080
19081         * exp_strm.adb: Add support for wide wide character type
19082         (Build_Elementary_Input_Call): Compute the size of the stream element by
19083         querying the rep chain to find the Stream_Attribute attribute value.
19084         (Build_Elementary_Write_Call): Ditto.
19085
19086         * sem_aggr.adb: Char_Literal_Value field is now a Uint
19087         Add support for wide wide character type
19088         Replace the error messages on wrong null-exclusion value by warnings
19089         as described in Ada 2005.
19090         (Resolve_Extension_Aggregate): Document the fact that the error
19091         message on class-wide expressions in extensions aggregates.
19092
19093         * sem_case.adb: Add support for wide wide character type
19094
19095         * sem_ch13.adb: Add support for wide wide character type
19096         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
19097
19098         * sem_ch3.adb: Add support for wide wide character type
19099         (Process_Subtype): If constraint is illegal for the type, set Ekind of
19100         now-useless Itype, to prevent cascaded errors on a compiler built
19101         without -gnatp.
19102
19103         * sem_ch8.adb: Add with and use of Sem_Disp.
19104         (Analyze_Subprogram_Renaming): Replace unclean uses of
19105         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
19106         of Corresponding_Spec to Empty).
19107         (Attribute_Renaming): Replace use of Corresponding_Spec with
19108         Corresponding_ Formal_Spec and simplify condition.
19109         (Use_One_Package): Check that scope of homonym of identifier is defined,
19110         before checking whether it is a wrapper package.
19111         Add support for wide wide character type
19112
19113         * sem_eval.adb: Add support for wide wide character type.
19114         (Eval_Arithmetic_Op): Check for compile time known signed integer
19115         overflow in the non-static case.
19116         (Subtypes_Statically_Match): A formal scalar type and its base type do
19117         not statically match.
19118
19119         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
19120         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
19121         subtype).
19122         (Unit_Declaration_Node): Ditto.
19123         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
19124         has a packed array type, the prefix has been rewritten into a type
19125         conversion. Determine variable-ness from the converted expression.
19126         Handle wide wide character cases.
19127
19128         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
19129
19130         * stringt.ads, stringt.adb: Handle full UTF-32 range.
19131         Remove ["0A"] from comment, since it can look like a line terminator.
19132         Currently we don't permit this, but this is under discussion by the
19133         ARG, and it is easy enough to use a different example.
19134
19135         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
19136         handling UTF-32 encoding for wide wide character.
19137         Implement new brackets coding ["hhhhhhhh"]
19138         Add UTF-8 encodings for full UTF-32 range
19139
19140         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
19141
19142         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
19143         bit range Add full UTF-32 support.
19144         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
19145         notify that constraint error will be raised at run-time
19146         because a null value is assigned to a null-excluding object.
19147         Remove some obsolete declarations and make Char_Code
19148         unsigned.
19149
19150         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
19151         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
19152         Rcheck subprograms.
19153
19154         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
19155         wrong null-exclusion value by a warning message.
19156         (Enable_Range_Check): Do range check if the prefix is an
19157         explicit dereference whose designated object is an unconstrained array.
19158         Current algorithm for removing duplicate checks is over-eager in this
19159         case.
19160
19161         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
19162         null-exclusion value by a warning message
19163
19164         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
19165         completely. Add support for Uint2 field
19166
19167         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
19168         exp_prag.adb: Char_Literal_Value field is now a Uint.
19169
19170         * exp_util.adb (Insert_Actions): Replace
19171         N_Formal_Subprogram_Declaration by
19172         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
19173         Char_Literal_Value field is now a Uint.
19174
19175         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
19176         defined for subprogram renaming declarations. When set, the field
19177         indicates the defining entity of a corresponding formal subprogram
19178         when the renaming corresponds to a formal subprogram association in an
19179         instantiation.
19180         (Set_Corresponding_Formal_Spec): New procedure to return
19181         Corresponding_Formal_Spec field.
19182         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
19183         (which is now a subtype).
19184         Char_Literal_Value field is now a Uint
19185
19186         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
19187         pointer to the base of the dispatch table.
19188         Minor changes to comments.
19189         (Controlling_Type): New function for determining the tagged type
19190         associated with a tagged primitive subprogram.
19191         (Expand_Dispatching_Call): Add support for a controlling actual that is
19192         directly a value of type Ada.Tag rather than a tagged object.
19193
19194         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
19195         describing the new layout.
19196         (Dispatch_Table): The expander computes the actual array size, allocates
19197         the Dispatch_Table record accordingly, and generates code that displaces
19198         the base of the record after the Typeinfo_Ptr component. The access to
19199         these components is done by means of local functions.
19200         (Offset_To_Top): New function.
19201         (Typeinfo_Ptr): New function.
19202         (Get_TSD): Modified to access the new position of the TSD.
19203         (Set_TSD): Modified to save the TSD in its new position.
19204
19205         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
19206         case of formal abstract subprograms. Add check and message for -gnat05.
19207         Update comments.
19208
19209         * sem_ch12.adb: Add with and use for Sem_Disp.
19210         (Analyze_Associations): Minor change from "=" to "in" for use of
19211         N_Formal_Subtype_Declaration (which is now a subtype).
19212         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
19213         N_Formal_Subtype_Declaration (which is now a subtype).
19214         (Analyze_Formal_Subprogram): Add handling for
19215         N_Formal_Abstract_Subprogram, marking the formal as abstract and
19216         dispatching, setting the controlling status of the formal parameters
19217         and result, and issuing an error if there is no controlling type for
19218         the formal subprogram.
19219         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
19220         which is an unclean use of that field, we set the new field
19221         Corresponding_Formal_Spec to make the formal subprogram available to
19222         processing in Analyze_Subprogram_Declaration.
19223         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
19224         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
19225         Constrained, so that it is is does not statically match its anonymous
19226         base type.
19227
19228         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
19229         abstract formal subprograms in error check for functions returning
19230         abstract types. Set scope of new designator for
19231         a parameterless subprogram, so that it is available when checking the
19232         body for nested subprograms, before full analysis of said body.
19233         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
19234         subprogram only if inner one comes from source.
19235         (Analyze_Function_Call): If the call is given in object notation, the
19236         analysis of the name rewrites the node and analyzes it with the proper
19237         argument list. After analyzing the name, if the call has been rewritten
19238         and the result type is set, no further analysis is needed.
19239         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
19240         mark in function specification, in a context where the formals are
19241         visible and hide outer homographs.
19242
19243         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
19244         as the tagged type for the cases of abstract formal subprograms and
19245         renamings of those.  Clean up spec comments.
19246         (Check_Dispatching_Context): Add error message to indicate "abstract
19247         procedure", covering the case of a call to a formal abstract procedure
19248         that has statically tagged operands.
19249         (Check_Dispatching_Call): Check for the case of an actual given by
19250         a tag-indeterminate function call whose type is an ancestor of the
19251         containing call's associated tagged type. This situation can occur
19252         for inherited primitives with function defaults. In this case we
19253         use the tagged type's tag directly as the controlling argument for
19254         the calls.
19255         (Expand_Call): Name change on call to Expand_Dispatch_Call.
19256
19257         * sprint.adb (Sprint_Node_Actual): Split
19258         N_Formal_Subprogram_Declaration into two alternatives for the new
19259         cases N_Formal_Abstract_Subprogram_Declaration and
19260         N_Formal_Concrete_Subprogram_Declaration.
19261         Char_Literal_Value field is now a Uint.
19262
19263         * trans.c: Get rid of junk Uint2 reference.
19264         Char_Literal_Value field is now a Uint.
19265         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
19266         (gigi): Correct third arg to gimplify_body.
19267
19268         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
19269         (TYPE_LANG_FLAG_0): Check for record or union.
19270
19271         * treepr.adb: Char_Literal_Value field is now a Uint
19272
19273         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
19274         UI_From_CC.
19275
19276         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
19277         Add full UTF-32 support
19278         Char_Code is now 32 bits
19279
19280         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
19281         wide character UTF_32 line terminators.
19282         Initialize Main_Source_File to avoid error when no main
19283         source is loaded.
19284
19285         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
19286         (Main_Source_File) when no main source has been loaded, to avoid
19287         potential crash.
19288
19289 2005-02-09  Robert Dewar  <dewar@adacore.com>
19290
19291         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
19292         Fix name of Set routine
19293
19294         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
19295         fixed packages.
19296
19297         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
19298         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
19299         fixed packages
19300
19301         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
19302         forms of Get_Line subprograms for AI-301.
19303
19304         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
19305         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
19306         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
19307         a-stwima.ads: Minor reformatting.
19308
19309 2005-02-09  Doug Rupp  <rupp@adacore.com>
19310             Thomas Quinot  <quinot@adacore.com>
19311
19312         * adaint.c, adaint.h
19313         [VMS] (to_ptr32): New function.
19314         (MAYBE_TO_PTR32): New macro.
19315         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
19316         for pointer size.
19317         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
19318         [VMS] (#define fork()): Remove since unneccessary.
19319         (__gnat_set_close_on_exec): New routine to support
19320         GNAT.OS_Lib.Set_Close_On_Exec.
19321
19322         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
19323         the parent side as close-on-exec so that they are not inherited by the
19324         child.
19325
19326         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
19327         set or clear the FD_CLOEXEC flag on a file descriptor.
19328
19329 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
19330             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19331
19332         PR ada/19386
19333         * decl.c:
19334         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
19335         on the field if Pragma Component_Alignment (Storage_Unit).
19336         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
19337         side-effects as if it were a constant; also make SAVE_EXPR to protect
19338         side-effects.
19339         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
19340         UNION_TYPE.
19341         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
19342         (components_to_record): Test it.
19343         Fix improper usage of REFERENCE_CLASS_P.
19344
19345         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
19346         RECORD_TYPE.
19347
19348         * utils2.c: Minor reformatting.
19349
19350         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
19351         handle other cases like RECORD_TYPE.
19352
19353         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
19354
19355 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19356
19357         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
19358         component of an array of arrays in an assignment context, and the
19359         aggregate has component associations that require sliding on
19360         assignment, force reanalysis of the aggregate to generate a temporary
19361         before the assignment.
19362         (Must_Slide): Make global to the package, for use in Gen_Assign.
19363
19364 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19365
19366         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
19367         unchecked union with no inferable discriminants, return a
19368         Raise_Program_Error node, rather than inserting it at the point the
19369         type is frozen.
19370         (Expand_Record_Equality, Component_Equality): Handle properly the case
19371         where some subcomponent is an unchecked union whose generated equality
19372         code raises program error.
19373
19374 2005-02-09  Doug Rupp  <rupp@adacore.com>
19375
19376         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
19377         [VMS] (#define exit hack): Remove.
19378
19379 2005-02-09  Pascal Obry  <obry@adacore.com>
19380             Arnaud Charlet <charlet@adacore.com>
19381
19382         * init.c (__gnat_initialize): Add a new parameter eh which contains the
19383         address of the exception registration. The Win32 version of this
19384         routine calls __gnat_install_SEH_handler() to initialize the SEH
19385         (Structured Exception Handling) handler.
19386         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
19387         SEH (Structured Exception Handling) now.
19388         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
19389         (__gnat_initialize for ppc-vxworks): Adjust comments and the
19390         preprocessor condition protecting the call to the extra eh setup
19391         subprogram, which is only available for the ppc target.
19392         (__gnat_clear_exception_count): replaced reference to
19393         variable taskIdCurrent by call to taskIdSelf(), cleaner.
19394
19395         * seh_init.c: New file.
19396
19397         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
19398         (GNATBIND_OBJS): Idem.
19399
19400         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
19401         routine takes a new parameter (a pointer to the exception registration
19402         for the SEH (Structured Exception Handling) support.
19403
19404         * raise.h: (__gnat_install_SEH_handler): New prototype.
19405         Update copyright notice.
19406
19407         * s-tassta.adb (Task_Wrapper): Declare the exception registration
19408         record and initialize it by calling __gnat_install_SEH_handler.
19409
19410 2005-02-09  Vincent Celier  <celier@adacore.com>
19411
19412         * make.adb (Gnatmake): Do not fail when the main project has no object
19413         directory.
19414
19415 2005-02-09  Doug Rupp  <rupp@adacore.com>
19416
19417         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
19418         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
19419         [VMS]: Add translations for g-enblsp.adb.
19420
19421         * s-asthan-vms.adb: Removed.
19422         * s-asthan-vms-alpha.adb: Added.
19423
19424 2005-02-09  Pascal Obry  <obry@adacore.com>
19425
19426         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
19427         (LIBGNAT_OBJS): Add seh_init.o.
19428
19429 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19430
19431         PR ada/16592
19432         * Makefile.in: Link all gnat tools with -static-libgcc, since
19433         -shared-libgcc is now used by default on some systems (e.g. linux with
19434         recent binutils).
19435         Remove references to Makefile.prolog/generic, no longer used.
19436
19437 2005-02-09  Vincent Celier  <celier@adacore.com>
19438
19439         * prj-makr.adb (Process_Directory): Put file name in canonical case
19440         before matching against the patterns.
19441         If gnatname has been invoked as <prefix>-gnatname
19442         then invoke the compiler as <prefix>-gcc, not just "gcc".
19443
19444 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19445
19446         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
19447         with expansion disabled. The actual subtype is needed among other
19448         places when the selected component appears in the context of a loop
19449         bound, and denotes a packed array.
19450         (Operator_Check): Always use the first subtype in the
19451         error message, to avoid the appearance of internal base types.
19452         (Transform_Object_Operation): Copy each actual in full
19453         to the parameter associations of the constructed call, rather than
19454         using the shallow copy mechanism of New_Copy_List. This ensures that
19455         the chaining of named associations is done properly.
19456         (Complete_Object_Operation): Rewrite node, rather than
19457         replacing it, so that we can trace back to the original selected
19458         component.
19459
19460         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
19461         and calls that use object notation, if the called function is not
19462         declared  in a withed unit, place the elaboration constraint on the
19463         unit in the context that makes the function accessible.
19464         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
19465         imposes an elaboration constraint between two packages.
19466
19467 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
19468
19469         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
19470         views of a private type after handling its private dependents, to
19471         maintain proper stack discipline between entry and exit from the
19472         package.
19473
19474 2005-02-09  Cyrille Comar  <comar@adacore.com>
19475
19476         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
19477         Minor reformatting.
19478
19479 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19480
19481         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
19482         fields for foreign threads.
19483
19484 2005-02-09  Doug Rupp  <rupp@adacore.com>
19485
19486         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
19487         recursion warnings when compiled with -gnatdm.
19488
19489 2005-02-09  Robert Dewar  <dewar@adacore.com>
19490
19491         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
19492         Slight fix to documentation of -gnaty with no parameters
19493
19494         * xr_tabls.ads: Add ??? comment for missing overall comment
19495
19496         * xsinfo.adb: Make default file name be sinfo.h, since this is what
19497         we now use by default.
19498
19499         * xsnames.adb: Adjust end of file test to look for five space followed
19500         by '#' instead of six spaces. The format of xsnames.adb was modified
19501         in the last update.
19502
19503         * a-numeri.ads: Add reference to AI-388 for greek letter pi
19504         identifier.
19505
19506         * clean.adb: Minor reformatting.
19507
19508         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
19509         gnatname.adb: Minor reformatting
19510         Add 2005 to copyright output when utility is run
19511
19512         * csets.adb: Eliminate obsolete comment
19513
19514         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
19515         Update comments.
19516
19517         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
19518
19519 2005-02-09  Sergey Rybin  <rybin@adacore.com>
19520
19521         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
19522         the difference between compact and incompact layout and add the record
19523         representation clause to the example illustrating different layouts.
19524         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
19525         component clauses").
19526
19527 2005-02-09  Florian Villoing  <villoing@adacore.com>
19528
19529         * gnat_ugn.texi: Fix typos.
19530         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
19531         @file.
19532         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
19533         in the generated documentation.
19534
19535 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19536
19537         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
19538         longer supported.
19539         Update linker wrapper when linking with non GNU C++.
19540
19541 2005-02-09  Pascal Obry  <obry@adacore.com>
19542
19543         * gnat_ugn.texi:
19544         Document the procedure to debug the DllMain routine on Windows.
19545         Add note about -funwind-tables and mixed Ada and C/C++ programming in
19546         ZCX mode.
19547         Document new BIND qualifer /RETURN_CODES=VMS.
19548
19549 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
19550
19551         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
19552         Edited gnatmetric chapter
19553
19554 2005-02-09  Robert Dewar  <dewar@adacore.com>
19555
19556         * gnat_rm.texi:
19557         Changes to document new wide wide character support
19558         For AI-285
19559         Update documentation on Normalize_Scalars and Initialize_Scalars
19560
19561 2005-02-09  Pascal Obry  <obry@adacore.com>
19562
19563         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
19564
19565 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
19566
19567         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
19568         from the VxWorks kernel) that is needed for getting the active
19569         priority of the different tasks.
19570
19571         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
19572         Use a pragma Elaborate_Body in the spec file instead.
19573         Noticed by code reading.
19574
19575 2005-02-09  Thomas Quinot  <quinot@adacore.com>
19576
19577         * exp_util.ads: Minor correction in comment.
19578
19579 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19580
19581         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
19582         since this procedure is now too complex to be worth inlining.
19583
19584 2005-02-09  Richard Henderson  <rth@redhat.com>
19585
19586         * utils.c (gnat_define_builtin): Remove.
19587         (gnat_install_builtins): Use build_common_builtin_nodes.
19588
19589 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
19590
19591         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19592         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
19593         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
19594         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
19595         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
19596         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
19597         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
19598         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
19599         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
19600         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19601         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
19602         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
19603         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
19604         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
19605         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
19606         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
19607         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
19608         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
19609         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
19610         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
19611         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
19612         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
19613         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
19614         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
19615         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
19616         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
19617         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
19618         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
19619         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
19620         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
19621         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
19622         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
19623         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
19624         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
19625         library.
19626
19627 2005-01-27  Laurent GUERBY <laurent@guerby.net>
19628
19629         * Makefile.in: Fix a-intnam.ads from previous commit,
19630         add 2005 to copyright.
19631         * a-intman-rtems.ads: Renamed to...
19632         * a-intnam-rtems.ads:
19633
19634 2005-01-27  Laurent GUERBY <laurent@guerby.net>
19635
19636         * Makefile.in: Rename GNAT RTEMS specific files.
19637         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
19638         5rosinte.ads, 5rparame.adb: Replaced by files below.
19639         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
19640         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
19641
19642 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
19643             Laurent GUERBY <laurent@guerby.net>
19644
19645         PR ada/19488
19646         * 5rosinte.ads: Add No_Key constant.
19647         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
19648         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
19649
19650 2005-01-26  Laurent GUERBY <laurent@guerby.net>
19651
19652         PR ada/19414
19653         * i-cobol.adb (Valid_Numeric): Handle zero length case.
19654
19655 2005-01-20  Richard Henderson  <rth@redhat.com>
19656
19657         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
19658         a-intnam-linux.ads and system-linux-alpha.ads.
19659         * a-intnam-linux-alpha.ads: Remove file.
19660         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
19661         * system-linux-alpha.ads: New file.
19662
19663 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
19664
19665         PR ada/13470
19666         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
19667         set to the new string.
19668
19669 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
19670
19671         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
19672         to True.
19673
19674 2005-01-18  Richard Henderson  <rth@redhat.com>
19675
19676         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
19677         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
19678         for alpha-linux.
19679         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
19680
19681 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
19682
19683         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
19684         (GCC_ZCX_Support): Likewise.
19685
19686 2005-01-11  Bastian Blank  <waldi@debian.org>
19687
19688         * system-linux-s390.ads: Define Preallocated_Stacks.
19689         * system-linux-s390x.ads: Likewise.
19690
19691 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
19692
19693         * gnat_ugn.texi: Fix texi errors with null variables.
19694
19695 2005-01-03  Thomas Quinot  <quinot@adacore.com>
19696
19697         * gen-soccon.c: New utility program to generate g-soccon.ads
19698         automatically.
19699
19700         * socket.c, gsocket.h: Split inclusion of system header files into a
19701         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
19702
19703         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
19704         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19705         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
19706         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
19707         should not be edited by hand anymore, but should be regenerated using
19708         gen-soccon.
19709
19710 2005-01-03  Robert Dewar  <dewar@adacore.com>
19711             Ed Schonberg  <schonberg@adacore.com>
19712             Vincent Celier  <celier@adacore.com>
19713
19714         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
19715         on/off, since this is an obsolescent feature, for which we now generate
19716         a warning.
19717
19718         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
19719         warning mode is set and obsolescent usage of this attribute occurs.
19720         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
19721         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
19722         predates, and partly motivates, the adoption of the AI.
19723         Implement new Ada 2005 attribute Mod
19724
19725         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
19726         attribute Mod.
19727
19728         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
19729
19730         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
19731         pragma restrictions.
19732         New entry for Ada 2005 attribute Mod.
19733
19734         * par-prag.adb:
19735         Add recognition of new pragma Restrictions No_Dependence
19736         Recognize restriction No_Obsolescent_Features at parse time
19737
19738         * bcheck.adb: Add circuitry for checking for consistency of
19739         No_Dependence restrictions.
19740
19741         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
19742         restrictions.
19743
19744         * restrict.ads, restrict.adb: Add subprograms to deal with
19745         No_Dependence restrictions.
19746
19747         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
19748         restrictions.
19749
19750         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
19751         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
19752
19753         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
19754         dummy parameter to scng instantiation.
19755         Needed for new restriction No_Obsolescent_Features
19756
19757         * scn.adb: (Obsolescent_Check): New procedure
19758         Needed for new restriction No_Obsolescent_Features
19759
19760         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
19761         specified by AI-285, needed for implementation of AI-388 (adding greek
19762         pi to Ada.Numerics).
19763         Add new generic formal to scng, needed for new restriction
19764         No_Obsolescent_Features.
19765
19766         * s-rident.ads: Add new restriction No_Obsolescent_Features.
19767
19768         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
19769         restrictions lines.
19770         (Scan_ALI): When finding an unexpected character on an R line, raise
19771         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19772         Ignore_Errors is True, default restrictions are set and scanning of the
19773         ALI file continues with the next line. Also, when Bad_R_Line is raised
19774         and Ignore_Errors is True, skip to the end of le line.
19775
19776         * sem_ch10.adb: Check that explicit with's do not violate
19777         No_Dependence restrictions.
19778         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
19779         illegal context clauses containing child units of instance.
19780
19781         * sem_prag.adb: Processing and checking for new No_Dependence
19782         restrictions.
19783         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
19784         analyze and check the External argument.
19785
19786         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
19787
19788 2005-01-03  Robert Dewar  <dewar@adacore.com>
19789
19790         * atree.adb: Add a fifth component to entities
19791         This allows us to add 32 flags and four new fields
19792
19793         * atree.ads: Add a fifth component to entities
19794         This allows us to add 32 flags and four new fields
19795
19796         * einfo.ads, einfo.adb: Document new fields and new flags now available
19797         Add routines for printing new fields
19798
19799         * treepr.adb: Call routines to print out additional fields if present
19800
19801 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
19802
19803         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
19804         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
19805
19806         * Makefile.in: Add support to build shared Ada libraries on solaris x86
19807         Remove gpr2make, replaced by gprmake.
19808         Remove references to gnatmem and libaddr2line.
19809         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
19810         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
19811         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
19812         a-numaux-darwin.ads and a-numaux-darwin.adb
19813         Enable mlib-tgt-lynxos.adb on lynxos.
19814
19815         * Make-lang.in: Remove rules for gpr2make.
19816         When generating sdefault.adb, do not call Relocate_Path
19817         on S3 for function Target_Name, as it is not a path.
19818         Remove references to gnatmem and libaddr2line.
19819
19820         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
19821         files.
19822
19823 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
19824
19825         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
19826         address is incompatible with its base type alignment constraints when
19827         this can be decided statically.
19828
19829 2005-01-03  Olivier Hainque  <hainque@adacore.com>
19830
19831         * decl.c (compatible_signatures_p): New function. The intended purpose
19832         is to check if two function signatures for a call-site and a callee are
19833         compatible enough for the call to be valid. The underlying purpose is
19834         to check if a call to a mapped builtin is using the right interface.
19835         The current code actually does not check antyhing - this a placeholder
19836         for future refinements.
19837         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
19838         builtin calls for convention Intrinsic.
19839
19840         * gigi.h (builtin_decl_for): Declare (new function).
19841
19842         * utils.c (gnat_install_builtins): Install the target specific builtins.
19843         (builtin_decl_for): New function, provide a dummy body for now.
19844
19845 2005-01-03  Geert Bosch  <bosch@adacore.com>
19846
19847         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
19848         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19849         (Pred): Implement in terms of Succ.
19850
19851         * trans.c (convert_with_check): Reimplement conversion of float to
19852         integer.
19853
19854 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
19855             Vincent Celier  <celier@adacore.com>
19856
19857         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
19858         bounds can be negative, and must be declared Int, not Nat.
19859
19860         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
19861         array is checked after using the index in the array.
19862
19863         * makegpr.adb (Add_Switches): Check if there is a package for the
19864         processor. If there is no package, do not look for switches.
19865
19866 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
19867
19868         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
19869         generation of predefined stream operations (specs and bodies) should
19870         proceed. Under various restrictions these subprograms must not be
19871         generated.
19872
19873 2005-01-03  Thomas Quinot  <quinot@adacore.com>
19874
19875         * exp_dist.adb:
19876         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
19877         amount of PCS-specific code in RACW stubs generation.
19878         (Copy_Specification): Set Etype on copied formal parameter entities, as
19879         this information is needed for PolyORB stubs generation.
19880         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
19881         variable Dynamic_Async.
19882         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
19883         (Build_RPC_Receiver_Specification): Make generic again, as recent
19884         changes have allowed RPC receivers to have the same profile for both
19885         variants of the PCS.
19886         Reorganise RPC receiver generation to reduce differences between the
19887         structure of GARLIC and PolyORB RPC receivers.
19888         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
19889         PCS-specific.
19890         Simplify elaboration code for RCI packages.
19891
19892         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
19893         generation to reduce differences between the structure of GARLIC and
19894         PolyORB RPC receivers.
19895
19896         * s-stratt.adb: Fix typo in comment.
19897
19898 2005-01-03  Thomas Quinot  <quinot@adacore.com>
19899
19900         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
19901         copied from Make_Init_Call).
19902
19903         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
19904         reads and assignments on a temporary variable declared with appropriate
19905         discriminants.
19906
19907 2005-01-03  Robert Dewar  <dewar@adacore.com>
19908
19909         * i-c.adb (To_C): Raise CE if string is null and Append_Null
19910
19911 2005-01-03  Robert Dewar  <dewar@adacore.com>
19912
19913         * i-cstrin.adb (Update): Do not append a null in form called with a
19914         String. This avoids unintended behavior.
19915
19916 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
19917
19918         PR ada/17527
19919         * init.c: Fix warnings on Free BSD section.
19920
19921 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
19922
19923         PR ada/16949
19924         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
19925         xsinfo.adb).
19926
19927 2005-01-03  Vincent Celier  <celier@adacore.com>
19928
19929         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
19930         libraries when Unique_Compile is True (-u switch).
19931         (Gnatmake): ditto.
19932
19933 2005-01-03  Robert Dewar  <dewar@adacore.com>
19934
19935         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
19936         upper case letter or underscore after W, as allowed by spec.
19937
19938 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
19939
19940         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
19941         darwin port by using proper type definitions from header files.
19942         Use SIGTERM instead of SIGABRT for SIGADAABORT.
19943
19944 2005-01-03  Robert Dewar  <dewar@adacore.com>
19945
19946         * par.adb: Enhance error message handling for configuration file
19947         pragmas.
19948
19949 2005-01-03  Robert Dewar  <dewar@adacore.com>
19950
19951         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
19952         removed during the previous update (test properly for case of dividing
19953         largest negative number by -1, which generates overflow).
19954
19955 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
19956             Sergey Rybin  <rybin@adacore.com>
19957
19958         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
19959         to use as the defining identifier for a formal package.
19960         (Remove_Parent): If the instance takes place within (an instance of)
19961         a sibling, preserve private declarations of common parent.
19962
19963 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
19964
19965         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
19966         to determine whether one of the operands is a fixed-point type for
19967         which a user-defined multiplication or division operation might be
19968         defined.
19969
19970         * sem_res.adb (Valid_Conversion): The legality rules for conversions
19971         of access types are symmetric in Ada 2005: either designated type can
19972         be unconstrained.
19973
19974 2005-01-03  Vincent Celier  <celier@adacore.com>
19975
19976         * s-fileio.adb (Temp_File_Record): Change length of string component
19977         Name from L_tmpnam + 1 to max_path_len + 1.
19978
19979 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
19980
19981         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
19982         Self_Id.Deferral_Level = 0.
19983         (Do_Pending_Action): Move this function to the spec.
19984
19985         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
19986         Do_Pending_Action explicitely when needed, in case we're using
19987         No_Abort restrictions.
19988
19989         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
19990         deferral level since it will not get changed by the generated code.
19991         Keeping a default value of 1 would prevent some operations (e.g.
19992         select or delay) to proceed successfully.
19993
19994 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
19995             Robert Dewar  <dewar@adacore.com>
19996             Cyrille Comar  <comar@adacore.com>
19997
19998         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
19999         porting guide chapter (vms version).
20000         Revised doc title (removed "for native platforms") and subtitle.
20001         Add discussion on warning flag for obsolescent features. First we
20002         note that it applies to obsolete GNAT features, which was previously
20003         omitted. Second we contrast the behavior with that of the new
20004         Ada 2005 AI-368 restriction No_Obsolescent_Features.
20005         Preliminary rewriting of GNAT & libraries chapter in order to take
20006         into account default project locations & new project manager
20007         capabilities.
20008
20009 2005-01-03  Robert Dewar  <dewar@adacore.com>
20010
20011         * cstand.adb (Create_Operators): Clean up format and documentation of
20012         unary and binary operator result tables. No change in code, just
20013         reformatting and addition of comments.
20014
20015         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
20016         sem_ch2.adb: Minor reformatting
20017
20018         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
20019         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
20020         comments for Tree_Read and Tree_Write.
20021
20022 2005-01-03  Pascal Obry  <obry@adacore.com>
20023
20024         * exp_attr.ads: Minor reformatting.
20025
20026 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
20027
20028         * comperr.adb (Compiler_Abort): Add specialized message for GAP
20029         versions.
20030
20031 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
20032
20033         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
20034         whether the ancestor type is private, as may be the case with nested
20035         instantiations.
20036
20037 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
20038
20039         PR ada/19128
20040         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
20041
20042 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
20043
20044         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
20045         * utils2.c (build_unary_op): Likewise.
20046
20047 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20048
20049         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
20050
20051 2004-12-19  Richard Henderson  <rth@redhat.com>
20052
20053         * trans.c (gigi): Update gimplify_body call.
20054
20055 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
20056
20057         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
20058
20059 2004-12-07  Ed Falis  <falis@adacore.com>
20060
20061         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
20062         current task being suspended.
20063
20064         * init.c (__gnat_clear_exception): added to reset VxWorks exception
20065         count.
20066         (__gnat_map_signal): removed test for current task being suspended.
20067
20068 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
20069
20070         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
20071         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
20072         targets (such as AAMP).
20073
20074 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20075
20076         * atree.adb (Visit_Itype): Create a new name for the generated itype,
20077         because the back-end may otherwise treat it as a redefinition of the
20078         old symbol.
20079
20080 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
20081
20082         * back_end.adb (Scan_Back_End_Switches): Accept --param.
20083
20084         * lang-specs.h: Accept --param.
20085
20086 2004-12-07  Vincent Celier  <celier@adacore.com>
20087
20088         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
20089         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
20090         Current_Body_Suffix => Ada_Body_Suffix).
20091         Take into account Externally_Built attribute.
20092
20093         * clean.adb (In_Extension_Chain): Always return False when one of the
20094         parameter is No_Project.
20095         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
20096         Ada_Language_Index).
20097         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
20098         Process_Languages for procedure Parse).
20099
20100         * gnatcmd.adb (Carg_Switches): New table.
20101         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
20102         Adapt to name changes in package Prj (Current_Spec_Suffix =>
20103         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
20104
20105         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
20106         Header_Num and function Hash are now declared in package Prj,
20107         not Prj.Com.
20108
20109         * prj.adb (Suffix_Of): New function.
20110         (Set (Suffix)): New procedure.
20111         (Hash): One function moved from Prj.Com
20112         (Is_Present, Language_Processing_Data_Of): New functions
20113         (Set): Two new procedures
20114         (Add_Language_Name, Display_Language_Name): New procedures
20115
20116         * prj.ads: (Suffix_Of): New function
20117         (Set (Suffix)): New procedure
20118         Add several types and tables for multi-language support.
20119         (Header_Num): Type moved from Prj.Com
20120         (Hash): Two functions moved from Prj.Com
20121         (Is_Present, Language_Processing_Data_Of): New functions
20122         (Set): Two new procedures
20123         (Add_Language_Name, Display_Language_Name): New procedures
20124         (Naming): Component name changes:
20125         Current_Spec_Suffix => Ada_Spec_Suffix,
20126         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
20127         Impl_Suffixes, Supp_Suffixes.
20128         (Project_Data): New components: Externally_Built, Supp_Languages,
20129         First_Language_Processing, Supp_Language_Processing, Default_Linker,
20130         Default_Linker_Path.
20131
20132         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
20133         new package Language_Processing with its attributes (Compiler_Driver,
20134         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
20135         Binder_Driver, Default_Linker).
20136
20137         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
20138         (Header_Num): Type moved to package Prj
20139
20140         * prj-env.adb: Adapt to name changes in package Prj
20141         (Current_Spec_Suffix => Ada_Spec_Suffix,
20142         Current_Body_Suffix => Ada_Body_Suffix).
20143
20144         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
20145         default to the project path, except the "-" is one of the directories
20146         in env var ADA_PROJECT_PATH.
20147         (Current_Project_Path): Global variable, replacing Project_Path
20148         that was in the body of Prj.Part.
20149         (Project_Path): New function
20150         (Set_Project_Path): New procedure
20151         Initialize Current_Project_Path during elaboration of the package
20152         Remove dependency on Prj.Com, no longer needed
20153
20154         * prj-ext.ads (Project_Path): New function
20155         (Set_Project_Path): New procedure
20156
20157         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
20158         suffix is defined for language <lang>.
20159         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
20160         accessing directly the components of Naming.
20161         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
20162         Reorganise of this package.
20163         Break procedure Check in several procedures.
20164
20165         * prj-nmsc.ads: Replace all procedures (Ada_Check,
20166         Other_Languages_Check and Language_Independent_Check) with a single
20167         procedure Check.
20168
20169         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
20170         Process_Languages, no longer needed.
20171
20172         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
20173         Current_Project_Path.
20174         Remove elaboration code, moved to the body of Prj.Ext
20175         Use new function Prj.Ext.Project_Path instead of old variable
20176         Project_Path.
20177         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
20178         When comparing with project paths on the stack, first put the resolved
20179         path in canonical case.
20180         (Parse_Single_Project): Set the path name of the project file in the
20181         tree to the normalized path.
20182
20183         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
20184         parameter Process_Languages, no longer needed.
20185         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
20186         Other_Languages_Check.
20187
20188         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
20189         to store the resolved canonical path of the project file.
20190         Remove dependency to Prj.Com, no longer needed
20191
20192         * prj-util.adb: Adapt to name changes in package Prj
20193         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
20194         Ada_Body_Suffix).
20195
20196         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
20197         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
20198         Externally_Built, Include_Option, Language_Processing.
20199
20200         * makegpr.adb: Numerous changes due to changes in packages
20201         Prj and Prj.Nmsc.
20202
20203         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
20204         default to the project path, except whe "-" is one of the directories
20205         in env var ADA_PROJECT_PATH.
20206         (Gnatls): In verbose mode, add the new section "Project Search Path:"
20207
20208 2004-12-07  Robert Dewar  <dewar@adacore.com>
20209
20210         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
20211
20212         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
20213         set -gnatR3m mode.
20214
20215         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
20216         flag. No longer needed now that we handle this in gnat1drv.adb.
20217
20218         * repinfo.ads: Minor reformatting
20219
20220 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20221             Olivier Hainque  <hainque@adacore.com>
20222             Eric Botcazou  <ebotcazou@adacore.com>
20223
20224         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
20225         TYPE_SIZE_UNIT of result type if SIZE is not specified.
20226         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
20227         of a bitfield, which we know is useless and causes trouble because of
20228         alignment implications.
20229
20230         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
20231         BSS sections.
20232         (process_attributes): Clear DECL_COMMON again when a section attribute
20233         is present.
20234         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
20235         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
20236         (create_field_decl): Special case ADDRESSABLE negative to mean
20237         "no bitfield creation", to be used by make_aligning_type. Don't
20238         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
20239         fields claimed addressable still have to be bitfields. Use
20240         value_factor_p instead of a raw binop construction to check for the
20241         position's alignment.
20242
20243 2004-12-07  Geert Bosch  <bosch@adacore.com>
20244
20245         * eval_fat.adb: Revert previous change.
20246
20247 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20248             Ed Schonberg  <schonberg@adacore.com>
20249
20250         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
20251         with an implicit dereference as its prefix, use
20252         Insert_Explicit_Dereference instead of merely rewriting the prefix into
20253         an explicit dereference. This ensures that a reference to the original
20254         prefix is generated, if appropriate.
20255
20256         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
20257         dereference is rewritten to an explicit one, generate a reference to
20258         the entity denoted by its prefix using the original prefix node, so
20259         the dereference can be properly recorded as a read of the denoted
20260         access value, if appropriate.
20261
20262         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
20263         emitting 'assigned but never read' warning on a variable on the basis
20264         that it has an access type.
20265         (Check_References): Emit unreferenced warning when the scope is a
20266         subprogram body.
20267
20268 2004-12-07  Robert Dewar  <dewar@adacore.com>
20269             Ed Schonberg  <schonberg@adacore.com>
20270
20271         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
20272         intrinsic
20273
20274         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
20275         leaving call unchanged.
20276         This deals with the case where the pragma Import specified
20277         an external name, to be handled by the back end.
20278
20279         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
20280         subprogram which is Imported with convention Intrinsic if an
20281         External_Name argument is specified.
20282         (Process_Import_Or_Interface): Properly diagnose link name argument.
20283         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
20284         with Sem_Ch6.Cannot_Inline.
20285         (Process_Inline): Provide separate warning for inapplicable inline
20286         pragma.
20287         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
20288         treatment is uniform on different targets.
20289
20290 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20291
20292         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
20293         construct is rewritten, preserve end label to permit source navigation.
20294
20295 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20296
20297         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
20298         Specific_Build_Stub_Target): New subprograms.
20299         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
20300         the PCS implementation used, using the above PCS-customized subprograms.
20301         Minor reformatting.
20302         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
20303         for generation of DSA code targeted to the PolyORB PCS.
20304         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
20305         implementation of the partition communication subsystem in ancillary
20306         subprograms.
20307         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
20308         PolyORB_Support.Build_Stub_Type): New subrograms containing the
20309         PCS-specific part of Add_Stub_Type.
20310         (Insert_Partition_Check): Use runtime library function to perform
20311         E.4(19) check.
20312
20313         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
20314         (RE_Same_Partition): New entity, from s-parint.
20315
20316         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
20317
20318 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
20319
20320         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
20321         Output the copyright message on a separate line from the version
20322         message.
20323
20324 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
20325
20326         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
20327         compile-time warning.
20328
20329 2004-12-07  Robert Dewar  <dewar@adacore.com>
20330
20331         * g-regpat.adb: (Match): Change a misuse of or to or else
20332
20333 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20334
20335         * lib-xref.adb:
20336         (Generate_Reference): Handle properly a reference to an entry formal,
20337          when an accept statement has a pragma Unreferenced for it.
20338
20339         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
20340         and the Has_Pragma_Unreferenced flag for each formal before analyzing
20341         the body, to ensure that warnings are properly emitted for each accept
20342         statement of a given task entry.
20343
20344 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
20345
20346         * Makefile.in: Add support for foreign threads on VMS.
20347
20348 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20349
20350         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
20351         Remove.
20352         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
20353
20354         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
20355
20356         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
20357         exception.
20358         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
20359
20360 2004-12-07  Robert Dewar  <dewar@adacore.com>
20361
20362         * nlists.adb (Prepend_Debug): Remove parameters and nest within
20363         Prepend.
20364         (Remove_Next_Debug): Same fix
20365
20366         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
20367         maintain back pointers now, though we did not used to, and comments
20368         were out of date).
20369         (Prepend): Remove pragma Inline.
20370         (Remove_Next): Same cleanup
20371
20372 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20373
20374         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
20375         used to record an implicit dereference as a read operation on its
20376         prefix when operating under -gnatc. Necessary to avoid spurious
20377         'variable assigned but never read' warnings in that mode.
20378         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
20379         is a non-overloaded implicit dereference, call the above subprogram to
20380         ensure proper recording of references.
20381
20382 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
20383
20384         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
20385         to be resolved later as part of Analyze_Iteration_Scheme's call to
20386         Make_Index.
20387
20388 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
20389
20390         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
20391         prefix is not a scalar type, place error message on prefix, not on
20392         type entity.
20393
20394 2004-12-07  Bernard Banner  <banner@adacore.com>
20395
20396         * vxaddr2line.adb: Add support for x86 vxworks
20397
20398 2004-12-07  Thomas Quinot  <quinot@adacore.com>
20399
20400         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
20401         documentation of the behaviour of these functions when passed an IP
20402         address that has no record in the system hosts database and no reverse
20403         record in the DNS.
20404
20405         * cstand.adb, a-tags.ads: Fix typos in comment.
20406
20407 2004-12-07  Robert Dewar  <dewar@adacore.com>
20408
20409         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
20410         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
20411         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
20412         s-poosiz.ads: Minor reformatting
20413
20414         * make.adb: Minor reformatting
20415         Add some ??? comments asking for more comments
20416
20417         * s-poosiz.adb: Minor reformatting
20418         Add comments on alignment requirement
20419
20420         * sinfo.ads: Remove obsolete comment and fix typo.
20421
20422 2004-12-07  Vincent Celier  <celier@adacore.com>
20423             Sergey Rybin  <rybin@adacore.com>
20424
20425         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
20426         Files" with the new tool and package names.
20427         Reformatting to suppress most of the warnings for line too long
20428         Document the new section "Project Search Path:" in the output of
20429         gnatls -v.
20430         Add gnatmetric section
20431
20432 2004-12-07  Vincent Celier  <celier@adacore.com>
20433
20434         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
20435         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
20436         and -eit to -ept. Added qualifier
20437         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
20438
20439 2004-11-27  Andreas Schwab  <schwab@suse.de>
20440
20441         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
20442
20443 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
20444
20445         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
20446         internal implementation unit GNAT.Sockets.Thin,
20447         as their usage for sockets is non-portable (using the read and write
20448         functions from the system runtime library is fine on UNIX but won't
20449         work under Windows).
20450
20451         * mingw32.h: Update copyright notice.
20452
20453 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
20454
20455         * ada-tree.h: Minor reformatting of previous change to avoid lines
20456         longer than 79 characters.
20457
20458 2004-11-25  Olivier Hainque  <hainque@adacore.com>
20459
20460         * tb-gcc.c: GCC infrastructure based implementation of
20461         __gnat_backtrace.
20462
20463 2004-11-24  Steven Bosscher  <stevenb@suse.de>
20464
20465         * misc.c (gnat_post_options): Don't clear
20466         flag_inline_functions.
20467
20468 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
20469
20470         PR ada/17986
20471         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
20472         tree.
20473
20474 2004-11-21  Andreas Jaeger  <aj@suse.de>
20475
20476         * stylesw.adb: Change Style_Check_Subprogram_Order to
20477         Style_Check_Order_Subprograms.
20478
20479 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
20480
20481         * adaint.h, adaint.c
20482         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
20483         to avoid warnings.
20484         Add also a cast to kill another warning.
20485         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
20486         parameter with the priority class of the parent process instead of
20487         always using the NORMAL_PRIORITY_CLASS.
20488         (__gnat_dup): New function.
20489         (__gnat_dup2): New function.
20490         (__gnat_is_symbolic_link): Enable the effective body of this
20491         function when __APPLE__ is defined.
20492
20493         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
20494         Update comments.
20495
20496 2004-11-18  Olivier Hainque  <hainque@adacore.com>
20497
20498         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
20499         address of which may be used to represent "others" and "all others"
20500         choices in exception tables, instead of the current harcoded
20501         (void *)0 and (void *)1.
20502         (Setup_Exception): Do nothing in the GNAT SJLJ case.
20503
20504         * gigi.h (others_decl, all_others_decl): New decls representing the
20505         new Others_Value and All_Others_Value objects.
20506         (struct attrib): Rename "arg" component as "args", since GCC expects a
20507         list of arguments in there.
20508
20509         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
20510         corresponding objects exported by a-exexpr, instead of hardcoded dummy
20511         addresses.
20512
20513         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
20514         others_decl and all_others_decl instead of hardcoded dummy addresses
20515         to represent "others" and "all others" choices, which is cleaner and
20516         more flexible with respect to the possible eh pointer encoding policies.
20517
20518         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
20519         (process_attributes): Account for the naming change of the "args"
20520         attribute list entry component.
20521
20522         * decl.c (build_attr_list): Rename into prepend_attributes to allow
20523         cumulating attributes for different entities into a single list.
20524         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
20525         attributes for the current entity and propagate first subtype
20526         attributes to other subtypes.
20527         <E_Procedure>: Attribute arguments are attr->args and not
20528         attr->arg any more.
20529         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
20530         argument provided, as this is what GCC expects. Use NULL_TREE instead
20531         of 0 for trees.
20532
20533 2004-11-18  Robert Dewar  <dewar@adacore.com>
20534
20535         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
20536         Minor reformatting througout (including new function specs)
20537         Add ??? comments asking for clarification.
20538
20539 2004-11-18  Thomas Quinot  <quinot@adacore.com>
20540
20541         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
20542         incomplete duplicate implementation of this subprogram from butil.
20543
20544 2004-11-18  Thomas Quinot  <quinot@adacore.com>
20545
20546         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
20547         procedures factors the common processing for building an RPC receiver
20548         for an RCI package or an RACW type.
20549         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
20550         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
20551         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
20552         in use.
20553         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
20554         Add_RACW_Features.
20555         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
20556         Add_RAST_Features.
20557         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
20558         distribution subprogram identifiers that are either subprogram numbers
20559         or strings.
20560         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
20561         string distribution identifiers assigned to a given subprogram.
20562         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
20563         (Add_RAS_Dereference_TSS): Add comments.
20564         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
20565         is not referenced yet because it will be used by the PolyORB DSA
20566         implementation.
20567         (Insert_Partition_Check): Remove fossile code.
20568         (First_RCI_Subprogram_Id): Document this constant.
20569         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
20570         RAS_Access TSS.
20571         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
20572         replaced with calls to Get_Library_Unit_Name_String. Previously there
20573         were several instances of the same code in different locations in the
20574         compiler; this checkin completes the replacement of all of these
20575         instances with calls to a common subprogram.
20576         Minor reformatting.
20577
20578         * sem_dist.adb: Remove comment noting that RPC receiver generation
20579         should be disabled for RACWs that implement RASs.
20580         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
20581
20582         * sem_util.ads, sem_util.adb (Has_Stream): New function
20583         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
20584         qualified name of a library unit into the name buffer.
20585         (Note_Possible_Modification): Generate a reference only
20586         if the context comes from source.
20587
20588         * snames.ads (PCS_Names): New subtype corresponding to names of
20589         supported implementations of the Partition Communication Subsystem
20590         (PCS) (i.e. the runtime library support modules for the distributed
20591         systems annex).
20592
20593 2004-11-18  Robert Dewar  <dewar@adacore.com>
20594             Ed Schonberg  <schonberg@adacore.com>
20595
20596         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
20597         (Has_Rep_Pragma): New function
20598         (Has_Attribute_Definition_Clause): New function
20599         (Record_Rep_Pragma): Moved here from sem_ch13.adb
20600         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
20601
20602         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
20603
20604         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
20605         (Expand_Pragma_Psect_Object): New procedure
20606         These procedures contain the revised and cleaned up processing for
20607         these two pragmas. This processing was formerly in Sem_Prag, but
20608         is more appropriately moved here. The cleanup involves making sure
20609         that the pragmas are properly attached to the tree, and that no
20610         nodes are improperly shared.
20611
20612         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
20613         pragmas to Exp_Prag, which is more appropriate.
20614         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
20615         check for duplicates Remove use of Is_Psected flag, no longer needed.
20616         Use new Make_String_Literal function with string.
20617
20618         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
20619         that are functions return universal values, that have to be converted
20620         to the context type.
20621         Use new Make_String_Literal function with string.
20622         (Get_Stream_Convert_Pragma): New function, replaces the use of
20623         Get_Rep_Pragma, which had to be kludged to work in this case.
20624
20625         * freeze.adb: Use new Has_Rep_Pragma function
20626
20627         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
20628         function with string.
20629         Use new Has_Rep_Pragma function.
20630
20631         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
20632         string argument.
20633
20634 2004-11-18  Robert Dewar  <dewar@adacore.com>
20635
20636         * errout.ads, errout.adb: (First_Sloc): New function
20637
20638         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
20639         check (-gnatyx) instead of being included as a redundant construct
20640         warning.
20641
20642         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
20643         Style_Check_Order_Subprograms.
20644
20645         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
20646         stylesw.adb: Add Style_Check_Xtra_Parens
20647
20648         * usage.adb: Add line for -gnatyx (check extra parens)
20649
20650         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
20651
20652 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
20653             Robert Dewar  <dewar@adacore.com>
20654
20655         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
20656         discriminant of a constrained subtype, analyze the copy of the
20657         corresponding constraint, because in some cases it may be only
20658         partially analyzed.
20659         Removes long-lived ??? comments.
20660
20661         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
20662         handled controlled or secondary-stack expressions within the
20663         iteration_scheme of a loop.
20664
20665         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
20666         bounds that may contain functions calls, to prevent memory leaks when
20667         the bound contains a call to a function that uses the secondary stack.
20668         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
20669         generate temporaries for loop bounds that might contain function calls
20670         that require secondary stack and/or finalization actions.
20671
20672         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
20673         selected component and the selector is overloadable (not just a
20674         function) treat as function call, Analyze_Call will disambiguate if
20675         necessary.
20676         (Analyze_Selected_Component): Do not generate an actual subtype for the
20677         selected component if expansion is disabled. The actual subtype is only
20678         needed for constraint checks.
20679         (Analyze_Allocator): If restriction No_Streams is set, then do
20680         not permit objects to be declared of a stream type, or of a
20681         composite type containing a stream.
20682
20683         * restrict.ads: Remove the a-stream entry from Unit_Array, since
20684         No_Streams no longer prohibits with'ing this package.
20685
20686         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
20687         discriminants, but the parent base has unknown discriminants, there is
20688         no discriminant constraint to inherit. Such a discrepancy can arise
20689         when the actual for a formal type with unknown discriminants is a
20690         similar private type whose full view has discriminants.
20691         (Analyze_Object_Declaration): If restriction No_Streams is set, then
20692         do not permit objects to be declared of a stream type, or of a
20693         composite type containing a stream.
20694
20695 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
20696
20697         * exp_dbug.ads: Update documentation to reflect simpler encoding for
20698         protected operations.
20699
20700         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
20701         generated name, it complicates decoding in gdb and hinders debugging
20702         of protected operations.
20703         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
20704         flag for the protected entry barrier function.
20705         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
20706         flag for the protected entry function.
20707
20708 2004-11-18  Nicolas Setton  <setton@adacore.com>
20709
20710         * expect.c: Define __unix__ when __APPLE__ is defined.
20711
20712         * Makefile.in: Inform the value of the variable GMEM_LIB in the
20713         Darwin-specific section.
20714
20715         * lang-specs.h: Change the placement of the %1 marker.
20716         Works around the fact that gcc adds -fPIC by default under Darwin.
20717
20718 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
20719
20720         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
20721         type of the object with the packed array type, set the Analyzed flag
20722         on the object if it is an entity or simple indexed component, to avoid
20723         spurious type errors.
20724
20725 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
20726
20727         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
20728         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
20729         separate line from the version message.
20730
20731 2004-11-18  Ed Falis  <falis@adacore.com>
20732
20733         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
20734         vthreads.
20735         (init_float): Eliminate initialization of floating point status for
20736         AE653. The instructions have no effect for vThreads.
20737
20738 2004-11-18  Vincent Celier  <celier@adacore.com>
20739
20740         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
20741         gnatbind is invoked with -shared.
20742
20743 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
20744
20745         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
20746         for Detect_Blocking which is redundant with the check done within the
20747         procedure Protected_Single_Entry_Call.
20748         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
20749         Detect_Blocking which is redundant with the check done within the
20750         procedure Protected_Single_Entry_Call.
20751
20752 2004-11-18  Vincent Celier  <celier@adacore.com>
20753
20754         * makegpr.adb (Compile): Put the compiling switches (in package
20755         Compiler and on the command line) immediately after "-c", instead of
20756         at the end of the command line invocation of the compiler, when
20757         compiling a non-Ada file.
20758         (Build_Global_Archive): When there is no need to rebuild the archive,
20759         set Global_Archive_Exists, so that the archive is passed to the linker
20760         if one is needed.
20761
20762 2004-11-18  Robert Dewar  <dewar@adacore.com>
20763             Sergey Rybin  <rybin@adacore.com>
20764
20765         * gnat_ugn.texi:
20766         Remove extra paren check from list of checks for redundant constructs
20767         Add documentation of new -gnatyx style check (check extra parens)
20768         Remove paragraph about gnatelim debug options.
20769
20770         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20771         objects rather than forbidding dependencies on the package Ada.Streams.
20772
20773         * sinfo.ads: Add ??? note that we should document pragmas passed to
20774         back end.
20775
20776         * g-expect.ads: Fix a few typos in the comments.
20777
20778 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
20779
20780         * misc.c (gnat_handle_option): Use %< and %> for quoting in
20781         warning message.
20782
20783 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20784
20785         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
20786
20787 2004-11-07  Andreas Schwab  <schwab@suse.de>
20788
20789         * Makefile.in (install-gnatlib): Remove spurious hyphen.
20790
20791 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
20792
20793         PR ada/18228
20794         * Makefile.in (darwin): Set soext to .dylib.
20795
20796 2004-10-26  Vincent Celier  <celier@gnat.com>
20797             Thomas Quinot   <quinot@act-europe.fr>
20798
20799         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
20800         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
20801         there is no use of GNAT.Sockets.Constants.
20802         Remove remaining pragma Import for C_Write
20803         Remove C_Read and C_Write from internal implementation unit
20804         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
20805         the read and write functions from the system runtime library is fine
20806         on UNIX but won't work under Windows).
20807
20808         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
20809         (Check_Selector): Use C_Recv instead of C_Read.
20810         Selectors are the GNAT.Sockets abstraction to perform a select()
20811         call on a set of descriptors. To allow abortion of an ongoing
20812         select operation, some data is written to a dedicated socket that
20813         is always monitored.
20814         Under Windows, the write and read library functions cannot operate
20815         on sockets, so we need to use send and recv instead, which is portable
20816         across all supported platforms.
20817
20818         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
20819         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
20820         (using the read and write functions from the system runtime library is
20821         fine on UNIX but won't work under Windows).
20822
20823 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
20824
20825         * mlib-tgt-darwin.adb: New file.
20826
20827         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20828         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20829         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20830         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
20831         subprogram body.
20832
20833         * Makefile.in: Add support for building shared libraries under Darwin.
20834         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
20835         the low level EH init subprogram to be called from __gnat_initialize.
20836
20837         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
20838         indicates which options to pass to the archive indexer.
20839
20840         * mlib-utl.adb: Add support for calling ranlib with additional
20841         options. This is needed for instance under Mac OS X.
20842         (Ranlib_Options): New global variable, used to store the potential
20843         options to pass to ranlib.
20844         (Ar): Use Ranlib_Options when spawning ranlib.
20845         (Initialize): Set the value of ranlib option.
20846
20847 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
20848
20849         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
20850         instead of 8K, to reflect the real potential needs for stack-checking
20851         in the ZCX case.
20852
20853 2004-10-26  Pascal Obry  <obry@gnat.com>
20854
20855         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
20856
20857         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
20858         Windows only the initial thread stack size can be set so it is good to
20859         start we a low stack size.
20860         The OS will adjust the size as needed.
20861
20862 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
20863             Nicolas Setton  <setton@act-europe.fr>
20864
20865         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
20866         "__unix__" instead of "unix".
20867         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
20868         sections were just mistakenly ignored. The former is
20869         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
20870         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
20871         of hpux. This prevents an unwanted definition of the symbol
20872         convert_addresses in adaint.o.
20873
20874 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
20875
20876         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
20877         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
20878
20879 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
20880
20881         * a-filico.ads, a-filico.adb: fix incorrect header.
20882
20883 2004-10-26  Javier Miranda  <miranda@gnat.com>
20884
20885         * a-ststio.ads: Fix typo in identifier
20886
20887 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
20888
20889         * sem_ch4.adb: Minor reformatting.
20890
20891 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
20892
20893         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
20894         enabled, check the result of unary and binary operations when the
20895         expression is the right-hand side of an assignment.
20896
20897 2004-10-26  Vincent Celier  <celier@gnat.com>
20898
20899         * clean.adb (Delete): Do not output warnings when in quiet output and
20900         not in verbose mode.
20901         (Force_Deletions): New Boolean flag, defaulted to False
20902         (Delete): Only delete a file if it is writable, and when
20903         Force_Deletions is True.
20904         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
20905         (Usage): Line for new switch -f
20906         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
20907         own.
20908
20909 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
20910
20911         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
20912         JM type only if its size matches that of the wrapper.  When a size is
20913         prescribed and the field is not aliased, remove the wrapper of a JM
20914         type only if the size is not greater than that of the packed array.
20915         (gnat_to_gnu_entity): Change the extension of packed array wrappers
20916         from LJM to JM.
20917
20918 2004-10-26  Geert Bosch  <bosch@gnat.com>
20919
20920         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
20921         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
20922         (Pred): Implement in terms of Succ.
20923
20924 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
20925
20926         * exp_aggr.adb (Safe_Component): An aggregate component that is an
20927         unchecked conversion is safe for in-place use if the expression of the
20928         conversion is safe.
20929         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
20930         be expandable in place even if the aggregate does not come from source.
20931         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
20932         designated object of an allocator in place, rather than building it
20933         first on the stack. The previous scheme forces a full copy of the array,
20934         and may be altogether unsusable if the size of the array is too large
20935         for stack allocation.
20936
20937 2004-10-26  Robert Dewar  <dewar@gnat.com>
20938
20939         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
20940         compares if the component is atomic.
20941
20942         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
20943         array assignment if the component type is atomic.
20944
20945 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
20946             Eric Botcazou  <ebotcazou@act-europe.fr>
20947
20948         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
20949         is aliased and is a by_reference type, do not pass by copy.
20950         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
20951         detect whether the call is in the right side of an assignment or
20952         the expression of an object declaration.  Recurse on component
20953         association within aggregates.
20954         Call it in the condition that determines whether the temporary is
20955         necessary for correct stack-checking.
20956
20957 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
20958
20959         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
20960         RACW_Type, used in the PolyORB version.
20961         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
20962         version and the GARLIC version.
20963
20964         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
20965         Rename RCI_Info to RCI_Locator for better consistency between the
20966         GARLIC and PolyORB versions of the distributed systems annex.
20967         (DSA_Implementation_Name): This enumeration lists the possible
20968         implementations of the Partition Communication Subsystem for the
20969         Distributed Systems Annex (DSA). The three available implementations
20970         are the dummy stub implementation (No_DSA), and two versions based on
20971         two different distribution runtime libraries: GARLIC and PolyORB. Both
20972         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
20973         technology.
20974         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
20975         that organization.
20976
20977         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
20978         between the GARLIC and PolyORB versions of the distributed systems
20979         annex.
20980         Remove RE_Unbounded_Reclaim_Pool since it is unused.
20981
20982 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
20983
20984         * gnat1drv.adb: Suppress calling the back end when
20985         Frontend_Layout_On_Target is true.
20986
20987 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
20988
20989         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
20990         Set_Read_Only): New subprograms.
20991         These new routines allow the user to set or unset the Owner execute
20992         and Owner write permission flags on a file.
20993
20994         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
20995         GNAT.OS_Lib.Set_Executable instead of rolling our own.
20996
20997 2004-10-26  Matthew Gingell  <gingell@gnat.com>
20998
20999         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
21000
21001 2004-10-26  Pascal Obry  <obry@gnat.com>
21002
21003         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
21004         memory before the faulting page we properly test the process read
21005         access for this address using appropriate Win32 routine.
21006         (HPUX sections): guard with "__hpux__" instead of "hpux".
21007
21008 2004-10-26  Robert Dewar  <dewar@gnat.com>
21009
21010         * lib-xref.adb (Generate_Reference): Don't complain about reference to
21011         entry parameter if pragma Unreferenced set, since we do not properly
21012         handle the case of multiple parameters.
21013
21014 2004-10-26  Vincent Celier  <celier@gnat.com>
21015
21016         * prj-env.adb: (Contains_ALI_Files): New Boolean function
21017         (Ada_Objects_Path.Add): For a library project, add to the object path
21018         the library directory only if there is no object directory or if the
21019         library directory contains ALI files.
21020         (Set_Ada_Paths.Add.Recursive_Add): Ditto
21021
21022 2004-10-26  Vincent Celier  <celier@gnat.com>
21023
21024         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
21025         extension of library projects.
21026
21027         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
21028         path defaults to ".:<prefix>/lib/gnat".
21029         (Parse): For an extending all project, allow direct import of a project
21030         that is virtually extended.
21031
21032         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
21033         the specified name is directly imported, return its ID. Otherwise, if
21034         an extension of this project is imported, return the ID of the
21035         extension.
21036
21037 2004-10-26  Robert Dewar  <dewar@gnat.com>
21038
21039         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
21040         (Sub3): New procedure, used by Scaled_Divide
21041         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
21042         correct more than one instance of failure to propagate carries
21043         correctly.
21044         (Double_Divide): Handle overflow case of largest negative number
21045         divided by minus one.
21046
21047         * s-arit64.ads (Double_Divide): Document that overflow can occur in
21048         the case of a quotient value out of range.
21049         Fix comments.
21050
21051 2004-10-26  Robert Dewar  <dewar@gnat.com>
21052
21053         * s-bitops.adb (Bit_Eq): Remove redundant check.
21054
21055         * s-bitops.ads: Minor comment updates
21056         Change some occurrences of Address to System.Address
21057
21058         * s-carsi8.ads: Fix minor cut-and-paste error in comments
21059
21060 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21061
21062         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
21063         accessibility check to prefix that is a protected operation.
21064
21065 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21066
21067         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
21068         empty, post message on stub.
21069
21070 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21071             Javier Miranda  <miranda@gnat.com>
21072
21073         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
21074         current instance appears within a unit that is directly in the context
21075         of the main unit.
21076         Used to determine whether the body of the instance should be analyzed
21077         immediately after its spec, to make its subprogram bodies available
21078         for front-end inlining.
21079         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
21080         constraint is not allowed on the component type (AARM 12.5.3(3))
21081
21082 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
21083
21084         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
21085         'Storage_Pool): enhance, document & limit detection of non-sharable
21086         internal pools.
21087
21088         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
21089
21090         * s-pooglo.ads: Add more documentation now that this pool is properly
21091         documented.
21092
21093 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21094
21095         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
21096         or protected type with discriminants, do not constrain the
21097         corresponding record type if the subtype declaration has no
21098         discriminant constraints. This can be the case in source code, or in
21099         the subtype declaration created to rename an actual type within an
21100         instantiation.
21101
21102 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21103
21104         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
21105         different kind of stub (possibly wrong name for file), do not check
21106         for conformance.
21107         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
21108         includes call to some function that returns an unconstrained type, do
21109         not inline.
21110
21111 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
21112
21113         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
21114         appear in the code for the main unit. Dependencies among units in the
21115         context of the main unit are established when those other units are
21116         compiled. Otherwise spurious elaboration constraints can generate
21117         incorrect elaboration circularities.
21118
21119 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
21120             Ed Schonberg   <schonberg@gnat.com>
21121
21122         * sem_util.adb (Is_Aliased_View): Defend against the case where this
21123         subprogram is called with a parameter that is not an object name. This
21124         situation arises for some cases of illegal code, which is diagnosed
21125         later, and in this case it is wrong to call Is_Aliased, as that might
21126         cause a compiler crash.
21127         (Explain_Limited_Type): Refine previous fix to include
21128         inherited components of derived types, to provide complete information.
21129
21130         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
21131         is the prival for a protected object.
21132         It is necessary to mark this entity as a variable, in addition to
21133         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
21134         modified to avoid checking the Aliased flag on entities that are not
21135         objects. (Checking that flag for non-objects is erroneous and could
21136         lead to a compiler crash).
21137
21138 2004-10-26  Robert Dewar  <dewar@gnat.com>
21139
21140         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
21141         X_Frac = 0.5, then we know that the number X must be positive.
21142         (Succ): Remove the same redundant test, and also fix the primary test
21143         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
21144         Minor reformatting
21145         (Decompose): Add fuller comments to spec
21146
21147 2004-10-26  Pascal Obry  <obry@gnat.com>
21148
21149         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
21150         validity (process must have read access). Set to 0 in all other cases.
21151         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
21152         violation on Win32.
21153         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
21154         segmentation violation.
21155
21156 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
21157
21158         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
21159         whose type is a constructed subtype of an aliased object with an
21160         unconstrained nominal subtype, convert the actual to the constructed
21161         subtype before taking its address.
21162
21163 2004-10-26  Vincent Celier  <celier@gnat.com>
21164
21165         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
21166         (Is_Path_Name_Case_Sensitive): New function
21167
21168         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
21169         (Base_Name, Simple_Name, Current_Directory, Compose,
21170         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
21171         the result.
21172
21173 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
21174             Vasiliy Fofanov  <fofanov@act-europe.fr>
21175             Vincent Celier   <celier@gnat.com>
21176
21177         * gnat_ugn.texi: Generalize "finding memory problems" section into a
21178         "memory management issues" section and document some of the useful
21179         memory pools provided as part of the GNAT library.
21180         Remove "virtual" from declaration of A::method2 in
21181         the simple example of Ada/C++ mixed system.
21182         Library Projects may be virtually extended: their virtual extensions
21183         are not Library Projects.
21184         Added section on extending project hierarchies.
21185
21186 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
21187
21188         * adaint.c (__gnat_get_libraries_from_registry): Cast value
21189         to LPBYTE.
21190         (__gnat_portable_spawn): Remove const.
21191
21192         * mingw32.h (MAXPATHLEN): Check for previous definition.
21193
21194 2004-10-17  Matthias Klose  <doko@debian.org>
21195
21196         * gnatvsn.ads: Set gnat library version to 4.0.
21197
21198 2004-10-05  Vincent Celier  <celier@gnat.com>
21199
21200         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
21201
21202 2004-10-04  Laurent GUERBY <laurent@guerby.net>
21203
21204         PR ada/15156
21205         * Makefile.in: Define and use RANLIB_FLAGS.
21206
21207 2004-10-04  Pascal Obry  <obry@gnat.com>
21208
21209         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
21210         other x86 platforms).
21211
21212 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
21213
21214         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
21215         in general and triggers stack alignment adjustment for thread entry
21216         points on targets where this is necessary.
21217
21218 2004-10-04  Bernard Banner  <banner@gnat.com>
21219
21220         PR ada/13897
21221         * Makefile.in: Add section for powerpc linux
21222         Add variant i-vxwork-x86.ads
21223
21224         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
21225
21226 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
21227
21228         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
21229         table registration calls when need be. Ensures no reference to the crt
21230         ctors symbol are issued in the SJLJ case, which avoids possible
21231         undefined symbol errors in the case of modules to be statically linked
21232         with the kernel.
21233
21234 2004-10-04  Javier Miranda  <miranda@gnat.com>
21235
21236         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
21237         in-line the code corresponding to subprogram Analyze_Actuals. In
21238         addition, analyze the actuals only in case of subprogram call.
21239
21240 2004-10-04  Ed Falis  <falis@gnat.com>
21241
21242         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
21243
21244 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
21245
21246         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
21247         in the documentation.
21248
21249 2004-10-04  Robert Dewar  <dewar@gnat.com>
21250
21251         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
21252         IF and CASE.
21253         (Analyze_Block_Statement): Add circuitry to detect following dead code
21254         (Check_Unreachable_Code): Handle case of block exit
21255
21256 2004-10-04  Robert Dewar  <dewar@gnat.com>
21257
21258         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
21259         (XMatchD): Avoid warning for Logic_Error call
21260
21261 2004-10-04  Robert Dewar  <dewar@gnat.com>
21262
21263         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
21264         consider expressions buried within a procedure actual to be an actual.
21265         This caused some blowups with uses of packed slices within a procedure
21266         actual.
21267
21268 2004-10-04  Robert Dewar  <dewar@gnat.com>
21269
21270         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
21271         longer need to be initialized to zero.
21272         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
21273         initialized to zero.
21274
21275         * checks.adb (Expr_Known_Valid): Packed arrays are now always
21276         considered valid, even if the representation is modular. That's correct
21277         now that we no longer initialize packed modular arrays to zero.
21278
21279         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
21280         suffixes. These are now documented as the only cases in which the
21281         debugger ignores outer records.
21282         Previously, the spec allowed arbitrary suffixes for this purpose.
21283         Change name of LJM to JM for packed array pad records
21284         Create separate section on packed array handling, and add a whole new
21285         set of comments to this section describing the situation with packed
21286         modular types and justification requirements depending on endianness.
21287
21288 2004-10-04  Robert Dewar  <dewar@gnat.com>
21289
21290         * a-except.adb: Add a comment for last change
21291
21292         * einfo.ads: Minor spelling correction in comment
21293
21294         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
21295
21296         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
21297         messages.
21298
21299         * sem_util.ads: Minor comment update
21300
21301 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21302
21303         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
21304         Inline_Always when in Configurable_Run_Time mode.
21305
21306         * sem_prag.adb (Process_Convention): If entity is an inherited
21307         subprogram, apply convention to parent subprogram if in same scope.
21308         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
21309         when in Configurable_Run_Time mode.
21310
21311 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21312
21313         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
21314         class_wide type after component list has been inherited.
21315
21316 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21317
21318         * sem_ch12.adb (Check_Generic_Actuals): New predicate
21319         Denotes_Previous_Actual, to handle properly the case of a private
21320         actual that is also the component type of a subsequent array actual.
21321         The visibility status of the first actual is not affected when the
21322         second is installed.
21323         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
21324         make fully recursive the treatment of formals of packages declared
21325         with a box.
21326         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
21327         the above on exit from an instantiation.
21328         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
21329         current instantiation which is now complete.
21330         (Analyze_Package_Instantiation): No instantiated body is needed if the
21331         main unit is generic. Efficient, and avoid anomalies when a instance
21332         appears in a package accessed through rtsfind.
21333
21334 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21335
21336         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
21337         do not generate a declaration for a temporary if the call is part of a
21338         library-level instantiation.
21339
21340 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
21341
21342         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
21343         searching for a limited component to flag.
21344
21345         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
21346         expansion of Input, to account for the fact that the implicit call
21347         generated by the attribute reference must freeze the user-defined
21348         stream subprogram. This is only relevant to 'Input, because it can
21349         appear in an object declaration, prior to the body of the subprogram.
21350
21351         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
21352         expansion can proceed and further errors uncovered.
21353         (Minor clean up): Fix cases of using | instead of \ for continuation
21354         messages.
21355
21356 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21357
21358         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
21359
21360         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
21361         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
21362         Use gcc_assert and gcc_unreachable.
21363
21364         * decl.c (gnat_to_gnu_entity, case object): Check and process a
21365         specified alignment before validating size.
21366         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
21367         stripped-down declaration for the type of the inner field when making
21368         a JM type.
21369
21370         * utils.c (finish_record_type): Do not compute the size in units
21371         incrementally. Instead compute it once for the rep clause case.
21372         Use gcc_assert and gcc_unreachable.
21373
21374 2004-10-04  Vincent Celier  <celier@gnat.com>
21375
21376         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
21377         in file name.
21378         (Is_Valid_Path_Name): Take '/' as a directory separator.
21379
21380 2004-10-04  Vincent Celier  <celier@gnat.com>
21381
21382         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
21383         (Extended_Project) only if Extended_Project is defined, to avoid
21384         assertion error.
21385         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
21386         resolved path.
21387         (Parse_Single_Project): Ditto.
21388
21389         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
21390         Add_To_Project_Path for virtual projects.
21391
21392 2004-10-04  Vincent Celier  <celier@gnat.com>
21393
21394         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21395         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21396         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
21397         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
21398         parameter Options_2.
21399
21400         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
21401         Build_Dynamic_Library with an empty Options_2.
21402
21403         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
21404         default anymore.
21405
21406         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
21407         directory separator, if any.
21408         (Gprmake): Do not allow mains on the command line for library projects.
21409         Do not attempt to link when the project is a library project.
21410         (Library_Opts): New table to store Library_Options.
21411         (Build_Library): If Library_Options is specified, pass these options
21412         when building a shared library.
21413
21414 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
21415
21416         * s-tposen.adb (Service_Entry): The object must be always unlocked at
21417         the end of this procedure now that the unlock operation was inserted
21418         by the expander.
21419
21420 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
21421
21422         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
21423         corresponding to the Preallocated_Stacks flags in System.
21424         (Get_Target_Parameters): Including the processing for
21425         Preallocated_Stacks.
21426
21427         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
21428         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
21429         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
21430         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
21431         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
21432         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21433         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
21434         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
21435         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21436         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21437         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
21438         used to signal whether the compiler creates the required stacks and
21439         descriptors for the different tasks (when True) or it is done by the
21440         underlying operating system at run time (when False).
21441         It is initially set to False in all targets.
21442
21443         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
21444         if it is supported by the target.
21445         (Make_Task_Create_Call): Pass the stack address if it has been
21446         previously created. Otherwise pass a Null_Address.
21447
21448         * snames.adb: Add _stack.
21449
21450         * snames.ads: Add Name_uStack. Required to allow the expander to
21451         statically allocated task stacks.
21452
21453         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
21454         Stack_Address argument.
21455         Check that its value is equal to Null_Address because this target does
21456         not support the static stack allocation.
21457
21458 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
21459
21460         * usage.adb: Change "pragma inline" to "pragma Inline" in information
21461         and error messages
21462
21463 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
21464
21465         * exp_dist.adb: Split declaration of asynchronous flag out of
21466         Add_RACW_Read_Attribute.
21467         Minor reformatting for better alignment with PolyORB version.
21468         Store the entity for the asynchronous flag of an RACW, rather than the
21469         expression, in the asynchronous flags table. This will allow this flag
21470         to be used in other subprograms beside Add_RACW_Read_Attribute.
21471
21472 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
21473
21474         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
21475         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21476         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
21477         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
21478         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
21479         sockets constant MSG_NOSIGNAL (Linux-specific).
21480         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
21481         all Send operations.
21482         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
21483         from trigerring SIGPIPE.
21484         Rename components to avoid clash with Ada 2005 possible reserved
21485         word 'interface'.
21486         (Check_Selector): When the select system call returns with an error
21487         condition, propagate Socket_Error to the caller.
21488
21489 2004-10-01  Jan Hubicka  <jh@suse.cz>
21490
21491         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
21492
21493 2004-09-23  Robert Dewar  <dewar@gnat.com>
21494
21495         PR ada/17540
21496         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
21497         instead do this at freeze time (we won't do it if there is an address
21498         clause).
21499         Change "pragma inline" to "pragma Inline" in information and error
21500         messages.
21501         Minor reformatting.
21502
21503         * freeze.adb (Check_Address_Clause): Remove previous change, not the
21504         right way of doing things after all.
21505         (Freeze_Entity): For object, set Is_Public for imported entities
21506         unless there is an address clause present.
21507
21508 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
21509
21510         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
21511         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
21512         ensures proper handling of types with rep clauses, which might have
21513         their TYPE_SIZE set already.
21514
21515 2004-09-21  Robert Dewar  <dewar@gnat.com>
21516
21517         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
21518         packed array types in both little- and big-endian cases. This change
21519         ensures that we no longer count on the unused bits being initialized
21520         for such types (and in particular ensures that equality testing will
21521         only read the relevant bits).
21522         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21523         These changes mean that we no longer need to initialize small packed
21524         arrays.
21525         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
21526         optimization to an LJM field as to its parent field.
21527
21528         * ada-tree.h, trans.c, utils.c, utils2.c:
21529         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21530
21531 2004-09-20  Jan Hubicka  <jh@suse.cz>
21532
21533         * utils.c (gnat_finalize): Remove.
21534         (end_subprog_body): Directly call cgraph_finalize_function;
21535         do not lower the nested functions.
21536
21537 2004-09-20  Robert Dewar  <dewar@gnat.com>
21538
21539         PR ada/17540
21540         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
21541         if an address clause is present, since that means that the Import
21542         should be ignored.
21543
21544 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
21545
21546         * 5tsystem.ads: Removed, no longer used.
21547
21548 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
21549             Zack Weinberg  <zack@codesourcery.com>
21550
21551         * ada-tree.def: Use tree_code_class enumeration constants
21552         instead of code letters.
21553         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
21554         Update for new tree-class enumeration constants.
21555
21556 2004-09-17  Vincent Celier  <celier@gnat.com>
21557
21558         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
21559         capabilities of the general project manager.
21560
21561 2004-09-09  Vincent Celier  <celier@gnat.com>
21562
21563         * a-direct.ads: Add pragma Ada_05
21564         (Directory_Entry_Type): Give default value to component Kind to avoid
21565         not initialized warnings.
21566
21567         * a-direct.adb (Current_Directory): Remove directory separator at the
21568         end.
21569         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
21570         an existing directory.
21571         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
21572         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
21573         Convert the result to File_Size.
21574
21575         * prj.ads: (Project_Error): New exception
21576
21577         * prj-attr.adb: Except in procedure Initialize, Fail comes from
21578         Prj.Com, not from Osint.
21579         (Attrs, Package_Attributes): Tables moved to private part of spec
21580         (Add_Attribute, Add_Unknown_Package): Moved to new child package
21581         Prj.Attr.PM.
21582         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
21583         Prj.Project_Error after call to Fail.
21584         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
21585         Fail. Check that package name is not already in use.
21586
21587         * prj-attr.ads: Comment updates to indicate that all subprograms may be
21588         used by tools, not only by the project manager, and to indicate that
21589         exception Prj.Prj_Error may be raised in case of problem.
21590         (Add_Unknown_Package, Add_Attribute): Moved to new child package
21591         Prj.Attr.PM.
21592         (Attrs, Package_Attributes): Table instantiations moved from the body to
21593         the private part to be accessible from Prj.Attr.PM body.
21594
21595         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
21596         from new package Prj.Attr.PM.
21597         (Parse_Attribute_Declaration): Call Add_Attribute from new package
21598         Prj.Attr.PM.
21599
21600         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
21601
21602         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
21603         instead of Elaboration_Checks).
21604
21605         * a-calend.adb: Minor reformatting
21606
21607 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21608
21609         * gigi.h (maybe_pad_type): New declaration.
21610         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
21611
21612         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
21613
21614         * cuintp.c: Convert to use buildN.
21615
21616         * decl.c (maybe_pad_type): No longer static.
21617         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
21618         target pointer.
21619         Convert to use buildN.
21620
21621         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
21622         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
21623         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
21624         RHS.
21625         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
21626         (gnat_gimplify_expr, case ADDR_EXPR): New case.
21627         Convert to use buildN.
21628
21629         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
21630         TREE_READONLY for const.
21631         Convert to use buildN.
21632
21633         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
21634         (create_var_decl): Refine when TREE_STATIC is set.
21635         Convert to use buildN.
21636
21637 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
21638
21639         * gnat_ugn.texi: Delete text relating to checking of ali and object
21640         consistency.
21641
21642         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
21643         routines.
21644
21645 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
21646
21647         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
21648         pragmas recognized by GNAT.
21649
21650         * gnat_rm.texi: Document pragma Detect_Blocking.
21651
21652         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
21653         raise Program_Error if called from a protected operation.
21654
21655         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
21656         the protected action nesting level.
21657         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
21658         protected action nesting level.
21659         (Unlock): When pragma Detect_Blocking is active decrease the protected
21660         action nesting level.
21661
21662         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
21663         Protected_Action_Nesting.
21664
21665         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
21666         Common_ATCB record. It contains the dynamic level of protected action
21667         nesting for each task. It is needed for checking whether potentially
21668         blocking operations are called from protected operations.
21669         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
21670         Detect_Blocking is active or not in the partition.
21671
21672         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
21673         raise Program_Error if called from a protected operation.
21674         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
21675         Program_Error if called from a protected operation.
21676         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
21677         Program_Error if called from a protected operation.
21678
21679         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
21680         raise Program_Error if called from a protected operation.
21681
21682         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
21683         raise Program_Error if called from a protected operation, and increase
21684         the protected action nesting level.
21685         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
21686         Program_Error if called from a protected operation, and increase the
21687         protected action nesting level.
21688         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
21689         protected action nesting level.
21690
21691         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
21692         raise Program_Error if called from a protected operation, and increase
21693         the protected action nesting level.
21694         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
21695         Program_Error if called from a protected operation, and increase the
21696         protected action nesting level.
21697         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
21698         raise Program_Error if called from a protected operation.
21699         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
21700         active, raise Program_Error if called from a protected operation.
21701         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
21702         protected action nesting level.
21703
21704         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
21705         insertion of the statement raising Program_Error. The run time
21706         contains the required machinery for handling that.
21707
21708         * sem_util.ads: Change comment associated to procedure
21709         Check_Potentially_Blocking_Operation.
21710         This procedure does not insert a call for raising the exception because
21711         that is currently done by the run time.
21712
21713         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
21714
21715         * init.c: Add the global variable __gl_detect_blocking that indicates
21716         whether pragma Detect_Blocking is active (1) or not (0). Needed for
21717         making the pragma available at run time.
21718         (__gnat_set_globals): Pass and update the detect_blocking parameter.
21719
21720         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
21721         pragma Detect_Blocking is active.
21722
21723         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
21724
21725         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
21726         DB is found in the ali file. Any unit compiled with pragma
21727         Detect_Blocking active forces its effect in the whole partition.
21728
21729         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
21730         Detect_Blocking is active and delay is called from a protected
21731         operation.
21732
21733         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
21734         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
21735         Detect_Blocking is active (0 otherwise).
21736         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
21737         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
21738         otherwise).
21739
21740 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
21741
21742         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
21743         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
21744         package.
21745
21746         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
21747         (Register_Receiving_Stub): Add Subp_Info formal parameter.
21748         Update API in placeholder implemetation of s-parint to reflect changes
21749         in distribution runtime library.
21750
21751         * sem_ch3.adb (Expand_Derived_Record): Rename to
21752         Expand_Record_Extension.
21753
21754         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
21755         primitive operations of potentially distributed object types that have
21756         non-controlling anonymous access formals.
21757
21758         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
21759         subprogram.
21760         New implementation of expansion for remote access-to-subprogram types,
21761         based on the RACW infrastructure.
21762         This version of sem_dist is compatible with PolyORB/DSA as well as
21763         GLADE.
21764
21765         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
21766         Asynchrronous that applies to a remote access-to-subprogram type, mark
21767         the underlying RACW type as asynchronous.
21768
21769         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21770          __gnat_using_gnu_linker to 1.
21771
21772         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21773         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21774         GNAT.Perfect_Hash_Generators, and remove the empty
21775         GNAT.Perfect_Hash package.
21776
21777         * atree.adb: Minor reformatting
21778
21779         * exp_ch3.adb (Expand_Derived_Record): Rename to
21780         Expand_Record_Extension.
21781         (Build_Record_Init_Proc.Build_Assignment): The default expression in
21782         a component declaration must remain attached at that point in the
21783         tree so New_Copy_Tree copies it if the enclosing record type is derived.
21784         It is therefore necessary to take a copy of the expression when building
21785         the corresponding assignment statement in the init proc.
21786         As a side effect, in the case of a derived record type, we now see the
21787         original expression, without any rewriting that could have occurred
21788         during expansion of the ancestor type's init proc, and we do not need
21789         to go back to Original_Node.
21790
21791         * exp_ch3.ads (Expand_Derived_Record): Rename to
21792         Expand_Record_Extension.
21793
21794         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
21795         Returns the RACW type used to implement a remote access-to-subprogram
21796         type.
21797         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
21798         New subprograms. Used to create a proxy tagged object for a remote
21799         subprogram. The proxy object is used as the designated object
21800         for RAS values on the same partition (unless All_Calls_Remote applies).
21801         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
21802         System.Partition_Interface.Get_Unique_Remote_Pointer.
21803         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
21804         Renamed from Add_RAS_*_Attribute.
21805         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
21806         subprograms.
21807         New implementation of expansion for remote access-to-subprogram types,
21808         based on the RACW infrastructure.
21809
21810         * exp_dist.ads (Copy_Specification): Update comment to note that this
21811         function can copy the specification from either a subprogram
21812         specification or an access-to-subprogram type definition.
21813
21814 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
21815
21816         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
21817         in an instance, between an explicit subprogram an one inherited from a
21818         type derived from an actual.
21819
21820         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
21821         add a polling call if the subprogram is to be inlined by the back-end,
21822         to avoid repeated calls with multiple inlinings.
21823
21824         * checks.adb (Apply_Alignment_Check): If the expression in the address
21825         clause is a call whose name is not a static entity (e.g. a dispatching
21826         call), treat as dynamic.
21827
21828 2004-09-09  Robert Dewar  <dewar@gnat.com>
21829
21830         * g-trasym.ads: Minor reformatting
21831
21832         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
21833         packed arrays, since unused bits are expected to be zero for a
21834         comparison.
21835
21836 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
21837
21838         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
21839         comment.
21840
21841 2004-09-09  Pascal Obry  <obry@gnat.com>
21842
21843         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
21844         enable map file generation. Add the right option to generate the map
21845         file if Map_File is set to True.
21846
21847         * gnatdll.adb (Gen_Map_File): New variable.
21848         (Syntax): Add info about new -m (Map_File) option.
21849         (Parse_Command_Line): Add support for -m option.
21850         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
21851         Minor reformatting.
21852
21853 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
21854
21855         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
21856         new gnatdist implementation.
21857         Define a subpackage isolating the output routines specific to this
21858         verbose mode.
21859
21860 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
21861
21862         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
21863
21864         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
21865
21866 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
21867
21868         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
21869         internal unit.
21870
21871         * opt.ads: Add Ada_Version_Runtime constant used to decide which
21872         version of the language is used to compile the run time.
21873
21874 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
21875
21876         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
21877         of variable length temporaries for function return now that the
21878         back-end and gigi support it.
21879
21880 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21881
21882         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
21883
21884         * trans.c (struct stmt_group): Delete field GLOBAL.
21885         (gnat_init_stmt_group): Do not initialize it.
21886         (call_to_gnu): Use save_expr, not protect_multiple_eval.
21887         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
21888         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
21889         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
21890         (start_stmt_group): Likewise.
21891         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
21892
21893         * utils2.c (ggc.h): Include.
21894         (build_call_raise): Call build_int_cst, not build_int_2.
21895
21896         * utils.c (gnat_init_decl_processing): Fix arg to
21897         build_common_tree_nodes.
21898         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
21899         (gnat_define_builtin): Set built_in_decls.
21900         (init_gigi_decls): Call build_int_cst, not build_int_2.
21901
21902         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
21903         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
21904         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
21905         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
21906         SET_TYPE_MODULE): Use them.
21907         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
21908         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
21909         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
21910         SET_TYPE_ADA_SIZE): Likewise.
21911         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
21912         (DECL_CONST_CORRESPONDING_VAR,
21913         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
21914         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
21915         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
21916         (TYPE_RM_SIZE_NUM): New macro.
21917         (TYPE_RM_SIZE): Modified to use above.
21918
21919         * cuintp.c: (build_cst_from_int): New function.
21920         (UI_To_gnu): Use it.
21921
21922         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
21923         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
21924         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
21925         MIN_EXPR for the size, copy it into new.
21926
21927 2004-09-01  Robert Dewar  <dewar@gnat.com>
21928
21929         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
21930         packed indexed component where array is an IN OUT formal. This
21931         generated garbage code previously.
21932
21933         * gnat_ugn.texi: Document -fverbose-asm
21934
21935         * gnat-style.texi: Minor updates (note that boolean constants and
21936         variables are joined with AND/OR rather than short circuit forms).
21937
21938 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
21939
21940         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
21941         it is an upward conversion of an untagged type with no representation
21942         change.
21943
21944 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
21945
21946         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
21947         System.Partition_Interface.
21948
21949         * checks.adb (Apply_Access_Checks): Do not generate checks when
21950         expander is not active (but check for unset reference to prefix of
21951         dereference).
21952
21953         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
21954         pragma Debug as an if statement with a constant condition, for
21955         consistent treatment of entity references contained within the
21956         enclosed procedure call.
21957
21958 2004-09-01  Vincent Celier  <celier@gnat.com>
21959
21960         * bindgen.adb: (Set_EA_Last): New procedure
21961         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
21962         Set_EA_Last.
21963         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
21964         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
21965         linked without errors.
21966         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
21967         ST and EA.
21968         (Gen_Exception_Table_C): Correct same bugs
21969
21970         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
21971
21972         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
21973         on Windows, make sure that the drive letter is in upper case.
21974
21975         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
21976         Windows, when the drive letter is added and Case_Sensitive is True, the
21977         drive letter is forced to upper case.
21978
21979         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
21980         to Options_2 for the call to MLib.Utl.Gcc.
21981
21982         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
21983         directory separator when defining BASE_DIR.
21984
21985 2004-09-01  Pascal Obry  <obry@gnat.com>
21986
21987         * gprcmd.adb (Extend): Do not output trailing directory separator. This
21988         is not needed and it confuses Windows GNU/make which does not report
21989         directory terminated by a slash as a directory.
21990         (gprcmd): Idem for "pwd" internal command.
21991
21992         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
21993         target names rewrite to fix regressions with recent version of
21994         GNU/make. Starting with GNU/make 3.80 the pipe character was not
21995         handled properly anymore.
21996
21997 2004-09-01  Andreas Schwab  <schwab@suse.de>
21998
21999         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
22000         * raise.c [!IN_RTS]: Undef abort.
22001
22002 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
22003
22004         * utils2.c (build_allocator): Use ssize_int.
22005
22006         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
22007
22008 2004-08-27  Andreas Schwab  <schwab@suse.de>
22009
22010         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
22011
22012 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
22013             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22014
22015         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
22016
22017 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
22018
22019         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
22020         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22021         * utils.c (init_gigi_decls): Likewise.
22022         * utils2.c (build_call_raise, build_allocator): Likewise.
22023
22024 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
22025
22026         * utils.c (gnat_init_decl_processing): Adjust
22027         build_common_tree_nodes call.
22028
22029 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
22030
22031         * utils2.c (build_allocator): Use build_int_cst for negative
22032         size types.
22033
22034 2004-08-18  Richard Henderson  <rth@redhat.com>
22035
22036         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
22037
22038 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
22039
22040         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
22041         call.s
22042         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
22043         (gnat_to_gnu): Likewise.
22044
22045 2004-08-16  Pascal Obry  <obry@gnat.com>
22046
22047         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
22048         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
22049         option and not mdll anymore. Update comment.
22050
22051 2004-08-16  Pascal Obry  <obry@gnat.com>
22052
22053         * bld.adb (Put_Include_Project): Properly handle directory separators
22054         on Windows.
22055
22056 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
22057
22058         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
22059         decreasing the number of allocated junk nodes while searching for the
22060         appropriate subprogram.
22061
22062 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
22063
22064         * cuintp.c (UI_To_gnu): Use build_int_cst..
22065         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22066         * utils.c (init_gigi_decls): Likewise.
22067         * utils2.c (build_call_raise): Likewise.
22068
22069 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
22070
22071         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
22072         for a global aliased object with a variable size and an unconstrained
22073         nominal subtype, pretend there is no initializer if the one we have is
22074         incomplete, and avoid referencing an inexistant component in there. The
22075         part we have will be rebuilt anyway and the reference may confuse
22076         further operations.
22077
22078 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
22079
22080         * einfo.ads: Minor reformatting
22081
22082         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
22083         restrictions in the ALI if we only want to warn about violations.
22084
22085 2004-08-13  Vincent Celier  <celier@gnat.com>
22086
22087         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
22088         when creating a new Unit_Record in table Units.
22089
22090         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
22091         that are violated, if any.
22092
22093         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
22094         add directory separator if path already ends with a directory separator.
22095
22096 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
22097
22098         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
22099         unit, this is an attempt to inline a construct that is not available in
22100         the current restricted mode, so abort rather than trying to continue.
22101
22102         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
22103         discriminants that rename those of the parent, recover names of
22104         original discriminants for the constraint on the full view of the
22105         parent.
22106         (Complete_Private_Subtype): Do not create a subtype declaration if the
22107         subtype is an itype.
22108
22109         * gnat_rm.texi: Added section on implementation of discriminated
22110         records with default values for discriminants.
22111
22112 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
22113
22114         PR ada/15601
22115         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
22116         the second operand is overloaded.
22117
22118 2004-08-10  Richard Henderson  <rth@redhat.com>
22119
22120         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
22121         add __builtin_alloca.
22122
22123 2004-08-10  Richard Henderson  <rth@redhat.com>
22124
22125         * config-lang.in (boot_language): Yes.
22126
22127 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
22128
22129         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
22130         from complaining on potential uninitialized reference.
22131         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
22132         new specification and test explicitly for non-zero return value.
22133
22134         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
22135         returning C.int, to avoid using a derived boolean type.
22136
22137         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
22138         Duplicate_Subexpr_No_Checks in preference to direct use of
22139         Remove_Side_Effects and New_Copy_Tree.
22140         Clear Comes_From_Source on prefix of 'Size attribute reference.
22141
22142         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
22143         g-socthi-vxworks.adb: Change calls to
22144         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
22145         and test explicitly for non-zero return value.
22146
22147         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
22148         (Is_Socket_In_Set): Declare imported function as returning C.int, to
22149         avoid using a derived boolean type.
22150
22151 2004-08-09  Albert Lee  <lee@gnat.com>
22152
22153         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
22154
22155 2004-08-09  Pascal Obry  <obry@gnat.com>
22156
22157         * gnat_ugn.texi: Document new way to build DLLs on Windows using
22158         GCC's -shared option.
22159
22160         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
22161         Options_2 parameter (options put after object files).
22162
22163 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
22164
22165         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
22166         ignore overflows on low and high bounds of an index to also account for
22167         differences in signedness between sizetype and gnu_index_subtype.
22168         These are as legitimate as the ones caused by a lower TYPE_PRECISION
22169         on sizetype.
22170
22171 2004-08-09  Robert Dewar  <dewar@gnat.com>
22172
22173         * s-solita.ads, s-solita.adb: Minor reformatting
22174
22175         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
22176         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
22177         obsolescent section
22178         Add note that No_Implicit_Conditionals does not suppress
22179         run time constraint checks.
22180
22181         * vms_conv.ads: Minor reformatting
22182
22183         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
22184         and necessary for following change).
22185         (Mark): Return new format Mark_Id containing sec stack address
22186         (Release): Use sec stack address from Mark_Id avoiding Self call
22187
22188         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
22189         pointer (cleanup and necessary for following change).
22190         Define Mark_Id as record containing address of secondary stack, that way
22191         Release does not need to find the stack again, decreasing the number of
22192         calls to Self and improving efficiency.
22193
22194         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
22195
22196         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
22197         case variable into the individual case branches when possible.
22198
22199         * sem_ch11.adb: Minor reformatting
22200
22201         * prj.ads: Correct spelling of suffixs
22202
22203         * prj-nmsc.adb: Minor reformatting
22204         Correct spelling suffixs throughout (also in identifiers)
22205
22206         * freeze.adb: Minor spelling correction
22207
22208         * exp_ch2.adb: Cleanups to handling of Current_Value
22209         (no functional effect).
22210
22211         * bld.adb: Correct spelling of suffixs
22212
22213         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
22214
22215 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
22216
22217         PR ada/15408
22218         * sem_ch7.adb (Install_Private_Declarations): In the body of the
22219         package or of a child, private entities are both immediately_visible
22220         and not hidden.
22221
22222 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
22223
22224         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
22225         there are no range checks on the value of the literal.
22226
22227         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
22228         wrapped is the triggering alternative of an asynchronous select, action
22229         statements mustbe inserted before the select itself.
22230
22231         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
22232         case where the prefix is a protected function call.
22233         (Resolve_Attribute, case 'Access): The attribute reference on a
22234         subprogram is legal in a generic body if the subprogram is declared
22235         elsewhere.
22236
22237 2004-08-09  Vincent Celier  <celier@gnat.com>
22238
22239         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
22240         languages, otherwise building the library may fail with unresolved
22241         symbols.
22242         (Compile_Sources): Do not build libraries if -c switch is used
22243
22244         * gnatlink.adb (Process_Args): New switches -M and -Mmap
22245         (Write_Usage): If map file creation is supported, output new switches
22246         -M and -Mmap.
22247         (Gnatlink): When -M is specified, add the necessary switch(es) to the
22248         gcc call, when supported.
22249
22250         * Makefile.in: Added indepsw.o to the object list for gnatlink
22251         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
22252
22253         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
22254         indepsw.adb, indepsw.ads: New files.
22255
22256 2004-08-09  Bernard Banner  <banner@gnat.com>
22257
22258         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
22259
22260         * Makefile.in: add section for vxworks x86
22261
22262 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
22263
22264         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
22265         per-object constrained components where the discriminant is of an
22266         Access type.
22267         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
22268         the parent initialization procedure for derived Unchecked_Unions.
22269         Instead, derived Unchecked_Unions build their own initialization
22270         procedure.
22271         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
22272         Check the body of the subprogram for details.
22273         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
22274         functions for derived Unchecked_Union types by introducing a condition.
22275         Allow the creation of TSS equality functions for Unchecked_Unions.
22276         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
22277         Add formal parameter Discr to function signature. Discr is used to
22278         control the generated case statement for Unchecked_Union types.
22279         (Make_Eq_If): Rename formal parameter Node to E in function signature.
22280
22281         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
22282         Unchecked_Unions.
22283         Check the body of the subprogram for details.
22284         (Expand_Composite_Equality): Augment composite type equality to include
22285         correct handling of Unchecked_Union components.
22286         (Expand_N_In): Add condition to detect illegal membership tests when the
22287         subtype mark is a constrained Unchecked_Union and the expression lacks
22288         inferable discriminants, and build a Raise_Program_Error node.
22289         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
22290         to detect types that contain components of unconstrained Unchecked_Union
22291         subtype. Add condition to detect equality between types that have an
22292         unconstrained Unchecked_Union component, and build a Raise_Program_Error
22293         node. Add condition to detect equality between Unchecked_Union types
22294         that lack inferable discriminants, and build a Raise_Program_Error node.
22295         Otherwise build a TSS equality function call.
22296         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
22297         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
22298         with the operand lacking inferable discriminants, and build a Raise_
22299         Program_Error node.
22300         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
22301         composite equality.
22302         (Has_Inferable_Discriminants): Implement new predicate for objects and
22303         expressions of Unchecked_Union type. Check the body of subprogram for
22304         details.
22305         (Has_Unconstrained_UU_Components): Add function
22306         Component_Is_Unconstrained_UU. It is used to detect whether a single
22307         component is of an unconstrained Unchecked_Union subtype. Add function
22308         Variant_Is_Unconstrained_UU. It is used to detect whether a single
22309         component inside a variant is of an unconstrained Unchecked_Union type.
22310
22311         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
22312         inferred discriminant values. Add condition to generate a case
22313         statement with an inferred discriminant as the switch.
22314         (Make_Component_List_Assign): Introduce a Boolean flag that determines
22315         the behaviour of the subprogram in the presence of an Unchecked_Union.
22316         Add condition to trigger the usage of the inferred discriminant value
22317         as the generated case statement switch.
22318         (Make_Field_Assign): Introduce a Boolean flag that determines the
22319         behaviour of the subprogram in the presence of an Unchecked_Union. Add
22320         condition to trigger the usage of the inferred discriminant value as
22321         the right-hand side of the generated assignment.
22322
22323         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
22324         parameter generation when dealing with Unchecked_Unions.
22325
22326         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
22327         checks for Unchecked_Unions.
22328
22329         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
22330
22331         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
22332         Raise_Program_Error nodes for the execution of Read and Write
22333         attributes of Unchecked_Union types and the execution of Input and
22334         Output attributes of Unchecked_Union types that lack default
22335         discriminant values.
22336
22337         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
22338         Unchecked_Union. Add procedure Check_Component. It is used to inspect
22339         per-object constrained components of Unchecked_Unions for being
22340         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
22341         check individual components withing a variant.
22342
22343         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
22344         comparison of Unchecked_Unions.
22345         (Resolve_Equality_OP): Remove guard that prevents equality between
22346         Unchecked_Unions.
22347
22348         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
22349         of component subtypes for Unchecked_Union components.
22350         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
22351         since it is the actual subtype.
22352
22353         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
22354         pass of Unchecked_Union subtypes as generic actuals to formal types
22355         that lack known_discriminant_parts or that are derived Unchecked_Union
22356         types, and do nothing. In any other case, produce an error message.
22357
22358         * sem_ch3.adb (Analyze_Component_Declaration): Add function
22359         Contains_POC. It determines whether a constraint uses the discriminant
22360         of an enclosing record type.
22361         Add condition to detect per-object constrained component and set the
22362         appropriate flag.
22363         (Derived_Type_Declaration): Remove guard that prevents derivation from
22364         Unchecked_Union types.
22365         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
22366         Union subtypes.
22367
22368         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
22369         references to Unchecked_Union discriminants.
22370
22371         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
22372         formal generation when dealing with Unchecked_Unions.
22373         (Set_Actual_Subtypes): Add condition to prevent generation of actual
22374         subtypes for Unchecked_Unions.
22375
22376         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
22377         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
22378         completions of discriminated partial views by Unchecked_Unions and
22379         produce an error message.
22380
22381 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22382
22383         * trans.c (struct stmt_group): New field, GLOBAL.
22384         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
22385         (struct elab_info): New struct.
22386         (elab_info_list, gnu_elab_proc_stack): New variables.
22387         (Compilation_Unit_to_gnu): New procedure.
22388         (gigi): Call it and also handle elaboration procs we've saved.
22389         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
22390         global field from parent.
22391         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
22392         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
22393         (start_stmt_group): Initialize global field from parent.
22394         (add_decl_expr): Set to global for current statement group.
22395         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
22396         post.
22397
22398         * utils.c (global_bindings_p): True when no current_function_decl; no
22399         longer check current_binding_level.
22400
22401 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
22402
22403         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
22404         choice.
22405
22406         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
22407
22408 2004-08-06  Andreas Schwab  <schwab@suse.de>
22409
22410         * utils.c (gnat_define_builtin): Remove second parameter of
22411         make_decl_rtl.
22412         (begin_subprog_body): Likewise.
22413
22414 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
22415
22416         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
22417         optimization, not supported by the tree-ssa back-end.
22418
22419 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
22420
22421         * s-mastop-irix.adb: Update comments.
22422
22423         * a-except.adb (Exception_Information): Raise Constraint_Error if
22424         exception Id is Null_Id.
22425         This is required behavior, which is more reliably and clearly checked
22426         at the top level interface level.
22427
22428 2004-07-26  Javier Miranda  <miranda@gnat.com>
22429
22430         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
22431         call if a component has no default_expression and the box is used.
22432
22433         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
22434         default_expression and you use box, it behaves as if you had declared a
22435         stand-alone object.
22436         (Resolve_Record_Aggregate): If a component has no default_expression and
22437         you use box, it behaves as if you had declared a stand-alone object.
22438
22439         * sem_ch10.adb (Install_Siblings): Do not make visible the private
22440         entities of private-with siblings.
22441
22442 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
22443
22444         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
22445         for a component of an itype, set the parent pointer for analysis,
22446         there is no list in which to insert it.
22447
22448         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
22449         bona-fide renamings, not for inherited operations.
22450
22451         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
22452         actual for a formal that is an access parameter, create local
22453         finalization list even if the expression is not an aggregate.
22454
22455 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
22456
22457         PR ada/16213
22458         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
22459         Diagnose properly illegal subprogram renamings that are library units.
22460
22461 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
22462
22463         PR ada/15588
22464         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
22465         conversion rewritten as an unchecked conversion, check that original
22466         expression is a variable.
22467
22468         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
22469         unchecked_conversion, create new node rather than rewriting in place,
22470         to preserve original construct.
22471
22472 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22473
22474         * gigi.h (gnat_expand_body): Deleted.
22475
22476         * Make-lang.in: (trans.o): Depends on function.h.
22477
22478         * misc.c: (gnat_expand_body): Moved to here.
22479
22480         * trans.c (gnat_expand_body_1): Deleted.
22481         (gnat_expand_body): Moved from here.
22482         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
22483         (add_stmt): Check for marked visited with global_bindings_p.
22484         (gnat_gimplify_expr, case COMPONENT_REF): New case.
22485         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
22486
22487         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
22488         VIEW_CONVERT_EXPR if not operation type.
22489
22490         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
22491         fat pointer.
22492
22493         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
22494         changes: reformatting of negation operators, removing unneeded
22495         inequality comparison with zero, converting equality comparisons with
22496         zero to negations, changing int/0/1 to bool/false/true, replace calls
22497         to gigi_abort with abort, and various other similar changes.
22498
22499 2004-07-26  Vincent Celier  <celier@gnat.com>
22500
22501         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
22502         "setup".
22503
22504         * make.adb (Gnatmake): Fail when a library is not present and there is
22505         no object directory.
22506
22507         * mlib-prj.adb (Check_Library): No need to check if the library needs
22508         to be rebuilt if there is no object directory, hence no object files
22509         to build the library.
22510
22511         * opt.ads (Setup_Projects): New Boolean flag.
22512
22513         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
22514         Location.
22515         Create directory when Kind /= "" and in "gnat setup". Report error if
22516         directory cannot be created.
22517         (Ada_Check): Create library interface copy dir if it does not exist
22518         and we are in "gnat setup".
22519         (Find_Sources): No error if in "gnat setup" and no Ada sources were
22520         found.
22521         (Language_Independent_Check): Create object directory, exec directory
22522         and/or library directory if they do not exist and we are in
22523         "gnat setup".
22524
22525         * vms_conv.ads: (Command_Type): New command Setup.
22526
22527         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
22528
22529         * vms_data.ads: Add qualifiers/switches for new built-in command
22530         "setup".
22531
22532 2004-07-25  Richard Henderson  <rth@redhat.com>
22533
22534         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
22535         DECL_IGNORED_P on RESULT_DECL.
22536
22537 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
22538
22539         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
22540         allocation and potentially overflowing update with
22541         Tailored_Exception_Information. Use the sec-stack free procedural
22542         interface to output Exception_Information instead.
22543
22544         * a-except.adb (To_Stderr): New subprogram for character, and string
22545         version moved from a-exextr to be visible from other separate units.
22546         (Tailored_Exception_Information): Remove the procedural version,
22547         previously used by the default Last_Chance_Handler and not any more.
22548         Adjust various comments.
22549
22550         * a-exexda.adb: Generalize the exception information procedural
22551         interface, to minimize the use of secondary stack and the need for
22552         local buffers when the info is to be output to stderr:
22553         (Address_Image): Removed.
22554         (Append_Info_Character): New subprogram, checking for overflows and
22555         outputing to stderr if buffer to fill is of length 0.
22556         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
22557         (Append_Info_Address, Append_Info_Exception_Name,
22558         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
22559         Append_Info_Basic_Exception_Traceback,
22560         Append_Info_Exception_Information): New subprograms.
22561         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
22562         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
22563         Exception_Info_Maxlength, Exception_Name_Length,
22564         Exception_Message_Length): New subprograms.
22565         (Exception_Information): Use Append_Info_Exception_Information.
22566         (Tailored_Exception_Information): Use
22567         Append_Info_Basic_Exception_Information.
22568         Export services for the default Last_Chance_Handler.
22569
22570         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
22571         other separate units.
22572
22573 2004-07-20  Vincent Celier  <celier@gnat.com>
22574
22575         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
22576
22577 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
22578
22579         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
22580         emit itype references for the designated types of component types that
22581         are declared outside of the full record declaration, and that may
22582         denote a partial view of that record type.
22583
22584 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
22585
22586         PR ada/15607
22587         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
22588         which is the designated type in an access component declaration, to the
22589         list of incomplete dependents of the parent type, to avoid elaboration
22590         issues with out-of-scope subtypes.
22591         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
22592         full view of the parent.
22593
22594 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
22595
22596         PR ada/15610
22597         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
22598         entities that are hidden, such as references to generic actuals
22599         outside an instance.
22600
22601 2004-07-20  Javier Miranda  <miranda@gnat.com>
22602
22603         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
22604         support to the new notation.
22605         (Analyze_Selected_Component): Add call to Try_Object_Operation.
22606
22607 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
22608
22609         * s-taprob.adb: Adding the elaboration code required for initializing
22610         the tasking soft links that are common to the full and the restricted
22611         run times.
22612
22613         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
22614         restricted run time has been moved to the package
22615         System.Soft_Links.Tasking.
22616
22617         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
22618         restricted run time has been moved to the package
22619         System.Soft_Links.Tasking.
22620
22621         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
22622
22623         * s-solita.ads, s-solita.adb: New files.
22624
22625 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22626
22627         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
22628         Case_Statement_to_gnu): Split off from gnat_to_gnu.
22629         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
22630         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
22631         Exception_Handler_to_gnu_zcx): Likewise.
22632
22633 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
22634
22635         * gigi.h (builtin_function): Declare.
22636
22637 2004-07-15  Robert Dewar  <dewar@gnat.com>
22638
22639         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
22640         reformatting
22641
22642         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
22643         access values as an example of a warning.
22644
22645         * gnat_rm.texi: Document new attribute Has_Access_Values
22646
22647         * gnat-style.texi: Document that box comments belong on nested
22648         subprograms
22649
22650         * sem_util.ads (Has_Access_Values): Improved documentation
22651
22652         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
22653
22654         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
22655         (Process_Interface_Name): Call to this new procedure
22656         (Set_Extended_Import_Export_External_Name): Call to this new procedure
22657
22658         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
22659
22660         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
22661
22662         * einfo.ads: Minor comment typo fixed
22663
22664 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
22665
22666         * snames.adb: Add _atcb.
22667
22668         * snames.ads: Add Name_uATCB.
22669
22670         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
22671         (in the expanded code) when using the restricted run time.
22672
22673         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
22674         a in parameter in order to allow ATCBs to be preallocated (in the
22675         expanded code).
22676
22677         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
22678         order to allow ATCBs to be preallocated. In case of error, the ATCB is
22679         deallocated in System.Tasking.Stages.
22680
22681         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
22682         order to allow ATCBs to be preallocated.
22683
22684         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
22685         here. It was previously done in Initialize_ATCB.
22686
22687         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
22688
22689         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
22690         Restricted run time.
22691
22692         * exp_ch3.adb: When using the Restricted run time, pass the
22693         preallocated Ada_Task_Control_Block when creating a task.
22694
22695 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
22696
22697         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
22698         function call that is itself an actual in an enclosing call, diagnose
22699         problem here rather than assuming that resolution will catch it.
22700
22701         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
22702         the local copy of a generic unit for a formal package, and the generic
22703         is a child unit, install private part of ancestors before compiling
22704         private part of spec.
22705
22706         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
22707         use scope entities rather than tree structures, to handle properly
22708         parent units that are instances rewritten as bodies for inlining
22709         purposes.
22710
22711         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
22712         Remove_Parents): Handle properly a parent unit that is an
22713         instantiation, when the unit has been rewritten as a body for inlining
22714         purposes.
22715
22716         * par.adb (Goto_List): Global variable to collect goto statements in a
22717         given unit, for use in detecting natural loops.
22718
22719         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
22720         use in detecting natural loops.
22721
22722         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
22723         backwards goto's, and rewrite as a infinite loop, to improve locality
22724         of temporaries.
22725
22726         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
22727         subcomponent that includes an indexed reference, to prevent the
22728         generation of copies that would miscompile the desired assignment
22729         statement.
22730         (Build_Task_Image_Decls): Add a numeric suffix to
22731         generated name for string variable, to avoid spurious conflicts with
22732         the name of the type of a single protected object.
22733
22734         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
22735         loop with an explicit exit statement, to avoid generating an
22736         out-of-range value with 'Succ leading to spurious constraint_errors
22737         when compiling with -gnatVo.
22738
22739 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
22740
22741         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
22742         might not be analyzed yet, even if its Etype is already set (case of an
22743         unchecked conversion built using Unchecked_Convert_To, for example).
22744         If the prefix has already been analyzed, this will be a nop anyway.
22745
22746         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
22747         controller type, or an assignment of a record type with controlled
22748         components, copy only user data, and leave the finalization chain
22749         pointers untouched.
22750
22751 2004-07-15  Vincent Celier  <celier@gnat.com>
22752
22753         * make.adb (Collect_Arguments): Improve error message when attempting
22754         to compile a source not part of any project, when -x is not used.
22755
22756         * prj.ads: (Defined_Variable_Kind): New subtype
22757
22758         * prj-attr.adb (Register_New_Package): Two new procedures to register
22759         a package with or without its attributes.
22760         (Register_New_Attribute): Mew procedure to register a new attribute in a
22761         package.
22762         New attribute oriented subprograms: Attribute_Node_Id_Of,
22763         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22764         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22765         Next_Attribute.
22766         New package oriented subprograms: Package_Node_Id_Of,
22767         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22768
22769         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22770         type.
22771         (Package_Node_Id): Now a private, self initialized type
22772         (Register_New_Package): New procedure to register a package with its
22773         attributes.
22774         New attribute oriented subprograms: Attribute_Node_Id_Of,
22775         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22776         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22777         Next_Attribute.
22778         New package oriented subprograms: Package_Node_Id_Of,
22779         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22780
22781         * prj-dect.adb (Parse_Attribute_Declaration,
22782         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
22783
22784         * prj-makr.adb (Make): Parse existing project file before creating
22785         other files. Fail if there was an error during parsing.
22786
22787         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
22788         new spec of Prj.Attr.
22789
22790         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
22791         to new spec of Prj.Attr.
22792
22793 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22794
22795         * utils2.c: Fix typo in comment.
22796
22797 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22798
22799         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
22800         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
22801
22802 2004-07-14  Andreas Schwab  <schwab@suse.de>
22803
22804         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
22805
22806 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22807
22808         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
22809         object type.
22810         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
22811         TYPE_STUB_DECL.
22812
22813         * misc.c (gnat_types_compatible_p): New function.
22814         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
22815         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
22816
22817         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
22818         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
22819         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
22820         (mark_visited): Don't mark dummy type.
22821         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
22822         parameter, we must remove any LJM building from GNU_NAME.
22823         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
22824         (pos_to_constructor): Use int_const_binop.
22825         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
22826         PARM_DECL.
22827
22828         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
22829         (gnat_pushlevel): Set TREE_USE on BLOCK node.
22830         (gnat_install_builtins): Add __builtin_memset.
22831
22832 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
22833
22834         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
22835         for a renaming, stabilize the initialization expression if we are at a
22836         local level.  At the local level, uses of the renaming may be performed
22837         by a direct dereference of the initializing expression, and we don't
22838         want possible variables there to be evaluated for every use.
22839
22840         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
22841         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
22842         them on the way.  Account for the fact that we may introduce side
22843         effects in the process.
22844
22845 2004-07-13  Richard Henderson  <rth@redhat.com>
22846
22847         * misc.c (default_pass_by_ref): Use pass_by_reference.
22848
22849 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22850
22851         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22852         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22853
22854 2004-07-08  Richard Henderson  <rth@redhat.com>
22855
22856         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
22857         commentary.
22858
22859 2004-07-06  Vincent Celier  <celier@gnat.com>
22860
22861         * vms_conv.ads: Minor reformatting.
22862         Alphabetical order for enumerated values of type Command_Type, to have
22863         the command in alphabetical order for the usage.
22864
22865         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
22866         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
22867
22868         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
22869
22870         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
22871         (Add_Archive_Path): Only add the global archive if there is one.
22872         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
22873         or not any object file to put in the global archive, and don't build
22874         a global archive if there is none.
22875         (X_Switches): New table
22876         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
22877         in the X_Switches table, if any.
22878         (Initialize): Make sure the X_Switches table is empty
22879         (Scan_Arg): Record -X switches in table X_Switches
22880
22881         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
22882
22883         * make.adb: Minor comment fix
22884
22885         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
22886         invoked with directory information, add the directory in front of the
22887         path.
22888
22889         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
22890         invoked with directory information, add the directory in front of the
22891         path.
22892
22893         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
22894         when Keep_Temporary_Files is False.
22895         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
22896         directory information, add the directory in front of the path.
22897         When not on VMS, handle new switch -dn before the command to set
22898         Keep_Temporary_Files to True.
22899         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
22900         everywhere.
22901
22902         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
22903         invoked with directory information, add the directory in front of the
22904         path.
22905
22906 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
22907
22908         * snames.ads, snames.adb (Name_Stub): New name for the distributed
22909         systems annex.
22910
22911         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
22912         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
22913
22914         * g-socket.adb (To_Timeval): Fix incorrect conversion of
22915         Selector_Duration to Timeval for the case of 0.0.
22916
22917         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
22918         documentation from Evolve_And_Then.
22919
22920 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
22921
22922         * s-taprop-tru64.adb, s-taprop-os2.adb,
22923         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
22924
22925 2004-07-06  Robert Dewar  <dewar@gnat.com>
22926
22927         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
22928         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
22929         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
22930         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
22931         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
22932         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
22933         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
22934         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
22935         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
22936         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
22937         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
22938         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
22939         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
22940         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
22941         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
22942         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
22943         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
22944         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
22945         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
22946         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
22947         vms_data.ads: Minor reformatting,
22948         Fix bad box comment format.
22949
22950         * gnat_rm.texi: Fix minor grammatical error
22951
22952         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
22953
22954         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
22955         more cases of discriminated records to be recognized as not needing a
22956         secondary stack.
22957         (Has_Access_Values): New function.
22958
22959         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
22960
22961         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
22962         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
22963         with LRM terminology).
22964         Change terminology in comments primitive type => elementary type.
22965
22966 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
22967
22968         PR ada/15602
22969         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
22970         parameters do not impose any requirements on the presence of a body.
22971
22972 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
22973
22974         PR ada/15593
22975         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
22976         compilation unit and is in an open scope at the point of instantiation,
22977         assume that a body may be present later.
22978
22979 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
22980
22981         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
22982         Improve error message when specified size is not supported.
22983
22984         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
22985         is never a primitive operation.
22986
22987 2004-07-05  Andreas Schwab  <schwab@suse.de>
22988
22989         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
22990         RECORD_OR_UNION_CHECK.
22991         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
22992
22993 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
22994
22995         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
22996         dependency on xgnatugn, instead build it via a submake.
22997         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
22998
22999 2004-07-04  Richard Henderson  <rth@redhat.com>
23000
23001         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
23002
23003 2004-07-01  Richard Henderson  <rth@redhat.com>
23004
23005         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
23006         * utils.c (max_size): Likewise.
23007
23008 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23009
23010         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
23011         and rest_of_type_compilation; add arg to create_*_decl.
23012         (annotate_decl_with_node): Deleted.
23013         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
23014         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
23015         (get_current_block_context, gnat_pushdecl): New declarations.
23016         (gnat_init_stmt_group): Likewise.
23017         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
23018         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
23019         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
23020         (gnat_init): Call gnat_init_stmt_group.
23021         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
23022         (gnu_pending_elaboration_list): Deleted.
23023         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
23024         (gigi): Rearrange initialization calls and move some to last above.
23025         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
23026         Delete calls to add_decl_expr; add arg to create_*_decl.
23027         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
23028         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
23029         begin_subprog_body and call it.
23030         Don't push and pop ggc context.
23031         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
23032         (add_stmt): Remove handling of DECL_EXPR from here.
23033         If not in function, mark visited.
23034         (add_decl_expr): Put global at top level.
23035         Check for cases of DECL_INITIAL we have to handle here.
23036         (process_type): Add extra arg to create_type_decl.
23037         (build_unit_elab): Rework to just gimplify.
23038         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
23039         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
23040         (get_pending_elaborations, pending_elaborations_p): Likewise.
23041         (push_pending_elaborations, pop_pending_elaborations): Likewise.
23042         (get_elaboration_location, insert_elaboration_list): Likewise.
23043         (gnat_binding_level): Renamed from ada_binding_level.
23044         (init_gnat_to_gnu): Don't clear pending_elaborations.
23045         (global_bindings_p): Treat as global if no current_binding_level.
23046         (set_current_block_context): New function.
23047         (gnat_pushdecl): Renamed from pushdecl; major rework.
23048         All callers changed.
23049         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
23050         (finish_record_type): Call call pushdecl for stub decl.
23051         (function_nesting_depth): Deleted.
23052         (begin_subprog_body): Delete obsolete code.
23053         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
23054
23055 2004-06-28  Robert Dewar  <dewar@gnat.com>
23056
23057         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23058         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
23059         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
23060         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23061         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
23062
23063         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
23064         deal with problem of inefficient slices on machines with strict
23065         alignment, when the slice is a component of a composite.
23066
23067         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
23068         machines, we need the check there as well.
23069
23070 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
23071
23072         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
23073         determine safe copying direction for overlapping slice assignments
23074         when component is controlled.
23075
23076         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
23077         formal derived type in the actual for a formal package are visible in
23078         the enclosing instance.
23079
23080 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
23081
23082         PR ada/15600
23083         * sem_util.adb (Trace_Components): Diagnose properly an illegal
23084         circularity involving a private type whose completion includes a
23085         self-referential component.
23086         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
23087         renaming or an instantiation from an implicit derived operation.
23088
23089 2004-06-28  Pascal Obry  <obry@gnat.com>
23090
23091         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
23092         DLL.
23093         (Library_File_Name_For): Idem.
23094
23095 2004-06-28  Matthew Gingell  <gingell@gnat.com>
23096
23097         * g-traceb.ads: Add explanatory note on the format of addresses
23098         expected by addr2line.
23099
23100 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
23101
23102         * Makefile.in: Force debugging information on s-tasdeb.adb,
23103         a-except.adb and s-assert.adb needed by the debugger.
23104
23105 2004-06-28  Vincent Celier  <celier@gnat.com>
23106
23107         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
23108         Need_To_Build_Lib.
23109         (Gnatmake): Ditto.
23110
23111         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
23112
23113         * prj.adb: Minor reformatting
23114         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
23115
23116         * prj.ads: Comment updates
23117         Minor reformatting
23118         (Project_Data): Change Flag1 to Need_To_Build_Lib.
23119         Remove Flag2: not used.
23120
23121         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
23122         declaration.
23123
23124         * gnat_ugn.texi: Put a "null;" declaration in one project file example
23125
23126         * gnat_rm.texi: Document Empty declarations "null;".
23127
23128         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
23129         front of the linker options.
23130         (Link_Foreign): Put the global archives and the libraries in front of
23131         the linker options.
23132
23133 2004-06-28  Javier Miranda  <miranda@gnat.com>
23134
23135         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
23136         (RTU_Loaded): Code cleanup
23137         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
23138         withed predefined units.
23139
23140         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
23141         explicitly withed predefined units.
23142         Fix typo in comment
23143
23144         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
23145         explicitly withed predefined units.
23146
23147 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23148
23149         * ada-tree.def (DECL_STMT): Deleted.
23150         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
23151         (DECL_STMT_VAR): Deleted.
23152         * decl.c: add_decl_stmt now add_decl_expr.
23153         * gigi.h: Likewise.
23154         * trans.c: Likewise.
23155         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23156         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
23157         (add_stmt): Only handle padded type here.
23158         (add_stmt_with_node): Allow gnat_node to not be present.
23159         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
23160         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
23161         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
23162         make a SAVE_EXPR for the entire fat pointer.
23163         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
23164         (create_index_type): Make a DECL_EXPR.
23165         (end_subprog_body): Don't call allocate_struct_function here but
23166         do clear cfun.
23167
23168 2004-06-25  Pascal Obry  <obry@gnat.com>
23169
23170         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
23171         Relocatable from Build_Dynamic_Library call.
23172
23173         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
23174         Relocatable are now synonym.
23175
23176         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
23177
23178         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
23179         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
23180         call.
23181
23182         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
23183         Lib_Address and Relocatable.
23184         (Default_DLL_Address): Removed.
23185
23186         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23187         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23188         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
23189         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
23190         (Default_DLL_Address): Removed.
23191
23192         * mlib-tgt-mingw.adb: Ditto.
23193         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
23194
23195         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
23196         the initial thread stack size.
23197
23198         * a-strmap.ads: Move package L to private part as it is not used in
23199         the spec. Found while reading code.
23200
23201 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
23202
23203         * tracebak.c: Introduce support for a GCC infrastructure based
23204         implementation of __gnat_backtrace.
23205
23206         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
23207         any more. Use accessors instead. This eases maintenance and relaxes
23208         some alignment constraints.
23209         (_GNAT_Exception structure): Remove the Ada specific fields
23210         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
23211         a-exexpr.adb.
23212         (is_handled_by, __gnat_eh_personality): Replace component references to
23213         exception structure by use of the new accessors.
23214
23215         * init.c (__gnat_initialize): Adjust comments to match the just
23216         reverted meaning of the -static link-time option.
23217
23218         * adaint.c (convert_addresses): Arrange not to define a stub for
23219         mips-irix any more, as we now want to rely on a real version from a
23220         recent libaddr2line.
23221
23222         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
23223         the personality routine can use them and not have to rely on a C
23224         counterpart of the record anymore. This simplifies maintenance and
23225         relaxes the constraint of having Standard'Maximum_Alignment match
23226         BIGGEST_ALIGNMENT.
23227         Update comments, and add a section on the common header alignment issue.
23228
23229 2004-06-25  Geert Bosch  <bosch@gnat.com>
23230
23231         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
23232         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
23233
23234 2004-06-25  Robert Dewar  <dewar@gnat.com>
23235
23236         * gnat_rm.texi: Fix section on component clauses to indicate that the
23237         restriction on byte boundary placement still applies for bit packed
23238         arrays.
23239         Add comment on stack usage from Initialize_Scalars
23240
23241         * gnat_ugn.texi: Add documentation for -gnatyLnnn
23242
23243         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
23244         limiting nesting level.
23245
23246         * usage.adb: Add line for -gnatyLnnn switch
23247
23248         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
23249         sem_ch13.adb, exp_aggr.adb: Minor reformatting
23250
23251         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
23252         type as well as on the subtype. This corrects a problem in freeze in
23253         setting alignments of atomic types.
23254
23255         * sem_eval.ads: Minor comment typo fixed
23256
23257         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
23258         level.  Minor reformatting.
23259
23260         * fname.adb (Is_Predefined_File_Name): Require a letter after the
23261         minus sign. This means that file names like a--b.adb will not be
23262         considered predefined.
23263
23264         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
23265         record Test new flag and give diagnostic for bad component clause.
23266         (Freeze_Entity): Set alignment of array from component alignment in
23267         cases where this is safe to do.
23268
23269         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
23270         arrays.
23271
23272         * cstand.adb: (Create_Standard): Set alignment of String to 1
23273
23274         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
23275
23276         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
23277         code in the common constrained array cases.
23278
23279         * a-storio.adb: Change implementation to avoid possible alignment
23280         problems on machines requiring strict alignment (data should be moved
23281         as type Buffer, not type Elmt).
23282
23283         * checks.adb (Apply_Array_Size_Check): Improve these checks by
23284         killing the overflow checks which we really do not need (64-bits is
23285         enough).
23286
23287 2004-06-25  Vincent Celier  <celier@gnat.com>
23288
23289         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
23290         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
23291         inconditionally for the main project.
23292         (Recursive_Add_Archives.Add_Archive_Path): New procedure
23293         (Link_Executables.Check_Time_Stamps): New procedure
23294         (Link_Executables.Link_Foreign): New procedure
23295         Changes made to reduce nesting level of this package
23296         (Check): New procedure
23297         (Add_Switches): When not in quiet output, check that a switch is not
23298         the concatenation of several valid switches. If it is, issue a warning.
23299         (Build_Global_Archive): If the global archive is rebuilt, linking need
23300         to be done.
23301         (Compile_Sources): Rebuilding a library archive does not imply
23302         rebuilding the global archive.
23303         (Build_Global_Archive): New procedure
23304         (Build_Library): New name for Build_Archive, now only for library
23305         project
23306         (Check_Archive_Builder): New procedure
23307         (Create_Global_Archive_Dependency_File): New procedure
23308         (Gprmake): Call Build_Global_Archive before linking
23309         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
23310         throughout.
23311         (Scan_Arg): Display the Copyright notice when -v is used
23312
23313         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
23314         for gnatls.
23315
23316         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
23317         COMPILE.
23318         Add new GNAT LIST qualifier /FILES=
23319         Added qualifier /DIRECTORY= to GNAT METRIC
23320         Added qualifier /FILES= to GNAT METRIC
23321         Added qualifier /FILES to GNAT PRETTY
23322
23323         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
23324         to take into account both versions of the switch.
23325
23326         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
23327         always be the last switch to the gcc driver. Disable switch storing so
23328         that switches automatically added by the gcc driver are not put in the
23329         ALI file.
23330
23331         * prj.adb (Project_Empty): Take into account changes in components of
23332         Project_Data.
23333
23334         * prj.ads (Languages_Processed): New enumaration value All_Languages.
23335
23336         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
23337         used. Split Boolean component Ada_Sources_Present in two Boolean
23338         components Ada_Sources_Present and Other_Sources_Present.
23339         Minor reformatting
23340
23341         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
23342         instead of Sources_Present.
23343         (Set_Ada_Paths.Add.Recursive_Add): Ditto
23344
23345         * prj-nmsc.adb: Minor reformatting
23346         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
23347         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
23348         Check_Ada_Naming_Scheme.
23349         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
23350         throughout.
23351
23352         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
23353         In_Limited.
23354         Make sure that all cycles where there is at least one "limited with"
23355         are detected.
23356         (Parse_Single_Project): New Boolean parameter In_Limited
23357
23358         * prj-proc.adb (Recursive_Check): When Process_Languages is
23359         All_Languages, call first Prj.Nmsc.Ada_Check, then
23360         Prj.Nmsc.Other_Languages_Check.
23361
23362         * prj-proc.adb (Process): Use Ada_Sources_Present or
23363         Other_Sources_Present (instead of Sources_Present) depending on
23364         Process_Languages.
23365
23366         * lang-specs.h: Keep -g and -m switches in the same order, and as the
23367         last switches.
23368
23369         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
23370         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
23371         False.
23372         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
23373         False.
23374
23375         * lib.ads (Disable_Switch_Storing): New procedure.
23376
23377         * make.adb: Modifications to reduce nesting level of this package.
23378         (Check_Standard_Library): New procedure
23379         (Gnatmake.Check_Mains): New procedure
23380         (Gnatmake.Create_Binder_Mapping_File): New procedure
23381         (Compile_Sources.Compile): Add switch -gnatez as the last option
23382         (Display): Never display -gnatez
23383
23384         * Makefile.generic:
23385         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
23386
23387         * gnatcmd.adb (Check_Project): New function
23388         (Process_Link): New procedure to reduce nesting depth
23389         (Check_Files): New procedure to reduce the nesting depth.
23390         For GNAT METRIC, include the inherited sources in extending projects.
23391         (GNATCmd): When GNAT LS is invoked with a project file and no files,
23392         add the list of files from the sources of the project file. If this list
23393         is too long, put it in a temp text files and use switch -files=
23394         (Delete_Temp_Config_Files): Delete the temp text file that contains
23395         a list of source for gnatpp or gnatmetric, if one has been created.
23396         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
23397         in the project file is too large, create a temporary text file that
23398         list them and pass it to the tool with "-files=<temp text file>".
23399         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
23400
23401         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
23402         generated file is in not in Ada.
23403
23404         * gnatls.adb: Remove all parameters And_Save that are no longer used.
23405         (Scan_Ls_Arg): Add processing for -files=
23406         (Usage): Add line for -files=
23407
23408         * g-os_lib.adb (On_Windows): New global constant Boolean flag
23409         (Normalize_Pathname): When on Windows and the path starts with a
23410         directory separator, make sure that the resulting path will start with
23411         a drive letter.
23412
23413         * clean.adb (Clean_Archive): New procedure
23414         (Clean_Project): When there is non-Ada code, delete the global archive,
23415         the archive dependency files, the object files and their dependency
23416         files, if they exist.
23417         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
23418
23419 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
23420
23421         * sinfo.ads: Fix typo in comment.
23422
23423         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
23424         the TSS for remote access-to-subprogram types, since these TSS are
23425         always present once the type has been analyzed.
23426         (RAS_E_Dereference): Same.
23427
23428         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
23429         reference raises Bad_Attribute, mark the reference as analyzed so the
23430         node (and any children resulting from rewrites that could have occurred
23431         during the analysis that ultimately failed) is not analyzed again.
23432
23433         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
23434
23435         * exp_dist.adb: Minor comment fix.
23436
23437         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
23438         type is an anonymous access type, no unchecked deallocation of the
23439         allocated object can occur. If the object is controlled, attach it with
23440         a count of 1. This allows attachment to the Global_Final_List, if
23441         no other relevant list is available.
23442         (Get_Allocator_Final_List): For an anonymous access type that is
23443         the type of a discriminant or record component, the corresponding
23444         finalisation list is the one of the scope of the type.
23445
23446 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
23447
23448         * sem_ch3.adb (Replace_Type): When computing the signature of an
23449         inherited subprogram, use the first subtype if the derived type
23450         declaration has no constraint.
23451
23452         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
23453         before applying previous optimization. Minor code cleanup.
23454
23455         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
23456         placed at the beginning of an unpacked record without explicit
23457         alignment, a slice of it will be aligned and does not need a copy when
23458         used as an actual.
23459
23460 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
23461
23462         PR ada/15591
23463         PR ada/15592
23464         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
23465         reference is written with expressions mimicking parameters.
23466
23467 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
23468
23469         PR ada/15589
23470         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
23471         STEP 2a. The constraints of a full type declaration of a derived record
23472         type are checked for conformance with those declared in the
23473         corresponding private extension declaration. The message
23474         "not conformant with previous declaration" is emitted if an error is
23475         detected.
23476
23477 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
23478
23479         * g-traceb.ads: Document the need for -E binder switch in the spec.
23480
23481         * g-trasym.ads: Document the need for -E binder switch in the spec.
23482
23483 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
23484
23485         * sem_prag.adb: Add handling of pragma Detect_Blocking.
23486
23487         * snames.h, snames.ads, snames.adb: Add entry for pragma
23488         Detect_Blocking.
23489
23490         * s-rident.ads: Change reference to pragma Detect_Blocking.
23491
23492         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
23493         system.ads.
23494
23495         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
23496         to indicate whether pragma Detect_Blocking is active.
23497
23498         * par-prag.adb: Add entry for pragma Detect_Blocking.
23499
23500         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
23501         of not handling WITH.
23502         Note that this replaces the previous update which was incorrect.
23503
23504 2004-06-25  Javier Miranda  <miranda@gnat.com>
23505
23506         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
23507         use-clauses to have a clean environment.
23508
23509         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
23510         the installation of the use-clauses to stablish a clean environment in
23511         case of compilation of a separate unit; otherwise the call to
23512         use_one_package is protected by the barrier Applicable_Use.
23513
23514         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
23515         the installation of the use-clauses to stablish a clean environment in
23516         case of compilation of a separate unit.
23517         (End_Use_Clauses): Minor comment cleanup.
23518
23519 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
23520
23521         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
23522
23523 2004-06-23  Richard Henderson  <rth@redhat.com>
23524
23525         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
23526
23527 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23528
23529         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
23530         now bool instead of int.
23531         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
23532         * trans.c (gnu_switch_label_stack): New function.
23533         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
23534         elaboration of renamed entity returns.
23535         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
23536         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
23537         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
23538         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
23539         DECL_SIZE_UNIT and simplify variable-sized case.
23540         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23541         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
23542         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
23543         (build_unit_elab): Disable for now.
23544         * utils.c (mark_visited): New function.
23545         (pushdecl): Walk tree to call it for global decl.
23546         (update_pointer_to): Update all variants of pointer and ref types.
23547         Add arg to COMPONENT_REF.
23548         (convert): Likewise.
23549         Move check for converting between variants lower down.
23550         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
23551         (build_allocator): Don't force type of MODIFY_EXPR.
23552         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
23553         put_var_into_stack.
23554
23555 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23556
23557         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
23558         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
23559         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
23560         subprograms.
23561         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
23562         all callers changed.
23563         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
23564         the way that EXIT_STMT finds the loop label.
23565         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
23566         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
23567         (add_stmt): Use annotate_with_locus insted of setting directly.
23568         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
23569         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
23570         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
23571         (build_vms_descriptor): Add extra args to ARRAY_REF.
23572         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
23573         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
23574         New cases.
23575         (build_binary_op): Don't make explicit CONVERT_EXPR.
23576         Add extra rgs to ARRAY_REF.
23577
23578 2004-06-14  Pascal Obry  <obry@gnat.com>
23579
23580         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
23581         Windows.  Fix minor typo.
23582
23583         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
23584         which is now supported on Windows. With this implementation using the
23585         Library Project feature is no different on Windows than on UNIX.
23586
23587 2004-06-14  Vincent Celier  <celier@gnat.com>
23588
23589         * makegpr.adb (Compile_Sources): Nothing to do when there are no
23590         non-Ada sources.
23591
23592         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
23593
23594         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
23595         found, show the project name and the path of the previously parsed
23596         project file.
23597
23598 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
23599
23600         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
23601         array, avoid copying the actual before the call.
23602
23603 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
23604
23605         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
23606         Instead, allocate memory on worst-case alignment assumptions, and then
23607         return an aligned address within the allocated zone.
23608
23609 2004-06-14  Robert Dewar  <dewar@gnat.com>
23610
23611         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
23612         elab entities in predefined units in No_Run_Time_Mode.
23613         (Gen_Adainit_C): Same fix
23614         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
23615         units in No_Run_Time_Mode
23616         (Gen_Elab_Calls_C): Same fix
23617
23618         * symbols-vms-alpha.adb: Minor reformatting
23619
23620         * g-debpoo.ads: Minor reformatting
23621
23622         * lib.adb (In_Same_Extended_Unit): Version working on node id's
23623
23624         * lib.ads (In_Same_Extended_Unit): Version working on node id's
23625
23626         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
23627         working on nodes.
23628
23629         * make.adb: Minor reformatting
23630
23631         * par-ch12.adb: Minor reformatting
23632
23633         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
23634
23635         * prj-strt.adb: Minor reformatting
23636
23637         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
23638         be more general.
23639
23640         * sem_attr.adb: Minor reformatting
23641
23642         * sem_ch7.adb: Minor reformatting
23643
23644         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
23645         for type in the same unit as the object declaration.
23646
23647         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
23648         static string expressions and not just string literals.
23649         Minor reformatting
23650         (Set_Warning): Reset restriction warning flag for restriction pragma
23651         Implement pragma Profile_Warnings
23652         Implement pragma Profile (Restricted)
23653         Give obolescent messages for old restrictions and pragmas
23654
23655         * snames.h, snames.ads, snames.adb: Add new entry for pragma
23656         Profile_Warnings.
23657
23658         * s-rident.ads: Add declarations for restrictions required by profile
23659         Restricted and profile Ravenscar.
23660
23661         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
23662
23663         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
23664         configuration pragmas.
23665
23666 2004-06-11  Vincent Celier  <celier@gnat.com>
23667
23668         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
23669         gnatsym, when symbol policy is Restricted.
23670
23671         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
23672         gnatsym, when symbol policy is Restricted.
23673
23674         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
23675         read the symbol file.
23676         (Finalize): Fail in symbol policy Restricted if a symbol in the original
23677         symbol file is not in the object files. Do not create a new symbol file
23678         when symbol policy is Restricted.
23679
23680         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
23681         in Scng.
23682
23683         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
23684         Restricted.
23685         (Usage): Line for new switch -R
23686
23687         * make.adb (Initialize): When the platform is not VMS, add the
23688         directory where gnatmake is invoked in the front of the path, if
23689         gnatmake is invoked with directory information.  Change the Scan_Args
23690         while loop to a for loop.
23691         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
23692         if Depth is equal or greater than the proposed depth, there is nothing
23693         to do.
23694         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
23695         instead of 0.
23696
23697         * prj.ads: Add new symbol policy Restricted.
23698
23699         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
23700         with the new parameters Check_All_Labels and Case_Location.
23701
23702         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
23703         (Library_Symbol_File needs to be defined).
23704
23705         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
23706         and Case_Location If Check_All_Labels is True, check that all values of
23707         the string type are used, and output warning(s) if they are not.
23708
23709         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
23710         and Case_Location.
23711
23712         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
23713
23714         * gnat_ugn.texi: Update documentation about the library directory in
23715         Library Projects.
23716
23717         * makegpr.adb (Display_Command): In verbose mode, also display the
23718         value of the CPATH env var, when the compiler is gcc.
23719         (Initialize): Change the Scan_Args while loop to a for loop
23720         (Compile_Individual_Sources): Change directory to object directory
23721         before compilations.
23722
23723         * symbols.ads: New symbol policy Restricted.
23724
23725 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
23726
23727         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
23728         is now taken care of internally in the Exception_Propagation package
23729         and does not require clients assistance any more.
23730
23731         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
23732         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
23733         functions. Helpers to maintain a predicate required in the handling of
23734         occurrence transfer between tasks.
23735         This is now handled internally and does not require clients assistance
23736         for the setup/propagate separation anymore.
23737         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
23738         allocation strategy, handle the Setup_And_Not_Propagated predicate and
23739         document.
23740
23741         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
23742         raise_after_setup, now that everything is handled internally within the
23743         setup/propagation engine.
23744
23745 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
23746
23747         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
23748         Add additional conditions for the case of an actual being a simple
23749         name or literal. Improve inlining by preventing the generation
23750         of temporaries with a short lifetime (one use).
23751
23752 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
23753
23754         PR ada/15587
23755         * einfo.ads: Minor comment updates for Has_Completion and
23756         E_Constant list of flags.
23757
23758         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
23759         and constant redeclarations now set the Has_Completion flag of their
23760         defining identifiers.
23761
23762         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
23763         Inspect_Deferred_Constant_Completion.
23764         Used to detect private deferred constants that have not been completed
23765         either by a constant redeclaration or pragma Import. Emits error message
23766         "constant declaration requires initialization expression".
23767
23768         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
23769         completes a deferred constant.
23770
23771 2004-06-11  Geert Bosch  <bosch@gnat.com>
23772
23773         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23774
23775         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23776         calculating exponent for scaling denormal numbers.
23777         (Leading_Part): Properly raise Constraint_Error for zero or negative
23778         Adjustment.
23779         (Remainder): Properly raise Constraint_Error for zero divisor.
23780
23781 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
23782
23783         * sem_util.adb: Minor reformatting.
23784
23785         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
23786         dereference when accessing the entry parameter record.
23787         (Check_Array_Type): Always check for possible implicit dereference.
23788         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23789         Abort if a pointer is still present (denoting that an implicit
23790         dereference was left in the tree by the front-end).
23791
23792         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
23793         dereference when accessing the entry parameter record.
23794         (Check_Array_Type): Always check for possible implicit dereference.
23795         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23796         Abort if a pointer is still present (denoting that an implicit
23797         dereference was left in the tree by the front-end).
23798
23799 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
23800
23801         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
23802         message, like the compiler itself does. Easier to parse the output.
23803
23804         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
23805
23806         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
23807         be base names, and not includes directories.
23808
23809 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
23810
23811         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
23812         so that dependencies are properly taken into account by make.
23813
23814 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
23815
23816         PR ada/15622
23817         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
23818         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
23819
23820 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
23821
23822         * Makefile.in (install-gnatlib): install target-specific run-time files.
23823
23824         * Make-lang.in: Remove obsolete targets.
23825
23826 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
23827
23828         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
23829         specification, to catch misuses of program unit names.
23830
23831         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
23832         superfluous conversions in an instance.
23833
23834 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
23835
23836         PR ada/15403
23837         * sem_ch12.adb (Save_References): If operator node has been folded to
23838         enumeration literal, associated_node must be discarded.
23839
23840 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
23841
23842         * s-stchop-vxworks.adb: Add required pragma Convention to
23843         Task_Descriptor because it is updated by a C function.
23844
23845 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
23846
23847         PR ada/15568
23848         * Makefile.in: Remove target specific SO_OPT on IRIX
23849
23850 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23851
23852         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
23853         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
23854         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
23855         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
23856         (STMT_STMT, USE_STMT): New statement codes.
23857         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
23858         * ada-tree.h: Reflect above changes.
23859         (struct tree_loop_id): Deleted.
23860         (union lang_tree_node, struct lang_decl, struct lang_type):
23861         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
23862         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
23863         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
23864         (IS_ADA_STMT): New macro.
23865         * decl.c (annotate_decl_with_node): New function.
23866         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
23867         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
23868         Call add_stmt_with_node to do needed assignments.
23869         Add call to update setjmp buffer directly, not via EXPR_STMT.
23870         (maybe_variable): Argment GNAT_NODE deleted.
23871         * gigi.h (maybe_variable): Likewise.
23872         (make_transform, add_stmt_with_node, set_block_for_group): New.
23873         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
23874         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
23875         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
23876         (set_lineno, set_lineno_from_sloc): Likewise.
23877         (record_code_position, insert_code_for): Likewise.
23878         (gnat_poplevel): Now returns void.
23879         (end_subprog_body): Now takes argument.
23880         * misc.c (cgraph.h, tree-inline.h): New includes.
23881         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
23882         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
23883         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
23884         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
23885         (gnat_parse_file): Don't set immediate_size_expand.
23886         Call cgraph functions.
23887         (gnat_expand_expr): Remove most cases.
23888         (record_code_position, insert_code_for): Remove from here.
23889         * trans.c (toplev.h, tree-gimple.h): Now included.
23890         (discard_file_names): Deleted.
23891         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
23892         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
23893         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
23894         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
23895         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
23896         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
23897         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
23898         (set_block_for_group, add_stmt_list): Likewise.
23899         (start_stmt_group): Renamed from start_block_stmt.
23900         (end_stmt_group): Likewise, from end_block_stmt.
23901         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
23902         (gigi): Don't set discard_file_names or call set_lineno.
23903         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
23904         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
23905         Numerous changes throughout to reflect new names and complete
23906         function-at-a-time implementation.
23907         (gnat_expand_stmt): Delete or comment out all cases.
23908         (process_inlined_subprograms): Use add_stmt.
23909         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
23910         call set_lineno; also remove unneeded block handling.
23911         (process_type): Remove unneeded block handling.
23912         (build_unit_elab): Remove calls to deleted functions.
23913         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
23914         (tree-dump.h): Likewise.
23915         (struct ada_binding_level): Add field jmpbuf_decl.
23916         (gnat_define_builtin, gnat_install_builtins): New.
23917         (gnat_gimplify_function, gnat_finalize): Likewise.
23918         (gnat_poplevel): No longer return BLOCK, set it instead.
23919         Remove code dealing with nested functions.
23920         (gnat_init_decl_processing): Also set size_type_node.
23921         Call gnat_install_builtins.
23922         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
23923         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
23924         Remove special-case for "main".
23925         (end_subprog_body): Add arg and rework for tree-ssa.
23926         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
23927         Add case for BOOLEAN_TYPE.
23928         * utils2.c (rtl.h): Now include.
23929         (build_call_raise): Test Debug_Flag_NN directly.
23930         (build_call_alloc_dealloc): Don't use local stack allocation for now.
23931         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
23932         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
23933
23934 2004-06-07  Robert Dewar  <dewar@gnat.com>
23935
23936         * a-direct.ads, einfo.ads: Minor comment updates
23937
23938         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
23939         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23940         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
23941         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
23942         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
23943
23944         * s-interr-sigaction.adb: Remove unreferenced variable
23945         (Attached_Interrupts).  Minor reformatting.
23946         Avoid use of variable I (replace by J).
23947
23948         * par-ch10.adb: Fix text of one error message
23949
23950         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
23951         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
23952         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
23953         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
23954         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
23955         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
23956         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
23957         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
23958         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
23959         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
23960         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
23961         2005 support.
23962
23963 2004-06-07  Doug Rupp  <rupp@gnat.com>
23964
23965         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
23966
23967         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
23968
23969         * mlib-tgt-vms-ia64.adb: New file.
23970
23971         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
23972         Add mlib-tgt-vms-ia64.adb
23973         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
23974         Move to alpha specific ifeq section.
23975         Add VMS specific versions of symbols.adb
23976         Renaming of 5q vms files.
23977
23978         * 5qsystem.ads renamed to system-vms_64.ads.
23979
23980 2004-06-07  Vincent Celier  <celier@gnat.com>
23981
23982         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
23983         explain that when a time of day corresponding to the non existing hour
23984         on the day switching to DST is specified, Split may return a different
23985         value for Seconds.
23986
23987         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
23988         to GNAT PRETTY.
23989
23990         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
23991         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
23992
23993         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
23994         to False.
23995         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
23996         the linking options.
23997         (Build_Library.Check_Libs): On VMS, if there is a dependency on
23998         g-trasym.ads, set Gtrasymobj_Needed to True.
23999
24000         * prj-attr.adb: Add new package Metrics for gnatmetric
24001
24002         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
24003         canonical case to take into account files with upper case characters on
24004         Windows.
24005         (Ada_Check): Load the reference symbol file name in the name buffer to
24006         check it, not the symbol file name.
24007
24008         * snames.ads, snames.adb: Add standard name Metrics (name of project
24009         file package for gnatmetric).
24010
24011         * vms_conv.ads: Add Metric to Comment_Type
24012
24013         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
24014
24015         * vms_data.ads: Add qualifiers for GNAT METRIC
24016
24017         * makegpr.adb (Link_Executables): Take into account the switches
24018         specified in package Linker of the main project.
24019
24020 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
24021
24022         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
24023         the index of the last element is Units.Last, not Units.Table'Last
24024         (which is usually not a valid index within the actually allocated
24025         storage for the table).
24026
24027         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
24028         determines whether to generate a call to a checked storage pool
24029         Dereference action.
24030         Generate such a call only for a dereference that either comes from
24031         source, or is the result of rewriting a dereference that comes from
24032         source.
24033
24034 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
24035
24036         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
24037
24038 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
24039
24040         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
24041         file level, elaborate the stride for inner dimensions in alignment
24042         units, not bytes.
24043
24044         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
24045         in a comment.
24046
24047 2004-06-07  Javier Miranda  <miranda@gnat.com>
24048
24049         * exp_ch6.adb: Correct wrong modification in previous patch
24050
24051 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
24052
24053         * g-trasym.ads: Corrected comment to properly reflect level of support
24054         on VMS.
24055
24056 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
24057
24058         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
24059         includes case of a variable referenced on the left hand side of an
24060         assignment, therefore remove redundant code. Variables and prefixes of
24061         indexed or selected components are now marked as referenced on left
24062         hand side. Warnings are now properly emitted when variables or prefixes
24063         are assigned but not read.
24064
24065         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
24066         left hand side referenced variables. Private access types do not
24067         produce the warning "variable ... is assigned but never read".
24068         Add also additional checks to left hand side referenced variables.
24069         Aliased, renamed objects and access types do not produce the warning
24070         "variable ... is assigned but never read" since other entities may read
24071         the memory location.
24072
24073 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
24074
24075         * Makefile.in: In the powerpc/vxworks-specific section, restore
24076         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
24077         by mistake).
24078
24079 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
24080
24081         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
24082         predefined operators.
24083         Removes spurious type errors from g-trasym-vms.adb.
24084
24085         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
24086         distinct from the operator appearing in the source, call appropriate
24087         routine to insert conversions when needed, and complete resolution of
24088         node.
24089         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
24090         interpretations for rewritten right operand.
24091         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
24092         the other operand is overloaded and the context is a type conversion.
24093
24094 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24095
24096         * ada-tree.def (BLOCK_STMT): Now has two operands.
24097         (BREAK_STMT): New.
24098
24099         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
24100
24101         * gigi.h: (gnat_poplevel): Now returns a tree.
24102
24103         * trans.c (end_block_stmt): Add arg; all callers changed.
24104         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
24105         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
24106         (add_stmt): Set TREE_TYPE.
24107         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
24108         (gnat_expand_stmt, case BREAK_STMT): New case.
24109
24110         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
24111
24112 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
24113
24114         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
24115         procedure Set_Stack_Size that is not needed.
24116
24117 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
24118
24119         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
24120         used for gnatpp input file and for the files upon which it depends
24121
24122 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
24123
24124         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24125
24126 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
24127
24128         * gnatvsn.ads: Bump version numbers appropriately.
24129         Add new build type.
24130
24131 2004-06-07  Pascal Obry  <obry@gnat.com>
24132
24133         * gnat_ugn.texi: Improve comments about imported names and link names
24134         on Windows. Add a note about the requirement to use -k gnatdll's option
24135         when working with a DLL which has stripped stdcall symbols (no @nn
24136         suffix).
24137
24138 2004-05-27  Vincent Celier  <celier@gnat.com>
24139
24140         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
24141         COMMENTS_LAYOUT=UNTOUCHED
24142
24143         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
24144         symbols-vms-alpha.adb
24145
24146 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
24147
24148         * sem.ads: Clarify documentation on checks suppression.
24149
24150         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
24151
24152 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
24153
24154         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
24155         the case of multiple derivations.
24156         (Is_Object_Reference): For a selected component, verify that the prefix
24157         is itself an object and not a value.
24158
24159         * sem_ch12.adb (Same_Instantiated_Constant): New name for
24160         Same_Instantiated_Entity.
24161         (Same_Instantiated_Variable): Subsidiary to
24162         Check_Formal_Package_Instance, to recognize actuals for in-out generic
24163         formals that are obtained from a previous formal package.
24164         (Instantiate_Subprogram_Body): Emit proper error when
24165         generating code and the proper body of a stub is missing.
24166
24167         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
24168         has a universal interpretation, do the disambiguation here.
24169
24170         * exp_ch4.adb (Expand_N_Type_Conversion,
24171         Expand_N_Unchecked_Type_Conversion): Special handling when target type
24172         is Address, to avoid typing anomalies when Address is a visible integer
24173         type.
24174
24175         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
24176         to determine whether a subprogram should not be marked Pure, even when
24177         declared in a pure package.
24178
24179 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
24180
24181         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
24182
24183         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
24184         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
24185         Update the documentation about the Ravenscar profile, following the
24186         definition found in AI-249.
24187
24188         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
24189         setting the Profile (Ravenscar). This must be done in addition to
24190         setting the required restrictions.
24191
24192         * rtsfind.ads: Add the set of operations defined in package
24193         Ada.Interrupts.
24194
24195         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
24196         restriction.
24197
24198 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
24199
24200         lang-specs.h: Always require -c or -S and always redirect to /dev/null
24201         if -gnatc or -gnats is passed.
24202
24203 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
24204
24205         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
24206         a significant reference. Warnings are now properly emitted when a
24207         discriminated type is not referenced.
24208
24209         * lib-xref.adb (Generate_Reference): A deferred constant completion,
24210         record representation clause or record type discriminant does not
24211         produce a reference to its corresponding entity. Warnings are now
24212         properly emitted when deferred constants and record types are not
24213         referenced.
24214
24215 2004-05-27  Geert Bosch  <bosch@gnat.com>
24216
24217         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
24218         Fixes ACATS Annex G tests.
24219
24220 2004-05-27  Robert Dewar  <dewar@gnat.com>
24221
24222         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
24223         handling WITH
24224
24225 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
24226
24227         * s-interr.adb (Server_Task): Take into account case of early return
24228         from sigwait under e.g. linux.
24229
24230 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
24231
24232         * gnat_ugn.texi: Add description for the new gnatpp options:
24233          -rnb - replace the original source without creating its backup copy
24234          -c0 - do not format comments
24235
24236 2004-05-24  Geert Bosch  <bosch@gnat.com>
24237
24238         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
24239         with 192 bits of precision, sufficient to reduce a double-extended
24240         arguments X with a maximum relative error of T'Machine_Epsilon, for X
24241         in -2.0**32 .. 2.0**32.
24242         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
24243         reduction by the processor, which only uses a 68-bit approximation of
24244         Pi.
24245         (Tan): Always reduce arguments and compute function either using
24246         the processor's fptan instruction, or by dividing sin and cos as needed.
24247
24248 2004-05-24  Doug Rupp  <rupp@gnat.com>
24249
24250         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
24251         gcc error on 32/64 bit VMS.
24252
24253 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
24254
24255         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
24256         since this is what we get for stack overflows although not documented
24257         as such.
24258         Document the issues which may require adjustments to our signal
24259         handlers.
24260
24261 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
24262
24263         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
24264         enclosing dynamic scope if the instantiation is within a generic unit.
24265
24266 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
24267
24268         * exp_dbug.ads: Fix typo.
24269
24270         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
24271         Rename it to its proper name: system-linux-ia64.ads
24272         (stamp-gnatlib1): Remove extra target specific run time files when
24273         setting up the rts directory.
24274
24275 2004-05-24  Javier Miranda  <miranda@gnat.com>
24276
24277         * einfo.ads, einfo.adb (Limited_Views): Removed.
24278         (Limited_View): New attribute that replaces the previous one. It is
24279         now a bona fide package with the limited-view list through the
24280         first_entity and first_private attributes.
24281
24282         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
24283         limited-private-with clause.
24284         (Install_Limited_Withed_Unit): Install the private declarations of a
24285         limited-private-withed package. Update the installation of the shadow
24286         entities according to the new structure (see Build_Limited_Views)
24287         (Build_Limited_Views): Replace the previous implementation of the
24288         limited view by a package entity that references the first shadow
24289         entity plus the first shadow private entity (required for limited-
24290         private-with clause)
24291         (New_Internal_Shadow_Entity): Code cleanup.
24292         (Remove_Limited_With_Clause): Update the implementation to undo the
24293         new work carried out by Build_Limited_Views.
24294         (Build_Chain): Complete documentation.
24295         Replace Ada0Y by Ada 0Y in comments
24296         Minor reformating
24297
24298         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
24299         types the level of accessibility depends on the enclosing type
24300         declaration.
24301
24302         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
24303         entities. Complete documentation of previous change.
24304
24305 2004-05-24  Robert Dewar  <dewar@gnat.com>
24306
24307         * namet.adb: Minor reformatting
24308         Avoid use of name I (replace by J)
24309         Minor code restructuring
24310
24311         * sem_ch6.adb: Minor reformatting
24312
24313         * lib-writ.adb: Do not set restriction as active if this is a
24314         Restriction_Warning case.
24315
24316         * sem_prag.adb: Reset restriction warning flag if real pragma
24317         restriction encountered.
24318
24319         * s-htable.adb: Minor reformatting
24320         Change rotate count to 3 in Hash (improves hash for small strings)
24321
24322         * 5qsystem.ads: Add comments for type Address (no literals allowed).
24323
24324         * gnat_ugn.texi: Add new section of documentation "Code Generation
24325         Control", which describes the use of -m switches.
24326
24327 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
24328
24329         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
24330         through the DECL_INITIAL for renamed variables.
24331
24332 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
24333
24334         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
24335
24336 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
24337
24338         * exp_dbug.ads: Correct comments concerning handling of overloading,
24339         since we no longer use $ anymore.
24340
24341 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
24342
24343         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
24344         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
24345         with illegal subunits.
24346
24347 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
24348
24349         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
24350         body with front-end inlining enabled, check whether an inline pragma
24351         appears immediately after the body and applies to it.
24352
24353         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
24354         enabled and the pragma appears after the body of the subprogram.
24355
24356 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24357
24358         Part of function-at-a-time conversion
24359
24360         * misc.c (adjust_decl_rtl): Deleted.
24361         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
24362         Define.
24363
24364         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
24365         (add_decl_stmt, add_stmt, block_has_vars): New functions.
24366         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
24367
24368         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
24369         when making a decl.
24370         (gnat_to_gnu_entity): Likewise.
24371         Use add_stmt to update setjmp buffer.
24372         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
24373         flush_addressof.
24374         No longer call adjust_decl_rtl.
24375         (DECL_INIT_BY_ASSIGN_P): New macro.
24376         (DECL_STMT_VAR): Likewise.
24377
24378         * trans.c (gigi): Call start_block_stmt to make the outermost
24379         BLOCK_STMT.
24380         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
24381         Call start_block_stmt and end_block_stmt temporarily.
24382         Use gnat_expand_stmt instead of expand_expr_stmt.
24383         (add_decl_stmt): New function.
24384         (tree_transform): Call it.
24385         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
24386         (end_block_stmt): Set type and NULL_STMT.
24387         (gnat_expand_stmt): Make recursize call instead of calling
24388         expand_expr_stmt.
24389         (gnat_expand_stmt, case DECL_STMT): New case.
24390         (set_lineno_from_sloc): Do nothing if global.
24391         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
24392         (start_block_stmt, add_stmt, end_block_stmt): New functions.
24393         (build_block_stmt): Call them.
24394         (gnat_to_code): Don't expand NULL_STMT.
24395         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
24396         args.
24397         (tree_transform): Likewise.
24398         (tree_transform, case N_Null_Statement): Return NULL_STMT.
24399         (gnat_expand_stmt, case NULL_STMT): New case.
24400         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
24401         IF_STMT_TRUE.
24402
24403         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
24404         TREE_ADDRESSABLE.
24405
24406         * utils.c (create_var_decl): Do not call expand_decl or
24407         expand_decl_init.
24408         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
24409         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
24410         here.
24411         (struct e_stack): Add chain_next to GTY.
24412         (struct binding_level): Deleted.
24413         (struct ada_binding_level): New struct.
24414         (free_block_chain): New.
24415         (global_binding_level, clear_binding_level): Deleted.
24416         (global_bindings_p): Rework to see if no chain.
24417         (kept_level_p, set_block): Deleted.
24418         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
24419         new data structure and work directly on BLOCK node.
24420         (gnat_poplevel): Similarly.
24421         (get_decls): Look at BLOCK_VARS.
24422         (insert_block): Work directly on BLOCK node.
24423         (block_has_var): New function.
24424         (pushdecl): Rework for new binding structures.
24425         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
24426         poplevel.
24427         (build_subprog_body): Likewise.
24428         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
24429
24430         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
24431
24432         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
24433         (DECL_STMT_VAR): Likewise.
24434
24435 2004-05-17  Robert Dewar  <dewar@gnat.com>
24436
24437         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
24438         procedure
24439
24440         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
24441         of restriction synonyums by using
24442         Restrict.Process_Restriction_Synonyms.
24443
24444         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
24445
24446         * s-restri.ads (Tasking_Allowed): Correct missing comment
24447
24448         * s-rident.ads: Add entries for restriction synonyms
24449
24450         * ali.adb: Fix some problems with badly formatted ALI files that can
24451         result in infinite loops.
24452
24453         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
24454         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
24455         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24456         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
24457         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
24458         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
24459         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
24460         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
24461         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
24462         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
24463         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
24464         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
24465         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
24466         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
24467         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24468         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24469         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
24470         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24471         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
24472         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
24473         to Task_Id (minor cleanup).
24474
24475 2004-05-17  Vincent Celier  <celier@gnat.com>
24476
24477         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
24478         directory separator.
24479
24480         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
24481         project being extended, if Languages is not declared in extending
24482         project.
24483
24484 2004-05-17  Javier Miranda  <miranda@gnat.com>
24485
24486         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
24487         limited view of a visible sibling.
24488
24489 2004-05-14  Robert Dewar  <dewar@gnat.com>
24490
24491         * gnat_ugn.texi: Minor change to -gnatS documentation
24492
24493         * sprint.adb: Remove some instances of Assert (False) and for this
24494         purpose replace them by output of a ??? string.
24495
24496         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
24497         Assert (False).
24498
24499         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
24500         flag processing. This was suppressing required dependencies in
24501         No_Run_Time mode and is not needed since the binder does not generate
24502         references for things in libgnat anyway.
24503
24504         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
24505         warning.
24506
24507 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
24508
24509         * gnat_ugn.texi: Document AIX-specific issue with initialization of
24510         resolver library.
24511
24512         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
24513         action for the case of an actual parameter in an init proc call.
24514
24515 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
24516
24517         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
24518         subtype, check visible entities in base type.
24519
24520         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
24521         actions if the object is a renaming.
24522
24523         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
24524         Check_Formal_Package_Instance, to determine more precisely when the
24525         formal and the actual denote the same entity.
24526
24527 2004-05-14  Javier Miranda  <miranda@gnat.com>
24528
24529         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
24530
24531         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
24532         corresponding to a private_with must be removed from visibility; it
24533         will be made visible later, just before we analyze the private part of
24534         the package.
24535         (Check_Private_Child_Unit): Allow private_with clauses in public
24536         siblings.
24537         (Install_Siblings): Make visible the private entities of private-withed
24538         siblings.
24539         (Install_Withed_Unit): Do not install the private withed unit if we
24540         are compiling a package declaration and the Private_With_OK flag was
24541         not set by the caller. These declarations will be installed later,
24542         just before we analyze the private part of the package.
24543
24544         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
24545         during the evaluation of the expression that initializes the object,
24546         decorate it with the expected type to avoid cascade errors.
24547         Code cleanup.
24548
24549         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
24550         subprogram we have to install the private_with clauses after its
24551         specification has been analyzed (as documented in AI-262.TXT).
24552
24553         * sem_ch8.adb (Has_Private_With): New function. Determines if the
24554         current compilation unit has a private with on a given entity.
24555         (Find_Direct_Name): Detect the Beaujolais problem described in
24556         AI-262.TXT
24557
24558         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
24559         provides the functionality of the function Is_Ancestor that was
24560         previously available in sem_ch10. It has been renamed to avoid
24561         overloading.
24562
24563         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
24564
24565 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24566
24567         * utils.c (build_vms_descriptor): Use SImode pointers.
24568
24569 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
24570
24571         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
24572
24573 2004-05-14  GNAT Script  <nobody@gnat.com>
24574
24575         * Make-lang.in: Makefile automatically updated
24576
24577 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
24578
24579         Renaming of target specific files for clarity
24580
24581         * Makefile.in: Rename GNAT target specific files.
24582
24583         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
24584         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
24585         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
24586         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
24587         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
24588         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
24589         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
24590         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
24591         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
24592         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
24593         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
24594         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
24595         51osinte.adb, 51osinte.ads, 51system.ads,
24596         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
24597         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
24598         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
24599         56tpopsp.adb, 57system.ads, 58system.ads,
24600         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
24601         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
24602         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
24603         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
24604         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
24605         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
24606         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
24607         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
24608         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
24609         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
24610         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
24611         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
24612         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
24613         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
24614         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
24615         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
24616         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
24617         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
24618         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
24619         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
24620         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
24621         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
24622         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
24623         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
24624         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
24625         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
24626         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
24627         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
24628         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
24629         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
24630         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
24631         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
24632         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
24633         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
24634         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
24635         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
24636         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
24637         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
24638         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
24639         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
24640
24641         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
24642         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
24643         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
24644         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
24645         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
24646         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
24647         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
24648         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
24649         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
24650         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
24651         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
24652         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
24653         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
24654         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
24655         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
24656         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
24657         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
24658         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
24659         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
24660         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
24661         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
24662         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
24663         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
24664         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
24665         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
24666         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
24667         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
24668         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
24669         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
24670         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
24671         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
24672         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
24673         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
24674         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
24675         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
24676         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
24677         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
24678         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
24679         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
24680         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
24681         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
24682         s-osinte-vms.ads, s-osinte-vxworks.adb,
24683         s-osinte-vxworks.ads, s-osprim-mingw.adb,
24684         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
24685         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
24686         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
24687         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
24688         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
24689         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24690         s-stchop-vxworks.adb, s-taprop-dummy.adb,
24691         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
24692         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
24693         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
24694         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
24695         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
24696         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
24697         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
24698         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
24699         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
24700         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
24701         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
24702         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
24703         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
24704         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
24705         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
24706         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
24707         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
24708         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
24709         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
24710         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
24711         system-irix-o32.ads, system-linux-x86_64.ads,
24712         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24713         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
24714         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
24715         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
24716         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
24717         system-vxworks-mips.ads, system-vxworks-ppc.ads,
24718         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
24719         above.
24720
24721 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
24722
24723         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
24724
24725 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
24726
24727         Merge from tree-ssa-20020619-branch.
24728
24729         * config-lang.in (boot_language, build_by_default): Set
24730         to no.
24731         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
24732         (max_size): Add static chain op for call_expr.
24733
24734 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
24735
24736         PR target/15331
24737         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
24738
24739 2004-05-11  Roger Sayle  <roger@eyesopen.com>
24740
24741         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
24742         COND_EXPR.
24743
24744 2004-05-10  Doug Rupp  <rupp@gnat.com>
24745
24746         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
24747         system.aux_dec.
24748
24749         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
24750
24751         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
24752
24753         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
24754         Fixes undefined symbols in IA64 gnatlib.
24755
24756         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
24757
24758         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
24759         Short_Address). This will be moved to system.auxdec.
24760
24761 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
24762
24763         * sem_util.adb: Replace test for presence of a node that is always
24764         present with a call to Discard_Node.
24765
24766         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
24767         Analyze on the library unit node after generation of distribution stub
24768         constructs.  The call was a no-op because Unit_Node has already been
24769         Analyzed, and the tree fragments for the distribution stubs are
24770         analyzed as they are inserted in Exp_Dist.
24771         Update comment regarding to distribution stubs to reflect that we
24772         do not generate stub in separate files anymore.
24773
24774         * einfo.ads: Clarify the fact that a tagged private type has the
24775         E_Record_Type_With_Private Ekind.
24776
24777         * erroutc.adb: Minor reformatting
24778
24779         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
24780         values if line length is increased using -gnatyM (noticed during code
24781         reading).
24782
24783         * eval_fat.adb: Minor reformatting
24784         Put spaces around exponentiation operator
24785
24786 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
24787
24788         PR ada/15005
24789         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
24790         has been rewritten as an explicit dereference, retrieve type of
24791         original node to check for possibly unconstrained record type.
24792
24793 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
24794
24795         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
24796         overriding, use the operation of the parent unconditionally.
24797
24798         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
24799         operation when either operand is a literal, to avoid further
24800         ambiguities.
24801
24802         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
24803         overridden by a previous explicit declaration, mark the previous entity
24804         as overriding.
24805
24806         * sem_disp.adb (Check_Dispatching_Operation): New predicate
24807         Is_Visibly_Controlled, to determine whether a declaration of a
24808         primitive control operation for a derived type overrides an inherited
24809         one. Add warning if the explicit declaration does not override.
24810
24811 2004-05-10  Vincent Celier  <celier@gnat.com>
24812
24813         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
24814         some cases when the sources are no longer present.
24815
24816         * make.adb (Collect_Arguments): Fail if an external source, not part
24817         of any project need to be compiled, when switch -x has not been
24818         specified.
24819
24820         * makeusg.adb: Document new switch -x
24821
24822         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
24823         defaulted to False.
24824
24825         * switch-m.adb (Scan_Make_Switches): New switch -x
24826
24827         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
24828         gnatmake switch -x.
24829
24830         * gnat_ugn.texi: Document new gnatmake switch -x
24831
24832 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
24833
24834         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
24835
24836         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
24837         (process_attributes): Likewise.
24838
24839 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
24840
24841         * s-inmaop.ads: Fix spelling mistake in one of the comments.
24842
24843 2004-05-10  Robert Dewar  <dewar@gnat.com>
24844
24845         * gnat_ugn.texi: Document that for config pragma files, the maximum
24846         line length is always 32767.
24847
24848         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
24849         literals is now allowed.
24850
24851         * gnat-style.texi: Remove statement about splitting long lines before
24852         an operator rather than after, since we do not follow this rule at all.
24853         Clarify rule (really lack of rule) for spaces around exponentiation
24854
24855         * sem_elim.adb: Allow concatenation of string literals as well as a
24856         single string literal for pragma arguments.
24857
24858         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
24859
24860         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
24861         written for append case.
24862
24863         * frontend.adb: Changes to avoid checking max line length in config
24864         pragma files.
24865
24866         * g-os_lib.ads: Minor reformatting
24867
24868         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
24869         wrong in any case. Instead use standard value. Noticed during code
24870         reading.
24871
24872         * opt.ads (Max_Line_Length): New field, used to implement removal of
24873         limitation on length of lines when scanning config pragma files.
24874
24875         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
24876         makeutl.ads, makeutl.adb: Minor reformatting
24877
24878         * scn.adb: Do not check line length while scanning config pragma files
24879         Do not check line length while scanning out license information
24880
24881         * scng.adb: Changes to avoid line length checks while parsing config
24882         pragma files.
24883
24884 2004-05-10  GNAT Script  <nobody@gnat.com>
24885
24886         * Make-lang.in: Makefile automatically updated
24887
24888 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
24889
24890         * osint.adb (Find_Program_Name): Fix handling of VMS version
24891         number.
24892
24893 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
24894
24895         * g-os_lib.ads (Invalid_Time): New constant
24896
24897         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
24898         return OS_Time instead of time_t to match what is imported by Ada.
24899         Now return -1 if the file doesn't exist, instead of a random value
24900
24901 2004-05-05  Robert Dewar  <dewar@gnat.com>
24902
24903         * usage.adb: Add line for -gnatR?s switch
24904
24905         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
24906
24907         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
24908         and for Match (Data_First, Data_last)
24909
24910         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
24911         written when we are dealing with multi-unit files.
24912
24913 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
24914
24915         * Makefile.in: Remove unused targets and variables.
24916
24917 2004-05-05  Vincent Celier  <celier@gnat.com>
24918
24919         * switch-m.adb: New gnatmake switch -eI
24920
24921         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
24922         of new gnatmake switch -eInnn.
24923
24924         * makegpr.adb: Take into account new parameters Index and Src_Index in
24925         Prj.Util.
24926
24927         * clean.adb: Implement support for multi-unit sources, including new
24928         switch -i.
24929
24930         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
24931         Src_Index.
24932
24933         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
24934         (Extract_From_Q): New out parameter Index
24935         (Mark, Is_Marked): Subprograms moved to Makeutl
24936         (Switches_Of): New parameter Source_Index
24937         (Add_Switch): New parameter Index
24938         (Check): New parameter Source_Index
24939         (Collect_Arguments): New parameter Source_Index
24940         (Collect_Arguments_And_Compile): New parameter Source_Index
24941         (Compile): New parameter Source_Index
24942         Put subprograms in alphabetical order
24943         Add support for multi-source sources, including in project files.
24944
24945         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
24946         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
24947         Make.
24948
24949         * makeusg.adb: New gnatmake switch -eInnn
24950
24951         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
24952         Prj.Util.Value_Of.
24953
24954         * opt.ads (Main_Index): New variable, defaulted to 0.
24955
24956         * osint.ads, osinte.adb (Add_File): New parameter Index
24957         (Current_Source_Index): New function
24958
24959         * prj.adb: Take into account new components Index and Src_Index
24960
24961         * prj.ads (String_Element): New component Index
24962         (Variable_Value): New component Index
24963         (Array_Element): New component Src_Index
24964
24965         * prj-attr.adb: Indicate that optional index may be specified for
24966         attributes Main, Executable, Spec, Body and some of Switches.
24967
24968         * prj-attr.ads (Attribute_Kind): New values for optional indexes
24969         (Attribute_Record): New component Optional_Index
24970
24971         * prj-com.ads (File_Name_Data): New component Index
24972
24973         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
24974
24975         * prj-env.adb (Put): Output optional index
24976
24977         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
24978         attributes Spec and Body.
24979
24980         * prj-nmsc.adb: Process optional indexes
24981
24982         * prj-pp.adb: Ouput "at" for optional indexes
24983
24984         * prj-proc.adb: Take into account optional indexes
24985
24986         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
24987         Optional_Index. For string literal,
24988         process optional index when Optional_Index is True.
24989         (Parse_Expresion): New Boolean parameter Optional_Index
24990
24991         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
24992         (Set_Source_Index_Of): New procedure
24993
24994         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
24995         index.
24996
24997         * prj-util.ads (Executable_Of): New parameter Index
24998         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
24999         New parameter Src_Index, defaulted to 0.
25000
25001 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
25002
25003         PR ada/15257
25004         * sem_ch3.adb (Access_Definition): If this is an access parameter
25005         whose designated type is imported through a limited_with clause, do
25006         not add the enclosing subprogram to the list of private dependents of
25007         the type.
25008
25009 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
25010
25011         PR ada/15258
25012         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
25013         a limited_with clause, and the other is its non-limited view.
25014
25015 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
25016
25017         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
25018
25019         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
25020         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
25021         Stand.Boolean_Literals to produce references to entities
25022         Standard_False and Standard_True from compile-time computed boolean
25023         values.
25024
25025         * stand.ads (Boolean_Literals): New variable, provides the entity
25026         values for False and True, for use by the expander.
25027
25028 2004-05-05  Doug Rupp  <rupp@gnat.com>
25029
25030         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
25031         5vinmaop.adb: Unchecked convert Short_Address vice Address
25032
25033         * adaint.c, raise.c: Caste CRTL function return value
25034         to avoid gcc error on 32/64 bit IVMS.
25035
25036         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
25037         target = IA64/VMS.
25038
25039         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
25040
25041         * 5qsystem.ads (Address): Declare as Long_Integer
25042         (Short_Address): Declare as 32 bit subtype of Address
25043         Declare  abstract address operations to avoid gratuitous ambiguities.
25044
25045 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
25046
25047         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
25048         instead of the old Boolean_Entry_Barriers.
25049         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
25050
25051 2004-05-05  GNAT Script  <nobody@gnat.com>
25052
25053         * Make-lang.in: Makefile automatically updated
25054
25055 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
25056
25057         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
25058
25059 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
25060
25061         PR ada/15152
25062         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
25063         alone. Replacing object references by literals is inappropriate in a
25064         so low level context.
25065
25066 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
25067
25068         * a-exexpr.adb: Add comments
25069
25070 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
25071
25072         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
25073         declare the Ancestor_Tags array in Type_Specific_Data with a small size
25074         without risking a bounds check error when accessing one of its
25075         components.
25076         (Type_Specific_Data): Define Ancestor_Tags as a small array.
25077         This prevents us from hitting a limitation during the debug info
25078         generation when using stabs.
25079
25080         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
25081         small array.
25082         This prevents us from hitting a limitation during the debug info
25083         generation when using stabs.
25084
25085 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
25086
25087         lang-specs.h: Remove -gnatz* from specs.
25088
25089 2004-05-03  Vincent Celier  <celier@gnat.com>
25090
25091         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
25092
25093         * Make-lang.in, Makefile.in: Add gprmake
25094
25095 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
25096
25097         * sem_aggr.adb: Fix typo in comment.
25098
25099 2004-05-03  Robert Dewar  <dewar@gnat.com>
25100
25101         * make.adb: Minor reformatting
25102
25103         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
25104
25105         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
25106         so that it works when address is not a private type.
25107
25108         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
25109         properly with rewritten unchecked conversions. This prevents
25110         order-of-elaboration issues that can otherwise arise.
25111         (Minimum_Size): Don't check size of access types under VMS
25112
25113         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
25114         interpretations of integer literals as type System.Address.
25115
25116         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
25117         (Is_Descendent_Of): New function
25118
25119 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
25120
25121         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25122         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
25123         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
25124
25125         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
25126         of the old Max_Entry_Queue_Depth.
25127
25128         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25129         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
25130         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
25131
25132         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
25133         New entry for proper handling of Max_Entry_Queue_Depth.
25134         New entry for proper handling of No_Dynamic_Interrupts.
25135
25136         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
25137         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25138         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
25139         the GNAT specific restriction Max_Entry_Queue_Depth.
25140         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
25141         the GNAT specific restriction No_Dynamic_Interrupts.
25142
25143         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
25144         instead of the old Boolean_Entry_Barriers.
25145         Use the new restriction No_Dynamic_Attachment instead of the old
25146         No_Dynamic_Interrupts.
25147
25148         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
25149         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25150
25151         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
25152         of the old Max_Entry_Queue_Depth.
25153
25154 2004-05-03  GNAT Script  <nobody@gnat.com>
25155
25156         * Make-lang.in: Makefile automatically updated
25157
25158 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
25159
25160         * checks.adb (Enable_Range_Check): If the prefix of an index component
25161         is an access to an unconstrained array, perform check unconditionally.
25162
25163 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25164
25165         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
25166         Component_Clause.
25167
25168 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
25169
25170         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
25171         alternate stack setting. There was no support for the tasking cases
25172         and the changes eventually caused a number of side-effect failures in
25173         the non-tasking case too.
25174
25175 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
25176
25177         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
25178         -gnats is passed.
25179
25180 2004-04-29  Vincent Celier  <celier@gnat.com>
25181
25182         * make.adb (Gnatmake): Increase max size of argument array for
25183         gnatbind for the potential addition of -F.
25184         If there are Stand-Alone Library projects, invoke gnatbind with -F to
25185         be sure that elaboration flags will be checked.
25186
25187         * switch-c.adb: Correct call to Scan_Pos for -gnateI
25188
25189 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
25190
25191         * sem_warn.adb (Check_References): Move '<access-variable> may be
25192         null' warning out of under Warn_On_No_Value_Assigned.
25193
25194 2004-04-29  Ed Falis  <falis@gnat.com>
25195
25196         * gnat_ugn.texi: Fixed texi error
25197
25198 2004-04-29  Robert Dewar  <dewar@gnat.com>
25199
25200         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
25201         abstract operations if they come from predefined files.
25202
25203         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
25204         Dynamic, not RM).
25205
25206         * s-addope.adb: Correct obvious error in mod function
25207
25208 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
25209
25210         * Makefile.in: Add target pairs for powerpc darwin*
25211         tasking support.
25212
25213         * a-intnam-darwin.ads, s-osinte-darwin.adb,
25214         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
25215
25216 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
25217
25218         * Makefile.in: Add target macro definitions for s390*-linux*.
25219         * system-linux-s390.ads: New file.
25220         * system-linux-s390x.ads: New file.
25221
25222 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
25223
25224         * gnat_ugn.texi: Correct argument to @setfilename.
25225
25226 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
25227
25228         * a-exexpr.adb (Unwind_Word): New data type.
25229         (Unwind_Exception): Use it as type of Private1 and Private2.
25230
25231         * raise.c (db_action_for): Fix debug printf.
25232
25233 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
25234
25235         * a-wtmoio.ads: Formal type must be a modular type, not a signed
25236         integer type.
25237
25238 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25239
25240         * decl.c (gnat_to_gnu_entity, case object): Call
25241         __builtin_update_setjmp_buf.
25242
25243         * gigi.h (update_setjmp_buf): Deleted.
25244         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
25245
25246         * misc.c: (update_setjmp_buf): Deleted.
25247
25248         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
25249         around block of RTL.
25250
25251         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
25252
25253 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
25254
25255         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
25256         subprogram for which no pragma All_Calls_Remote applies, store the
25257         address of the real subprogram in the underlying record type, so local
25258         dereferences do not go through the PCS.
25259
25260 2004-04-26  Robert Dewar  <dewar@gnat.com>
25261
25262         * i-c.ads: Add some type qualifications to avoid ambiguities when
25263         compiling with s-auxdec.ads and a non-private address type.
25264
25265 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
25266
25267         * Makefile.rtl: Fix error in previous check-in:
25268         Add s-addope.o to non tasking object list (rather than tasking object
25269         list).
25270
25271 2004-04-26  Javier Miranda  <miranda@gnat.com>
25272
25273         * sem_aggr.adb: Fix typo in comments
25274         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
25275         Required to check the null-exclusion attribute.
25276
25277         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
25278         case of anonymous access types in record and array components. For a
25279         component definition the level is the same of the enclosing composite
25280         type.
25281
25282         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
25283         that are anonymous access types the level of accessibility depends on
25284         the enclosing type declaration. In order to have this information, set
25285         the scope of the anonymous access type to the enclosing record type
25286         declaration.
25287         (Array_Type_Declaration): In case of components that are anonymous
25288         access types the level of accessibility depends on the enclosing type
25289         declaration. In order to have this information, set the scope of the
25290         anonymous access type to the enclosing array type declaration.
25291
25292         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
25293         access type.
25294
25295         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
25296         renaming of anonymous access-to-constant types allowed if and only if
25297         the renamed object is access-to-constant.
25298
25299         * sem_util.adb (Type_Access_Level): In case of anonymous access types
25300         that are component_definition or discriminants of a nonlimited type,
25301         the level is the same as that of the enclosing component type.
25302
25303 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
25304
25305         * sem_elim.adb: Some minor code reorganization from code reading. Fix
25306         misprint in the function name (File_Name_Match).
25307
25308 2004-04-23  Laurent GUERBY <laurent@guerby.net>
25309
25310         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
25311         install.
25312
25313 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25314
25315         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
25316
25317 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
25318
25319         * adaint.c (__gnat_try_lock): No longer requires that the parent
25320         directory be writable, the directory itself is enough.
25321         (gnat_is_absolute_path): Change profile, so that the call from
25322         GNAT.OS_Lib can be made more efficient.
25323
25324         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
25325         from GNAT.OS_Lib can be made more efficient.
25326
25327         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
25328         one copy of the file name. Found by code reading.
25329
25330 2004-04-23  Vincent Celier  <celier@gnat.com>
25331
25332         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
25333         Correct documentation on gnatmake switches transmitted to the compiler
25334
25335         * ali.ads: Minor comment fix
25336
25337 2004-04-23  Javier Miranda  <miranda@gnat.com>
25338
25339         * sem_ch6.adb: (Confirming Types): Code cleanup
25340
25341         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
25342         subprogram types: E_Anonymous_Access_Subprogram_Type and
25343         E_Anonymous_Access_Protected_Subprogram_Type.
25344
25345 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
25346
25347         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25348         whether a pragma All_Calls_Remote applies to the subprogram on which
25349         'Access is taken.
25350         No functional change is introduced by this revision; the new parameter
25351         will be used to allow calls to local RCI subprograms to be optimized
25352         to not use the PCS in the case where no pragma All_Calls_Remote applies,
25353         as is already done in the PolyORB implementation of the DSA.
25354
25355         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25356         whether a pragma All_Calls_Remote applies to the subprogram on which
25357         'Access is taken.
25358         No functional change is introduced by this revision; the new parameter
25359         will be used to allow calls to local RCI subprograms to be optimized
25360         to not use the PCS in the case where no pragma All_Calls_Remote applies,
25361         as is already done in the PolyORB implementation of the DSA.
25362
25363 2004-04-23  Robert Dewar  <dewar@gnat.com>
25364
25365         * Makefile.rtl: Add entry for s-addope.o in run time library list
25366         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
25367         * s-addope.ads, s-addope.adb: New files.
25368
25369         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
25370         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
25371         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
25372         System.Address to be non-private and signed.
25373
25374         * sem_elim.adb: Minor reformatting (fairly extensive)
25375         Some minor code reorganization from code reading
25376         Add a couple of ??? comments
25377
25378 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25379
25380         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
25381         (tree_transform, case N_If_Statement): Remove non-determinism.
25382
25383         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
25384
25385 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
25386
25387         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
25388         Eliminate' section.
25389
25390         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
25391         no longer used as a parameter name for Eliminate pragma).
25392
25393 2004-04-22  Laurent GUERBY <laurent@guerby.net>
25394
25395         PR optimization/14984
25396         PR optimization/14985
25397         * trans.c (gigi): Fix non determinism leading to bootstrap
25398         comparison failures.
25399
25400 2004-04-21  Pascal Obry  <obry@gnat.com>
25401
25402         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
25403         passed to spawnvp() to properly handle program pathname with spaces on
25404         Win32.
25405
25406 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
25407
25408         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
25409         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
25410         unlocked in case of exceptions.
25411
25412 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
25413
25414         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
25415         This function does not exist anymore.
25416
25417 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
25418
25419         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
25420
25421         * link.c: Move variables to the __gnat name space.
25422
25423         * Makefile.in: list link.o explicitly when needed.
25424
25425         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
25426
25427 2004-04-21  Javier Miranda  <miranda@gnat.com>
25428
25429         * einfo.adb (Original_Access_Type): New subprogram
25430         (Set_Original_Access_Type): New subprogram
25431         (Write_Field21_Name): Write the name of the new field
25432
25433         * einfo.ads (Original_Access_Type): New field present in access to
25434         subprogram types.
25435         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
25436         E_Anonymous_Access_Protected_Subprogram_Type.
25437
25438         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
25439         subprogram types.
25440
25441         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
25442         to anonymous access to subprogram types.
25443
25444         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
25445         to subprogram types.
25446
25447         * sem_ch3.adb (Access_Definition): Complete decoration of entities
25448         corresponding to anonymous access to subprogram types.
25449         (Analyze_Component_Declaration): Add new actual to the call to
25450         subprogram replace_anonymous_access_to_protected_subprogram.
25451         (Array_Type_Declaration): Add new actual to the call to subprogram
25452         replace_anonymous_access_to_protected_subprogram.
25453         (Process_Discriminants): Add new actual to the call to subprogram
25454         replace_anonymous_access_to_protected_subprogram.
25455         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
25456
25457         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25458         formal.
25459
25460         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
25461         access to subprogram types.
25462
25463         * sem_util.adb (Has_Declarations): Addition of package_specification
25464         nodes.
25465
25466 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
25467
25468         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
25469         inlined flags to renamed entity only if in current unit.
25470
25471 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
25472
25473         * s-parint.ads: Add DSA implementation marker.
25474
25475         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
25476         value of System.Partition_Interface.DSA_Implementation to determine
25477         what version of the distributed systems annex is available (no
25478         implementation, GLADE, or PolyORB).
25479
25480 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
25481
25482         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
25483
25484 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25485
25486         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
25487         with new type if alias sets differ.
25488         Fixes ACATS c41103b.
25489
25490 2004-04-21  Vincent Celier  <celier@gnat.com>
25491
25492         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
25493         Add array Lang_Args for the language specific compiling argument
25494         switches.
25495
25496         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
25497
25498 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
25499
25500         * gnat_rm.texi: Update the descripton of the Eliminate pragma
25501         according to the recent changes in the format of the parameters of the
25502         pragma (replacing Homonym_Number with Source_Location).
25503
25504 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
25505
25506         * 5isystem.ads: Removed, unused.
25507
25508         * gnat_rm.texi: Redo 1.13 change.
25509
25510 2004-04-19  Robert Dewar  <dewar@gnat.com>
25511
25512         * s-stoele.ads: Clean up definition of Storage_Offset (the new
25513         definition is cleaner, avoids the kludge of explicit Standard operator
25514         references, and also is consistent with a visible System.Address with
25515         no visible operations.
25516
25517         * s-geveop.adb: Add declarations to avoid assumption of visible
25518         operations on type System.Address (since these might not be available
25519         if Address is a non-private type for which the operations
25520         are made abstract).
25521
25522         * sem_eval.adb: Minor reformatting
25523
25524         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
25525         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
25526         reformatting (new function spec format).
25527
25528         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
25529         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
25530         s-caun64.adb: Add declarations to avoid assumption of visible
25531         operations on type System.Address (since these might not be available
25532         if Address is a non-private type for which the operations are made
25533         abstract).
25534
25535         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
25536
25537         * exp_intr.adb: Minor comment update
25538
25539         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
25540
25541         * 5omastop.adb: Add declarations to avoid assumption of visible
25542         operations on type System.Address (since these might not be available
25543         if Address is a non-private type for which the operations
25544         are made abstract).
25545
25546 2004-04-19  Vincent Celier  <celier@gnat.com>
25547
25548         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
25549
25550         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
25551         defaulted to Ada.
25552
25553         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
25554         defaulted to Ada.
25555         Call Check with Process_Languages.
25556         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
25557         with Process_Languages.
25558         (Recursive_Check): New Boolean parameter Process_Languages. Call
25559         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
25560         Process_Languages.
25561
25562         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
25563
25564         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
25565         parameter Ada_Main, defaulted to True.
25566         Check for Ada specific characteristics only when Ada_Main is True.
25567
25568         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
25569
25570         * prj.adb: (Project_Empty): Add new Project_Data components.
25571
25572         * prj.ads: New types and tables for non Ada languages.
25573         (Project_Data): New components Languages, Impl_Suffixes,
25574         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
25575         Include_Path, Include_Data_Set.
25576
25577         * prj-env.ads, prj-env.adb: Minor reformatting
25578
25579         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
25580         Put subprograms in alphabetical order
25581
25582         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
25583         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
25584         Opt.Follow_Links.
25585
25586         * mlib-prj.adb: Back out modification in last version, as they are
25587         incorrect.
25588         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
25589
25590         * make.adb: (Mains): Moved to package Makeutl
25591         (Linker_Opts): Moved to package Makeutl
25592         (Is_External_Assignment): Moved to package Makeutl
25593         (Test_If_Relative_Path): Moved to package Makeutl
25594         (Gnatmake): Move sorting of linker options to function
25595         Makeutl.Linker_Options_Switches.
25596
25597         * makeutl.ads, makeutl.adb: New files.
25598
25599         * Makefile.in: Add makeutl.o to the object files for gnatmake
25600
25601         * makeusg.adb: Add line for new switch -eL.
25602
25603         * gnatls.adb (Image): New function.
25604         (Output_Unit): If in verbose mode, output the list of restrictions
25605         specified by pragmas Restrictions.
25606
25607         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
25608         Text_IO.
25609
25610         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
25611         needed, to put it in the range 1970 (included) - 2026 (excluded).
25612         (Time_Of): Do not shift Unix_Min_Year (1970).
25613         Shift the date by multiple of 56 years, if needed, to put it in the
25614         range 1970 (included) - 2026 (excluded).
25615
25616         * adaint.h, adaint.c (__gnat_set_executable): New function.
25617
25618 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25619
25620         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
25621         and pop GC context.
25622         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
25623         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
25624         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
25625         (tree_transform, case N_Code_Statement): Likewise.
25626         (gnat_expand_stmt, case LABEL_STMT): Don't look at
25627         LABEL_STMT_FIRST_IN_EH.
25628         (gnat_expand_stmt, case ASM_STMT): New case.
25629
25630         * utils2.c (build_unary_op): Properly set TREE_READONLY of
25631         UNCONSTRAINED_ARRAY_REF.
25632
25633         * utils.c (poplevel): Temporarily push/pop GC context around inline
25634         function expansion.
25635
25636         * decl.c (maybe_variable): Properly set TREE_READONLY of
25637         UNCONSTRAINED_ARRAY_REF.
25638         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
25639
25640         * ada-tree.def: (ASM_STMT): New.
25641
25642         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
25643         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
25644         ASM_STMT_INPUT): New.
25645         (ASM_STMT_CLOBBER): Likewise.
25646
25647 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
25648
25649         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
25650         general rcheck mechanism to raise Program_Error for E.4(18), instead
25651         of a custom raiser in System.Partition_Interface.
25652         Part of general cleanup work before PolyORB integration.
25653
25654         * snames.ads, snames.adb: Add new runtime library entities and names
25655         for PolyORB DSA.
25656
25657         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25658         exp_dist.
25659         (Build_Subprogram_Id): New subprogram provided by exp_dist
25660         Code reorganisation in preparation for PolyORB integration.
25661
25662         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25663         exp_dist.
25664         (Build_Subprogram_Id): New subprogram provided by exp_dist
25665
25666         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
25667         actual parameter types for call to dereference of an
25668         access-to-subprogram type.
25669
25670         * rtsfind.ads: Add new runtime library entities and names for PolyORB
25671         DSA.
25672
25673         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
25674         instead, which has the same behaviour here since we never pass it a
25675         NULL pointer.
25676
25677         * link.c (run_path_option, Solaris case): Use -Wl, as for other
25678         platforms.
25679
25680         * Makefile.in: adjust object file lists for gnatlink and gnatmake
25681         to account for new dependency upon Interfaces.C.Strings + link.o
25682         For x86 FreeBSD, use 86numaux.
25683
25684         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
25685         from Mlib.Tgt to Mlib.
25686
25687         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
25688         target-independent.
25689
25690         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
25691         target-specific versions of this subprogram, now implemented as a
25692         target-independent function in Mlib.
25693
25694         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
25695         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
25696         (Linker_Library_Path_Option): Remove target-specific versions of this
25697         subprogram, now implemented as a target-independent function in Mlib.
25698
25699         * atree.adb: (Allocate_Initialize_Node): New subprogram.
25700         Factors out node table slots allocation.
25701         (Fix_Parents): New subprogram.
25702         Encapsulate the pattern of fixing up parent pointers for syntactic
25703         children of a rewritten node.
25704         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
25705         (Rewrite): Use New_Copy when creating saved copy of original node.
25706         (Replace): Use Copy_Node to copy nodes.
25707
25708 2004-04-19  Javier Miranda  <miranda@gnat.com>
25709
25710         * sprint.adb (Sprint_Node_Actual): Give support to the new
25711         Access_To_Subprogram node available in Access_Definition nodes. In
25712         addition, give support to the AI-231 node fields: null-exclusion,
25713         all-present, constant-present.
25714
25715         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
25716
25717         * sinfo.ads, sinfo.adb:
25718         New field Access_To_Subprogram_Definition in Access_Definition nodes
25719
25720         * sem_ch6.adb (Process_Formals): Move here the code that creates and
25721         decorates internal subtype declaration corresponding to the
25722         null-excluding formal. This code was previously in Set_Actual_Subtypes.
25723         In addition, carry out some code cleanup on this code. In case of
25724         access to protected subprogram call
25725         Replace_Anonymous_Access_To_Protected_Subprogram.
25726         (Set_Actual_Subtypes): Code cleanup.
25727
25728         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
25729         Find_Type in case of anonymous access renamings. Add warning in case of
25730         null-excluding attribute used in anonymous access renaming.
25731
25732         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25733         subprogram
25734
25735         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
25736         subprogram.
25737         (Access_Definition): In case of anonymous access to subprograms call
25738         the corresponding semantic routine to decorate the node.
25739         (Access_Subprogram_Declaration): Addition of some comments indicating
25740         some code that probably should be added here. Detected by comparison
25741         with the access_definition subprogram.
25742         (Analyze_Component_Declaration): In case of access to protected
25743         subprogram call Replace_Anonymous_Access_To_Protected.
25744         (Array_Type_Declaration): In case of access to protected subprogram call
25745         Replace_Anonymous_Access_To_Protected_Subprogram.
25746         (Process_Discriminants): In case of access to protected subprogram call
25747         Replace_Anonymous_Access_To_Protected_Subprogram.
25748
25749         * par.adb (P_Access_Definition): New formal that indicates if the
25750         null-exclusion part was present.
25751         (P_Access_Type_Definition): New formal that indicates if the caller has
25752         already parsed the null-excluding part.
25753
25754         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
25755         (P_Identifier_Declarations): Code cleanup and give support to renamings
25756         of anonymous access to subprogram types.
25757         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
25758         (P_Array_Type_Definition): Give support to AI-254.
25759         (P_Component_Items): Give support to AI-254.
25760         (P_Access_Definition): New formal that indicates if the header was
25761         already parsed by the caller.
25762         (P_Access_Type_Definition): New formal that indicates if the caller has
25763         already parsed the null-excluding part.
25764
25765         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
25766         call to P_Access_Definition.
25767
25768 2004-04-19  Geert Bosch  <bosch@gnat.com>
25769
25770         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25771         the delicate semantics of floating-point to integer conversion.
25772         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25773
25774         * eval_fat.adb (Machine_Mantissa): Moved to spec.
25775         (Machine_Radix): New function.
25776
25777         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
25778         conversion checks.
25779         (Machine_Radix): New function also for use in conversion checks.
25780
25781 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
25782
25783         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
25784
25785         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
25786         to decorate the access-to-protected subprogram and the equivalent type.
25787
25788         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
25789         to anonymous access to subprogram types.
25790
25791         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
25792         constant-folding, for legality checks in contexts that require an RM
25793         static expression.
25794
25795         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
25796         temporary but stack checking is not enabled, increment serial number
25797         to so that symbol generation is consistent with and without stack
25798         checking.
25799
25800         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
25801         independent on whether stack checking is enabled, caller must check
25802         the corresponding flag.
25803
25804         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
25805         range checks.
25806         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
25807         parent if it has discriminants.
25808         (Build_Derived_Private_Type): Constructed full view does
25809         not come from source.
25810         (Process_Discriminants): Default discriminants on a tagged type are
25811         legal if this is the internal completion of a private untagged
25812         derivation.
25813
25814         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
25815         no constraint checks, because it corresponds to an existing object.
25816
25817         * sem_prag.adb (Process_Convention): Pragma applies
25818         only to subprograms in the same declarative part, i.e. the same unit,
25819         not the same scope.
25820
25821         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
25822         ignore type mismatch on a numeric conversion if expression comes from
25823         expansion.
25824
25825 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
25826
25827         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
25828         Homonym_Number parameter, add processing for Source_Location parameter
25829         corresponding.
25830         (Check_Eliminated): Remove the check for homonym numbers, add the check
25831         for source location traces.
25832
25833         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
25834         with Arg_Source_Location corresponding to the changes in the format of
25835         the pragma.
25836
25837         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
25838         Eliminate pragma corresponding to the changes in the format of the
25839         pragma: Homonym_Number is replaced with Source_Location, two ways of
25840         distinguishing homonyms are mutially-exclusive.
25841
25842 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
25843
25844         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
25845
25846         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
25847         No_Dollar_In_Label, no longer necessary, as it is always True.
25848         (Strip_Suffixes): Likewise.
25849
25850 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
25851
25852         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
25853         modulus for compatibility with size clause on targets with 16-bit
25854         Integer.
25855
25856         * layout.adb (Discrimify): In the case of private types, set Vtyp to
25857         full type to fix type mismatches on calls to size functions for
25858         discriminant-dependent array components.
25859
25860 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
25861
25862         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
25863         lib.
25864
25865 2004-04-19  Pascal Obry  <obry@gnat.com>
25866
25867         * mdll-utl.adb (Locate): New version is idempotent.
25868
25869 2004-04-17  Laurent Guerby <laurent@guerby.net>
25870
25871         PR ada/14988 (partial)
25872         * impunit.adb: Fix typo.
25873
25874 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
25875
25876         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
25877         and install-rts-cert targets.  Remove all gnatlib and gnattools
25878         targets and all other rts-* targets (moved to libada).  Remove (now)
25879         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
25880         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
25881
25882 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25883
25884         * trans.c (tree_transform): Shortcut returning error_mark_node for
25885         statements in annotate_only_mode.
25886         (tree_transform, case N_Label, case N_Return_Statement,
25887         N_Goto_Statement): Make statement tree instead of generating code.
25888         (tree_transform, case N_Assignment_Statement): No longer check
25889         type_annotate_only.
25890         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
25891         RETURN_STMT): New.
25892         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
25893         New fcns.
25894         (gnat_to_gnu): Collect any RTL generated and deal with it.
25895         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
25896         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
25897         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
25898
25899         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
25900
25901         * ada-tree.def (EXPR_STMT): Fix typo in name.
25902         (BLOCK_STMT, IF_STMT): New nodes.
25903
25904         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
25905         LABEL_STMT_FIRST_IN_EH): New macros.
25906         (RETURN_STMT_EXPR): Likewise.
25907
25908         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
25909         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
25910
25911 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
25912
25913         * atree.ads: Correct documentation on extended nodes.
25914
25915         * link.c: Set run_path_option for FreeBSD.
25916
25917 2004-04-08  Vincent Celier  <celier@gnat.com>
25918
25919         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
25920         one of the ALI file, do not link with DEC lib.
25921
25922         * par.adb Remove the last two characters ("%s" or "%b") when checking
25923         if a language defined unit may be recompiled.
25924
25925 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
25926
25927         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
25928         removal of abstract operation leaves no possible interpretation for
25929         expression.
25930
25931         * sem_eval.adb (Eval_Qualified_Expression): Use
25932         Set_Raises_Constraint_Error on node when needed, so that it does not
25933         get optimized away by subsequent optimizations.
25934
25935         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
25936         operands even when they are not wrapped in a type conversion.
25937
25938 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
25939
25940         * sem_prag.adb (Set_Exported): Warn about making static as result of
25941         export only when the export is coming from source. This may be not
25942         be true e.g. on VMS where we expand export pragmas for exception codes
25943         together with imported or exported exceptions, and we don't want the
25944         user to be warned about something he didn't write.
25945
25946 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
25947
25948         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
25949         duplication between normal entities and those declared as renamings.
25950         No functional change.
25951
25952         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
25953         inline functions returning an unconstrained result.
25954
25955 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
25956
25957         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
25958         conform to what other front-ends do.
25959
25960 2004-04-08  Doug Rupp  <rupp@gnat.com>
25961
25962         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
25963         libraries.
25964
25965 2004-04-06  Pascal Obry  <obry@gnat.com>
25966
25967         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
25968
25969         * osint.adb (Program_Name): Do not look past a directory separator.
25970
25971 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
25972
25973         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
25974
25975         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
25976         requirement for preserving a copy of the original assignment node.
25977
25978         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
25979
25980 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
25981
25982         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
25983         when supported.
25984
25985 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
25986
25987         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
25988         operator calls in functional notation, and apply
25989         Universal_Interpretation to operands, not to their type.
25990
25991 2004-04-06  Robert Dewar  <dewar@gnat.com>
25992
25993         * 5wdirval.adb: Minor reformatting
25994
25995 2004-04-06  Ed Falis  <falis@gnat.com>
25996
25997         * gnat_rm.texi: Improve a reference to the GCC manual
25998
25999 2004-04-05  Vincent Celier  <celier@gnat.com>
26000
26001         * adaint.h, adaint.c: Add function __gnat_named_file_length
26002
26003         * impunit.adb: Add Ada.Directories to the list
26004
26005         * Makefile.in: Add VMS and Windows versions of
26006         Ada.Directories.Validity package body.
26007
26008         * Makefile.rtl: Add a-direct and a-dirval
26009
26010         * mlib-tgt.ads: Minor comment update.
26011
26012         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
26013         a-direct.ads, a-direct.adb: New files.
26014
26015 2004-04-05  Vincent Celier  <celier@gnat.com>
26016
26017         PR ada/13620
26018         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
26019         just to the compiler.
26020
26021 2004-04-05  Robert Dewar  <dewar@gnat.com>
26022
26023         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
26024         returned string is 1.
26025
26026         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
26027
26028         * eval_fat.ads: Minor reformatting
26029
26030         * g-curexc.ads: Document that lower bound of returned string values
26031         is always one.
26032
26033         * gnatlink.adb: Add ??? comment for previous change
26034         (need to document why this is VMS specific)
26035
26036         * s-stoele.ads: Minor reformatting
26037
26038         * tbuild.ads: Minor reformatting throughout (new function specs)
26039
26040         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
26041         after WITH.
26042
26043         * scng.adb: Minor reformatting
26044
26045 2004-04-05  Geert Bosch  <bosch@gnat.com>
26046
26047         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
26048         (Leading_Part): Still perform truncation to machine number if the
26049         specified radix_digits is greater or equal to machine_mantissa.
26050
26051 2004-04-05  Javier Miranda  <miranda@gnat.com>
26052
26053         * par-ch3.adb: Complete documentation of previous change
26054         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
26055         (aliased must appear before constant).
26056
26057         * par-ch4.adb: Complete documentation of previous change.
26058
26059         * par-ch6.adb: Complete documentation of previous change.
26060
26061         * sinfo.ads: Fix typo in commment.
26062
26063 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
26064
26065         * sem_ch3.adb (Inherit_Components): If derived type is private and has
26066         stored discriminants, use its discriminants to constrain parent type,
26067         as is done for non-private derived record types.
26068
26069         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
26070         Ada 2005 AI-310: an abstract non-dispatching operation is not a
26071         candidate interpretation in an overloaded call.
26072
26073         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
26074         expression is Null and target type is not an access type (e.g. a
26075         non-private address type).
26076
26077 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
26078
26079         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
26080         statement whose right-hand side is an inlined call, save a copy of the
26081         original assignment subtree to preserve enough consistency for
26082         Analyze_Assignment to proceed.
26083
26084         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
26085         complete assignment subtree which is now unnecessary, as the expansion
26086         of inlined call has been improved to preserve a consistent assignment
26087         tree.  Note_Possible_Modification must be called only
26088         after checks have been applied, or else unnecessary checks will
26089         be generated.
26090
26091         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
26092         of explicit dereferences that do not Come_From_Source:
26093          - be selective on cases where we must go back to the dereferenced
26094            pointer (an assignment to an implicit dereference must not be
26095            recorded as modifying the pointer);
26096          - do not rely on Original_Node being present (Analyze_Assignment
26097            calls Note_Possible_Modification on a copied tree).
26098
26099         * sem_warn.adb (Check_References): When an unset reference to a pointer
26100         that is never assigned is encountered, prefer '<pointer> may be null'
26101         warning over '<pointer> is never assigned a value'.
26102
26103 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
26104
26105         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
26106         the ABI.
26107
26108 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
26109
26110         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
26111         libexc. We currently don't reference anything in this library and
26112         linking it in triggers linker warnings we don't want to see.
26113
26114         * init.c: Update comments.
26115
26116 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26117
26118         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
26119         * utils.c (create_field_decl): Likewise.
26120         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
26121
26122 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
26123
26124         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
26125         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
26126         Add info directory entry and category.
26127
26128 2004-04-02  Jan Hubicka  <jh@suse.cz>
26129
26130         * utils.c: Include function.h
26131         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
26132
26133 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
26134
26135         PR ada/14150
26136         * Make-lang.in: Clean up generation of documentation
26137
26138         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
26139
26140         * xgnatug.adb: Removed, replaced by xgnatugn.adb
26141
26142         * xgnatugn.adb: Replaces xgnatug.adb
26143
26144         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
26145
26146         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
26147
26148         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26149         gnat_ug_wnt.texi: Removed.
26150
26151 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
26152
26153         * utils2.c: Update copyright notice.
26154
26155 2004-04-01  Robert Dewar  <dewar@gnat.com>
26156
26157         * checks.adb: Minor reformatting throughout
26158         Note that prev checkin added RM reference to alignment warning
26159
26160 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
26161
26162         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
26163         non-static when building aggregate for bit-packed array.
26164
26165         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
26166         function call that is itself the actual in a procedure call, build
26167         temporary for it.
26168
26169         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
26170         a string literal, create a temporary for it, constant folding only
26171         handles scalars here.
26172
26173 2004-04-01  Vincent Celier  <celier@gnat.com>
26174
26175         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
26176         Error_Msg_SP): New empty procedures to instantiate the Scanner.
26177         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
26178         tokens.
26179         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
26180         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
26181         and get the checksum.
26182
26183         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
26184         already in the Q.
26185         Increase the Marking_Label at the end of the Multiple_Main_Loop,
26186         instead of at the beginning.
26187
26188         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
26189         directly.
26190         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
26191         on VMS.
26192
26193         * osint.ads (Multi_Unit_Index_Character): New Character global variable
26194
26195         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
26196         not '~' directly.
26197
26198         * par.adb: Remove test on file name to detect language defined units.
26199         Add test on unit name, after parsing, to detect language defined units
26200         that are not compiled with -gnatg (except System.RPC and its children)
26201
26202         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
26203         following units without style checking.
26204
26205         * switch-c.adb: Change -gnatC to -gnateI
26206
26207         * usage.adb: Document new switch -gnateInnn
26208
26209         * scng.adb (Accumulate_Token_Checksum): New procedure
26210         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
26211         word or literal number.
26212         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
26213         numbers.
26214
26215 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
26216
26217         * a-tasatt.adb,
26218         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
26219         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
26220         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
26221         5vtpopde.adb: Add missing 'constant' keywords.
26222
26223 2004-04-01  Javier Miranda  <miranda@gnat.com>
26224
26225         * par-ch4.adb: (P_Allocator): Code cleanup
26226
26227         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
26228         attribute.
26229
26230         * sinfo.ads: Complete documentation of previous change
26231
26232 2004-04-01  Pascal Obry  <obry@gnat.com>
26233
26234         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
26235         only on VMS.  This special handling was done because an old GNU/ld bug
26236         on Windows which has been fixed.
26237
26238 2004-04-01  GNAT Script  <nobody@gnat.com>
26239
26240         * Make-lang.in: Makefile automatically updated
26241
26242 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26243
26244         * decl.c (gnat_to_gnu_entity, make_type_from_size):
26245         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
26246         * trans.c (tree_transform, convert_with_check): Likewise.
26247         * utils.c (gnat_signed_or_unsigned_type): Likewise.
26248         (build_vms_descriptor, unchecked_convert): Likewise.
26249         * utils2.c (nonbinary_modular_operation): Likewise.
26250
26251 2004-03-29  Javier Miranda  <miranda@gnat.com>
26252
26253         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
26254         (Install_Null_Excluding_Check): Local subprogram that determines whether
26255         an access node requires a runtime access check and if so inserts the
26256         appropriate run-time check.
26257         (Apply_Access_Check): Call Install_Null_Excluding check if required
26258         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
26259
26260         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
26261
26262         * einfo.ads: Fix typo in comment
26263
26264         * exp_ch3.adb (Build_Assignment): Generate conversion to the
26265         null-excluding type to force the corresponding run-time check.
26266         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
26267         type to force the corresponding run-time check.
26268
26269         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
26270         the null-excluding type to force the corresponding run-time check.
26271
26272         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
26273         case of access types unless they have the null-excluding attribute.
26274
26275         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
26276         part.
26277
26278         * exp_util.ads: Fix typo in comment
26279
26280         * par.adb (P_Null_Exclusion): New subprogram
26281         (P_Subtype_Indication): New formal that indicates if the null-excluding
26282         part has been scanned-out and it was present
26283
26284         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
26285
26286         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
26287         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
26288         type to force the corresponding run-time check
26289         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
26290         components
26291         (Resolve_Array_Aggregate): Carry out some static checks
26292         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
26293
26294         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
26295         attribute must be set only if specified by means of the null-excluding
26296         part. In addition, we must also propagate the access-constant attribute
26297         if present.
26298         (Access_Subprogram_Declaration, Access_Type_Declaration,
26299         Analyze_Component_Declaration, Analyze_Object_Declaration,
26300         Array_Type_Declaration, Process_Discriminants,
26301         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
26302         and carry out some static checks.
26303         (Build_Derived_Access_Type): Set the null-excluding attribute
26304         (Derived_Type_Declaration, Process_Subtype): Carry out some static
26305         checks.
26306
26307         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
26308
26309         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
26310
26311         * sem_ch6.adb (Process_Formals): Carry out some static checks.
26312         (Set_Actual_Subtypes): Generate null-excluding subtype if the
26313         null-excluding part was present; it is not required to be done here in
26314         case of anonymous access types.
26315         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
26316         value.
26317
26318         * sem_res.adb (Resolve_Actuals): Carry out some static check
26319         (Resolve_Null): Allow null in anonymous access
26320
26321         * sinfo.adb: New subprogram Null_Exclusion_Present
26322         All_Present and Constant_Present available on access_definition nodes
26323
26324         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
26325         object_declaration, derived_type_definition, component_definition,
26326         discriminant_specification, access_to_object_definition,
26327         access_function_definition, allocator, access_procedure_definition,
26328         access_definition, parameter_specification, All_Present and
26329         Constant_Present flags available on access_definition nodes.
26330
26331 2004-03-29  Robert Dewar  <dewar@gnat.com>
26332
26333         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
26334         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
26335         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
26336         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
26337         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
26338         sem_prag.adb: Updates to handle multiple units/file
26339
26340         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
26341
26342         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
26343         sem_util.adb: Minor reformatting
26344
26345         * sem_ch12.adb: Add comment for previous change
26346
26347 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
26348
26349         * osint.adb (Executable_Prefix): Set Exec_Name to the current
26350         executable name when not initialized. Otherwise, use its current value.
26351
26352         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
26353         initialize it to another executable name than the current one. This
26354         allows to configure paths for an executable name (gnatmake) different
26355         from the current one (gnatdist).
26356
26357 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
26358
26359         * exp_ch6.adb (Expand_Call): A call to a function declared in the
26360         current unit cannot be inlined if it appears in the body of a withed
26361         unit, to avoid order of elaboration problems in gigi.
26362
26363         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
26364         information for protected (wrapper) operation as well, to simplify gdb
26365         use.
26366
26367         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
26368         protected body, indicate that the entity for the generated spec comes
26369         from source, to ensure that references are properly generated for it.
26370         (Build_Body_To_Inline): Do not inline a function that returns a
26371         controlled type.
26372
26373         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
26374         apply convention to homonyms that are declared explicitly.
26375
26376         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
26377         that renames an equality operator and the operands are overloaded,
26378         resolve them with the declared formal types, before rewriting as an
26379         operator.
26380
26381 2004-03-29  GNAT Script  <nobody@gnat.com>
26382
26383         * Make-lang.in: Makefile automatically updated
26384
26385 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
26386
26387         * memtrack.adb: Log realloc calls, which are treated as free followed
26388         by alloc.
26389
26390 2004-03-25  Vincent Celier  <celier@gnat.com>
26391
26392         * prj-makr.adb (Process_Directories): Detect when a file contains
26393         several units. Do not include such files in the config pragmas or
26394         in the naming scheme.
26395
26396         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
26397         Resolve links only when not in Trusted_Mode.
26398         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
26399         Do not resolve links for the display names.
26400
26401         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
26402         resolve links when computing the display names.
26403
26404 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
26405
26406         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
26407         attribute reference does not denote a subtype, it can be any
26408         expression that has a classwide type, potentially after an implicit
26409         dereference.  In particular, the prefix can be a view conversion for
26410         a classwide type (for which Is_Object_Reference holds), but it can
26411         also be a value conversion for an access-to-classwide type. In the
26412         latter case, there is an implicit dereference, and the original node
26413         for the prefix does not verify Is_Object_Reference.
26414
26415         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
26416         conversion of a discriminant-dependent component of a mutable object
26417         is one itself.
26418
26419 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
26420
26421         * freeze.adb (Freeze_Entity): When an inherited subprogram is
26422         inherited, has convention C, and has unconstrained array parameters,
26423         place the corresponding warning on the derived type declaration rather
26424         than the original subprogram.
26425
26426         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
26427         indication on renaming declaration, if formal has a box and actual
26428         is absent.
26429
26430         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
26431         determine whether to generate an implicit or explicit reference to
26432         the renamed entity.
26433
26434         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
26435         subprogram renaming comes from a defaulted formal subprogram in an
26436         instance.
26437
26438 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
26439
26440         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
26441         value expressions to ensure that calls within a component definition
26442         will be checked (since those are evaluated during the record type's
26443         elaboration).
26444
26445 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
26446
26447         * s-tpobop.adb: Code clean up:
26448         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
26449         code.
26450         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
26451
26452 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
26453
26454         * Makefile.in: Clean up in the ravenscar run time.
26455
26456 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26457
26458         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
26459         of No_Strict_Aliasing to build_pointer_type_for_mode.
26460         * utils.c (update_pointer_to): Walk pointer and ref chains.
26461
26462 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
26463
26464         * ali.ads: Fix Comment about Dynamic_Elab.
26465
26466         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
26467         Has_RACW, Is_Generic, etc.)
26468         (Output_Object, Gnatls): Take into account ALI files not attached to
26469         an object.
26470
26471 2004-03-22  Vincent Celier  <celier@gnat.com>
26472
26473         * gprep.adb: Change all String_Access to Name_Id
26474         (Is_ASCII_Letter): new function
26475         (Double_File_Name_Buffer): New procedure
26476         (Preprocess_Infile_Name): New procedure
26477         (Process_Files): New procedure
26478         (Gnatprep): Check if output and input are existing directories.
26479         Call Process_Files to do the real job.
26480
26481 2004-03-22  Robert Dewar  <dewar@gnat.com>
26482
26483         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
26484         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
26485
26486 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
26487
26488         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
26489         case when the source contains only comments.
26490
26491 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
26492
26493         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
26494         declaration for a child subprogram body that acts as a spec, indicate
26495         that the entity in the declaration needs debugging information.
26496
26497         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
26498         full view if the subtype is created for a constrained record component;
26499         gigi has enough information to construct the record, and there is no
26500         place in the tree for the declaration.
26501
26502         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
26503         serial number for the dummy body that is built for analysis, to avoid
26504         inconsistencies in the generation of internal names when compiling
26505         with -gnatN.
26506
26507 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
26508
26509         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
26510         object.
26511
26512 2004-03-22  GNAT Script  <nobody@gnat.com>
26513
26514         * Make-lang.in: Makefile automatically updated
26515
26516 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26517
26518         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26519         * trans.c (tree_transform, emit_index_check): Likewise.
26520         * utils.c (build_template): Likewise.
26521         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
26522         (maybe_unconstrained_array, unchecked_convert): Likewise.
26523         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
26524         (build_unary_op): Likewise.
26525         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26526         (fill_vms_descriptor): Likewise.
26527         (build_call_alloc_dealloc): Likewise.
26528         ALIGN is unsigned.
26529         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
26530
26531 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
26532
26533         PR other/14630
26534         * gnat_ug.texi: Add info directory category and entry.
26535         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26536         gnat_ug_wnt.texi: Regenerate.
26537
26538 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
26539
26540         * ada-tree.h: Update copyright notice.
26541         Minor reformatting.
26542
26543 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
26544
26545         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
26546         as regular exception objects and not as mere integers representing the
26547         condition code.  The latter approach required some dynamics to mask off
26548         severity bits, which did not fit well into the GCC table based model.
26549         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
26550         exception data objects. We don't it and it would conflict with the other
26551         external symbol we have to generate for such exceptions.
26552
26553         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
26554         the special code for VMS exceptions, since these are now represented
26555         as regular exceptions objects.
26556
26557 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26558
26559         * decl.c (debug_no_type_hash): Remove.
26560         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
26561         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
26562
26563 2004-03-19  Laurent Guerby <laurent@guerby.net>
26564
26565         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
26566         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
26567
26568 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26569
26570         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
26571         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
26572         (TYPE_RM_SIZE_INT): Directly use type.values.
26573         (TREE_LOOP_ID): Clean up check.
26574         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
26575         TYPE_VALUES, not TYPE_FIELDS.
26576         * trans.c (convert_with_check): Delay access of bounds of basetype
26577         until sure is numeric.
26578
26579 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
26580
26581         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
26582
26583         Code clean up:
26584         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
26585         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
26586         Specific.Set instead of direct call to e.g pthread_setspecific.
26587
26588 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
26589
26590         * adaint.c: Update comments.
26591
26592         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
26593         GNATLIB_SHARED for FreeBSD.
26594
26595 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
26596
26597         * init.c [VxWorks]: Do not fix the stack size for the environment task.
26598         When needed (stack checking) the stack size is retrieved
26599         from the VxWorks kernel.
26600
26601         * Makefile.in: Flag -nostdinc is required when building the run time
26602         for avoiding looking for files in the base compiler.
26603         Add the VxWorks specific version of the package body for
26604         System.Stack_checking.Operations (5zstchop.adb).
26605
26606         * Make-lang.in: Add the object file for
26607         System.Stack_Checking.Operations.
26608
26609         * Makefile.rtl: Add object file for the package
26610         System.Stack_Checking.Operations.
26611
26612         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
26613
26614         * s-stache.ads, s-stache.adb: Move the operations related to stack
26615         checking from this package to package System.Stack_Checking.Operations.
26616         This way, stack checking operations are only linked in the final
26617         executable when using the -fstack-check flag.
26618
26619 2004-03-18  Doug Rupp  <rupp@gnat.com>
26620
26621         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
26622         Reorganize ifeq's.
26623
26624         * 5qsystem.ads, 5xcrtl.ads: New files.
26625
26626 2004-03-18  Vincent Celier  <celier@gnat.com>
26627
26628         * prj.adb (Reset): Reset hash table Files_Htable
26629
26630         * prj-env.adb (Source_Paths, Object_Paths): New tables.
26631         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
26632         the procedures Add_To_Path_File.
26633         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
26634         making sure that each directory is present only once and, for object
26635         dirs, when a directory already present is added, the duplicate is
26636         removed and the directory is always put as the last in the table.
26637         Write the path files at the end of these accumulations.
26638
26639         * prj-nmsc.adb (Record_Source): Add source file name in hash table
26640         Files_Htable for all sources.
26641
26642         * prj-proc.adb (Process): Remove restrictions between not directly
26643         related extending projects.
26644
26645 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
26646
26647         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
26648         (Find_Sources): Minor speed optimization.
26649
26650         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
26651         parameter Trusted_Mode.
26652
26653 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
26654
26655         * scn.adb (Determine_License): Take into account a degenerated case
26656         when the source contains only comments.
26657
26658 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
26659
26660         * sem_warn.adb (Check_References): For a warning on a selected
26661         component that does not come from source, locate an uninitialized
26662         component of the record type to produce a more precise error message.
26663
26664 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
26665
26666         * 3zsoccon.ads: Fix multicast options.
26667
26668         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
26669         in the spec.
26670
26671 2004-03-15  Robert Dewar  <dewar@gnat.com>
26672
26673         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
26674         pragma used for a private type.
26675
26676         * lib-xref.adb (Generate_Reference): Do not generate warning if
26677         reference is in a different unit from the pragma Unreferenced.
26678
26679         * 5vtpopde.adb: Minor reformatting
26680         Fix casing of To_Task_ID
26681
26682         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
26683         flag if we have an unchecked conversion to an access type in the same
26684         unit.
26685
26686 2004-03-15  Geert Bosch  <bosch@gnat.com>
26687
26688         * a-ngcoty.adb (Modulus): In alternate formula for large real or
26689         imaginary parts, use Double precision throughout.
26690
26691         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
26692         we want to be able to compile run-time with -gnata for testing, but
26693         this may also be instantiated in user code that is compiled with -gnata.
26694
26695 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
26696
26697         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
26698         codes. Having a separate type for this is useful to enforce consistency
26699         throughout the various run-time units.
26700         (Exception_Data): Use Exception_Code for Import_Code.
26701
26702         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
26703         Natural and Integer in various places.
26704         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
26705         with the severity bits masked off.
26706         (Register_VMS_Exception): Handle the additional exception data pointer
26707         argument.
26708
26709         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
26710         component, now reflected by an exported accessor.
26711         (is_handled_by): New routine to compute whether the propagated
26712         occurrence matches some handler choice specification. Extracted out of
26713         get_action_description_for, and expanded to take care of the VMS
26714         specifities.
26715         (get_action_description_for): Use is_handled_by instead of an explicit
26716         complex condition to decide if the current choice at hand catches the
26717         propagated occurrence.
26718
26719         * raise.h (Exception_Code): New type for C.
26720
26721         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
26722         System.Standard_Library.Exception_Code, to allow references from the
26723         pragma import/export expander.
26724
26725         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
26726         New accessors to allow easy access to GNAT exception data
26727         characteristics.
26728         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
26729         redundant Handled_By_Others component, helper for the personality
26730         routine which will now be able to call the appropriate exception data
26731         accessor instead.
26732
26733         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
26734         component of Standard_Exception_Type to be the closest possible to
26735         Exception_Code in System.Standard_Library, that we cannot get at this
26736         point. Expand a ??? comment to notify that this type node should
26737         probably be rewritten later on.
26738
26739         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
26740         registration call to include a pointer to the exception object in the
26741         arguments.
26742
26743         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
26744         instead of int and explicit bitmasks.
26745
26746 2004-03-15  Vincent Celier  <celier@gnat.com>
26747
26748         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
26749         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
26750
26751         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
26752         longer needed now that it is in the spec of
26753         System.Tasking.Task_Attributes.
26754
26755         * adaint.h, adaint.c: (__gnat_create_output_file): New function
26756
26757         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
26758
26759         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
26760
26761         * make.adb (Gnatmake): Do not check the executable suffix; it is being
26762         taken care of in Scan_Make_Arg.
26763         (Scan_Make_Arg): Add the executable suffix only if the argument
26764         following -o, in canonical case, does not end with the executable
26765         suffix.  When in verbose mode and executable file name does not end
26766         with executable suffix, output the executable name, in canonical case.
26767
26768         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
26769         to avoid warnings when instantiating Ada.Task_Attributes.
26770         Minor reformating.
26771
26772         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26773         in the correct order.
26774
26775         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26776         redirect standard output and error to a file for the invocation of the
26777         compiler, then read the file.
26778
26779         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
26780         directory, instead of the Value.
26781         (Find_Source_Dirs): Remove useless code & comments.
26782
26783 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
26784
26785         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
26786         tagged type is inherited, and the parent operation is not frozen yet,
26787         force generation of a freeze node for the inherited operation, so the
26788         corresponding dispatch entry is properly initialized.
26789         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
26790         when looking for user-defined equality operation.
26791
26792         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
26793         boolean when locating primitive equality of tagged component.
26794
26795         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
26796         bit-aligned field and the right-hand side a string literal, introduce
26797         a temporary before expanding assignment into a loop.
26798
26799         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
26800         priority in full, to ensure that any expanded subepxressions of it are
26801         elaborated in the scope of the init_proc.
26802
26803         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
26804         after object declaration, skipping over code that may have been
26805         generated for validity checks.
26806
26807         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
26808         discriminants, ignore the known discriminants of its full view, if
26809         any, to check legality.
26810
26811         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
26812         component if type has unknown discriminants.
26813         (Analyze_Private_Extension_Declaration): Discriminant constraint is
26814         null if type has unknown discriminants.
26815
26816         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
26817         for end label when present.
26818
26819         * s-fileio.adb (Open): When called with a C_Stream, use given name for
26820         temporary file, rather than an empty string.
26821
26822 2004-03-15  Ed Falis  <falis@gnat.com>
26823
26824         * s-thread.adb: Removed, no longer used.
26825
26826 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26827
26828         * decl.c (target.h): Now include.
26829         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
26830         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
26831         (validate_size): For POINTER_TYPE, get smallest size permitted on
26832         machine.
26833
26834         * fe.h: Sort Einfo decls and add Set_Mechanism.
26835
26836         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
26837         (ada/decl.o): Depends on target.h.
26838
26839         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
26840         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
26841
26842 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
26843
26844         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
26845
26846         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
26847         Insert_Dereference_Action when rewriting an implicit dereference into
26848         an explicit one, this will be taken care of during expansion of the
26849         explicit dereference.
26850         (Expand_N_Slice): Same. Always do the rewriting, even for the case
26851         of non-packed slices, since the dereference action generated by
26852         expansion of the explicit dereference is needed in any case.
26853         (Expand_N_Selected_Component): When rewriting an implicit dereference,
26854         analyze and resolve the rewritten explicit dereference so it is seen
26855         by the expander.
26856         (Insert_Dereference_Action): This procedure is now called only for the
26857         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
26858         dereferences that do not come from source (including explicit
26859         dereferences resulting from rewriting implicit ones), but do not
26860         recursively insert a check for the dereference nodes contained within
26861         the check.
26862         (Insert_Dereference_Action): Clarify and correct comment.
26863
26864 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
26865
26866         PR ada/14131
26867         Move language detection to the top level.
26868         * config-lang.in: Build by default.
26869
26870 2004-03-05  Robert Dewar  <dewar@gnat.com>
26871
26872         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
26873
26874         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
26875         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
26876         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
26877         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
26878         unchecked conversion to spec to avoid warnings.
26879
26880         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
26881         to Task_ID
26882
26883         * 7stpopsp.adb: Correct casing in To_Task_ID call
26884
26885         * a-strsea.ads, a-strsea.adb: Minor reformatting
26886
26887         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
26888
26889         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
26890         Adjust Max_Msg_Length to be clearly large enough.
26891
26892         * fe.h: Define In_Same_Source_Unit
26893
26894         * osint.adb: Add pragma Warnings Off to suppress warnings
26895         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
26896         aliasing warnings.
26897
26898         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
26899
26900         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
26901
26902         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
26903
26904         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
26905
26906         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
26907
26908         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
26909         node. We now do generate them for gcc back end.
26910
26911         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
26912         warning.
26913
26914         * sinput-c.adb: Fix bad name in header.
26915         Add pragma Warnings Off to suppress aliasing warning.
26916
26917         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
26918
26919         * snames.h, snames.ads, snames.adb: Add entry for pragma
26920         No_Strict_Aliasing.
26921
26922 2004-03-05  Vincent Celier  <celier@gnat.com>
26923
26924         * prj-com.ads: Add hash table Files_Htable to check when a file name
26925         is already a source of another project.
26926
26927         * prj-nmsc.adb (Record_Source): Before recording a new source, check
26928         if its file name is not already a source of another project. Report an
26929         error if it is.
26930
26931         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
26932         source file name, call gnatpp with all the sources of the main project.
26933
26934         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
26935         of file names.
26936
26937         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
26938         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
26939         /RUNTIME_SYSTEM=, converted to --RTS=
26940         /NOTABS, converted to -notabs
26941
26942 2004-03-05  Pascal Obry  <obry@gnat.com>
26943
26944         * make.adb: Minor reformatting.
26945
26946 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
26947
26948         Part of implemention of AI-262.
26949         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
26950
26951         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
26952         procedure.
26953
26954         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
26955         when component type is a partially constrained class-wide subtype.
26956         (Constrain_Discriminated_Type): If parent type has unknown
26957         discriminants, a constraint is illegal, even if full view has
26958         discriminants.
26959         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
26960         with unknown discriminants whose full view is a discriminated record.
26961
26962         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
26963         flag, to handle properly derivations of tagged types with unknown
26964         discriminants.
26965         (Analyze_Package_Spec, Analyze_Package_Body): Install
26966         Private_With_Clauses before analyzing private part or body.
26967
26968         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
26969         Has_Discriminants can be true for a given type (documentation).
26970
26971 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
26972
26973         * s-restri.ads: Fix license (GPL->GMGPL).
26974
26975         * s-tassta.adb: Minor reformatting.
26976
26977         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26978         by calls to Exit_One_ATC_Level, since additional clean up is performed
26979         by this function.
26980
26981         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26982         by calls to Exit_One_ATC_Level, since additional clean up is performed
26983         by this function.
26984
26985 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26986
26987         * trans.c: Reflect GCC changes to fix bootstrap problem.
26988         Add warning for suspicious aliasing unchecked conversion.
26989
26990 2004-03-05  GNAT Script  <nobody@gnat.com>
26991
26992         * Make-lang.in: Makefile automatically updated
26993
26994 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
26995
26996         * ali.adb (Read_Instantiation_Instance): Do not modify the
26997         current_file_num when reading information about instantiations, since
26998         this corrupts files in later references.
26999
27000 2004-03-02  Vincent Celier  <celier@gnat.com>
27001
27002         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
27003         before checking if it is read-only.
27004
27005         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
27006         of SRC_DIRS and eliminate duplicates.
27007
27008         * gprcmd.adb: Replace command "path" with command "path_sep" to return
27009         the path separator.
27010         (Usage): Document path_sep
27011
27012         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
27013         C++ compiler. No need for a script.
27014         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
27015         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
27016         subst.
27017
27018         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
27019         where there are Ada sources.
27020         (Set_Ada_Paths): Only add to the include path the source dirs of project
27021         with Ada sources.
27022         (Add_To_Path): Add the Display_Values of the directories, not their
27023         Values.
27024
27025         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
27026         data.
27027
27028         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
27029         is not No_Name.
27030         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
27031         Value is canonicalized.
27032         (Language_Independent_Check): Do not copy Value to Display_Value when
27033         canonicalizing Value.
27034
27035         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
27036         path to find limited with cycles.
27037         (Parse_Single_Project): Use canonical cased path to find the end of a
27038         with cycle.
27039
27040 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
27041
27042         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
27043         and not a child unit.
27044
27045         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
27046         appear in a with_clause.
27047
27048         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
27049         only happen in type_annotate mode, do not try to elaborate it.
27050
27051         * exp_util.adb (Force_Evaluation): If expression is a selected
27052         component on the left of an assignment, use a renaming rather than a
27053         temporary to remove side effects.
27054
27055         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
27056         inlined instance body, which is analyzed before the end of the
27057         enclosing scope.
27058
27059 2004-03-02  Robert Dewar  <dewar@gnat.com>
27060
27061         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
27062         sem_ch4.adb: Use new feature for substitution of keywords in VMS
27063
27064         * errout.ads, errout.adb: Implement new circuit for substitution of
27065         keywords in VMS.
27066
27067         * sem_case.adb (Analyze_Choices): Place message properly when case is
27068         a subtype reference rather than an explicit range.
27069
27070         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
27071
27072 2004-03-02  Doug Rupp  <rupp@gnat.com>
27073
27074         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
27075
27076 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
27077
27078         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
27079
27080 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27081
27082         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
27083         BLKmode bitfield.
27084
27085 2004-02-25  Robert Dewar  <dewar@gnat.com>
27086
27087         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27088         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
27089         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
27090         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
27091         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
27092         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
27093         the defining instance of the type to avoid aliasing problems.
27094         Fix copyright header.  Fix bad comments in package header.
27095
27096         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
27097
27098 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
27099
27100         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
27101         rewritten as references when aliased through an address clause.
27102
27103         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
27104         whether call can be interpreted as an indirect call to the result of a
27105         parameterless function call returning an access subprogram.
27106
27107 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
27108
27109         Code clean up:
27110         * exp_ch7.adb (Make_Clean): Remove generation of calls to
27111         Unlock[_Entries], since this is now done by Service_Entries directly.
27112
27113         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
27114
27115         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
27116         Requeue_Call for better code readability. Change spec and update calls:
27117         PO_Service_Entries now unlock the PO on exit.
27118         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
27119         PO_Service_Entries.
27120
27121         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
27122
27123         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
27124
27125 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
27126
27127         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
27128         protected subprogram call and analyzing the result of such expanding
27129         in case when the called protected subprogram is eliminated.
27130
27131         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
27132         names.
27133
27134 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
27135
27136         * Makefile.in: Clean ups.
27137
27138 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
27139
27140         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
27141         protected operations if original subprogram is flagged as eliminated.
27142         (Expand_N_Subprogram_Body): For a protected operation, create
27143         discriminals for next operation before checking whether the operation
27144         is eliminated.
27145
27146         * exp_ch9.adb (Expand_N_Protected_Body,
27147         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
27148         for internal protected operations if the original subprogram is
27149         eliminated.
27150
27151         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
27152         declared in a single protected object.
27153
27154 2004-02-23  Vincent Celier  <celier@gnat.com>
27155
27156         * prj-attr.adb: Make attribute Builder'Executable an associative array,
27157         case insensitive if file names are case insensitive, instead of a
27158         standard associative array.
27159
27160         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
27161         them as case insensitive on platforms where the file names are case
27162         sensitive.
27163
27164         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
27165         project file has already been parsed that canonical path are compared.
27166
27167 2004-02-23  Robert Dewar  <dewar@gnat.com>
27168
27169         * sinput-c.ads: Correct bad unit title in header
27170
27171         * freeze.adb: Minor reformatting
27172
27173 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27174
27175         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
27176         nonaddressable COMPONENT_REF that is removing padding that we are
27177         taking the address of, take the address of the padded record instead
27178         if item is variable size.
27179
27180 2004-02-20  Robert Dewar  <dewar@gnat.com>
27181
27182         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
27183
27184 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
27185
27186         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
27187         itype references for the constrained designated type of a component
27188         whose base type is already frozen.
27189
27190 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
27191
27192         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
27193         avoid GCC warnings.
27194
27195 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
27196
27197         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
27198         identifier for a phantom package that rewrites the formal package
27199         declaration with a box. The Add semantic decorations for the defining
27200         identifier from the original node (that represents the formal package).
27201
27202 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
27203
27204         * Make-lang.in (ada/stamp-sdefault): Use the top level
27205         move-if-change.
27206
27207 2004-02-19  Richard Henderson  <rth@redhat.com>
27208
27209         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
27210
27211 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
27212
27213         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
27214         Scan_ALI can be used for multiple ALI files without reinitializing
27215         between calls.
27216
27217 2004-02-18  Robert Dewar  <dewar@gnat.com>
27218
27219         * debug.adb: Minor reformatting.
27220
27221 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27222
27223         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
27224         to zero if there is an address clause.
27225
27226 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
27227
27228         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
27229
27230 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
27231
27232         * layout.adb (Layout_Component_List): Revise generation of call to
27233         discriminant-checking function to pass selections of all of the type's
27234         discriminants rather than just the variant-controlling discriminant.
27235
27236 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
27237
27238         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
27239         fail in the current setup and triggers spurious system error messages.
27240         Pretend it occurred and failed instead.
27241
27242 2004-02-18  Vincent Celier  <celier@gnat.com>
27243
27244         * bld.adb: Mark FLDFLAGS as saved
27245         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
27246         it is not the root project.  Put each directory to be
27247         extended between double quotes to prevent it to be expanded on Windows.
27248         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
27249         the project file. Set them back to their initial values if they have not
27250         been set in the project file.
27251
27252         * gprcmd.adb: (Gprdebug, Debug): New global variables
27253         (Display_Command): New procedure
27254         (Usage): Document new command "linkopts"
27255         Call Display_Command when env var GPRDEBUG has the value "TRUE"
27256         Implement new command "linkopts"
27257         Remove quotes that may be around arguments for "extend"
27258         Always call Normalize_Pathname with arguments formatted for the platform
27259
27260         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
27261         Change @echo to @$(display) in target clean to be able to clean silently
27262
27263         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
27264
27265         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
27266         canonical case.
27267
27268         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
27269         = Extending_All when current project is an extending all project.
27270
27271         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
27272         set to True only for LINK command, after Unix switch -o.
27273         (Process_Arguments): Set Output_File_Expected to True for LINK command
27274         after Unix switch -o. When Output_File_Expected is True, never add an
27275         extension to a file name.
27276
27277         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
27278         option file name, only to the --for-linker= switch.
27279         (Option_File_Name): If option file name do not end with ".opt", append
27280         "/OPTIONS".
27281
27282 2004-02-18  GNAT Script  <nobody@gnat.com>
27283
27284         * Make-lang.in: Makefile automatically updated
27285
27286 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
27287
27288         * Make-lang.in (stamp-sdefault): Do not depend on
27289         move-if-change.
27290
27291 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
27292
27293         * config-lang.in: Disable Ada by default until probe logic for
27294         a bootstrap Ada compiler can be moved to the top level configure
27295         script.
27296
27297 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
27298
27299         * decl.c (components_to_record): Don't claim that the internal fields
27300         we make to hold the variant parts are semantically addressable, because
27301         they are not.
27302
27303         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
27304         adjust the comment describing the modular type form when we can use it.
27305         (Install_PAT): Account for the Esiz renaming.
27306
27307         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
27308         sc_onstack context indication before raising the exception to which
27309         the signal is mapped. Allows better handling of later signals possibly
27310         triggered by the resumed user code if the exception is handled.
27311
27312 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
27313
27314         * 5zinit.adb: Removed, no longer used.
27315
27316 2004-02-12  Robert Dewar  <dewar@gnat.com>
27317
27318         * ali.adb: Remove separating space between parameters on R line. Makes
27319         format consistent with format used by the binder for Set_Globals call.
27320
27321         * atree.ads, atree.adb: Minor reformatting (new function header format)
27322
27323         * bindgen.adb: Add Run-Time Globals documentation section containing
27324         detailed documentation of the globals passed from the binder file to
27325         the run time.
27326
27327         * gnatls.adb: Minor reformatting
27328
27329         * init.c (__gnat_set_globals): Add note pointing to documentation in
27330         bindgen.
27331
27332         * lib-writ.ads, lib-writ.adb: Remove separating space between
27333         parameters on R line.
27334         Makes format consistent with format used by the binder for Set_Globals
27335         call.
27336
27337         * osint.ads: Add 2004 to copyright notice
27338         Minor reformatting
27339
27340         * snames.ads: Correct capitalization of FIFO_Within_Priorities
27341         Noticed during code reading, documentation issue only
27342
27343         * usage.adb: Remove junk line for obsolete C switch
27344         Noticed during code reading
27345
27346 2004-02-12  Vincent Celier  <celier@gnat.com>
27347
27348         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
27349         extend for each directory, so that multiple /** directories are
27350         extended individually.
27351         (Recursive_Process): Set the default for LANGUAGES to ada
27352
27353         * gprcmd.adb: Define new command "ignore", to do nothing.
27354         Implement new comment "path".
27355
27356         * Makefile.generic: Suppress output when SILENT is set
27357         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
27358         used, so that the correct compiler is invoked.
27359         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
27360         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
27361
27362 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
27363
27364         * Makefile.in: Clean ups and remove obsolete targets.
27365
27366 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
27367
27368         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
27369         predicate declared in exp_util.
27370
27371         * exp_util.adb: Add comments.
27372
27373         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
27374         visibility before compiling context of the subunit.
27375
27376         * sem_res.adb (Check_Parameterless_Call): If the context expects a
27377         value but the name is a procedure, do not attempt to analyze as a call,
27378         in order to obtain more telling diagnostics.
27379
27380         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
27381         'Access on parameterless function calls.
27382         (Normalize_Actuals): For a parameterless function call with missing
27383         actuals, defer diagnostic until resolution of enclosing call.
27384
27385         * sem_util.adb (Wrong_Type): If the context type is an access to
27386         subprogram and the expression is a procedure name, suggest a missing
27387         'attribute.
27388
27389 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
27390             Nathanael Nerode  <neroden@gcc.gnu.org>
27391
27392         PR ada/6637
27393         PR ada/5911
27394         Merge with libada-branch:
27395         * config-lang.in: Build libada only when ada is built.
27396
27397 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
27398
27399         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
27400         for a tagged type, verify that both formals have the same type.
27401
27402         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
27403         temporary when the formal is an in-parameter and the actual a possibly
27404         unaligned slice.
27405
27406         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
27407         when expansion is disabled, to ensure proper name capture with
27408         overloaded literals.  Condition can be of any boolean type, resolve
27409         accordingly.
27410
27411         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
27412         renaming is for a formal subprogram with a default operator name, and
27413         there is a usable operator that is visible at the point of
27414         instantiation.
27415
27416 2004-02-09  Robert Dewar  <dewar@gnat.com>
27417
27418         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
27419         rewrite to ignore errors in ali files, intended to allow tools downward
27420         compatibility with new versions of ali files.
27421
27422         * ali.ads: Add new parameter Ignore_Errors
27423
27424         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
27425         duplicating the error message giving the file with restrictions.
27426
27427         * debug.adb: Add debug flag I for gnatbind
27428
27429         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
27430         operators for the case where the operator is a defining operator.
27431
27432         * exp_ch3.adb: Minor reformatting (new function spec format).
27433
27434         * exp_ch4.adb: Add comment for previous change, and make minor
27435         adjustment to loop to always check for improper loop termination.
27436         Minor reformatting throughout (new function spec format).
27437
27438         * gnatbind.adb: Implement -di debug flag for gnatbind
27439
27440         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
27441
27442         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
27443
27444         * lib-load.adb: Fix bad assertion.
27445         Found by testing and code reading.
27446         Minor reformatting.
27447
27448         * lib-load.ads: Minor reformatting.
27449
27450         * lib-writ.adb: There is only one R line now.
27451
27452         * lib-writ.ads: Add documentation on making downward compatible changes
27453         to ali files so old tools work with new ali files.
27454         There is only one R line now.
27455         Add documentation on format incompatibilities (with special GPS note)
27456
27457         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
27458
27459         * par-load.adb: Minor reformatting
27460
27461         * sem_ch8.adb: Fix to error message from last update
27462         Minor reformatting and restructuring of code from last update
27463
27464         * par-prag.adb, snames.adb, snames.ads, snames.h,
27465         sem_prag.adb: Implement pragma Profile.
27466
27467         * stylesw.adb: Implement -gnatyN switch to turn off all style check
27468         options.
27469
27470         * usage.adb: Add line for -gnatyN switch
27471
27472         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
27473
27474 2004-02-09  Albert Lee  <lee@gnat.com>
27475
27476         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
27477
27478 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
27479
27480         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
27481         slices.
27482
27483         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
27484         is nested in an instance that is not frozen yet, to avoid
27485         order-of-elaboration problems in gigi.
27486
27487         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
27488         body the attribute is legal.
27489
27490 2004-02-09  Robert Dewar  <dewar@gnat.com>
27491
27492         * s-rident.ads: Minor comment correction
27493
27494         * targparm.adb: Remove dependence on uintp completely. There was
27495         always a bug in Make in that it called Targparm before initializing
27496         the Uint package. The old code appeared to get away with this, but
27497         the new code did not! This caused an assertion error in gnatmake.
27498
27499         * targparm.ads: Fix bad comment, restriction pragmas with parameters
27500         are indeed fully supported.
27501
27502 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
27503
27504         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
27505
27506 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
27507
27508         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
27509         with targetm.calls.promote_prototypes.
27510
27511 2004-02-04  Robert Dewar  <dewar@gnat.com>
27512
27513         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
27514         ali.ads, gprcmd.adb: Minor reformatting
27515
27516         * bindgen.adb: Output restrictions string for new style restrictions
27517         handling
27518
27519         * impunit.adb: Add s-rident.ads (System.Rident) and
27520         s-restri (System.Restrictions)
27521
27522         * lib-writ.adb: Fix bug in writing restrictions string (last few
27523         entries wrong)
27524
27525         * s-restri.ads, s-restri.adb: Change name Restrictions to
27526         Run_Time_Restrictions to avoid conflict with package name.
27527         Add circuit to read and acquire run time restrictions.
27528
27529 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
27530
27531         * restrict.ads, restrict.adb: Use the new restriction
27532         No_Task_Attributes_Package instead of the old No_Task_Attributes.
27533
27534         * sem_prag.adb: No_Task_Attributes is a synonym of
27535         No_Task_Attributes_Package.
27536
27537         * snames.ads, snames.adb: New entry for proper handling of
27538         No_Task_Attributes.
27539
27540         * s-rident.ads: Adding restriction No_Task_Attributes_Package
27541         (AI-00249) that supersedes the GNAT specific restriction
27542         No_Task_Attributes.
27543
27544 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
27545
27546         * sem_prag.adb:
27547         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
27548          body, an identifier may be wrapped in an unchecked conversion.
27549
27550 2004-02-04  Vincent Celier  <celier@gnat.com>
27551
27552         * lib-writ.ads: Comment update for the W lines
27553
27554         * bld.adb: (Expression): An empty string list is static
27555
27556         * fname-uf.adb: Minor comment update
27557
27558         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
27559
27560         * gnatbind.adb: Initialize Cumulative_Restrictions with the
27561         restrictions on the target.
27562
27563 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
27564
27565         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
27566         gen_rtx.
27567
27568 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
27569
27570         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
27571
27572 2004-02-02  Vincent Celier  <celier@gnat.com>
27573
27574         * gprcmd.adb (Check_Args): If condition is false, print the invoked
27575         comment before the usage.
27576         Gprcmd: Fail when command is not recognized.
27577         (Usage): Document command "prefix"
27578
27579         * g-md5.adb (Digest): Process last block.
27580         (Update): Do not process last block. Store remaining characters and
27581         length in Context.
27582
27583         * g-md5.ads (Update): Document that several call to update are
27584         equivalent to one call with the concatenated string.
27585         (Context): Add fields to allow new Update behaviour.
27586
27587         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
27588         defaulted to False.
27589         When May_Fail is True and no existing file can be found, return No_File.
27590
27591         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
27592         functions.
27593
27594         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
27595         spec file name instead on the W line.
27596
27597 2004-02-02  Robert Dewar  <dewar@gnat.com>
27598
27599         * ali.adb: Read and acquire info from new format restrictions lines
27600
27601         * bcheck.adb: Add circuits for checking restrictions with parameters
27602
27603         * bindgen.adb: Output dummy restrictions data
27604         To be changed later
27605
27606         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
27607         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
27608         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
27609         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
27610         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
27611
27612         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
27613         the warning message on access to possibly uninitialized variable S)
27614         Minor changes for new restrictions handling.
27615
27616         * gnatbind.adb: Minor reformatting
27617         Minor changes for new restrictions handling
27618         Move circuit for -r processing here from bcheck (cleaner)
27619
27620         * gnatcmd.adb, gnatlink.adb: Minor reformatting
27621
27622         * lib-writ.adb: Output new format restrictions lines
27623
27624         * lib-writ.ads: Document new R format lines for new restrictions
27625         handling.
27626
27627         * s-restri.ads/adb: New files
27628
27629         * Makefile.rtl: Add entry for s-restri.ads/adb
27630
27631         * par-ch3.adb: Fix bad error messages starting with upper case letter
27632         Minor reformatting
27633
27634         * restrict.adb: Major rewrite throughout for new restrictions handling
27635         Major point is to handle restrictions with parameters
27636
27637         * restrict.ads: Major changes in interface to handle restrictions with
27638         parameters. Also generally simplifies setting of restrictions.
27639
27640         * snames.ads/adb: New entry for proper handling of No_Requeue
27641
27642         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
27643         restriction counting.
27644         Other minor changes for new restrictions handling
27645
27646         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
27647         Restriction_Warnings now allows full parameter notation
27648         Major rewrite of Restrictions for new restrictions handling
27649
27650 2004-02-02  Javier Miranda  <miranda@gnat.com>
27651
27652         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
27653         syntax rule for object renaming declarations.
27654         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
27655         component definitions.
27656
27657         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
27658         components.
27659         (Array_Type_Declaration): Give support to access components. In addition
27660         it was also modified to reflect the name of the object in anonymous
27661         array types. The old code did not take into account that it is possible
27662         to have an unconstrained anonymous array with an initial value.
27663         (Check_Or_Process_Discriminants): Allow access discriminant in
27664         non-limited types.
27665         (Process_Discriminants): Allow access discriminant in non-limited types
27666         Initialize the new Access_Definition field in N_Object_Renaming_Decl
27667         node.  Change Ada0Y to Ada 0Y in comments
27668
27669         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
27670         equality operators.
27671         Change Ada0Y to Ada 0Y in comments
27672
27673         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
27674         renamings Change Ada0Y to Ada 0Y in comments
27675
27676         * sem_type.adb (Find_Unique_Type): Give support to the equality
27677         operators for universal access types
27678         Change Ada0Y to Ada 0Y in comments
27679
27680         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
27681
27682         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
27683         field.
27684         (N_Object_Renaming_Declaration): Addition of Access_Definition field
27685         Change Ada0Y to Ada 0Y in comments
27686
27687         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
27688         component definition and object renaming nodes
27689         Change Ada0Y to Ada 0Y in comments
27690
27691 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
27692
27693         * restrict.adb: Use the new restriction identifier
27694         No_Requeue_Statements instead of the old No_Requeue for defining the
27695         restricted profile.
27696
27697         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
27698         No_Requeue_Statements.
27699
27700         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
27701         that supersedes the GNAT specific restriction No_Requeue. The later is
27702         kept for backward compatibility.
27703
27704 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
27705
27706         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
27707         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
27708         pragma and fix incorrect ones.
27709
27710         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
27711         warning if the pragma is redundant.
27712
27713 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
27714
27715         * 5staprop.adb: Add missing 'constant' keywords.
27716
27717         * Makefile.in: use consistent value for SYMLIB on
27718         platforms where libaddr2line is supported.
27719
27720 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27721
27722         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
27723         annotating types.
27724
27725 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
27726
27727         * init.c (__gnat_install_handler): Setup an alternate stack for signal
27728         handlers in the environment thread. This allows proper propagation of
27729         an exception on stack overflows in this thread even when the builtin
27730         ABI stack-checking scheme is used without support for a stack reserve
27731         region.
27732
27733         * utils.c (create_field_decl): Augment the head comment about bitfield
27734         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
27735         here, because the former is not accurate enough at this point.
27736         Let finish_record_type decide instead.
27737         Don't make a bitfield if the field is to be addressable.
27738         Always set a size for the field if the record is packed, to ensure the
27739         checks for bitfield creation are triggered.
27740         (finish_record_type): During last pass over the fields, clear
27741         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
27742         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
27743         from DECL_BIT_FIELD.
27744
27745 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
27746
27747         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
27748         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
27749         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
27750
27751 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27752
27753         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
27754
27755         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
27756         (ZCX_By_Default): Likewise.
27757         (Front_End_ZCX_Support): Likewise.
27758
27759         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
27760         (Initialize_Lock): Mark Level unreferenced.
27761         (Sleep): Mark Reason unreferenced.
27762         (Timed_Sleep): Likewise.
27763         (Wakeup): Likewise.
27764         (Exit_Task): Use Result.
27765         (Check_No_Locks): Mark Self_ID unreferenced.
27766
27767         * 5gtasinf.adb (New_Sproc): Make Attr constant.
27768         (Bound_Thread_Attributes): Make Sproc constant.
27769         (New_Bound_Thread_Attributes): Likewise.
27770
27771 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
27772
27773         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27774         one-dimensional array an slice assignments, when component type is
27775         controlled.
27776
27777         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
27778         component type is controlled, and control_actions are in effect, use
27779         TSS procedure rather than generating inline code.
27780
27781         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
27782         arrays with controlled components.
27783
27784 2004-01-26  Vincent Celier  <celier@gnat.com>
27785
27786         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
27787         command line for the non VMS case.
27788
27789         * gnatlink.adb (Process_Binder_File): When building object file, if
27790         GNU linker is used, put all object paths between quotes, to prevent ld
27791         error when there are unusual characters (such as '!') in the paths.
27792
27793         * Makefile.generic: When there are sources in Ada and the main is in
27794         C/C++, invoke gnatmake with -B, instead of -z.
27795
27796         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
27797         from VMS_Conversion.
27798         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
27799         specification of argument file on the command line.
27800
27801 2004-01-26  Bernard Banner  <banner@gnat.com>
27802
27803         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
27804
27805 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
27806
27807         * snames.adb: Update copyright notice.
27808         Add info on slice assignment for controlled arrays.
27809
27810 2004-01-23  Robert Dewar  <dewar@gnat.com>
27811
27812         * exp_aggr.adb: Minor reformatting
27813
27814         * exp_ch9.adb: Minor code clean up
27815         Minor reformatting
27816         Fix bad character in comment
27817
27818         PR ada/13471
27819         * targparm.adb (Get_Target_Parameters): Give clean abort error on
27820         unexpected end of file, along with more detailed message.
27821
27822 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27823
27824         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
27825         PAT.
27826
27827         * decl.c (copy_alias_set): New function.
27828         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
27829
27830 2004-01-23  Doug Rupp  <rupp@gnat.com>
27831
27832         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
27833         lib$${file} in case subsequent character is not a separator.
27834
27835 2004-01-23  Vincent Celier  <celier@gnat.com>
27836
27837         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
27838         when the GCC version is at least 3.
27839
27840         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
27841         Remove all "Opt.", to prepare for opt split
27842
27843         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
27844         Extends_All. Set to True when the project parsed is an extending all
27845         project. Fails for importing an extending all project only when the
27846         imported project is an extending all project.
27847         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
27848         depending on the value of Extends_All returned.
27849
27850         * prj-proc.adb (Process): Check that no project shares its object
27851         directory with a project that extends it, directly or indirectly,
27852         including a virtual project.
27853         Check that no project extended by another project shares its object
27854         directory with another also extended project.
27855
27856         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
27857         Kind = N_With_Clause
27858
27859         * prj-tree.ads: Minor reformatting
27860         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
27861
27862 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
27863
27864         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
27865         applies to a type with an incomplete view, use full view in Name of
27866         clause, for consistency with uses of Get_Attribute_Definition_Clause.
27867
27868 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
27869
27870         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
27871         SCHED_RR, since other values are not supported by this policy.
27872         (Initialize): Move initialization of mutex attribute to package
27873         elaboration, to prevent early access to this variable.
27874
27875         * Makefile.in: Remove mention of Makefile.adalib, unused.
27876
27877         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
27878         1ssecsta.ads: Removed, unused.
27879
27880 2004-01-21  Javier Miranda  <miranda@gnat.com>
27881
27882         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
27883         entity if already built in the current scope.
27884
27885         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
27886         reminder in internal scopes. Required for nested limited aggregates.
27887
27888 2004-01-21  Doug Rupp  <rupp@gnat.com>
27889
27890         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
27891         VMS. Replace all occurences of libgnat- and libgnarl- with
27892         libgnat$(hyphen) and libgnarl$(hyphen).
27893         Fixed shared library build problem on VMS.
27894
27895 2004-01-21  Robert Dewar  <dewar@gnat.com>
27896
27897         * mlib-prj.adb: Minor reformatting
27898
27899 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
27900
27901         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
27902         'constant' keywords for declaration of pointers that are not modified.
27903
27904         * exp_pakd.adb: Fix English in comment.
27905
27906 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
27907
27908         PR ada/10889
27909         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
27910         copy all attributes of the parent, including the foreign language
27911         convention.
27912
27913 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
27914
27915         PR ada/10565
27916         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
27917         for 'delay until' statement.
27918
27919 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
27920
27921         * Make-lang.in: Replace $(docdir) with doc.
27922         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
27923         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
27924         to use consistent MAKEINFO rule.
27925         (ada.man, ada.srcman): Dummy entry.
27926         (ADA_INFOFILES): Define.
27927         (ada.info, ada.srcinfo): New rules.
27928
27929 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
27930
27931         * utils.c: Update copyright notice, missed in previous change.
27932
27933 2004-01-19  Vincent Celier  <celier@gnat.com>
27934
27935         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
27936         args if Bind is True. Set First_ALI, if not already done.
27937         (Build_Library): For Stand Alone Libraries, extract from one ALI file
27938         an eventual --RTS switch, for gnatbind, and all backend switches +
27939         --RTS, for linking.
27940
27941 2004-01-19  Robert Dewar  <dewar@gnat.com>
27942
27943         * sem_attr.adb, memtrack.adb: Minor reformatting
27944
27945 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
27946
27947         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
27948         that rename enumeration literals. This is properly done in sem_eval.
27949
27950         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
27951         to functions that rename enumeration literals.
27952
27953         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
27954         functions that rename enumeration literals.
27955
27956 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
27957
27958         * Make-lang.in (utils.o): Depend on target.h.
27959         * utils.c: Include target.h.
27960         (process_attributes): Use targetm.have_named_sections instead
27961         of ASM_OUTPUT_SECTION_NAME.
27962
27963 2004-01-16  Andreas Jaeger  <aj@suse.de>
27964
27965         * Makefile.in: Add $(DESTDIR).
27966
27967 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
27968
27969         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
27970         also when not defining if a Size clause applies. That information is
27971         not to be ignored.
27972
27973 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
27974
27975         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
27976         symbolic links for the shared gnat run time when needed.
27977
27978 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
27979
27980         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
27981         for writing, and terminate with an error message if not.
27982
27983 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
27984
27985         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
27986         warning on an access to subprogram in an instance, when the target
27987         type is declared in the same generic unit.
27988         (Eval_Attribute): If 'access is known to fail accessibility check,
27989         rewrite as a raise statement.
27990
27991 2004-01-15  GNAT Script  <nobody@gnat.com>
27992
27993         * Make-lang.in: Makefile automatically updated
27994
27995 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
27996
27997         * Make-lang.in (ada.srcextra): Dummy entry.
27998
27999 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
28000
28001         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
28002
28003 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
28004
28005         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
28006         components that are initialized with aggregates.
28007
28008 2004-01-13  Vincent Celier  <celier@gnat.com>
28009
28010         * gnatlink.adb (Process_Binder_File): To find directory of shared
28011         libgcc, if "gcc-lib" is not a subdirectory, look for the last
28012         subdirectory "lib" in the path of the shared libgnat or libgnarl.
28013
28014         * make.adb (Gnatmake): If GCC version is at least 3, link with
28015         -shared-libgcc, when there is at least one shared library project.
28016
28017         * opt.ads (GCC_Version): New integer constant.
28018
28019         * adaint.c (get_gcc_version): New function.
28020
28021 2004-01-13  Robert Dewar  <dewar@gnat.com>
28022
28023         * sem_dist.adb, sem_res.adb, sem_util.adb,
28024         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
28025         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
28026
28027 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
28028
28029         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
28030         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
28031         declarations.
28032
28033 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
28034
28035         * misc.c: Remove trailing spaces.
28036         Update copyright notice missed in previous change.
28037
28038         PR ada/13572
28039         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
28040         prefix/share/make
28041
28042         * Makefile.generic: Update copyright.
28043         Add license notice.
28044
28045         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
28046         of prefix/share/make.
28047
28048         * Makefile.prolog: Update copyright.
28049         Add license notice.
28050
28051 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
28052
28053         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
28054         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
28055         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
28056         instead of String.
28057
28058         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
28059         signature.
28060
28061 2004-01-12  Javier Miranda  <miranda@gnat.com>
28062
28063         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
28064         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
28065         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
28066         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
28067         Component_Definition node.
28068
28069 2004-01-12  Ed Falis  <falis@gnat.com>
28070
28071         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
28072
28073 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
28074
28075         * link.c: Change default libgnat kind to STATIC for FreeBSD.
28076
28077 2004-01-12  Bernard Banner  <banner@gnat.com>
28078
28079         * Makefile.in: map 86numaux to a-numaux for x86_64
28080
28081 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
28082
28083         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
28084         generated to rename a generic actual, go to the actual itself, the
28085         subtype is not a user-visible entity.
28086
28087         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
28088         part is a private subtype, reset the visibility of its full view, if
28089         any, to be consistent.
28090
28091         PR ada/13417
28092         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
28093         to use a generic package G as a formal package for another generic
28094         declared within G.
28095
28096 2004-01-12  Robert Dewar  <dewar@gnat.com>
28097
28098         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
28099
28100         * usage.adb: Remove mention of obsolete -gnatwb switch
28101         Noticed during code reading
28102
28103 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
28104
28105         * 1ssecsta.adb: Minor changes for -gnatwa warnings
28106
28107 2004-01-12  GNAT Script  <nobody@gnat.com>
28108
28109         * Make-lang.in: Makefile automatically updated
28110
28111 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
28112
28113         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
28114
28115 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28116
28117         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
28118
28119 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
28120
28121         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
28122         Update comment and copyright date.
28123         * stamp-xgnatug: Delete.
28124
28125 2004-01-05  Robert Dewar  <dewar@gnat.com>
28126
28127         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
28128         be modified by the binder generated main program if the -D switch is
28129         used.
28130
28131         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
28132         imported functions (since now we expect this to be done for imported
28133         functions)
28134
28135         * 5vtaprop.adb: Add several ??? for sections requiring more comments
28136         Minor reformatting throughout
28137
28138         * 5zinit.adb: Minor reformatting
28139         Add 2004 to copyright date
28140         Minor changes to avoid -gnatwa warnings
28141         Correct some instances of using OR instead of OR ELSE (noted while
28142         doing reformatting)
28143
28144         * sprint.adb: Minor updates to avoid -gnatwa warnings
28145
28146         * s-secsta.ads, s-secsta.adb:
28147         (SS_Get_Max): New function to obtain high water mark for ss stack
28148         Default_Secondary_Stack is not a constant since it may be modified by
28149         the binder generated main program if the -D switch is used.
28150
28151         * switch-b.adb: New -Dnnn switch for binder
28152
28153         * switch-c.adb:
28154         Make -gnatg imply all warnings currently in -gnatwa
28155
28156         * vms_conv.adb: Minor reformatting
28157         Add 2004 to copyright notice
28158         Add 2004 to printed copyright notice
28159
28160         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
28161         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
28162         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
28163         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
28164         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
28165         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
28166         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
28167         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
28168         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
28169         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
28170         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
28171         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
28172         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
28173         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
28174         checks.adb, clean.adb, cstand.adb, einfo.ads,
28175         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
28176         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
28177         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
28178         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
28179         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
28180         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
28181         Minor reformatting and code clean ups.
28182         Minor changes to prevent -gnatwa warnings
28183
28184         * ali.adb: Minor reformatting and cleanup of code
28185         Acquire new SS indication of secondary stack use from ali files
28186
28187         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
28188         (since now we expect this to be done for imported functions)
28189
28190         * bindgen.adb: Generate call to modify default secondary stack size if
28191         -Dnnn switch given
28192
28193         * bindusg.adb: Add line for new -D switch
28194
28195         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
28196         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
28197         Add circuitry for both records and arrays to avoid gigi
28198         processing if the type involved has non-bit-aligned components
28199
28200         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
28201         N_String_Literal node always references an E_String_Literal_Subtype
28202         entity. This may not be true in the future.
28203         (Possible_Bit_Aligned_Component): Move processing of
28204         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
28205
28206         * exp_ch6.adb (Expand_Thread_Body): Pick up
28207         Default_Secondary_Stack_Size as variable so that we get value modified
28208         by possible -Dnnn binder parameter.
28209
28210         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
28211         (Type_May_Have_Bit_Aligned_Components): New function.
28212
28213         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
28214         (Type_May_Have_Bit_Aligned_Components): New function.
28215
28216         * fe.h: (Set_Identifier_Casing): Fix prototype.
28217         Add declaration for Sem_Elim.Eliminate_Error_Msg.
28218         Minor reformatting.
28219
28220         * freeze.adb (Freeze_Entity): Add RM reference to error message about
28221         importing constant atomic/volatile objects.
28222         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
28223         unless explicit Pure_Function pragma given, to avoid insidious bug of
28224         call to non-pure imported function getting eliminated.
28225
28226         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
28227         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
28228         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
28229         Add 2004 to printed copyright notice
28230
28231         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
28232         stack used.
28233
28234         * Makefile.rtl: Add entry for g-sestin.o
28235         g-sestin.ads: New file.
28236
28237         * mdll.adb: Minor changes to avoid -gnatwa warnings
28238
28239         * mlib-tgt.adb: Minor reformatting
28240
28241         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
28242         New switch Sec_Stack_Used (GNAT, GNATBIND)
28243         Make Default_Secondary_Stack_Size a variable instead of a constant,
28244         so that it can be modified by the new -Dnnn bind switch.
28245
28246         * rtsfind.adb (Load_Fail): Give full error message in configurable
28247         run-time mode if all_errors mode is set. This was not done in the case
28248         of a file not found, which was an oversight.
28249         Note if secondary stack unit is used by compiler.
28250
28251         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
28252         ineffective elaborate all pragmas on non-visible packages (this
28253         happened when a renamed subprogram was called). Now the elaborate all
28254         always goes on the package containing the renaming rather than the one
28255         containing the renamed subprogram.
28256
28257         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
28258         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
28259
28260         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
28261         has an Etype that references an E_String_Literal.
28262         (Eval_String_Literal): Avoid assumption that N_String_Literal node
28263         always references an E_String_Literal_Subtype entity. This may not
28264         be true in the future.
28265
28266         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
28267         pragma location.
28268
28269         * sem_res.adb (Resolve): Specialize msg for function name used in proc
28270         call.
28271
28272 2004-01-05  Ed Falis  <falis@gnat.com>
28273
28274         * g-debuti.adb: Replaced direct boolean operator with short-circuit
28275         form.
28276
28277 2004-01-05  Vincent Celier  <celier@gnat.com>
28278
28279         * bld.adb: Minor comment updates
28280         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
28281         of Item_Name).
28282
28283         * make.adb (Gnatmake): Special process for files to compile/check when
28284         -B is specified. Fail when there are only foreign mains in attribute
28285         Main of the project file and -B is not specified. Do not skip bind/link
28286         steps when -B is specified.
28287
28288         * makeusg.adb: Document new switch -B
28289
28290         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
28291
28292         * switch-m.adb: (Scan_Make_Switches): Process -B switch
28293
28294         * vms_data.ads: Add new GNAT PRETTY qualifier
28295         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
28296
28297 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28298
28299         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
28300         case.
28301
28302         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
28303         Set_Identifier_Casing.
28304
28305         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
28306         has size that overflows.
28307
28308 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
28309
28310         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
28311         -gnatwa warning on static condition.
28312
28313 2004-01-05  Doug Rupp  <rupp@gnat.com>
28314
28315         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
28316
28317 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
28318
28319         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
28320         all attributes, including read-only attribute.
28321
28322 2004-01-05  Pascal Obry  <obry@gnat.com>
28323
28324         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
28325         library naming scheme.
28326
28327         * mlib-prj.adb (Build_Library): Generate different names for the static
28328         or dynamic version of the GNAT runtime. This is needed to support the
28329         new shared library naming scheme.
28330         (Process_Binder_File): Add detection of shared library in binder file
28331         based on the new naming scheme.
28332
28333         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
28334         scheme for the shared runtime libraries.
28335
28336         * Makefile.in:
28337         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
28338         scheme.
28339         (install-gnatlib): Do not create symlinks for shared libraries.
28340         (gnatlib-shared-default): Idem.
28341         (gnatlib-shared-dual-win32): New target. Not used for now as the
28342         auto-import feature does not support arrays/records.
28343         (gnatlib-shared-win32): Do not create copy for the shared libraries.
28344         (gnatlib-shared-vms): Fix shared runtime libraries names.
28345
28346         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
28347         dependent runtime shared library name.
28348
28349 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
28350
28351         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
28352         than the object.
28353
28354 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
28355
28356         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
28357         protected objects when allocator has a subtype indication, not a
28358         qualified expression. Note that qualified expressions may have to be
28359         checked when limited aggregates are implemented.
28360
28361         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
28362         pure, emit warning.
28363         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
28364         subprogram is imported, remove warning.
28365
28366 2004-01-05  Geert Bosch  <bosch@gnat.com>
28367
28368         * s-poosiz.adb: Update copyright notice.
28369         (Allocate): Use Task_Lock to protect against concurrent access.
28370         (Deallocate): Likewise.
28371
28372 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
28373
28374         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
28375         comment.
28376
28377 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
28378
28379         * gnat_ug.texi: Force a CVS commit by updating copyright.
28380         * gnat_ug_vxw.texi: Regenerate.
28381         * gnat_ug_wnt.texi: Regenerate.
28382         * gnat_ug_vms.texi: Regenerate.
28383         * gnat_ug_unx.texi: Regenerate.
28384
28385 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
28386
28387         * trans.c: Remove uses of "register" specifier in
28388         declarations of local variables.
28389
28390 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
28391
28392         * stamp-xgnatug: New stamp file.
28393         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
28394         (ada/doctools/xgnatug): Add $(build_exeext).
28395         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
28396         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
28397
28398 2003-12-17  Ed Falis  <falis@gnat.com>
28399
28400         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
28401         eliminate warning.
28402
28403         * a-exextr.adb: Add context clause for
28404         Ada.Exceptions.Last_Chance_Handler.
28405
28406 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
28407
28408         * cstand.adb (Create_Standard): Change the way how the declaration of
28409         the Duration type is created (making it the same way as it is for all
28410         the other standard types).
28411
28412 2003-12-17  Robert Dewar  <dewar@gnat.com>
28413
28414         * s-crtl.ads: Fix header format
28415         Change Pure to Preelaborate
28416
28417 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
28418
28419         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
28420         the expression type only if it is declared in the current unit.
28421
28422         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
28423         are universal and already analyzed, as can occur in constrained
28424         subcomponents that depend on discriminants, when one constraint is a
28425         subtype mark.
28426
28427         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
28428         type Any_Fixed is legal as the argument of a conversion, if only one
28429         fixed-point type is in context.
28430
28431 2003-12-17  GNAT Script  <nobody@gnat.com>
28432
28433         * Make-lang.in: Makefile automatically updated
28434
28435 2003-12-15  Robert Dewar  <dewar@gnat.com>
28436
28437         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
28438         sec stack size.
28439
28440 2003-12-15  Vincent Celier  <celier@gnat.com>
28441
28442         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
28443         (Gnatchop): Do not set failure status when reporting the number of
28444         warnings.
28445
28446 2003-12-15  Doug Rupp  <rupp@gnat.com>
28447
28448         * s-ctrl.ads: New file.
28449
28450         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
28451
28452         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
28453         (GNATBIND_OBJS): Add ada/s-crtl.o.
28454
28455         * Makefile.in [VMS]: Clean up ifeq rules.
28456
28457         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
28458         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
28459         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
28460         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
28461         s-tasdeb.adb: Update copyright.
28462         Import System.CRTL.
28463         Make minor modifications to use System.CRTL declared functions instead
28464         of importing locally.
28465
28466 2003-12-15  GNAT Script  <nobody@gnat.com>
28467
28468         * Make-lang.in: Makefile automatically updated
28469
28470 2003-12-11  Ed Falis  <falis@gnat.com>
28471
28472         * 5zinit.adb: Clean up.
28473
28474         * 5zintman.adb (Notify_Exception): replaced case statement with a call
28475         to __gnat_map_signal, imported from init.c to support
28476         signal -> exception mappings that depend on the vxWorks version.
28477
28478         * init.c:
28479         Created and exported __gnat_map_signal to support signal -> exception
28480         mapping that is dependent on the VxWorks version.
28481         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
28482
28483 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
28484
28485         * 5wosinte.ads: Link with -mthreads switch.
28486
28487 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
28488
28489         * init.c (__gnat_install_handler [NetBSD]): Set
28490         __gnat_handler_installed, as done on all other platforms.
28491         Remove duplicated code.
28492
28493 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
28494
28495         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
28496
28497 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
28498
28499         * sinfo.ads: Fix inconsistent example code in comment.
28500
28501 2003-12-11  Robert Dewar  <dewar@gnat.com>
28502
28503         * a-tiinau.adb: Add a couple of comments
28504
28505         * sem_ch3.adb: Minor reformatting
28506
28507         * sem_prag.adb:
28508         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
28509         Minor reformatting throughout
28510
28511 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
28512
28513         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
28514         bounds of a loop, create a separate block in order to generate proper
28515         cleanup actions to prevent memory leaks.
28516
28517         * sem_res.adb (Resolve_Call): After a call to
28518         Establish_Transient_Scope, the call may be rewritten and relocated, in
28519         which case no further processing is needed.
28520
28521         * sem_util.adb: (Wrong_Type): Refine previous fix.
28522          Fixes ACATS regressions.
28523
28524         PR ada/13353
28525         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
28526         be inlined.
28527
28528 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
28529
28530         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
28531         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
28532         obsolete files.
28533
28534         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
28535         (rts-zfp): Ditto.
28536
28537 2003-12-08  Robert Dewar  <dewar@gnat.com>
28538
28539         * 7sintman.adb: Minor reformatting
28540
28541         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
28542         standard linker options to get standard libraries linked. We now plan
28543         to provide dummy versions of these libraries to match the appropriate
28544         configurable run-time (e.g. if a library is not needed at all, provide
28545         a dummy empty library).
28546
28547         * targparm.ads: Configurable_Run_Time mode no longer affects linker
28548         options (-L parameters and standard libraries). What we plan to do is
28549         to provide dummy libraries where the libraries are not required.
28550
28551         * gnatbind.adb: Minor comment improvement
28552
28553 2003-12-08  Javier Miranda  <miranda@gnat.com>
28554
28555         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
28556         aggregate in the parent. Otherwise constants with limited aggregates
28557         are not supported. Add new formal to pass the component type (Ctype).
28558         It is required to call the corresponding IP subprogram in case of
28559         default initialized components.
28560         (Gen_Assign): In case of default-initialized component, generate a
28561         call to the IP subprogram associated with the component.
28562         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
28563         of aggregate with default initialized components.
28564         (Has_Default_Init_Comps): Improve implementation to recursively check
28565         all the present expressions.
28566
28567         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
28568         to indicate that the initialization call corresponds to a
28569         default-initialized component of an aggregate.
28570         In case of default initialized aggregate with tasks this parameter is
28571         used to generate a null string (this is just a workaround that must be
28572         improved later). In case of discriminants, this parameter is used to
28573         generate a selected component node that gives access to the discriminant
28574         value.
28575
28576         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
28577         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
28578         allocated aggregates with default-initialized components.
28579
28580         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
28581         the box notation is used in positional aggregates.
28582
28583 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
28584
28585         * lib.ads: Fix typo in comment
28586
28587 2003-12-08  Vincent Celier  <celier@gnat.com>
28588
28589         * prj.adb (Project_Empty): New component Unkept_Comments
28590         (Scan): Remove procedure; moved to Prj.Err.
28591
28592         * prj.ads (Project_Data): New Boolean component Unkept_Comments
28593         (Scan): Remove procedure; moved to Prj.Err.
28594
28595         * prj-dect.adb: Manage comments for the different declarations.
28596
28597         * prj-part.adb (With_Record): New component Node
28598         (Parse): New Boolean parameter Store_Comments, defaulted to False.
28599         Set the scanner to return ends of line and comments as tokens, if
28600         Store_Comments is True.
28601         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
28602         comments are associated with these nodes. Store the node IDs in the
28603         With_Records.
28604         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
28605         With_Records.
28606         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
28607         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
28608         current project. Call Tree.Restore afterwards. Set the various nodes
28609         for comment storage (Next_End, End_Of_Line, Previous_Line,
28610         Previous_End).
28611
28612         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
28613         defaulted to False.
28614
28615         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
28616         to False. When Truncated is True, truncate the string, never go to the
28617         next line.
28618         (Write_End_Of_Line_Comment): New procedure
28619         (Print): Process comments for nodes N_With_Clause,
28620         N_Package_Declaration, N_String_Type_Declaration,
28621         N_Attribute_Declaration, N_Typed_Variable_Declaration,
28622         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
28623         Process nodes N_Comment.
28624
28625         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
28626         without comments and there are some comments, set the flag
28627         Unkept_Comments to True.
28628         (Scan): If there are comments, set the flag Unkept_Comments to True and
28629         clear the comments.
28630         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
28631         (Next_End_Nodes: New table
28632         (Comment_Zones_Of): New function
28633         (Scan): New procedure; moved from Prj. Accumulate comments in the
28634         Comments table and set end of line comments, comments after, after end
28635         and before end.
28636         (Add_Comments): New procedure
28637         (Save, Restore, Seset_State): New procedures
28638         (There_Are_Unkept_Comments): New function
28639         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
28640         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
28641         procedures.
28642         (First_Comment_After, First_Comment_After_End): New functions
28643         (First_Comment_Before, First_Comment_Before_End): New functions
28644         (Next_Comment): New function
28645         (End_Of_Line_Comment, Follows_Empty_Line,
28646         Is_Followed_By_Empty_Line): New functions
28647         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
28648         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
28649         (Set_Next_Comment): New procedure
28650         (Default_Project_Node): Associate comment before if the node can store
28651         comments.
28652
28653         * scans.ads (Token_Type): New enumeration value Tok_Comment
28654         (Comment_Id): New global variable
28655
28656         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
28657         defaulted to False.
28658         (Scan): Store position of start of comment. If comments are tokens, set
28659         Comment_Id and set Token to Tok_Comment when scanning a comment.
28660         (Set_Comment_As_Token): New procedure
28661
28662         * sinput-p.adb: Update Copyright notice
28663         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
28664         that no longer exists.
28665
28666 2003-12-08  Javier Miranda  <miranda@gnat.com>
28667
28668         * sem_aggr.adb: Add dependence on Exp_Tss package
28669         Correct typo in comment
28670         (Resolve_Aggregate): In case of array aggregates set the estimated
28671         type of the aggregate before calling resolve. This is needed to know
28672         the name of the corresponding IP in case of limited array aggregates.
28673         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
28674         in case of default initialized array components.
28675
28676         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
28677         types. Required to give support to limited aggregates in generic
28678         formals.
28679
28680 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
28681
28682         * sem_ch3.adb (Check_Initialization): For legality purposes, an
28683         inlined body functions like an instantiation.
28684         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
28685         until bounds are analyzed, to diagnose premature use of type.
28686
28687         * sem_util.adb (Wrong_Type): Improve error message when the type of
28688         the expression is used prematurely.
28689
28690 2003-12-08  GNAT Script  <nobody@gnat.com>
28691
28692         * Make-lang.in: Makefile automatically updated
28693
28694 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
28695
28696         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
28697         they are automatically generated by Make-lang.in and cause nothing but
28698         maintenance troubles.
28699
28700 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
28701
28702         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
28703         version of this unit).
28704
28705 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
28706
28707         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
28708         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
28709         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
28710         the body of System.Interrupt_Management common to several targets.
28711         Update copyright notice when appropriate.
28712
28713         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
28714         constant.
28715
28716         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
28717         to ensure that the kernel fills in the interrupted context structure
28718         before calling a signal handler, which is necessary to be able to
28719         unwind past it. Update the copyright notice.
28720
28721 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
28722
28723         * a-elchha.ads: New file.
28724
28725         * a-elchha.adb: New default last chance handler. Contents taken from
28726         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
28727
28728         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
28729         is moved to a-elchha.adb to provide a target-independent default last
28730         chance handler.
28731
28732         * Makefile.rtl: Add a-elchha.o
28733
28734         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
28735
28736 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
28737
28738         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
28739         declared in an instance, do not inline the call if the instance is not
28740         frozen yet, to prevent order of elaboration problems.
28741
28742         * sem_prag.adb: Add comments for previous fix.
28743
28744 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
28745
28746         * g-table.adb: Use the right variable in Set_Item.
28747         Update copyright notice.
28748
28749 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
28750
28751         * Makefile.in: Remove unused rules.
28752
28753 2003-12-05  Vincent Celier  <celier@gnat.com>
28754
28755         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
28756         -nostdlib. Not needed here after all.
28757
28758 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
28759
28760         PR ada/11724
28761         * adaint.h, adaint.c, g-os_lib.ads:
28762         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
28763         on some platforms (including FreeBSD), it is a 64 bit value.
28764         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
28765
28766 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
28767
28768         * gnatvsn.ads (Library_Version): Now contain only the relevant
28769         version info.
28770         (Verbose_Library_Version): New constant.
28771
28772         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28773         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28774         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28775
28776         * gnatlbr.adb: Clean up: replace Library_Version by
28777         Verbose_Library_Version.
28778
28779         * make.adb, lib-writ.adb, exp_attr.adb:
28780         Clean up: replace Library_Version by Verbose_Library_Version.
28781
28782         * 5lintman.adb: Removed.
28783
28784         * Makefile.in:
28785         Update and simplify computation of LIBRARY_VERSION.
28786         Fix computation of GSMATCH_VERSION.
28787         5lintman.adb is no longer used: replaced by 7sintman.adb.
28788
28789 2003-12-03  Robert Dewar  <dewar@gnat.com>
28790
28791         * exp_ch5.adb:
28792         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
28793         name. Modified to consider small non-bit-packed arrays as troublesome
28794         and in need of component-by-component assigment expansion.
28795
28796 2003-12-03  Vincent Celier  <celier@gnat.com>
28797
28798         * lang-specs.h: Process nostdlib as nostdinc
28799
28800         * back_end.adb: Update Copyright notice
28801         (Scan_Compiler_Arguments): Process -nostdlib directly.
28802
28803 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
28804
28805         * Makefile.in:
28806         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
28807         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
28808         included in HIE_NONE_TARGET_PAIRS.
28809
28810 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
28811
28812         * sem_attr.adb:
28813         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
28814         is legal in an instance, because legality is cheched in the template.
28815
28816         * sem_prag.adb:
28817         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
28818         appplied to an unchecked conversion of a formal parameter.
28819
28820         * sem_warn.adb:
28821         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
28822         variables.
28823
28824 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
28825
28826         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
28827         routines. The second one is new functionality to deal with backtracing
28828         through signal handlers.
28829         (unwind): Split into the two separate subroutines above.
28830         Update the documentation, and deal properly with sizeof (REG) different
28831         from sizeof (void*).
28832
28833 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
28834
28835         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
28836         so that the debugger can reliably access the value of the parameter,
28837         and therefore is able to display the exception name when an exception
28838         breakpoint is reached.
28839
28840 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
28841
28842         * fmap.adb: Fix typo in warning message.
28843
28844         * g-socket.ads, g-socket.adb: Make Free a visible instance of
28845         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
28846
28847 2003-12-01  Vincent Celier  <celier@gnat.com>
28848
28849         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
28850         ther is no Afile.
28851         (Build_Library): Get the switches only if Default_Switches is declared
28852         in package Binder.
28853
28854 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
28855
28856         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
28857         actuals that are indexed components, reanalyze actual to ensure that
28858         packed array references are properly expanded.
28859
28860         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
28861         attempted assignment to a discriminant.
28862
28863 2003-12-01  Robert Dewar  <dewar@gnat.com>
28864
28865         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
28866         reformatting.
28867
28868         * switch-c.adb: Minor reformatting of comments
28869
28870 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
28871
28872         * Makefile.in: Clean ups.
28873
28874 2003-12-01  GNAT Script  <nobody@gnat.com>
28875
28876         * Make-lang.in: Makefile automatically updated
28877
28878 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
28879
28880         * 5wsystem.ads: Disable zero cost exception, not ready yet.
28881
28882 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
28883
28884         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
28885         to force serialization.
28886
28887 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
28888
28889         * g-socket.ads, g-socket.adb:
28890         Clarify documentation of function Stream. Introduce a Free procedure
28891         to release the returned Stream once it becomes unused.
28892
28893         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
28894
28895 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
28896
28897         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
28898         since NT 4 cannot handle timeout values that are too large,
28899         e.g. DWORD'Last - 1.
28900
28901 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
28902
28903         * exp_ch4.adb:
28904         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
28905         in procedure calls and whose expansion must be deferred.
28906
28907         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
28908         is in exp_ch4.
28909
28910         * sem_ch3.adb:
28911         (Build_Derived_Array_Type): Create operator for unconstrained type
28912         if ancestor is unconstrained.
28913
28914 2003-11-26  Vincent Celier  <celier@gnat.com>
28915
28916         * make.adb (Project_Object_Directory): New global variable
28917         (Change_To_Object_Directory): New procedure
28918         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
28919         of Change_Dir directly. Do not change working directory to object
28920         directory of main project after each compilation.
28921         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
28922         directly.
28923         Change to object directory of main project before binding step.
28924         (Initialize): Initialize Project_Object_Directory to No_Project
28925
28926         * mlib-prj.adb:
28927         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
28928         binding a Stand-Alone Library.
28929
28930         * output.adb: Update Copyright notice
28931         (Write_Char): Output buffer when full
28932
28933 2003-11-26  Robert Dewar  <dewar@gnat.com>
28934
28935         * sem_ch13.adb: (Check_Size): Reset size if size is too small
28936
28937         * sem_ch13.ads:
28938         (Check_Size): Fix documentation to include bit-packed array case
28939
28940         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
28941
28942         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
28943
28944         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
28945
28946 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
28947
28948         PR ada/13142
28949         * utils.c (init_gigi_decls): Change name of built-in setjmp to
28950         __builtin_setjmp, since this is apparently needed by recent
28951         non Ada changes.
28952
28953 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28954
28955         * adadecode.c: Only include ctype.h if not IN_GCC.
28956         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
28957
28958 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
28959
28960         * Makefile.in:
28961         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
28962         signals and interrupts.
28963
28964         * 5zintman.ads: New File.
28965
28966         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
28967         add exception signals to the set of unmasked signals.
28968
28969         * 5ztaprop.adb:
28970         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
28971         between signals and interrupts.
28972         Add to Unblocked_Signal_Mask the set of signals that are in
28973         Keep_Unmasked.
28974
28975         * 7sinmaop.adb:
28976         Adding a check to see whether the Interrupt_ID we want to unmask is in
28977         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
28978         reason is that the index type of the Keep_Unmasked array is not always
28979         Interrupt_ID; it may be a subtype of Interrupt_ID.
28980
28981 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
28982
28983         * exp_util.adb:
28984         (Remove_Side_Effects): Condition constantness of object created for a
28985          an unchecked type conversion on the constantness of the expression
28986          to ensure the correct value for 'Constrained when passing components
28987          of view-converted class-wide objects.
28988
28989 2003-11-24  Robert Dewar  <dewar@gnat.com>
28990
28991         * par-load.adb (Load): Improve handling of misspelled and missing units
28992         Removes several cases of compilation abandoned messages
28993
28994         * lib.adb: (Remove_Unit): New procedure
28995
28996         * lib.ads: (Remove_Unit): New procedure
28997
28998         * lib-load.adb: Minor reformatting
28999
29000 2003-11-24  Vincent Celier  <celier@gnat.com>
29001
29002         * make.adb:
29003         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
29004         (Marking_Label): Label to mark processed source files. Incremented for
29005         each executable.
29006         (Gnatmake): Increase Marking_Labet for each executable
29007         (Is_Marked): Compare against marking label
29008         (Mark): Mark with marking label
29009
29010 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
29011
29012         * s-thread.ads:
29013         Move the declaration of the TSD for System.Threads to System.Soft_Links.
29014         Add some comments.
29015
29016         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
29017         (rts-cert): build a single relocatable object for the run-time lib.
29018         Fix perms.
29019
29020 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
29021
29022         * Make-lang.in:
29023         Use gnatls rather than gcc to obtain the location of GNAT RTL for
29024         crosstools build.
29025
29026 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
29027
29028         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
29029         can not use it as before (that is, as a variable) when dumping it into
29030         the tree file. Add a local variable to store the result of this
29031         function and to be used as the string to be written into the tree.
29032
29033         * scn.adb (Initialize_Scanner): Add comments explaining the recent
29034         changes.
29035
29036         * sinput.adb (Source_First, Source_Last): In case of
29037         Internal_Source_File, replace returning attributes of
29038         Internal_Source_Ptr (which is wrong) with returning attributes of
29039         Internal_Source.
29040
29041 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
29042
29043         * sem_ch3.adb:
29044         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
29045         used for implicit concatenation operators.
29046         Code cleanup.
29047
29048         * sem_elab.adb:
29049         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
29050         task bodies that are in the scope of a Suppress pragma.
29051         (Check_A Call): Use the flag to prevent spurious elaboration checks.
29052
29053         * sinfo.ads, sinfo.adb:
29054         New flag No_Elaboration_Check on function/procedure calls, to properly
29055         suppress checks on calls in task bodies that are within a local suppress
29056         pragma.
29057
29058         * exp_ch4.adb:
29059         (Expand_Concatenate_Other): Use the proper integer type for the
29060         expression for the upper bound, to avoid universal_integer computations
29061         when possible.
29062
29063 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
29064
29065         * .cvsignore: Delete.
29066
29067 2003-11-21  Andreas Schwab  <schwab@suse.de>
29068
29069         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
29070
29071 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
29072
29073         * 5wsystem.ads: Enable zero cost exception.
29074
29075 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
29076
29077         * 5ztiitho.adb: Remove an unreferenced variable.
29078
29079 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
29080
29081         * adaint.c: For FreeBSD, use mkstemp.
29082
29083 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
29084
29085         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
29086
29087 2003-11-21  Robert Dewar  <dewar@gnat.com>
29088
29089         * bld.adb: Remove useless USE of gnatvsn
29090
29091         * gnatchop.adb: Minor reformatting
29092         Clean up version handling to be more consistent
29093
29094         * gnatxref.adb: Minor reformatting
29095
29096         * gprcmd.adb: Minor reformatting
29097         Fix output of copyright to be more consistent with other tools
29098
29099 2003-11-21  Vincent Celier  <celier@gnat.com>
29100
29101         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
29102
29103 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
29104
29105         * atree.adb (Initialize): Add initializations for global variables
29106         used in New_Copy_Tree.
29107
29108         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
29109         Internal_Source_File as the actual).
29110         Put the set of statements creating Any_Character before the set of
29111         statements creating Any_Array to have Any_Character fully initialized
29112         when it is used in creating Any_Array.
29113
29114         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
29115         not call Scan in case if the actual is Internal_Source_File
29116         Add 2003 to copyright note.
29117
29118         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
29119         processing Internal_Source_File.
29120
29121         * types.ads: Add the constant Internal_Source_File representing the
29122         source buffer for artificial source-code-like strings created within
29123         the compiler (the definition of Source_File_Index is changed).
29124
29125 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
29126
29127         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
29128         56system.ads: New file, FreeBSD version.
29129
29130 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
29131
29132         * Make-lang.in (ada.extraclean): Delete.
29133
29134 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
29135
29136         * gnatmem.adb: Clean up verbose output.
29137
29138         * gprcmd.adb: Change copyright to FSF.
29139
29140 2003-11-19  Vincent Celier  <celier@gnat.com>
29141
29142         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
29143         and Version (ignored).
29144
29145         * symbols.ads: (Policy): New type
29146         (Initialize): New parameter Reference, Symbol_Policy and
29147         Library_Version.
29148         Remove parameter Force.
29149         Minor reformatting.
29150
29151         * snames.ads, snames.adbadb: New standard names
29152         Library_Reference_Symbol_File and Library_Symbol_Policy
29153
29154         * mlib-prj.adb:
29155         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
29156         project.
29157
29158         * mlib-tgt.adb:
29159         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
29160
29161         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
29162
29163         * prj.adb: (Project_Empty): New component Symbol_Data
29164
29165         * prj.ads: (Policy, Symbol_Record): New types
29166         (Project_Data): New component Symbol_Data
29167
29168         * prj-attr.adb:
29169         New attributes Library_Symbol_File, Library_Symbol_Policy and
29170         Library_Reference_Symbol_File.
29171
29172         * prj-nmsc.adb:
29173         (Ada_Check): When project is a Stand-Alone library project, process
29174         attribute Library_Symbol_File, Library_Symbol_Policy and
29175         Library_Reference_Symbol_File.
29176
29177         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29178         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
29179         5sml-tgt.adb (Build_Dynamic_Library): New parameter
29180         Symbol_Data (ignored).
29181
29182         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
29183         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
29184         functions Option_File_Name and Version_String. Set new options of
29185         gnatsym related to symbol file, symbol policy and reference symbol
29186         file.
29187
29188         * 5vsymbol.adb:
29189         Extensive modifications to take into account the reference symbol file,
29190         the symbol policy, the library version and to put in the symbol file the
29191         minor and major IDs.
29192
29193         * bld.adb (Process_Declarative_Items): Put second argument of
29194         gprcmd to_absolute between single quotes, to avoid problems with
29195         Windows.
29196
29197         * bld-io.adb: Update Copyright notice.
29198         (Flush): Remove last character of a line, if it is a back slash, to
29199         avoid make problems.
29200
29201         * gnatsym.adb:
29202         Implement new scheme with reference symbol file and symbol policy.
29203
29204         * g-os_lib.ads: (Is_Directory): Clarify comment
29205
29206 2003-11-19  Robert Dewar  <dewar@gnat.com>
29207
29208         * atree.adb: Move New_Copy_Tree global variables to head of package
29209
29210         * errout.adb: Minor reformatting
29211
29212 2003-11-19  Javier Miranda  <miranda@gnat.com>
29213
29214         * sem_ch4.adb: (Diagnose_Call): Improve error message.
29215         Add reference to Ada0Y (AI-50217)
29216
29217         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
29218         sem_util.adb: Add reference to AI-50217
29219
29220         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
29221
29222         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
29223
29224         * sem_aggr.adb: Complete documentation of AI-287 changes
29225
29226         * par-ch4.adb: Document previous changes.
29227
29228         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
29229         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
29230         Ada0Y (AI-50217)
29231
29232         * exp_aggr.adb: Add references to AI-287 in previous changes
29233
29234 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
29235
29236         * exp_ch6.adb:
29237         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
29238         in the rewriting is the result of an inlined call.
29239
29240         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
29241         parameter is a type conversion, use original node to construct the
29242         post-call assignment, because expression may have been rewritten, e.g.
29243         if it is a packed array.
29244
29245         * sem_attr.adb:
29246         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
29247         body, just as it is in an instance.
29248         Categorization routines
29249
29250         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
29251         Instantiate_Object): Set proper sloc reference for message on missing
29252         actual.
29253
29254 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
29255
29256         * Makefile.in: Add FreeBSD libgnat pairs.
29257
29258         * usage.adb: Fix typo in usage message.
29259
29260 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
29261
29262         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
29263         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
29264         pragma Thread_Body.
29265         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
29266
29267         * s-thread.adb: This file is now a dummy implementation of
29268         System.Thread.
29269
29270 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
29271
29272         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
29273
29274 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
29275
29276         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29277         instanciation references in the parent type description.
29278
29279 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29280
29281         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
29282
29283         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
29284         TYPE_PRECISION directly from esize.
29285
29286 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
29287
29288         * cstreams.c:
29289         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
29290
29291         * init.c: Initialization routines for FreeBSD
29292
29293         * link.c: Link info for FreeBSD
29294
29295         * sysdep.c: Add the case of FreeBSD
29296
29297 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
29298
29299         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
29300         already called in System.Threads.
29301
29302         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
29303         environment task, as it has been moved to System.Threads.Initialization.
29304
29305 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
29306
29307         * adaint.c (__gnatlib_install_locks): Only reference
29308         __gnat_install_locks on VMS, since other platforms can avoid using
29309         --enable-threads=gnat
29310
29311 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29312
29313         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
29314
29315         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
29316         TYPE_PACKED_ARRAY_TYPE_P.
29317         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
29318
29319         Part of PR ada/12806
29320         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
29321         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
29322
29323 2003-11-17  Vincent Celier  <celier@gnat.com>
29324
29325         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
29326         to False.
29327         Do not set exit status to Failure when Warning is True.
29328         (Gnatchop): Make errors "no compilation units found" and
29329         "no source files written" warnings only.
29330
29331         * make.adb (Gnatmake): When using a project file, set
29332         Look_In_Primary_Dir to False.
29333         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
29334         and Local_Configuration_Pragmas in the project where they are declared
29335         not an extending project which might have inherited them.
29336
29337         * osint.adb (Locate_File): If Name is already an absolute path, do not
29338         look for a directory.
29339
29340         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
29341         -gnats (Check_Syntax) is used, issue only a warning, not an error.
29342
29343         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
29344         in objects of type Variable_Value.
29345
29346         * prj.ads: (Variable_Value): New component Project
29347
29348         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
29349         is in a project extended by Project.
29350
29351         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
29352         Project of Variable_Values to this new parameter value.
29353         (Expression): Set component Project of Variable_Values.
29354         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
29355         Set the component Project in array elements.
29356
29357 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
29358
29359         * errout.adb: (Initialize): Add initialization for error nodes.
29360
29361         * sem_ch12.adb (Initialize): Add missing initializations for
29362         Exchanged_Views and Hidden_Entities.
29363
29364 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
29365
29366         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
29367         already instantiated tree for use in subsequent inlining.
29368         (Analyze_Associations, Instantiate_Formal_Subprogram,
29369         Instantiate_Object): improve error message for mismatch in
29370         instantiations.
29371
29372         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
29373         instantiations of subprograms declared in instances.
29374
29375 2003-11-17  Javier Miranda  <miranda@gnat.com>
29376
29377         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
29378         executed only under the Extensions_Allowed flag.
29379
29380 2003-11-17  Robert Dewar  <dewar@gnat.com>
29381
29382         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
29383         zeroes suppressed.
29384         (Address_Image): Fix bug of returning 0x instead of 0x0
29385         Minor reformatting (function specs).
29386
29387         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
29388         (missed case of 33-63)
29389
29390         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
29391
29392         * s-thread.adb: Add comments for pragma Restriction
29393
29394         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
29395         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
29396
29397 2003-11-17  Ed Falis  <falis@gnat.com>
29398
29399         * s-thread.adb: Added No_Tasking restriction for this implementation.
29400
29401 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
29402
29403         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29404         instanciation references in the parent type description.
29405
29406 2003-11-17  GNAT Script  <nobody@gnat.com>
29407
29408         * Make-lang.in: Makefile automatically updated
29409
29410 2003-11-16  Jason Merrill  <jason@redhat.com>
29411
29412         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
29413         and TAGS files that include them for each front end.
29414
29415 2003-11-14  Andreas Jaeger  <aj@suse.de>
29416
29417         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
29418         is the canonical version.
29419         * misc.c (gnat_handle_option): Likewise.
29420
29421         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
29422
29423         * 5nsystem.ads: New file for x86_64-linux-gnu.
29424
29425 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
29426
29427         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
29428
29429         * comperr.adb: Fix logic in previous change.
29430
29431 2003-11-13  Vincent Celier  <celier@gnat.com>
29432
29433         * 5bml-tgt.adb (Build_Dynamic_Library): Use
29434         Osint.Include_Dir_Default_Prefix instead of
29435         Sdefault.Include_Dir_Default_Name.
29436
29437         * gnatlbr.adb: Update Copyright notice
29438         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
29439         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
29440         instead of Sdefault.Object_Dir_Default_Name
29441
29442         * gnatlink.adb:
29443         (Process_Binder_File): Never suppress the option following -Xlinker
29444
29445         * mdll-utl.adb:
29446         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
29447         Sdefault.Object_Dir_Default_Name.
29448
29449         * osint.ads, osint.adb:
29450         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
29451         Minor reformatting.
29452
29453         * vms_conv.ads: Minor reformating
29454         Remove GNAT STANDARD and GNAT PSTA
29455
29456         * vms_conv.adb:
29457         Allow GNAT MAKE to have several files on the command line.
29458         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
29459         Sdefault.Object_Dir_Default_Name.
29460         Minor Reformating
29461         Remove data for GNAT STANDARD
29462
29463         * vms_data.ads:
29464         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
29465         Remove data for GNAT STANDARD
29466         Remove options and documentation for -gnatwb/-gnatwB: these warning
29467         options no longer exist.
29468
29469 2003-11-13  Ed Falis  <falis@gnat.com>
29470
29471         * 5zthrini.adb: (Init_RTS): Made visible
29472
29473         * 5zthrini.adb:
29474         (Register): Removed unnecessary call to taskVarGet that checked whether
29475          an ATSD was already set as a task var for the argument thread.
29476
29477         * s-thread.adb:
29478         Updated comment to reflect that this is a VxWorks version
29479         Added context clause for System.Threads.Initialization
29480         Added call to System.Threads.Initialization.Init_RTS
29481
29482 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
29483
29484         * 5zthrini.adb:
29485         (Init_RTS): New procedure, for the initialization of the run-time lib.
29486
29487         * s-thread.adb:
29488         Remove dependancy on System.Init, so that this file can be used in the
29489         AE653 sequential run-time lib.
29490
29491 2003-11-13  Robert Dewar  <dewar@gnat.com>
29492
29493         * bindgen.adb: Minor reformatting
29494
29495 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
29496
29497         * checks.adb:
29498         (Apply_Discriminant_Check): Do no apply check if target type is derived
29499         from source type with no applicable constraint.
29500
29501         * lib-writ.adb:
29502         (Ensure_System_Dependency): Do not apply the style checks that may have
29503         been specified for the main unit.
29504
29505         * sem_ch8.adb:
29506         (Find_Selected_Component): Further improvement in error message, with
29507         RM reference.
29508
29509         * sem_res.adb:
29510         (Resolve): Handle properly the case of an illegal overloaded protected
29511         procedure.
29512
29513 2003-11-13  Javier Miranda  <miranda@gnat.com>
29514
29515         * exp_aggr.adb:
29516         (Has_Default_Init_Comps): New function to check the presence of
29517         default initialization in an aggregate.
29518         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
29519         extension aggregate of a limited record. In addition, a new formal
29520         was added to do not initialize the record controller (if any) during
29521         this recursive expansion of ancestors.
29522         (Init_Controller): Add support for limited record components.
29523         (Expand_Record_Aggregate): In case of default initialized components
29524         convert the aggregate into a set of assignments.
29525
29526         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
29527         describing the new syntax.
29528         Nothing else needed to be done because this subprogram delegates part of
29529         its work to P_Precord_Or_Array_Component_Association.
29530         (P_Record_Or_Array_Component_Association): Give support to the new
29531         syntax for default initialization of components.
29532
29533         * sem_aggr.adb:
29534         (Resolve_Aggregate): Relax the strictness of the frontend in case of
29535         limited aggregates.
29536         (Resolve_Record_Aggregate): Give support to default initialized
29537         components.
29538         (Get_Value): In case of default initialized components, duplicate
29539         the corresponding default expression (from the record type
29540         declaration). In case of default initialization in the *others*
29541         choice, do not check that all components have the same type.
29542         (Resolve_Extension_Aggregate): Give support to limited extension
29543         aggregates.
29544
29545         * sem_ch3.adb:
29546         (Check_Initialization): Relax the strictness of the front-end in case
29547         of aggregate and extension aggregates. This test is now done in
29548         Get_Value in a per-component manner.
29549
29550         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
29551         expression corresponds to a limited aggregate. This test is now done
29552         in Get_Value.
29553
29554         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
29555         Box_Present flag.
29556
29557         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
29558         present in an N_Component_Association node
29559
29560 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
29561
29562         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
29563         type-conformant entry only if they are homographs.
29564
29565 2003-11-13  GNAT Script  <nobody@gnat.com>
29566
29567         * Make-lang.in: Makefile automatically updated
29568
29569 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29570
29571         * adadecode.c: Use <> form of include for ctype.h.
29572         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
29573
29574 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29575
29576         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
29577         Works around PR middle-end/6552.
29578
29579 2003-11-10  Ed Falis  <falis@gnat.com>
29580
29581         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
29582
29583         * 5zinit.adb: (Install_Handler): Moved back to spec
29584         (Install_Signal_Handlers): Deleted
29585
29586         * 5zthrini.adb: Added context clause for System.Storage_Elements
29587         (Register): Only handles creation of taskVar; initialization moved to
29588         Thread_Body_Enter.
29589         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
29590         Added declaration of environment task secondary stack and
29591         initialization.
29592
29593         * s-thread.adb: Implement bodies for thread body processing
29594
29595         * s-thread.ads:
29596         Added comment identifying supported targets for pragma Thread_Body.
29597
29598 2003-11-10  Pascal Obry  <obry@gnat.com>
29599
29600         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
29601         GNAT_MAX_PATH_LEN.
29602
29603         * s-fileio.adb:
29604         (Open): Properly check for string length before copying into the buffer.
29605         Raises Name_Error if buffer is too small. Note that this was a potential
29606         buffer overflow.
29607
29608 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
29609
29610         * bindgen.adb, comperr.adb: Code clean ups.
29611         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
29612
29613 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
29614
29615         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
29616
29617 2003-11-10  Vincent Celier  <celier@gnat.com>
29618
29619         * gprcmd.adb:
29620         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
29621         installation.
29622
29623         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
29624
29625         * prj.adb: (Project_Empty): Add new boolean component Virtual
29626
29627         * prj.ads: (Virtual_Prefix): New constant string
29628         (Project_Data): New boolean component Virtual
29629
29630         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
29631         a library project is extended by a virtual extending project.
29632
29633         * prj-part.adb:
29634         Modifications throughout to implement extending-all project, including:
29635         (Virtual_Hash, Processed_Hash): New hash tables
29636         (Create_Virtual_Extending_Project): New procedure
29637         (Look_For_Virtual_Projects_For): New procedure
29638
29639         * prj-proc.adb:
29640         (Process): After checking the projects, if main project is an
29641         extending-all project, set the object directory of all virtual extending
29642         project to the object directory of the main project.
29643         Adjust error message when a virtual extending project has the same
29644         object directory as an project being extended.
29645         (Recursive_Process): If name starts with the virtual prefix, set Virtual
29646         to True in the project data.
29647
29648         * prj-tree.adb:
29649         (Default_Project_Node): Add new boolean component Extending_All
29650         (Is_Extending_All): New function
29651         (Set_Is_Extending_All): New procedure
29652
29653         * prj-tree.ads: (Is_Extending_All): New function
29654         (Set_Is_Extending_All): New procedure
29655         (Project_Node_Record): New boolean component Extending_All
29656
29657         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
29658
29659         * vms_data.ads:
29660         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
29661
29662         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
29663         "gprcmd prefix" to define it.
29664
29665 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
29666
29667         * einfo.ads: Fix a typo and remove an extraneous word in comments.
29668
29669         * lib-load.adb:
29670         (Create_Dummy_Package_Unit): Set the scope of the entity for the
29671         created dummy package to Standard_Standard, not to itself, to
29672         defend other parts of the front-end against encoutering a cycle in
29673         the scope chain.
29674
29675         * sem_ch10.adb:
29676         (Analyze_With_Clause): When setting the entities for the successive
29677         N_Expanded_Names that constitute the name of a child unit, do not
29678         attempt to go further than Standard_Standard in the chain of scopes.
29679         This case arises from the placeholder units created by
29680         Create_Dummy_Package_Unit in the case of a with_clause for a
29681         nonexistent child unit.
29682
29683 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
29684
29685         * exp_ch6.adb:
29686         (Expand_Thread_Body): Place subprogram on scope stack, so that new
29687         declarations are given the proper scope.
29688
29689         * sem_ch13.adb:
29690         (Check_Expr_Constants): Reject an expression that contains a constant
29691         created during expansion, and that appears after the object to which
29692         the address clause applies.
29693
29694         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
29695         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
29696         that uses 'Range of a function call with controlled components, so
29697         that the function result can be finalized before starting the loop.
29698
29699         * sem_ch8.adb:
29700         (Find_Selected_Component): Improve error message when prefix is
29701         an implicit dereference of an incomplete type.
29702
29703 2003-11-10  Robert Dewar  <dewar@gnat.com>
29704
29705         * opt.ads: New Print_Standard flag for -gnatS switch
29706
29707         * sem_ch13.adb: Remove some additional checks for unaligned arrays
29708
29709         * cstand.adb (Create_Standard): Print out package standard if -gnatS
29710         switch set
29711
29712         * debug.adb: Update doc for -gnatds to discuss relationship with new
29713         -gnatS flag
29714
29715         * sinfo.adb: Add new field Entity_Or_Associated_Node
29716
29717         * sinfo.ads: Add new field Entity_Or_Associated_Node
29718         Update documentation for Associated_Node and Entity fields to clarify
29719         relationship and usage.
29720
29721         * sprint.adb:
29722         (Write_Id): Properly process Associated_Node field in generic template
29723
29724         * switch-c.adb:
29725         Recognize new -gnatS switch for printing package Standard
29726         This replaces gnatpsta
29727
29728         * usage.adb:
29729         Add line for  new -gnatS switch for printing package Standard
29730         This replaces gnatpsta
29731
29732 2003-11-10  Andreas Jaeger  <aj@suse.de>
29733
29734         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
29735         integer.
29736
29737 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
29738
29739         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
29740         by gnat1.
29741
29742 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
29743
29744         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
29745         no longer needed.
29746
29747         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
29748
29749         * sysdep.c: Add handling of cygwin.
29750
29751 2003-11-10  GNAT Script  <nobody@gnat.com>
29752
29753         * Make-lang.in: Makefile automatically updated
29754
29755 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
29756
29757         PR 12950
29758         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
29759         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
29760         Replace GNAT_ROOT by GCC_ROOT.
29761
29762         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
29763
29764 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
29765
29766         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
29767         and update for changed meaning of GET_MODE_BITSIZE.
29768
29769 2003-11-04  Doug Rupp  <rupp@gnat.com>
29770
29771         * sysdep.c: Problem discovered during IA64 VMS port.
29772         [VMS] #include <unixio.h> to get proper prototypes.
29773
29774         * adaint.c:
29775         Issues discovered/problems fixed during IA64 VMS port.
29776         [VMS] #define _POSIX_EXIT for proper semantics.
29777         [VMS] #include <unixio.h> for proper prototypes.
29778         [VMS] (fork): #define IA64 version.
29779         (__gnat_os_exit): Remove unnecessary VMS specific code.
29780
29781 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29782
29783         Part of PR ada/12806
29784         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
29785         tree, not integer.
29786
29787         * decl.c:
29788         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
29789         not integer.
29790
29791         * targtyps.c, decl.c, misc.c,
29792         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
29793         routines to work around change in FP sizing semantics in GCC.
29794
29795         * utils.c:
29796         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
29797
29798         * gigi.h: (enumerate_modes): New function.
29799
29800         * Make-lang.in: (ada/misc.o): Add real.h.
29801
29802         * misc.c: (enumerate_modes): New function.
29803
29804 2003-11-04  Robert Dewar  <dewar@gnat.com>
29805
29806         * 3vtrasym.adb: Minor reformatting
29807         Use terminology encoded/decoded name, rather than C++ specific notion
29808         of mangling (this is the terminology used throughout GNAT).
29809
29810         * einfo.h: Regenerated
29811
29812         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
29813
29814         * exp_ch6.adb:
29815         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
29816
29817         * par-prag.adb: Add dummy entry for Thread_Body pragma
29818
29819         * rtsfind.ads:
29820         Add entries for System.Threads entities for thread body processing
29821
29822         * sem_attr.adb:
29823         (Analyze_Pragma, Access attributes): Check these are not applied to a
29824         thread body, since this is not permitted
29825
29826         * sem_prag.adb: Add processing for Thread_Body pragma.
29827         Minor comment fix.
29828
29829         * sem_res.adb:
29830         (Resolve_Call): Check for incorrect attempt to call a thread body
29831          procedure with a direct call.
29832
29833         * snames.ads, snames.adb: Add entry for Thread_Body pragma
29834         Add names associated with thread body expansion
29835
29836         * snames.h: Add entry for Thread_Body pragma
29837
29838         * s-thread.adb: Add entries for thread body processing
29839         These are dummy bodies so far
29840
29841         * s-thread.ads: Add documentation on thread body handling.
29842         Add entries for thread body processing.
29843
29844 2003-11-04  Javier Miranda  <miranda@gnat.com>
29845
29846         * sem_ch10.adb:
29847         (Build_Limited_Views): Return after posting an error in case of limited
29848         with_clause on subprograms, generics, instances or generic renamings
29849         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
29850         on subprograms, generics, instances or generic renamings
29851
29852 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
29853
29854         * raise.c (setup_to_install): Correct mistake in last revision; two
29855         arguments out of order.
29856
29857         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
29858         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
29859         notice, missed in previous change.
29860         Remove trailing blanks and other style errors introduced in previous
29861         change.
29862
29863 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
29864
29865         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
29866         rid of the wrapper for a LJM type, ensuring we don't do that if the
29867         field is addressable.  This avoids potential low level type view
29868         mismatches later on, for instance in a by-reference argument passing
29869         process.
29870
29871 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29872
29873         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
29874         aligned at byte boundary.
29875
29876 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
29877
29878         * decl.c (components_to_record): Do not delete the empty variants from
29879         the end of the union type.
29880
29881 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
29882
29883         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
29884         operation for a derived type, an explicit declaration may use a local
29885         subtype of Boolean.
29886
29887 2003-11-04  Vincent Celier  <celier@gnat.com>
29888
29889         * make.adb (Gnatmake): Allow main sources on the command line with a
29890         library project when it is only for compilation (no binding or
29891         linking).
29892
29893 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29894
29895         * Makefile.in: Remove many duplicate variables.
29896
29897 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
29898
29899         * Make-lang.in (dvi): Move targets to $(docobjdir).
29900         (gnat_ug_vms.dvi): Simplify rule and adjust target.
29901         (gnat_ug_wnt.dvi): Likewise.
29902         (gnat_ug_unx.dvi): Likewise.
29903         (gnat_ug_vxw.dvi): Likewise.
29904         (gnat_rm.dvi): Likewise.
29905         (gnat-style.dvi): Likewise.
29906
29907 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
29908
29909         * gigi.h: Missed commit from update for C90.
29910
29911 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
29912
29913         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
29914
29915 2003-10-31  Andreas Schwab  <schwab@suse.de>
29916
29917         * raise.c (get_action_description_for): Fix typo in last change.
29918
29919 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
29920
29921         PR ada/12761
29922         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
29923         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
29924
29925 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
29926
29927         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
29928         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
29929         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
29930         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
29931         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
29932
29933 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
29934
29935         * 3vtrasym.adb:
29936         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
29937         numbers when symbol name is too long.
29938
29939 2003-10-30  Ed Falis  <falis@gnat.com>
29940
29941         * g-signal.ads, g-signal.adb: New files
29942
29943         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
29944
29945         * Makefile.rtl: Introduce GNAT.Signals
29946
29947 2003-10-30  Robert Dewar  <dewar@gnat.com>
29948
29949         * freeze.adb: Minor reformatting
29950
29951         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
29952
29953         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
29954         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
29955         New handling of Id_Check parameter to improve recognition of keywords
29956         used as identifiers.
29957         Update copyright notice to include 2003
29958
29959 2003-10-29  Robert Dewar  <dewar@gnat.com>
29960
29961         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
29962         sem_ch10.adb: Minor reformatting
29963
29964         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
29965         (Expand_Assign_Record): Test right hand side for bit unaligned as well
29966
29967 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
29968
29969         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
29970         Support for TBK$SYMBOLIZE-based symbolic traceback.
29971
29972 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
29973
29974         * exp_disp.adb:
29975         Revert previous change, that did not work well when pragma No_Run_Time
29976         was used in conjunction with a run-time other than ZFP.
29977
29978 2003-10-29  Vincent Celier  <celier@gnat.com>
29979
29980         * make.adb:
29981         (Gnatmake): When there are no Ada mains in attribute Main, disable the
29982          bind and link steps only is switch -z is not used.
29983
29984 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
29985
29986         * Makefile.generic: Remove duplicated setting of CC.
29987
29988         * Makefile.prolog: Set CC to gcc by default, to override make's
29989         default (cc).
29990
29991         * einfo.h: Regenerated.
29992
29993 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
29994
29995         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
29996         current body, after compiling subunit.
29997
29998         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
29999         when in deleted code, because gigi needs properly ordered freeze
30000         actions to annotate types.
30001
30002         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
30003         prevent the premature freezing of record type that contains
30004         subcomponents with a private type that does not yet have a completion.
30005
30006 2003-10-29  Javier Miranda  <miranda@gnat.com>
30007
30008         * sem_ch12.adb:
30009         (Analyze_Package_Instantiation): Check that instances can not be used in
30010         limited with_clauses.
30011
30012         * sem_ch8.adb:
30013         (Analyze_Package_Renaming): Check that limited withed packages cannot
30014         be renamed. Improve text on error messages related to limited
30015         with_clauses.
30016
30017         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
30018
30019         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
30020         Update copyright notice.
30021
30022         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
30023         (Install_Limited_Context_Clauses): New subprogram that isolates all the
30024         checks required for limited context_clauses and installs the limited
30025         view.
30026         (Install_Limited_Withed_Unit): Complete its documentation.
30027         (Analyze_Context): Check that limited with_clauses are only allowed in
30028         package specs.
30029         (Install_Context): Call Install_Limited_Context_Clauses after the
30030         parents have been installed.
30031         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
30032         package as 'From_With_Type'; this mark indicates that the limited view
30033         is installed. Used to check bad usages of limited with_clauses.
30034         (Build_Limited_Views): Do not add shadow entities to the scope's list
30035         of entities. Do not add real entities to the Non_Limited_Views chain.
30036         Improve error notification.
30037         (Remove_Context_Clauses): Remove context clauses in two phases:
30038         limited views first and regular views later (to maintain the
30039         stack model).
30040         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
30041         its visible entities.
30042
30043 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
30044
30045         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
30046         with any type that Is_Fixed_Point_Type.
30047
30048         * sinfo.ads: Fix documentation for Associated_Node attribute.
30049
30050 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
30051
30052         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
30053         both '-gnatc' and '-gnatt' are specified.
30054
30055         * atree.adb (Initialize): Add initialization for Node_Count (set to
30056         zero).
30057
30058 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30059
30060         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
30061         do not consider as Pure.
30062
30063         Part of implementation of function-at-a-time:
30064
30065         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
30066         (tree_transform): Add new argument to build_component_ref.
30067         (tree_transform, case N_Assignment_Statement): Make and return an
30068         EXPR_STMT.
30069         (tree_transform): If result IS_STMT, set flags and return it.
30070         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30071
30072         * utils2.c (build_simple_component_ref, build_component_ref): Add new
30073         arg, NO_FOLD_P.
30074         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
30075         (build_allocator): Likewise.
30076
30077         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
30078         Add new arg to build_component_ref.
30079         (maybe_unconstrained_array, unchecked_convert): Likewise.
30080
30081         * ada-tree.def (EXPR_STMT): New code.
30082
30083         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
30084
30085         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
30086         build_component_ref calls.
30087
30088         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
30089
30090         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30091         (build_component_ref): Add new argument, NO_FOLD_P.
30092
30093 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
30094
30095         * Makefile.generic: Add missing substitution on object_deps handling.
30096
30097         PR ada/5909
30098         * Make-lang.in (check-ada): Enable ACATS test suite.
30099
30100 2003-10-27  Robert Dewar  <dewar@gnat.com>
30101
30102         * exp_ch3.adb:
30103         (Freeze_Array_Type): We do not need an initialization routine for types
30104         derived from String or Wide_String. They should be treated the same
30105         as String and Wide_String themselves. This caused problems with the
30106         use of Initialize_Scalars.
30107
30108         * exp_ch5.adb:
30109         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
30110         composites. This allows use of component clauses that are not byte
30111         aligned.
30112
30113         * sem_prag.adb:
30114         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
30115         is an attempt to pack an array of atomic objects.
30116
30117         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
30118
30119 2003-10-27  Pascal Obry  <obry@gnat.com>
30120
30121         * g-dirope.adb:
30122         (Basename): Check for drive letters in a pathname only on DOS based OS.
30123
30124 2003-10-27  Vincent Celier  <celier@gnat.com>
30125
30126         * make.adb:
30127         (Gnatmake): When unable to change dir to the object dir, display the
30128         content of the parent dir of the obj dir, to try to understand why this
30129         happens.
30130
30131 2003-10-27  GNAT Script  <nobody@gnat.com>
30132
30133         * Make-lang.in: Makefile automatically updated
30134
30135 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
30136
30137         * sem_ch12.adb:
30138         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
30139         should not be done in Save/Restore_Scope_Stack, because it is performed
30140         locally.
30141
30142         * sem_ch8.adb:
30143         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30144         whether use clauses should be removed/restored.
30145
30146         * sem_ch8.ads:
30147         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30148         whether use clauses should be removed/restored.
30149
30150 2003-10-26  Andreas Jaeger  <aj@suse.de>
30151
30152         * Makefile.in: Remove duplicated lines.
30153
30154 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
30155
30156         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
30157         minimize the differences with ACT tree.
30158
30159         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
30160         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
30161         Gnatvsn.Gnat_Static_Version_String to reduce differences between
30162         ACT and FSF trees.
30163
30164 2003-10-24  Pascal Obry  <obry@gnat.com>
30165
30166         PR ada/12014
30167         * adadecode.c (ostrcpy): New function.
30168         (__gnat_decode): Use ostrcpy of strcpy.
30169         (has_prefix): Set first parameter a const.
30170         (has_suffix): Set first parameter a const.
30171         Update copyright notice. Fix source name in header.
30172         Removes a trailing space.
30173
30174 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
30175
30176         * exp_disp.adb:
30177         Remove the test against being in No_Run_Time_Mode before generating a
30178         call to Register_Tag. It is redundant with the test against the
30179         availability of the function Register_Tag.
30180
30181 2003-10-24  Vincent Celier  <celier@gnat.com>
30182
30183         * g-catiio.adb: (Month_Name): Correct spelling of February
30184
30185         * make.adb: (Mains): New package
30186         (Initialize): Call Mains.Delete
30187         (Gnatmake): Check that each main on the command line is a source of a
30188         project file and, if there are several mains, each of them is a source
30189         of the same project file.
30190         (Gnatmake): When a foreign language is specified in attribute Languages,
30191         no main is specified on the command line and attribute Mains is not
30192         empty, only build the Ada main. If there is no Ada main, just compile
30193         the Ada sources and their closure.
30194         (Gnatmake): If a main is specified on the command line with directory
30195         information, check that the source exists and, if it does, that the path
30196         is the actual path of a source of a project.
30197
30198         * prj-env.adb:
30199         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
30200         Full_Path is True, return the full path instead of the simple file name.
30201         (Project_Of): New function
30202
30203         * prj-env.ads:
30204         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
30205         defaulted to False.
30206         (Project_Of): New function
30207
30208 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
30209
30210         * Makefile.generic:
30211         Ensure objects of main project are always checked and rebuilt if needed.
30212         Set CC to gcc by default.
30213         Prepare new handling of link by creating a global archive (not activated
30214         yet).
30215
30216         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30217         stringt.h: Update copyright notice. Remove trailing blanks.
30218         Fix source name in header.
30219
30220 2003-10-24  Robert Dewar  <dewar@gnat.com>
30221
30222         * sem_ch12.adb: Minor reformatting
30223
30224         * sem_ch3.adb:
30225         Minor reformatting (including new function return style throughout)
30226
30227         * sem_ch3.ads:
30228         Minor reformatting (including new function return style throughout)
30229
30230 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
30231
30232         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30233         stringt.h: Update copyright notice. Remove trailing blanks.
30234         Fix source name in header.
30235
30236 2003-10-24  GNAT Script  <nobody@gnat.com>
30237
30238         * Make-lang.in: Makefile automatically updated
30239
30240 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
30241
30242         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
30243         stringt.h: Convert to ISO C90 declarations and definitions.
30244
30245 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
30246
30247         PR ada/11978
30248         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
30249         External_Tag attribute definition clauses.
30250
30251 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
30252
30253         PR ada/7613
30254         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
30255         child unit, generate a fully qualified name to avoid spurious errors
30256         when the context contains renamings of different child units with
30257         the same simple name.
30258
30259         * exp_dbug.ads: Add documentation on name qualification for renamings
30260         of child units.
30261
30262 2003-10-23  Robert Dewar  <dewar@gnat.com>
30263
30264         * g-regpat.ads, g-regpat.adb: Minor reformatting
30265
30266 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
30267
30268         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
30269
30270 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30271
30272         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
30273         Machine call.
30274
30275         * urealp.h: (Machine): Update to proper definition.
30276
30277 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
30278
30279         * init.c, adaint.c: Minor reformatting.
30280
30281 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
30282
30283         * adaint.c (w32_epoch_offset): Define static const at file level.
30284         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
30285         rather than t_create, t_access in call to GetFileTime. Use union
30286         to convert between FILETIME and  unsigned long long.
30287         (__gnat_file_time_name): Test for invalid file handle.
30288         (__gnat_set_filetime_name): Support win32 targets using
30289         w32api SetFileTime.
30290
30291 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
30292
30293         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
30294
30295         * ctrl_c.c (__gnat_int_handler): Remove declaration.
30296
30297         * decl.c (creat_concat_name):  Const-ify prefix.
30298
30299         * adaint.c: Include ctype.h if __MINGW32__.
30300         (__gnat_readlink): Mark arguments as possibly unused.
30301         (__gnat_symlink): Likewise.
30302         (__gnat_is_symbolic_link): Likewise.
30303         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
30304         declaration
30305         (__gnat_file_time_name): Don't declare struct stat statbuf when
30306         not needed.
30307         (__gnat_is_absolute_path): Add parenthesis around condition of
30308         'if' statement to avoid warning.
30309         (__gnat_plist_init): Specify void as parameter.
30310         (plist_enter): Likewise.
30311         (plist_leave): Likewise.
30312         (remove_handle): Make static. Initialize prev.
30313
30314 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
30315
30316         PR ada/10110
30317         * Makefile.in: Disable build of gnatpsta.
30318         * cstreams.c (__gnat_full_name): Minor improvements and clean up
30319         of previous change.
30320
30321 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30322
30323         * tracebak.c (MAX): Avoid redefinition warning.
30324
30325         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
30326         Change msg to const char *.
30327         (__gnat_install_handler): Remove ss, unused.
30328         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
30329         to const char *.
30330         * cstreams.c (__gnat_full_name): Declare p only when used.
30331         (__gnat_full_name) [sgi] Return buffer.
30332
30333 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
30334
30335         * mingw32.h: New file.
30336         * gnat_wrapper.adb: New file.
30337
30338 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
30339
30340         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
30341         string match a pre compiled regular expression (the corresponding
30342         version of the function working on a raw regular expression)
30343         Fix typos in various comments
30344         Update copyright notice in spec
30345
30346 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
30347
30348         * exp_ch3.adb:
30349         (Component_Needs_Simple_Initialization): Return False when the type is a
30350         packed bit array. Revise spec comments to document this case.
30351
30352         * exp_prag.adb:
30353         (Expand_Pragma_Import): Set any expression on the imported object to
30354         empty to avoid initializing imported objects (in particular this
30355         covers the case of zero-initialization of bit arrays).
30356         Update copyright notice.
30357
30358 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
30359
30360         * sem_ch12.adb:
30361         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
30362         a subunit is missing.
30363         (Instantiate_Subprogram_Body): If body of function is missing, set type
30364         of return expression explicitly in dummy body, to prevent cascaded
30365         errors when a subunit is missing.
30366         Fixes PR 5677.
30367
30368         * sem_ch3.adb:
30369         (Access_Subprogram_Declaration): Verify that return type is valid.
30370         Fixes PR 8693.
30371
30372         * sem_elab.adb:
30373         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
30374         generic.
30375         Fixes PR 12318.
30376
30377         * sem_util.adb:
30378         (Corresponding_Discriminant): If the scope of the discriminant is a
30379         private type without discriminant, use its full view.
30380         Fixes PR 8247.
30381
30382 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
30383
30384         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
30385         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
30386         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
30387         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
30388         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
30389         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
30390         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30391         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
30392         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
30393         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
30394         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
30395         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
30396         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
30397         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
30398         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
30399         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
30400         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
30401         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
30402         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
30403         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
30404         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
30405         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
30406         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
30407         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
30408         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
30409         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
30410         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
30411         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
30412         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
30413         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
30414         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
30415         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
30416         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
30417         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
30418         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
30419         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
30420         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
30421         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
30422         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
30423         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
30424         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
30425         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
30426         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
30427         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
30428         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
30429         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
30430         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
30431         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
30432         vms_conv.ads, vms_conv.adb, vms_data.ads,
30433         vxaddr2line.adb: Files added. Merge with ACT tree.
30434
30435         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
30436         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
30437         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
30438         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
30439         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
30440         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
30441         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30442         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
30443         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
30444         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
30445
30446         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30447         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30448         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30449         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30450         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
30451         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
30452         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30453         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
30454         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
30455         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
30456         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30457         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
30458         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
30459         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30460         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
30461         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
30462         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
30463         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30464         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
30465         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
30466         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
30467         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30468         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30469         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30470         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
30471         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
30472         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
30473         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30474         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
30475         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30476         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30477         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
30478         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
30479         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
30480         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
30481         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
30482         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
30483         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
30484         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
30485         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
30486         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
30487         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
30488         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
30489         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
30490         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
30491         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
30492         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
30493         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
30494         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
30495         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
30496         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
30497         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
30498         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
30499         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
30500         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
30501         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
30502         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
30503         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
30504         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
30505         checks.adb, checks.ads, cio.c, comperr.adb,
30506         comperr.ads, csets.adb, cstand.adb, cstreams.c,
30507         debug_a.adb, debug_a.ads, debug.adb, decl.c,
30508         einfo.adb, einfo.ads, errout.adb, errout.ads,
30509         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
30510         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
30511         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
30512         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
30513         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
30514         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
30515         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
30516         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
30517         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
30518         fe.h, fmap.adb, fmap.ads, fname.adb,
30519         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
30520         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
30521         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
30522         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30523         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30524         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30525         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
30526         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
30527         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
30528         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
30529         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
30530         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
30531         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
30532         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
30533         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
30534         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
30535         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
30536         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
30537         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
30538         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
30539         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
30540         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
30541         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
30542         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
30543         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
30544         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
30545         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
30546         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
30547         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
30548         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
30549         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
30550         layout.adb, lib.adb, lib.ads, lib-list.adb,
30551         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
30552         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30553         link.c, live.adb, make.adb, make.ads,
30554         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
30555         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
30556         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
30557         misc.c, mkdir.c, mlib.adb, mlib.ads,
30558         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
30559         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
30560         namet.adb, namet.ads, namet.h, nlists.ads,
30561         nlists.h, nmake.adt, opt.adb, opt.ads,
30562         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
30563         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
30564         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30565         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
30566         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
30567         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
30568         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
30569         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
30570         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
30571         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
30572         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
30573         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
30574         prj-util.adb, prj-util.ads, raise.c, raise.h,
30575         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
30576         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
30577         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
30578         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
30579         scans.ads, scn.adb, scn.ads, s-crc32.adb,
30580         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
30581         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
30582         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
30583         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
30584         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
30585         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30586         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30587         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
30588         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
30589         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
30590         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
30591         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
30592         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
30593         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
30594         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30595         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
30596         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
30597         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
30598         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
30599         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
30600         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
30601         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
30602         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
30603         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
30604         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
30605         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
30606         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
30607         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
30608         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
30609         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
30610         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
30611         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
30612         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
30613         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
30614         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
30615         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
30616         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
30617         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30618         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30619         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
30620         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
30621         stringt.adb, stringt.ads, stringt.h, style.ads,
30622         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
30623         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
30624         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
30625         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
30626         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
30627         table.adb, table.ads, targparm.adb, targparm.ads,
30628         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
30629         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
30630         ttypes.ads, types.ads, types.h, uintp.adb,
30631         uintp.ads, uintp.h, uname.adb, urealp.adb,
30632         urealp.ads, urealp.h, usage.adb, utils2.c,
30633         utils.c, validsw.adb, validsw.ads, widechar.adb,
30634         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
30635         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
30636         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
30637         gnatvsn.ads: Merge with ACT tree.
30638
30639         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
30640
30641 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
30642
30643         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
30644         (gnat_ug_vmx.info): Likewise.
30645         (gnat_ug_vxw.info): Likewise.
30646         (gnat_ug_wnt.info): Likewise.
30647         (gnat_rm.info): Likewise.
30648         (gnat-style.info): Likewise.
30649
30650         * Make-lang.in (ada.install-info): Remove target.
30651         (info): New target.
30652         (install-info): Likewise.
30653         (gnat_ug_unx.info): Simplify rule.
30654         (gnat_ug_vmx.info): Likewise.
30655         (gnat_ug_vxw.info): Likewise.
30656         (gnat_ug_wnt.info): Likewise.
30657         (gnat_rm.info): Likewise.
30658         (gnat-style.info): Likewise.
30659
30660 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
30661
30662         * Make-lang.in: Replace uses of $(target_alias) with
30663         $(target_noncanonical).
30664         * ada/Makefile.in: Remove unused mention of $(target_alias).
30665
30666 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
30667
30668         * Make-lang.in (ada.info): Replace with ...
30669         (info): ... this.
30670         (ada.dvi): Replace with ...
30671         (dvi): ... this.
30672
30673 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
30674
30675         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
30676         initialize dconstp5 and dconstmp5.
30677
30678 2003-09-28  Richard Henderson  <rth@redhat.com>
30679
30680         * trans.c (tree_transform): Update call to expand_asm_operands.
30681
30682 2003-09-21  Richard Henderson  <rth@redhat.com>
30683
30684         * trans.c, utils.c: Revert.
30685
30686 2003-09-21  Richard Henderson  <rth@redhat.com>
30687
30688         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
30689         change to const.
30690
30691 2003-09-04  Michael Matz  <matz@suse.de>
30692
30693         * misc.c: Include "target.h".
30694         * Make-lang.in (misc.o): Add dependency on target.h.
30695
30696 2003-09-03  DJ Delorie  <dj@redhat.com>
30697
30698         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
30699         hook.
30700
30701 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
30702
30703         * Makefile.in: Update substitutions to match changes to
30704         configure.  Use include directives instead of @-insertions
30705         to read in host and target fragments.  Add a rule to
30706         regenerate ada/Makefile.
30707
30708 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
30709
30710         * lang-options.h: Remove.
30711         * lang.opt: Add help text.
30712
30713 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
30714
30715         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
30716         calls.
30717
30718 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
30719
30720         * misc.c (gnat_handle_option): Don't handle filenames.
30721
30722 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
30723
30724         * Make-lang.in: Replace PWD with PWD_COMMAND.
30725         * Makefile.adalib: Likewise.
30726         * Makefile.in: Likewise.
30727
30728 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
30729
30730         * misc.c (gnat_argv): Revert last change.
30731         (gnat_handle_option, gnat_init_options): Copy arguments.
30732
30733 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
30734
30735         * misc.c (gnat_argv): Make const.
30736
30737 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
30738
30739         * misc.c (save_argc, save_argv): Keep non-static!
30740
30741 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
30742
30743         * misc.c (save_argc, save_argv): Make static.
30744         (gnat_init_options): New prototype.
30745         (gnat_init_options): Update.
30746
30747 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
30748
30749         * gnat_ug.texi: Remove unlikely characters from @vars.
30750         * gnat_ug_vms.texi: Regenerate.
30751
30752 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
30753
30754         * misc.c (record_code_position): Adjust emit_note call.
30755
30756 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
30757
30758         * misc.c (gnat_handle_option): Don't check for missing arguments.
30759
30760 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
30761
30762         * utils.c (end_subprog_body): Adjust expand_function_end call.
30763
30764 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
30765
30766         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
30767         Bind_Main_Program.
30768
30769 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
30770
30771         * lang.opt: Declare Ada.
30772         * misc.c (gnat_init_options): Update.
30773
30774 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
30775
30776         * utils.c (begin_subprog_body): Adjust init_function_start call.
30777
30778 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
30779
30780         * Make-lang.in: Update to use options.c and options.h.
30781         * misc.c: Include options.h not aoptions.h.
30782         (gnat_handle_option): Abort on unrecognized switch.
30783         (gnat_init_options): Request Ada switches.
30784
30785 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
30786
30787         * lang.opt: Add -Wall.
30788         * misc.c (gnat_handle_option): Handle it.
30789
30790 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
30791
30792         * misc.c (gnat_handle_option): Fix warnings.
30793
30794 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
30795
30796         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
30797
30798 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
30799
30800         * Make-lang.in: Update to handle command-line options.
30801         * lang.opt: New file.
30802         * misc.c: Include aoptions.h.
30803         (cl_options_count, cl_options): Remove.
30804         (gnat_handle_option): New.
30805         (gnat_decode_option): Remove.
30806         (LANG_HOOKS_DECODE_OPTION): Remove.
30807         (LANG_HOOKS_HANDLE_OPTION): Override.
30808
30809 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
30810
30811         * init.c, misc.c, trans.c, utils.c: Remove dead code.
30812
30813 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
30814
30815         * Makefile.in: Replace "host_canonical" with "host" for autoconf
30816         substitution.
30817
30818 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
30819
30820         * Make-lang.in: Update.
30821         * misc.c: Include opts.h. Define cl_options_count and cl_options.
30822
30823 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
30824
30825         * misc.c (gnat_init_options): Update.
30826
30827 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
30828
30829         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
30830         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
30831         __attribute__ ((__unused__)).
30832
30833 2003-06-05  Jan Hubicka  <jh@suse.cz>
30834
30835         * Make-lang.in:  Add support for stageprofile and stagefeedback
30836
30837 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
30838
30839         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
30840         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
30841
30842 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
30843
30844         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
30845         Remove non-VMS directive.
30846         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
30847         alternatives.
30848         (Examples of gnatls Usage): Remove VMS alternative.
30849
30850 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
30851
30852         PR ada/9953
30853         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
30854         and turn ZCX_By_Default back to False since the underlying support
30855         is not quite there yet.
30856
30857 2003-06-01  Andreas Jaeger  <aj@suse.de>
30858
30859         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
30860         and ROUND_TYPE_SIZE_UNIT.
30861
30862 2003-05-22   Geert Bosch <bosch@gnat.com>
30863
30864         * gnat_rm.texi : Remove reference to Ada Core Technologies.
30865
30866 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
30867
30868         * trans.c (tree_transform): Use location_t and input_location
30869         directly.
30870         (build_unit_elab): Likewise.
30871         * utils.c (create_label_decl): Likewise.
30872
30873 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
30874
30875         * trans.c (tree_transform, build_unit_elab,
30876         set_lineno): Rename lineno to input_line.
30877         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
30878         end_subprog_body): Likewise.
30879         * utils2.c (build_call_raise): Likewise.
30880
30881 2003-05-01  Laurent Guerby <guerby@acm.org>
30882
30883         PR ada/10546
30884         * 5iosinte.ads: Increase pthread_cond_t size to match recent
30885         LinuxThread and NPTL version, merge from ACT.
30886
30887 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
30888
30889         * utils.c (convert): No need to clear TREE_CST_RTL.
30890
30891 2003-04-23   Geert Bosch <bosch@gnat.com>
30892
30893         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
30894         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30895         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30896         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30897         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30898         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
30899         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
30900         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
30901         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30902         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
30903         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
30904         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
30905         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
30906         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
30907         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
30908         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
30909         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
30910         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
30911         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
30912         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30913         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30914         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
30915         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30916         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
30917         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
30918         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
30919         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
30920         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
30921         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
30922         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
30923         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
30924         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
30925         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
30926         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
30927         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
30928         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
30929         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
30930         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
30931         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
30932         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
30933         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
30934         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
30935         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
30936         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
30937         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
30938         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
30939         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
30940         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
30941         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
30942         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
30943         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
30944         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
30945         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
30946         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
30947         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
30948         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
30949         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
30950         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
30951         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
30952         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
30953         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
30954         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
30955         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
30956         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
30957         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
30958         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
30959         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
30960         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
30961         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
30962         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
30963         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
30964         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
30965         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
30966         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
30967         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
30968         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
30969         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
30970         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
30971         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
30972         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
30973         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
30974         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
30975         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
30976         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
30977         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
30978         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
30979         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
30980         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
30981         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
30982         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
30983         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
30984         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
30985         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
30986         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
30987         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
30988         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
30989         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
30990         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
30991         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
30992         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
30993         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
30994         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
30995         ali.adb, ali.ads, alloc.ads, argv.c,
30996         atree.adb, atree.ads, atree.h, aux-io.c,
30997         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
30998         binde.adb, binde.ads, binderr.adb, binderr.ads,
30999         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
31000         butil.adb, butil.ads, cal.c, calendar.ads,
31001         casing.adb, casing.ads, ceinfo.adb, checks.adb,
31002         checks.ads, cio.c, comperr.adb, comperr.ads,
31003         config-lang.in, csets.adb, csets.ads, csinfo.adb,
31004         cstand.adb, cstand.ads, cuintp.c, debug.adb,
31005         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
31006         dec-io.ads, dec.ads, deftarg.c, directio.ads,
31007         einfo.adb, einfo.ads, elists.adb, elists.ads,
31008         elists.h, errno.c, errout.adb, errout.ads,
31009         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
31010         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
31011         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
31012         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
31013         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
31014         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
31015         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
31016         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
31017         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
31018         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
31019         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
31020         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
31021         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
31022         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
31023         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
31024         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
31025         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
31026         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
31027         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
31028         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
31029         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
31030         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
31031         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
31032         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
31033         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
31034         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
31035         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
31036         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
31037         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
31038         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
31039         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
31040         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
31041         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
31042         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
31043         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
31044         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
31045         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
31046         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
31047         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
31048         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
31049         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
31050         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
31051         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
31052         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
31053         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
31054         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
31055         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
31056         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
31057         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
31058         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
31059         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
31060         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
31061         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
31062         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
31063         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
31064         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
31065         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
31066         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
31067         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
31068         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
31069         lib.adb, lib.ads, live.adb, live.ads,
31070         machcode.ads, make.adb, make.ads, makeusg.adb,
31071         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
31072         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
31073         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
31074         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
31075         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
31076         mlib.ads, namet.adb, namet.ads, nlists.adb,
31077         nlists.ads, opt.adb, opt.ads, osint-b.adb,
31078         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
31079         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
31080         osint.ads, output.adb, output.ads, par-ch10.adb,
31081         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
31082         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
31083         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
31084         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
31085         par-tchk.adb, par-util.adb, par.adb, par.ads,
31086         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
31087         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
31088         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
31089         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
31090         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
31091         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
31092         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
31093         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
31094         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
31095         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
31096         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
31097         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
31098         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
31099         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
31100         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
31101         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
31102         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
31103         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
31104         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
31105         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
31106         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
31107         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
31108         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
31109         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
31110         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
31111         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
31112         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
31113         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
31114         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
31115         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
31116         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
31117         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
31118         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
31119         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
31120         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
31121         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
31122         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
31123         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
31124         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
31125         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
31126         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
31127         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
31128         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
31129         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
31130         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
31131         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
31132         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
31133         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
31134         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
31135         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
31136         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
31137         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
31138         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
31139         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
31140         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
31141         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
31142         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
31143         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
31144         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
31145         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
31146         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
31147         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
31148         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
31149         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
31150         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
31151         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
31152         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
31153         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
31154         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
31155         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
31156         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
31157         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
31158         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
31159         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
31160         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
31161         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
31162         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
31163         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
31164         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
31165         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31166         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
31167         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
31168         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
31169         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31170         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
31171         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
31172         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
31173         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
31174         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
31175         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
31176         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
31177         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
31178         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
31179         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
31180         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
31181         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
31182         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
31183         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
31184         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
31185         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
31186         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
31187         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
31188         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
31189         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
31190         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
31191         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
31192         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
31193         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
31194         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
31195         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
31196         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
31197         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
31198         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
31199         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
31200         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
31201         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
31202         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
31203         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
31204         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
31205         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
31206         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
31207         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
31208         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
31209         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
31210         snames.ads, sprint.adb, sprint.ads, stand.adb,
31211         stand.ads, stringt.adb, stringt.ads, style.adb,
31212         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
31213         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
31214         switch-m.ads, switch.adb, switch.ads, system.ads,
31215         table.adb, table.ads, targparm.adb, targparm.ads,
31216         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
31217         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
31218         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
31219         ttypef.ads, ttypes.ads, types.adb, types.ads,
31220         uintp.adb, uintp.ads, uname.adb, uname.ads,
31221         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
31222         usage.adb, usage.ads, validsw.adb, validsw.ads,
31223         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
31224         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
31225         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
31226         formatting and other trivial changes from ACT.
31227
31228 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
31229
31230         * gigi.h, utils2.c (build_constructor):
31231         Rename gnat_build_constructor. Use build_constructor.
31232         * decl.c (gnat_to_gnu_entity)
31233         * trans.c (tree_transform, pos_to_constructor, extract_values)
31234         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
31235         (unchecked_convert)
31236         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
31237         (fill_vms_descriptor):
31238         Update to match.
31239
31240 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
31241
31242         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
31243         * misc.c (gnat_tree_size): New function.
31244         (LANG_HOOKS_TREE_SIZE): Override.
31245
31246 2003-04-03  Jason Merrill  <jason@redhat.com>
31247
31248         * misc.c (gnat_adjust_rli): #if 0.
31249
31250 2003-03-31   Geert Bosch <bosch@gnat.com>
31251
31252         PR ada/10020
31253         * link.c : Fix misspelled "const" keyword
31254
31255 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
31256
31257         PR c++/7086
31258         * utils2.c: Adjust calls to put_var_into_stack.
31259
31260 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
31261
31262         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
31263
31264 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
31265
31266         * misc.c (gnat_init): Update for new prototype.
31267
31268 2003-03-05  Olivier Hainque  <hainque@gnat.com>
31269
31270         ada/9961
31271         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
31272         warning, and fix return type for the IN_RTS && !SJLJ case.
31273
31274 2003-03-04  Tom Tromey  <tromey@redhat.com>
31275
31276         * Make-lang.in (ada.tags): New target.
31277
31278 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
31279
31280         ada/9911
31281         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
31282         wrapper, which name remains constant whatever underlying GCC
31283         scheme.
31284
31285         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
31286         the stable interface needed for a-except.
31287
31288 2003-03-02  Andreas Jaeger  <aj@suse.de>
31289
31290         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31291         gnat_ug_wnt.texi: Regenerate.
31292
31293 2003-03-02  Laurent Guerby <guerby@acm.org>
31294
31295         * Makefile.in (install-gnatlib): Match previous change there
31296         so it works.
31297
31298 2003-02-28  Andreas Schwab  <schwab@suse.de>
31299
31300         * Make-lang.in (install-gnatlib): Change to ada directory before
31301         running make instead of using ada/Makefile directly.
31302
31303 2003-02-18  Ben Elliston  <bje@redhat.com>
31304
31305         Part of PR ada/9406
31306         * gnat_ug.texi (Binder output file): Grammar fix.
31307
31308 2003-02-18  Ben Elliston  <bje@redhat.com>
31309
31310         PR other/7350
31311         * 5qtaprop.adb (Sleep): Fix typo in comment.
31312
31313 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
31314
31315         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
31316         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31317         gnat_ug_wnt.texi: Regenerate.
31318
31319 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
31320
31321         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
31322         be created if necessary.
31323         (ada.install-common): Let $(DESTDIR)$(bindir) be created
31324         if necessary.  Remove erroneous and redundant gnatchop
31325         installation commands.  Test for gnatdll before attempting
31326         to install it.
31327         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
31328         and gnatdll from all plausible locations.
31329
31330 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
31331
31332         * utils2.c (build_unary_op): Don't check flag_volatile.
31333         * gnat_ug.texi: Remove -fvolatile from example.
31334         * gnat_ug_vxw.texi: Likewise.
31335
31336 2003-01-29  Laurent Guerby <guerby@acm.org>
31337
31338         PR ada/8344
31339         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
31340         * Makefile.in: match previous change.
31341         * Make-lang.in: match previous change.
31342
31343 2003-01-29      Joel Sherrill <joel@OARcorp.com>
31344
31345         * 5rosinte.ads: Add SIGXCPU.
31346         * 5rtpopsp.adb: New file.
31347         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
31348         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
31349         specific file 5rtpopsp.adb.
31350         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
31351         is likely needed for all newlib targets.
31352         * init.c: Add RTEMS specific version of __gnat_initialize().
31353
31354 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31355
31356         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
31357
31358 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31359
31360         * init.c (__gnat_error_handler): Make msg const.
31361
31362         * gmem.c (convert_addresses): Move declaration ...
31363         * adaint.h: ... here.
31364         * adaint.c (convert_addresses): Adapt addrs type to match
31365         prototype.
31366
31367         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
31368
31369 2003-01-24  Andreas Schwab  <schwab@suse.de>
31370
31371         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
31372         size_t to avoid warning.
31373
31374 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
31375
31376         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
31377
31378 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
31379
31380         * gnat_rm.texi: Remove RCS version number.
31381
31382         * ada-tree.h (union lang_tree_node): Add chain_next option.
31383
31384 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
31385
31386         * Make-lang.in (ada.install-info, ada.install-common,
31387         ada.uninstall): Prepend $(DESTDIR) to the destination
31388         directory in all (un)installation commands.
31389         * Makefile.in (install-gnatlib, install-rts): Ditto.
31390
31391 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
31392
31393         * gnat_rm.texi, gnat_ug.texi: Use @copying.
31394         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31395         gnat_ug_wnt.texi: Regenerate.
31396
31397 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
31398
31399         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
31400         only.
31401         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
31402         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
31403         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
31404         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
31405         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
31406         $(srcdir)/doc/include/gcc-common.texi.
31407
31408 2002-12-15   Geert Bosch <bosch@gnat.com>
31409
31410         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
31411
31412 2002-12-14   Geert Bosch <bosch@gnat.com>
31413
31414         PR ada/5690
31415         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
31416         case of a body created for a Renaming_As_Body, on which
31417         conformance checks are not performed.
31418
31419 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
31420
31421         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
31422         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
31423         not already included.
31424         * Make-lang.in: Update dependencies.
31425
31426 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
31427         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
31428         solution to buffer overflow bug on GNU/Linux.
31429
31430 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
31431
31432         PR ada/5856
31433         PR ada/6919
31434         * bindgen.adb: Remove all references to Public_Version.
31435         * comperr.adb: Remove all references to Public_Version and
31436         GNATPRO_Version; correct bug reporting instructions.
31437         * comperr.ads: Change to match bug box.
31438         * gnatvsn.ads: Remove all references to Public version and
31439         GNATPRO version.
31440
31441 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
31442
31443         PR ada/6919
31444         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
31445         GNU/Linux.
31446
31447         PR ada/6558
31448         * config-lang.in: Remove diff_excludes.
31449
31450 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
31451
31452         PR ada/8358
31453         * trans.c (gnu_pending_elaboration_lists): New GC root.
31454         (build_unit_elab): Use..
31455
31456 2002-10-30   Geert Bosch <bosch@gnat.com>
31457
31458         PR ada/6558
31459         * misc.c : Include optabs.h
31460
31461         * Make-lang.in (misc.o): Add dependency on optabs.h
31462
31463 2002-10-29   Geert Bosch <bosch@gnat.com>
31464
31465         PR ada/6558
31466         * Make-lang.in (gnatbind): Depend on CONFIG_H
31467
31468 2002-10-29  Geert bosch  <bosch@gnat.com>
31469
31470         PR ada/6558
31471         * misc.c: Unrevert misc.c (1.13)
31472
31473 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
31474
31475         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
31476         maintainership comments.
31477
31478 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
31479
31480         PR ada/5904
31481         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
31482         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
31483         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
31484         7staprop.adb: Correct statements in comments about
31485         maintainership of GNAT.
31486
31487         PR ada/5904
31488         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
31489         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
31490         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
31491         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
31492         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
31493         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
31494         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
31495         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
31496         comments about maintainership of GNAT.
31497
31498         PR ada/6919 (forward port of patch for PR ada/5904)
31499         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
31500         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
31501         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
31502         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
31503         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
31504         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
31505         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
31506         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
31507         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
31508         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
31509         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
31510         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
31511         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
31512         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
31513         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
31514         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
31515         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
31516         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
31517         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
31518         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
31519         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
31520         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
31521         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
31522         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
31523         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
31524         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
31525         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
31526         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
31527         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
31528         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
31529         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
31530         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
31531         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
31532         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
31533         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
31534         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
31535         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
31536         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
31537         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
31538         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
31539         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
31540         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
31541         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
31542         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
31543         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
31544         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
31545         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
31546         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
31547         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
31548         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
31549         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
31550         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
31551         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
31552         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
31553         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
31554         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
31555         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
31556         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
31557         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
31558         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
31559         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
31560         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
31561         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
31562         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
31563         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
31564         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
31565         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
31566         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
31567         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
31568         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
31569         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
31570         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
31571         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
31572         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
31573         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
31574         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
31575         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
31576         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
31577         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
31578         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
31579         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
31580         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
31581         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
31582         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
31583         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
31584         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
31585         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
31586         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
31587         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
31588         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
31589         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
31590         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
31591         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
31592         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
31593         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
31594         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
31595         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
31596         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
31597         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
31598         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
31599         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
31600         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
31601         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
31602         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
31603         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
31604         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
31605         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
31606         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
31607         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
31608         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
31609         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
31610         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
31611         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
31612         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
31613         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
31614         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
31615         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
31616         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
31617         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
31618         par-endh.adb par-labl.adb par-load.adb par-prag.adb
31619         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
31620         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
31621         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
31622         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
31623         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
31624         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
31625         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
31626         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
31627         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
31628         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
31629         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
31630         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
31631         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
31632         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
31633         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
31634         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
31635         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
31636         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
31637         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
31638         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
31639         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
31640         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
31641         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
31642         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
31643         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
31644         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
31645         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
31646         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
31647         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
31648         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
31649         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
31650         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
31651         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
31652         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
31653         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
31654         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
31655         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
31656         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
31657         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
31658         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
31659         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
31660         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
31661         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
31662         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
31663         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
31664         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
31665         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
31666         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
31667         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
31668         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
31669         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
31670         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
31671         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
31672         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
31673         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
31674         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
31675         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
31676         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
31677         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
31678         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
31679         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
31680         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
31681         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
31682         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
31683         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
31684         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
31685         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
31686         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
31687         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
31688         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
31689         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
31690         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
31691         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
31692         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
31693         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
31694         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
31695         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
31696         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
31697         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
31698         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
31699         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
31700         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
31701         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
31702         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
31703         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
31704         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
31705         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
31706         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
31707         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
31708         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
31709         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
31710         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
31711         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
31712         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
31713         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
31714         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
31715         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
31716         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
31717         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
31718         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
31719         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
31720         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
31721         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
31722         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
31723         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
31724         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
31725         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
31726         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
31727         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
31728         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
31729         stringt.ads stringt.h style.adb style.ads stylesw.adb
31730         stylesw.ads switch.adb switch.ads sysdep.c system.ads
31731         table.adb table.ads targparm.adb targparm.ads targtyps.c
31732         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
31733         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
31734         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
31735         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
31736         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
31737         usage.ads utils.c utils2.c validsw.adb validsw.ads
31738         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
31739         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
31740         xtreeprs.adb: Correct statements in comments about maintainership
31741         of GNAT.
31742
31743 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
31744
31745         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
31746         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
31747         * gnatvsn.ads: Gnat_Version_String is now a function.
31748         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
31749         copy the C version_string into a String and return it.
31750         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
31751         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
31752         Remove pragma Ident (Gnat_Version_String).  If this was the
31753         sole use of package Gnatvsn, remove the with statement too.
31754         * gnat1drv.adb: Tweak -gnatv output.
31755
31756 2002-09-17  Richard Henderson  <rth@redhat.com>
31757
31758         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
31759         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
31760         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
31761         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
31762         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
31763         and real_2expN instead of a loop.
31764         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
31765         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
31766
31767 2002-08-25  Andre Leis <a.leis@gmx.net>
31768             David Billinghurst (David.Billinghurst@riotinto.com>
31769
31770         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31771
31772 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31773
31774         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31775         Remove $(CONFIG_H) dependency.
31776
31777 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
31778
31779         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
31780
31781 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31782
31783         * adadecode.c (ada_demangle): Use xstrdup in lieu of
31784         xmalloc/strcpy.
31785         * misc.c (gnat_decode_option): Likewise.
31786
31787 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
31788
31789         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
31790         function approach did not work well because of a side effect (the
31791         function call could reallocate the table which was being indexed
31792         using its result). Fixes ada/4851. [RESURRECTED]
31793
31794 2002-07-01  Roger Sayle  <roger@eyesopen.com>
31795
31796         * ada/utils.c (builtin_function): Accept an additional parameter.
31797
31798 2002-06-28  Andreas Jaeger  <aj@suse.de>
31799
31800         PR ada/7144
31801         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
31802         <adi@thur.de>.
31803
31804 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31805
31806         * Makefile.in (SHELL): Set to @SHELL@.
31807
31808 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31809
31810         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
31811         array size calculation.
31812
31813 2002-06-04  Andreas Jaeger  <aj@suse.de>
31814
31815         * Make-lang.in (gnatbind): Readd rule that has been lost in last
31816         patch.
31817
31818 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
31819
31820         Merge from pch-branch:
31821
31822         * config-lang.in (gtfiles): Add ada-tree.h.
31823         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
31824         (SET_TYPE_MODULUS): New.
31825         (SET_TYPE_INDEX): New.
31826         (SET_TYPE_DIGITS_VALUE): New.
31827         (SET_TYPE_RM_SIZE): New.
31828         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
31829         (SET_TYPE_ADA_SIZE): New.
31830         (SET_TYPE_ACTUAL_BOUNDS): New.
31831         (SET_DECL_CONST_CORRESPONDING_VAR): New.
31832         (SET_DECL_ORIGINAL_FIELD): New.
31833         (TREE_LOOP_ID): Correct typo.
31834         * decl.c: Use new macros.
31835         * utils.c: Include debug.h, use new macros.
31836         * utils2.c: Use new macros.
31837
31838         * ada-tree.h: Update all macros for new tree description.
31839         (struct tree_loop_id): New.
31840         (union lang_tree_node): New.
31841         (struct lang_decl): New.
31842         (struct lang_type): New.
31843         * misc.c (gnat_mark_tree): Delete.
31844         (LANG_HOOKS_MARK_TREE): Delete.
31845         * trans.c (tree_transform): No longer any need to cast
31846         for TREE_LOOP_ID.
31847
31848         * utils.c (struct language_function): New dummy structure.
31849
31850         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
31851         (misc.o): Likewise.
31852         (utils.o): Likewise; also gtype-ada.h.
31853         * Make-lang.in (gnat1): Add dependency on s-gtype.
31854         (gnatbind): Add dependency on $(CONFIG_H).
31855         * utils.c: Correct last #include.
31856         (stuct e_stack): Remove unnecessary 'static'.
31857         (mark_e_stack): Remove unused prototype.
31858
31859         * scn-nlit.adb: Remove whitespace after version number to
31860         keep lines under 80 chars.
31861         * snames.adb: Likewise.
31862         * treepr.ads: Likewise.
31863
31864         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
31865         (misc.o): Likewise.
31866         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
31867         * config-lang.in (gtfiles): New.
31868         * decl.c: Use gengtype for roots.
31869         * gigi.h: Use gengtype for roots.
31870         * trans.c: Use gengtype for roots.
31871         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
31872
31873 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
31874
31875         * misc.c (gnat_init): Adjust setting of internal_error_function.
31876
31877 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
31878
31879         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
31880         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31881         gnat_ug_wnt.texi: Regenerate.
31882
31883 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
31884
31885         * 5ntaprop.adb (with System.OS_Primitives): Remove.
31886
31887         * cstreams.c (max_path_len): Move from here ...
31888         * adaint.c (__gnat_max_path_len): ... to here.
31889         * adaint.c (__gnat_max_path_len): Declare.
31890         * g-dirope.adb (Max_Path): Adjust.
31891         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
31892         * i-cstrea.ads (max_path_len): Adjust.
31893         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
31894         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
31895
31896         * Makefile.in, Make-lang.in: Documentation is now built in
31897         Make-lang.in.  Store Info and generated Texinfo files in the
31898         source directory.
31899         * gnat_ug.texi: Remove CVS keywords, correct version number.
31900         Set file name correctly.
31901
31902         * gnat_ug_*.texi: Add.
31903         * .cvsignore: Ignore generated Texinfo files.
31904
31905 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
31906
31907         * ada.h: Add MI guard macro.
31908         (SUBTYPE): Define constants with an anonymous enum, not static
31909         const variables.
31910         (IN): Cast constants to appropriate type before use.
31911
31912 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
31913
31914         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
31915         (experimental)".
31916
31917 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31918
31919         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
31920         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
31921         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
31922         (ALL_ADA_CFLAGS): Likewise.
31923         (ADA_INCLUDES): Likewise.
31924         Adapt for new working dir.
31925         (GNATBIND): Use Makefile.in version.
31926         (.SUFFIXES): Copy from Makefile.in.
31927         (ada-warn): Define.
31928         (.adb.o, .ads.o): Copy from Makefile.in.
31929         Added $(OUTPUT_OPTION).
31930         (GNAT1_C_OBJS): Moved from Makefile.in.
31931         Prefix with ada subdir.
31932         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
31933         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
31934         Adapt for new working dir.
31935         (EXTRA_GNATBIND_OBJS): Likewise.
31936         (ADA_BACKEND): Moved from Makefile.in.
31937         Renamed to avoid conflict with global BACKEND.
31938         Use that one.
31939         (TARGET_ADA_SRCS): Moved from Makefile.in.
31940         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
31941         Use ADA_BACKEND.
31942         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
31943         (ada_extra_files): Moved from Makefile.in.
31944         Prefix with ada subdir.
31945         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
31946         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
31947         (ada/nmake.ads): Likewise.
31948         (update-sources): Moved from Makefile.in.
31949         Prefix with ada subdir.
31950         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
31951         (ADA_TREE_H): Likewise.
31952         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
31953         (ada/memtrack.o): Likewise.
31954         (ada/adadecode.o): Likewise.
31955         Update dependencies.
31956         (ada/adaint.o): New.
31957         (ada/argv.o): Moved from Makefile.in.
31958         Prefix with ada subdir.
31959         Update dependencies.
31960         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
31961         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
31962         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
31963         Prefix with ada subdir.
31964         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
31965         (GNAT DEPENDENCIES): Regenerate.
31966         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
31967         toplevel Makefile.in.
31968         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
31969         (TARGET_ADA_SRCS): Removed.
31970         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
31971         (GNATBIND_OBJS): Likewise.
31972         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
31973         (BACKEND): Removed.
31974         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
31975         (TREE_H): Likewise.
31976         (ada_extra_files): Likewise.
31977         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
31978         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
31979         (update-sources): Likewise.
31980         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
31981         (ADA_TREE_H): Likewise.
31982         (adadecoce.o): Likewise.
31983         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
31984         (GNAT DEPENDENCIES): Likewise.
31985
31986 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31987
31988         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
31989         * Makefile.in: Likewise.
31990
31991 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31992
31993         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
31994         Restore $(CONFIG_H) and prefix.o dependencies.
31995         (ada.stage[1-4]): Depend on stage?-start.
31996
31997         * Makefile.in (b_gnatb.c): Depend on interfac.o.
31998
31999 2002-05-02  Jim Wilson  <wilson@redhat.com>
32000
32001         * utils.c (finish_record_type): Change record_size to record_type.
32002
32003 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
32004
32005         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
32006         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
32007         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
32008
32009 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
32010
32011         * misc.c (gnat_parse_file): Update.
32012
32013 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
32014
32015         * misc.c (gnat_init): Don't set lang_attribute_common.
32016
32017 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
32018
32019         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
32020
32021 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
32022
32023         * gnat_ug.texi: New file.
32024
32025         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
32026         instead of gfdl.texi
32027
32028         * xgnatug.adb, ug_words: New files.
32029
32030         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
32031         gnat_rm and gnat-style manuals.
32032
32033 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
32034
32035         * gigi.h (incomplete_type_error): Remove.
32036         * utils.c (incomplete_type_error): Remove.
32037
32038 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
32039
32040         * trans.c (tree_transform): Add has_scope argument to
32041         expand_start_stmt_expr.
32042
32043 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
32044
32045         * gigi.h (truthvalue_conversion): Rename.
32046         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
32047         * trans.c (tree_transform): Update.
32048         * utils2.c (truthvalue_conversion): Rename, update.
32049         (build_binary_op, build_unary_op): Update.
32050
32051 2002-04-04  Laurent Guerby  <guerby@acm.org>
32052
32053         * make.adb: Implement -margs, remove restriction about file name placement.
32054         * makeusg.adb: Documentation update.
32055         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
32056         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
32057
32058 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
32059
32060         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
32061         (builtin_function): Similarly.
32062
32063 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
32064
32065         * decl.c (gnat_to_gnu_entity): Update.
32066         * gigi.h (mark_addressable): Rename.
32067         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
32068         * trans.c (tree_transform): Update.
32069         * utils.c (create_var_decl): Update.
32070         * util2.c (build_binary_op, build_unary_op,
32071         fill_vms_descriptor): Update.
32072         (mark_addressable): Rename, update.
32073
32074 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
32075
32076         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
32077         Rename.
32078         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
32079         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
32080         * trans.c (tree_transform, convert_with_check): Update.
32081         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
32082         Rename.
32083
32084 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
32085
32086         * gigi.h (finish_incomplete_decl): Rename.
32087         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
32088         * utils.c (gnat_init_decl_processing): Don't set hook.
32089         (finish_incomplete_decl): Rename.
32090
32091 2002-03-29  Andreas Schwab  <schwab@suse.de>
32092
32093         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
32094         directory.
32095
32096 2001-03-28  Robert Dewar <dewar@gnat.com>
32097
32098         * checks.ads:
32099         (Remove_Checks): New procedure
32100
32101         * checks.adb:
32102         (Remove_Checks): New procedure
32103
32104         * exp_util.adb:
32105         Use new Duplicate_Subexpr functions
32106         (Duplicate_Subexpr_No_Checks): New procedure
32107         (Duplicate_Subexpr_No_Checks_Orig): New procedure
32108         (Duplicate_Subexpr): Restore original form (checks duplicated)
32109         (Duplicate_Subexpr): Call Remove_Checks
32110
32111         * exp_util.ads:
32112         (Duplicate_Subexpr_No_Checks): New procedure
32113         (Duplicate_Subexpr_No_Checks_Orig): New procedure
32114         Add 2002 to copyright notice
32115
32116         * sem_util.adb: Use new Duplicate_Subexpr functions
32117
32118         * sem_eval.adb:
32119         (Eval_Indexed_Component): This is the place to call
32120         Constant_Array_Ref and to replace the value. We simply merge
32121         the code of this function in here, since it is now no longer
32122         used elsewhere. This fixes the problem of the back end not
32123         realizing we were clever enough to see that this was
32124         constant.
32125         (Expr_Val): Remove call to Constant_Array_Ref
32126         (Expr_Rep_Val): Remove call to Constant_Array_Ref
32127         Minor reformatting
32128         (Constant_Array_Ref): Deal with string literals (patch
32129         suggested by Zack Weinberg on the gcc list)
32130
32131 2001-03-28  Ed Schonberg <schonber@gnat.com>
32132
32133         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
32134         Duplicate_Subexpr_Move_Checks.
32135
32136         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
32137         Duplicate_Subexpr_Move_Checks.
32138
32139         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
32140         value of array exists before retrieving it (it may a private
32141         protected component in a function).
32142
32143 2002-03-28   Geert Bosch <bosch@gnat.com>
32144
32145         * prj-pp.adb : New file.
32146
32147         * prj-pp.ads : New file.
32148
32149 2002-03-28  Andreas Jaeger  <aj@suse.de>
32150
32151         * Makefile.in (stamp-sdefault): Fix path for Makefile.
32152
32153 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
32154
32155         * misc.c (gnat_expand_expr): Move prototype.
32156
32157 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
32158
32159         * misc.c (insert_default_attributes): Remove.
32160
32161 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
32162
32163         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
32164         (gnat_init): Don't set hook.
32165         (gnat_expand_expr): Fix prototype.
32166
32167 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
32168
32169         * misc.c (ggc_p): Remove.
32170
32171 2002-03-27  Geert Bosch  <bosch@gnat.com>
32172
32173         * prj-makr.ads, prj-makr.adb : New files.
32174
32175 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
32176
32177         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
32178         (lang_mark_tree): Make static, rename.
32179
32180 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
32181
32182         * misc.c (maybe_build_cleanup): Remove.
32183
32184 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
32185
32186         * gigi.h (yyparse): Remove.
32187
32188 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
32189
32190         * gnat_rm.texi: Sync with ACT version.
32191           (From Ben Brosgol <brosgol@gnat.com>)
32192
32193 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
32194
32195         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
32196         (gnat_init): Remove old hook.
32197
32198 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
32199
32200         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
32201         (yyparse): Rename gnat_parse_file.
32202
32203 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
32204
32205         Delete all lines containing "$Revision:".
32206         * xeinfo.adb: Don't look for revision numbers.
32207         * xnmake.adb: Likewise.
32208         * xsinfo.adb: Likewise.
32209         * xsnames.adb: Likewise.
32210         * xtreeprs.adb: Likewise.
32211
32212 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32213
32214         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
32215         gnat_tree_code_name): Delete.
32216         (tree_code_type, tree_code_length, tree_code_name): Define.
32217         (gnat_init): Don't try to copy into the various tree_code
32218         arrays.
32219
32220 2002-03-11  Richard Henderson  <rth@redhat.com>
32221
32222         * Makefile.in (.NOTPARALLEL): Add fake tag.
32223
32224 2002-03-07  Geert Bosch  <bosch@gnat.com>
32225
32226         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
32227         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
32228         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
32229         switch-m.adb, switch-m.ads : New files.
32230
32231 2002-03-07  Geert Bosch  <bosch@gnat.com>
32232
32233         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
32234         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
32235         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
32236         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
32237         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
32238         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
32239         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
32240         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
32241         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
32242         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
32243         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
32244         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
32245         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
32246         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
32247         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
32248         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
32249         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
32250         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
32251         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32252         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
32253         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
32254         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
32255         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
32256         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
32257         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
32258         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
32259         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
32260         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
32261         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
32262         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
32263         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
32264         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
32265         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
32266         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
32267         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32268         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
32269         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32270         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
32271         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
32272         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
32273         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
32274         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
32275         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
32276         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
32277         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
32278         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
32279         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
32280         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
32281         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
32282         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
32283         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
32284         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
32285         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
32286         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
32287         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
32288         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
32289         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
32290         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
32291         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
32292         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
32293         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
32294         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
32295         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
32296         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
32297         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
32298         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
32299         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
32300         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
32301         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
32302         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
32303         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
32304         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
32305         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
32306         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32307         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32308         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32309         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
32310         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32311         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
32312         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32313         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
32314         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
32315         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
32316         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
32317         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
32318         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
32319         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
32320         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
32321         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
32322         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
32323         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
32324         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
32325         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
32326         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
32327         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
32328         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
32329         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
32330
32331         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
32332         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
32333         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
32334         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
32335
32336         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
32337         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
32338
32339         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
32340         to mdll-fil.ad[bs] and mdll-util.ad[bs]
32341
32342         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
32343         from mdllfile.ad[bs] and mdlltool.ad[bs]
32344
32345 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32346
32347         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
32348         lieu of explicit sizeof/sizeof.
32349
32350 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
32351
32352         * misc.c (copy_lang_decl): Remove.
32353
32354 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
32355
32356         * misc.c: Delete traditional-mode-related code copied from the
32357         C front end but not used, or used only to permit the compiler
32358         to link.
32359
32360 2002-02-07  Richard Henderson  <rth@redhat.com>
32361
32362         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
32363         * adaint.h (__gnat_to_gm_time): Update prototype.
32364
32365 2002-01-30  Richard Henderson  <rth@redhat.com>
32366
32367         * trans.c (tree_transform) [N_Loop_Statement]: Use
32368         expand_exit_loop_top_cond.
32369
32370 2001-12-23  Richard Henderson  <rth@redhat.com>
32371
32372         * utils.c (end_subprog_body): Push GC context around
32373         rest_of_compilation for nested functions.
32374
32375 2001-12-23  Richard Henderson  <rth@redhat.com>
32376
32377         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
32378
32379 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
32380
32381         * gnat-style.texi (Declarations and Types): Remove ancient style
32382         rule which was mandated by code generation issues.
32383
32384         * gnat-style.texi (header): Add @dircategory, @direntry.
32385         (title page): Remove date.
32386         (general) Add @./@: where approriate, and two spaces after the
32387         full stop at the end of a sentence.  Use @samp markup when
32388         referring concrete lexical entities (keywords, attribute names
32389         etc.), and @syntax for ARM grammar elements. Use @r for English
32390         text in comments.  Use @emph for emphasis.  Change "if-statements"
32391         etc. to "if statements" (without @samp). Break long lines.  Make
32392         casing of section names consistent.
32393         (Identifiers): Use @samp markup for variable names.
32394         (Comments): Use @samp markup for comment characters. Line-end
32395         comments may follow any Ada code, not just statements.  Fix
32396         misspelling of "Integer" as "integer".
32397         (Loop statements): Do not use variable name "I", use "J".
32398         (Subprogram Declarations): Document alignment.
32399         (Subprogram Bodies, Block statements): Document empty line before
32400         "begin".
32401
32402 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
32403
32404         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
32405         function approach did not work well because of a side effect (the
32406         function call could reallocate the table which was being indexed
32407         using its result). Fixes ada/4851.
32408
32409 2001-12-19  Robert Dewar <dewar@gnat.com>
32410
32411         * bindgen.adb: Minor reformatting
32412
32413         * cstand.adb: Minor reformatting
32414
32415         * fmap.adb: Minor reformatting
32416         Change name from Add for Add_To_File_Map (Add is much too generic)
32417         Change Path_Name_Of to Mapped_Path_Name
32418         Change File_Name_Of to Mapped_File_Name
32419         Fix copyright dates in header
32420
32421         * fmap.ads:
32422         Change name from Add for Add_To_File_Map (Add is much too generic)
32423         Change Path_Name_Of to Mapped_Path_Name
32424         Change File_Name_Of to Mapped_File_Name
32425         Fix copyright dates in header
32426
32427         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
32428         Add use clause for Fmap.
32429
32430         * make.adb: Minor reformatting
32431
32432         * osint.adb: Minor reformatting.  Change of names in Fmap.
32433         Add use clause for Fmap.
32434
32435         * prj-env.adb: Minor reformatting
32436
32437         * prj-env.ads: Minor reformatting
32438
32439         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
32440         error found (there were odd exceptions to this general rule in
32441         -gnatec/-gnatem processing)
32442
32443 2001-12-19  Olivier Hainque <hainque@gnat.com>
32444
32445         * raise.c (__gnat_eh_personality): Exception handling personality
32446         routine for Ada.  Still in rough state, inspired from the C++ version
32447         and still containing a bunch of debugging artifacts.
32448         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
32449         inspired from the C++ library.
32450
32451         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
32452         exception handling integration.
32453
32454 2001-12-19  Arnaud Charlet <charlet@gnat.com>
32455
32456         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
32457         (HIE_SOURCES): Add s-secsta.ad{s,b}.
32458         (HIE_OBJS): Add s-fat*.o
32459         (RAVEN_SOURCES): Remove files that are no longer required. Add
32460         interrupt handling files.
32461         (RAVEN_MOD): Removed, no longer needed.
32462
32463 2001-12-19  Robert Dewar <dewar@gnat.com>
32464
32465         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
32466         Add 2001 to copyright date
32467
32468         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
32469         need to force universal inlining for these cases.
32470
32471 2001-12-19  Arnaud Charlet <charlet@gnat.com>
32472
32473         * s-taprob.adb: Minor clean ups so that this unit can be used in
32474         Ravenscar HI.
32475
32476         * exp_ch7.adb: Allow use of secondary stack in HI mode.
32477         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
32478
32479 2001-12-19  Vincent Celier <celier@gnat.com>
32480
32481         * prj-tree.ads (Project_Node_Record): Add comments for components
32482         Pkg_Id and Case_Insensitive.
32483
32484 2001-12-19  Pascal Obry <obry@gnat.com>
32485
32486         * g-socket.adb: Minor reformatting. Found while reading code.
32487
32488 2001-12-19  Robert Dewar <dewar@gnat.com>
32489
32490         * prj-tree.ads: Minor reformatting
32491
32492 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
32493
32494         * config-lang.in (diff_excludes): Remove.
32495
32496 2001-12-17  Ed Schonberg <schonber@gnat.com>
32497
32498         * sem_res.adb (Resolve_Selected_Component): do not generate a
32499         discriminant check if the selected component is a component of
32500         the argument of an initialization procedure.
32501
32502         * trans.c (tree_transform, case of arithmetic operators): If result
32503         type is private, the gnu_type is the base type of the full view,
32504         given that the full view itself may be a subtype.
32505
32506 2001-12-17  Robert Dewar <dewar@gnat.com>
32507
32508         * sem_res.adb: Minor reformatting
32509
32510         * trans.c (tree_transform, case N_Real_Literal): Add missing third
32511         parameter in call to Machine (unknown horrible effects from this
32512         omission).
32513
32514         * urealp.h: Add definition of Round_Even for call to Machine
32515         Add third parameter for Machine
32516
32517 2001-12-17  Ed Schonberg <schonber@gnat.com>
32518
32519         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
32520         predefined units in No_Run_Time mode.
32521
32522 2001-12-17  Richard Kenner <kenner@gnat.com>
32523
32524         * misc.c (insn-codes.h): Now include.
32525
32526 2001-12-17  Olivier Hainque <hainque@gnat.com>
32527
32528         * a-except.adb: Preparation work for future integration of the GCC 3
32529         exception handling mechanism
32530         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
32531         to factorize previous code sequences and make them externally callable,
32532         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
32533         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
32534         Use the new notification routines.
32535
32536 2001-12-17  Emmanuel Briot <briot@gnat.com>
32537
32538         * prj-tree.ads (First_Choice_Of): Document the when others case
32539
32540 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32541
32542         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
32543         HI-E mode, in order to support Ravenscar profile properly.
32544
32545         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
32546         mode on 32 bits targets.
32547
32548 2001-12-17  Vincent Celier <celier@gnat.com>
32549
32550         * fmap.adb: Initial version.
32551
32552         * fmap.ads: Initial version.
32553
32554         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
32555         If search is successfully done, add to mapping.
32556
32557         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
32558
32559         * make.adb:
32560         (Gnatmake): Add new local variable Mapping_File_Name.
32561          Create mapping file when using project file(s).
32562          Delete mapping file before exiting.
32563
32564         * opt.ads (Mapping_File_Name): New variable
32565
32566         * osint.adb (Find_File): Use path name found in mapping, if any.
32567
32568         * prj-env.adb (Create_Mapping_File): New procedure
32569
32570         * prj-env.ads (Create_Mapping_File): New procedure.
32571
32572         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
32573         (Mapping_File)
32574
32575         * usage.adb: Add entry for new switch -gnatem.
32576
32577         * Makefile.in: Add dependencies for fmap.o.
32578
32579 2001-12-17  Ed Schonberg <schonber@gnat.com>
32580
32581         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
32582         is a package instantiation rewritten as a package body.
32583         (Install_Withed_Unit): Undo previous change, now redundant.
32584
32585 2001-12-17  Gary Dismukes <dismukes@gnat.com>
32586
32587         * layout.adb:
32588         (Compute_Length): Move conversion to Unsigned to callers.
32589         (Get_Max_Size): Convert Len expression to Unsigned after calls to
32590         Compute_Length and Determine_Range.
32591         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
32592         Compute_Length and Determine_Range.
32593         Above changes fix problem with length computation for supernull arrays
32594         where Max (Len, 0) wasn't getting applied due to the Unsigned
32595         conversion used by Compute_Length.
32596
32597 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32598
32599         * rtsfind.ads:
32600         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
32601          System.Secondary_Stack.
32602         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
32603          in HI-E mode.
32604         Remove unused entity RE_Exception_Data.
32605
32606         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
32607
32608         * rident.ads (No_Secondary_Stack): New restriction.
32609
32610 2001-12-17  Joel Brobecker <brobecke@gnat.com>
32611
32612         * gnat_rm.texi: Fix minor typos. Found while reading the section
32613         regarding "Bit_Order Clauses" that was sent to a customer.
32614         Very interesting documentation!
32615
32616 2001-12-17  Robert Dewar <dewar@gnat.com>
32617
32618         * sem_case.adb (Choice_Image): Avoid creating improper character
32619         literal names by using the routine Set_Character_Literal_Name. This
32620         fixes bombs in certain error message cases.
32621
32622 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32623
32624         * a-reatim.adb: Minor reformatting.
32625
32626 2001-12-17  Ed Schonberg <schonber@gnat.com>
32627
32628         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
32629         case where the formal is an extension of another formal in the current
32630         unit or in a parent generic unit.
32631
32632 2001-12-17  Arnaud Charlet <charlet@gnat.com>
32633
32634         * s-tposen.adb: Update comments.  Minor reformatting.
32635         Minor code clean up.
32636
32637         * s-tarest.adb: Update comments.  Minor code reorganization.
32638
32639 2001-12-17  Gary Dismukes <dismukes@gnat.com>
32640
32641         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
32642         when Java_VM.
32643
32644 2001-12-17  Robert Dewar <dewar@gnat.com>
32645
32646         * exp_attr.adb: Minor reformatting
32647
32648 2001-12-17  Ed Schonberg <schonber@gnat.com>
32649
32650         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
32651         derivations nested within a child unit: verify that the parent
32652         type is declared in an outer scope.
32653
32654 2001-12-17  Robert Dewar <dewar@gnat.com>
32655
32656         * sem_ch12.adb: Minor reformatting
32657
32658 2001-12-17  Ed Schonberg <schonber@gnat.com>
32659
32660         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
32661         warning if current unit is a predefined one, from which bodies may
32662         have been deleted.
32663
32664 2001-12-17  Robert Dewar <dewar@gnat.com>
32665
32666         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
32667         Fix header format. Add 2001 to copyright date.
32668
32669         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
32670         which caused CE during compilation if checks were enabled.
32671
32672 2001-12-17  Vincent Celier <celier@gnat.com>
32673
32674         * make.adb:
32675         (Switches_Of): New function
32676         (Test_If_Relative_Path): New procedure
32677         (Add_Switches): Use new function Switches_Of
32678         (Collect_Arguments_And_Compile): Use new function Switches_Of.
32679         When using a project file, test if there are any relative
32680         search path. Fail if there are any.
32681         (Gnatmake): Only add switches for the primary directory when not using
32682         a project file. When using a project file, change directory to the
32683         object directory of the main project file. When using a project file,
32684         test if there are any relative search path. Fail if there are any.
32685         When using a project file, fail if specified executable is relative
32686         path with directory information, and prepend executable, if not
32687         specified as an absolute path, with the exec directory.  Make sure
32688         that only one -o switch is transmitted to the linker.
32689
32690         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
32691
32692         * prj-nmsc.adb:
32693         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
32694         when using a non standard naming scheme.
32695         (Check_Ada_Naming_Scheme): Make sure that error messages
32696         do not raise exceptions.
32697         (Is_Illegal_Append): Return True if there is no dot in the suffix.
32698         (Language_Independent_Check): Check the exec directory.
32699
32700         * prj.adb (Project_Empty): Add new component Exec_Directory
32701
32702         * prj.ads:
32703         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
32704         (Project_Data): Add component Exec_Directory
32705
32706         * snames.adb: Updated to match snames.ads revision 1.215
32707
32708         * snames.ads: Added Exec_Dir
32709
32710 2001-12-17  Robert Dewar <dewar@gnat.com>
32711
32712         * make.adb: Minor reformatting
32713
32714         * prj-nmsc.adb: Minor reformatting
32715
32716         * snames.adb: Updated to match snames.ads
32717
32718         * snames.ads: Alphebetize entries for project file
32719
32720 2001-12-17  Ed Schonberg <schonber@gnat.com>
32721
32722         * trans.c (process_freeze_entity): Do nothing if the entity is a
32723         subprogram that was already elaborated.
32724
32725 2001-12-17  Richard Kenner <kenner@gnat.com>
32726
32727         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
32728         and Esize if object is referenced via pointer.
32729
32730 2001-12-17  Ed Schonberg <schonber@gnat.com>
32731
32732         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
32733         is discrete before analyzing choices.
32734
32735 2001-12-17  Joel Brobecker <brobecke@gnat.com>
32736
32737         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
32738         containing the name of the Ada Main Program. This string is mainly
32739         intended for the debugger.
32740         (Gen_Output_File_C): Do the equivalent change when generating a C file.
32741
32742 2001-12-17  Robert Dewar <dewar@gnat.com>
32743
32744         * ali.adb: Set new Dummy_Entry field in dependency entry
32745
32746         * ali.ads: Add Dummy_Entry field to source dependency table
32747
32748         * bcheck.adb (Check_Consistency): Ignore dummy D lines
32749
32750         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
32751
32752         * lib-writ.ads: Document dummy D lines for missing files.
32753
32754         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
32755
32756 2001-12-17  Robert Dewar <dewar@gnat.com>
32757
32758         * ali.adb: Type reference does not reset current file.
32759
32760         * ali.adb: Recognize and scan renaming reference
32761
32762         * ali.ads: Add spec for storing renaming references.
32763
32764         * lib-xref.ads: Add documentation for handling of renaming references
32765
32766         * lib-xref.adb: Implement output of renaming reference.
32767
32768         * checks.adb:
32769         (Determine_Range): Document local variables
32770         (Determine_Range): Make sure Hbound is initialized. It looks as though
32771          there could be a real problem here with an uninitialized reference
32772          to Hbound, but no actual example of failure has been found.
32773
32774 2001-12-17  Laurent Pautet <pautet@gnat.com>
32775
32776         * g-socket.ads:
32777         Fix comment of Shutdown_Socket and Close_Socket. These functions
32778         should not fail silently because if they are called twice, this
32779         probably means that there is a race condition in the user program.
32780         Anyway, this behaviour is consistent with the rest of this unit.
32781         When an error occurs, an exception is raised with the error message
32782         as exception message.
32783
32784 2001-12-17  Robert Dewar <dewar@gnat.com>
32785
32786         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
32787         that it happens before modification of Sloc values for -gnatD.
32788
32789         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
32790         so that it happens before modification of Sloc values for -gnatD.
32791
32792         * switch.adb: Minor reformatting
32793
32794 2001-12-15  Richard Henderson  <rth@redhat.com>
32795
32796         * sem_ch7.adb: Wrap comment.
32797
32798 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
32799
32800         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
32801         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
32802         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
32803         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
32804         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
32805         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
32806         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
32807         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
32808         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
32809         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
32810         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
32811         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
32812         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
32813         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
32814         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
32815         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
32816         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
32817         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
32818         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
32819         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
32820         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
32821         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
32822         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
32823         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
32824         spelling errors.
32825
32826 2001-12-14  Vincent Celier <celier@gnat.com>
32827
32828         * osint.adb(Create_Debug_File): When an object file is specified,
32829         put the .dg file in the same directory as the object file.
32830
32831 2001-12-14  Robert Dewar <dewar@gnat.com>
32832
32833         * osint.adb: Minor reformatting
32834
32835         * lib-xref.adb (Output_Instantiation): New procedure to generate
32836         instantiation references.
32837
32838         * lib-xref.ads: Add documentation of handling of generic references.
32839
32840         * ali.adb (Read_Instantiation_Ref): New procedure to read
32841         instantiation references
32842
32843         * ali.ads: Add spec for storing instantiation references
32844
32845         * bindusg.adb: Minor reformatting
32846
32847         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32848
32849         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32850
32851         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32852
32853         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32854
32855         * csets.ads:
32856         Fix header format
32857         Add 2001 to copyright date
32858         Add entry for Latin-5 (Cyrillic ISO-8859-5)
32859
32860 2001-12-14  Matt Gingell <gingell@gnat.com>
32861
32862         * adaint.c: mktemp is a macro on Lynx and can not be used as an
32863         expression.
32864
32865 2001-12-14  Richard Kenner <kenner@gnat.com>
32866
32867         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
32868         if operand is CONSTRUCTOR.
32869
32870 2001-12-14  Ed Schonberg <schonber@gnat.com>
32871
32872         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
32873         before emiting check on right-hand side, so that exception information
32874         is correct.
32875
32876 2001-12-14  Richard Kenner <kenner@gnat.com>
32877
32878         * utils.c (create_var_decl): Throw away initializing expression
32879         if just annotating types and non-constant.
32880
32881 2001-12-14  Vincent Celier <celier@gnat.com>
32882
32883         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
32884         Default_Ada_...
32885
32886         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32887         Remove functions.
32888         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
32889
32890         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32891         Remove functions.
32892         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
32893
32894 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
32895
32896         * ChangeLog: Remove piece of diff output.
32897
32898 2001-12-14  Geert Bosch <bosch@gnat.com>
32899
32900         * config-lang.in: Update copyright notice
32901
32902         * layout.adb: Remove commented out code.
32903
32904         * mdllfile.ads: Update copyright notice. Fix header format.
32905
32906         * sem_case.ads: Likewise.
32907
32908         * sem_ch3.adb: Minor reformatting.
32909
32910 2001-12-12  Geert Bosch <bosch@gnat.com>
32911
32912         * freeze.ads: Update copyright date.
32913
32914         * g-comlin.ads: Minor reformatting.
32915
32916         * gnat-style.texi: Fix typo.
32917
32918 2001-12-12  Geert Bosch <bosch@gnat.com>
32919
32920         *  einfo.h: Regenerate.
32921
32922 2001-12-12  Ed Schonberg <schonber@gnat.com>
32923
32924         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
32925         on known node types, rather than untyped fields. Further cleanups.
32926
32927 2001-12-12  Robert Dewar <dewar@gnat.com>
32928
32929         * sem_ch12.adb:
32930         (Save_Entity_Descendant): Minor comment update.
32931         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
32932          of an N_Attribute_Reference node. As per note below, this does not
32933         eliminate need for Associated_Node in attribute ref nodes.
32934         (Associated_Node): Documentation explicitly mentions attribute
32935         reference nodes, since this field is used in such nodes.
32936
32937         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
32938
32939 2001-12-12  Robert Dewar <dewar@gnat.com>
32940
32941         * s-stalib.adb: Add more comments on with statements being needed
32942
32943         * par-ch12.adb: Minor reformatting
32944
32945         * prj-dect.ads: Fix copyright header
32946
32947         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
32948         inputs fit in 32 bits, but the result still overflows.
32949
32950         * s-fatgen.ads: Minor comment improvement
32951
32952 2001-12-12  Ed Schonberg <schonber@gnat.com>
32953
32954         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
32955         formal derived type, look for an inherited component from the full
32956         view of the parent, if any.
32957
32958 2001-12-12  Robert Dewar <dewar@gnat.com>
32959
32960         * checks.ads (Apply_Alignment_Check): New procedure.
32961
32962         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
32963         ensure that the alignment of objects with address clauses is
32964         appropriate, and raise PE if not.
32965
32966         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
32967         Exp_Pakd.Known_Aligned_Enough
32968
32969         * mdllfile.ads: Minor reformatting
32970
32971         * mlib-fil.ads: Minor reformatting
32972
32973 2001-12-12  Ed Schonberg <schonber@gnat.com>
32974
32975         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
32976         fix to any component reference if enclosing record has non-standard
32977         representation.
32978
32979 2001-12-12  Vincent Celier <celier@gnat.com>
32980
32981         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
32982         Iteration
32983
32984 2001-12-12  Ed Schonberg <schonber@gnat.com>
32985
32986         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
32987         sem_attr.
32988
32989 2001-12-12  Robert Dewar <dewar@gnat.com>
32990
32991         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
32992
32993 2001-12-12  Emmanuel Briot <briot@gnat.com>
32994
32995         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
32996         and it adds dependencies to system.io.
32997
32998 2001-12-12  Pascal Obry <obry@gnat.com>
32999
33000         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
33001         variable name.
33002
33003 2001-12-11  Ed Schonberg <schonber@gnat.com>
33004
33005         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
33006         that is the parent of other generics, the instance body replaces the
33007         instance node.  Retrieve the instance of the spec, which is the one
33008         that is visible in clients and within the body.
33009
33010 2001-12-11  Vincent Celier <celier@gnat.com>
33011
33012         * gnatmain.adb: Initial version.
33013
33014         * gnatmain.ads: Initial version.
33015
33016         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
33017
33018         * snames.adb: Updated to match snames.ads.
33019
33020         * snames.ads: Added Gnatstub.
33021
33022 2001-12-11  Vincent Celier <celier@gnat.com>
33023
33024         * prj-attr.adb (Initialization_Data): Change name from
33025         Initialisation_Data.
33026
33027 2001-12-11  Emmanuel Briot <briot@gnat.com>
33028
33029         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
33030         + and * applied to backslashed expressions like \r.
33031
33032 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
33033
33034         * g-os_lib.ads: String_List type added, Argument_List type is now
33035         subtype of String_List.
33036
33037 2001-12-11  Robert Dewar <dewar@gnat.com>
33038
33039         * g-os_lib.ads: Change copyright to FSF
33040         Add comments for String_List type
33041
33042 2001-12-11  Vincent Celier <celier@gnat.com>
33043
33044         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
33045         string to the buffer).
33046
33047 2001-12-11  Ed Schonberg <schonber@gnat.com>
33048
33049         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
33050         sem_attr.
33051
33052         * sem_attr.adb: Simplify previous fix for Address.
33053         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
33054         to avoid anomalies where the bound of the type appears to raise
33055         constraint error.
33056
33057 2001-12-11  Robert Dewar <dewar@gnat.com>
33058
33059         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
33060         handled.
33061
33062 2001-12-11  Ed Schonberg <schonber@gnat.com>
33063
33064         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
33065         renamed unit before checking for recursive instantiations.
33066
33067 2001-12-11  Emmanuel Briot <briot@gnat.com>
33068
33069         * prj.ads: Add comments for some of the fields.
33070
33071 2001-12-11  Robert Dewar <dewar@gnat.com>
33072
33073         * lib-xref.adb (Output_Refs): Don't output type references outside
33074         the main unit if they are not otherwise referenced.
33075
33076 2001-12-11  Ed Schonberg <schonber@gnat.com>
33077
33078         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
33079         code and diagnose additional illegal uses
33080
33081         * sem_util.adb (Is_Object_Reference): An indexed component is an
33082         object only if the prefix is.
33083
33084 2001-12-11  Vincent Celier <celier@gnat.com>
33085
33086         * g-diopit.adb: Initial version.
33087
33088         * g-diopit.ads: Initial version.
33089
33090         * g-dirope.adb:
33091         (Expand_Path): Avoid use of Unbounded_String
33092         (Find, Wildcard_Iterator): Moved to child package Iteration
33093
33094         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
33095
33096 2001-12-11  Robert Dewar <dewar@gnat.com>
33097
33098         * sem_attr.adb: Minor reformatting
33099
33100 2001-12-11  Ed Schonberg <schonber@gnat.com>
33101
33102         * sem_ch3.adb: Clarify some ???.
33103
33104 2001-12-11  Robert Dewar <dewar@gnat.com>
33105
33106         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
33107         Exp_Pakd.Known_Aligned_Enough
33108
33109         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
33110         version is moved to Exp_Ch13.
33111
33112 2001-12-11  Robert Dewar <dewar@gnat.com>
33113
33114         * einfo.ads: Minor reformatting
33115
33116         * exp_ch5.adb: Add comment for previous.change
33117
33118         * ali.adb: New interface for extended typeref stuff.
33119
33120         * ali.ads: New interface for typeref stuff.
33121
33122         * checks.adb (Apply_Alignment_Check): New procedure.
33123
33124         * debug.adb: Add -gnatdM for modified ALI output
33125
33126         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
33127
33128         * lib-xref.adb: Extend generation of <..> notation to cover
33129         subtype/object types. Note that this is a complete rewrite,
33130         getting rid of the very nasty quadratic algorithm previously
33131         used for derived type output.
33132
33133         * lib-xref.ads: Extend description of <..> notation to cover
33134         subtype/object types. Uses {..} for these other cases.
33135         Also use (..) for pointer types.
33136
33137         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
33138
33139         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
33140         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
33141
33142 2001-12-11  Vincent Celier <celier@gnat.com>
33143
33144         * gnatcmd.adb:
33145         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
33146         Changed /BIND_ONLY to /ACTIONS=BIND
33147         Changed /LINK_ONLY to /ACTIONS=LINK
33148
33149 2001-12-11  Ed Schonberg  <schonber@gnat.com>
33150
33151         * sem_ch8.adb (Find_Selected_Component): improved search for a
33152         candidate package in case of error.
33153
33154         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
33155         chain back on scope stack before reinstalling use clauses.
33156
33157         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
33158         is enabled, do not kill the code for the condition, to preserve
33159         warning.
33160
33161 2001-12-11  Robert Dewar <dewar@gnat.com>
33162
33163         * checks.adb (Insert_Valid_Check): Apply validity check to expression
33164         of conversion, not to result of conversion.
33165
33166 2001-12-11  Ed Schonberg <schonber@gnat.com>
33167
33168         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
33169         before freezing parent. If the declarations are mutually recursive,
33170         an access to the current record type may be frozen before the
33171         derivation is complete.
33172
33173 2001-12-05  Vincent Celier <celier@gnat.com>
33174
33175         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
33176         -c /COMPILE_ONLY, -l /LINK_ONLY
33177
33178         * opt.ads:
33179         (Bind_Only): New Flag
33180         (Link_Only): New flag
33181
33182         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
33183         and -l (Link_Only)
33184
33185         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
33186
33187         * make.adb:
33188         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
33189         (Gnatmake): Set the step flags. Only perform a step if the
33190         corresponding step flag is True.
33191         (Scan_Make_Arg): Reset the bind and link step flags when -u
33192         or -gnatc has been specified.
33193
33194 2001-12-05  Ed Schonberg <schonber@gnat.com>
33195
33196         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
33197         get bounds from right operand.
33198
33199         * sem_eval.adb: Minor reformatting
33200
33201         * exp_util.adb (Make_Literal_Range): use bound of literal rather
33202         than Index'First, its lower bound may be different from 1.
33203
33204         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
33205         and C48009J
33206
33207 2001-12-05  Vincent Celier <celier@gnat.com>
33208
33209         * prj-nmsc.adb Minor reformatting
33210
33211         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
33212         set and libraries are not supported.
33213
33214 2001-12-05  Ed Schonberg <schonber@gnat.com>
33215
33216         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
33217         private view explicitly, so the back-end can treat as a global
33218         when appropriate.
33219
33220 2001-12-05  Ed Schonberg <schonber@gnat.com>
33221
33222         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
33223          unit, always replace instance node with new body, for ASIS use.
33224
33225 2001-12-05  Vincent Celier <celier@gnat.com>
33226
33227         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
33228         libraries are not supported and both attributes Library_Name and
33229         Library_Dir are specified.
33230
33231         * prj-proc.adb (Expression): Set location of Result to location of
33232         first term.
33233
33234         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
33235         (prj-nmsc is now importing MLib.Tgt)
33236
33237         * prj-proc.adb: Put the change indicated above that was forgotten.
33238
33239 2001-12-05  Robert Dewar <dewar@gnat.com>
33240
33241         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
33242
33243 2001-12-05  Ed Schonberg <schonber@gnat.com>
33244
33245         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
33246         constraint, introduce explicit subtype declaration and derive from it.
33247
33248         * sem_ch3.adb: Minor reformatting
33249
33250 2001-12-05  Robert Dewar <dewar@gnat.com>
33251
33252         * checks.adb (Determine_Range): Increase cache size for checks.
33253         Minor reformatting
33254
33255         * exp_ch6.adb: Minor reformatting
33256         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
33257         a parameter whose root type is System.Address, since treating such
33258         subprograms as pure in the code generator is almost surely a mistake
33259         that will lead to unexpected results.
33260
33261         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
33262         change handling of conversions.
33263
33264         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
33265
33266 2001-12-05  Ed Schonberg <schonber@gnat.com>
33267
33268         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
33269         aggregate with static wrong size, attach generated Raise node to
33270         declaration.
33271
33272 2001-12-05  Robert Dewar <dewar@gnat.com>
33273
33274         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
33275         Fixes compilation abandoned bomb in B24009B.
33276
33277 2001-12-05  Ed Schonberg <schonber@gnat.com>
33278
33279         * sem_ch12.adb:
33280         Document use of Associated_Node on Selected_Components.
33281         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
33282         to clarify use of untyped descendant fields.
33283
33284 2001-12-05  Robert Dewar <dewar@gnat.com>
33285
33286         * prj-dect.ads: Add ??? comment
33287         Add 2001 to copyright notice (was not done in after all)
33288
33289         * prj-part.adb: Minor reformatting. Reword one awkward error message.
33290
33291         * prj.ads: Minor reformatting throughout, and add some ??? comments
33292
33293         * snames.ads: Minor reformatting
33294
33295 2001-12-05  Geert Bosch <bosch@gnat.com>
33296
33297         * snames.adb: Autoupdate
33298
33299 2001-12-05  Vincent Celier <celier@gnat.com>
33300
33301         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
33302
33303         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
33304
33305         * prj-env.adb: Minor comment changes (modifying -> extends).
33306
33307         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
33308
33309         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
33310         Tok_Extends.
33311
33312         * prj.adb (Initialize): Change Modifying to Extends.
33313
33314         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
33315
33316         * prj.ads: Minor comment change (Modifying -> extending).
33317
33318         * snames.ads: Change modifying to extends.
33319
33320 2001-12-05  Robert Dewar <dewar@gnat.com>
33321
33322         * sem_warn.adb: Remove stuff for conditionals, we are not going to
33323         do this after all.
33324
33325         * sem_warn.ads: Remove stuff for conditionals, we are not going to
33326         do this after all.  Add 2001 to copyright notice
33327
33328 2001-12-04  Geert Bosch <bosch@gnat.com>
33329
33330         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
33331
33332 2001-12-04  Robert Dewar <dewar@gnat.com>
33333
33334         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
33335         location if we already have errors. Stops some cases of cascaded
33336         errors.
33337
33338         * errout.adb: Improve comment.
33339
33340 2001-12-04  Robert Dewar <dewar@gnat.com>
33341
33342         * sem_ch12.adb:
33343         (Analyze_Formal_Type_Definition): Defend against Error.
33344         (Analyze_Formal_Subprogram): Defend against Error.
33345
33346         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
33347         remove following semicolon if present. Removes cascaded error.
33348
33349 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
33350
33351         * bindgen.adb:
33352         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
33353          exceptions equals 0.
33354         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
33355         Fixes PIWG E tests (which have to be run with -gnatL).
33356
33357 2001-12-04  Robert Dewar <dewar@gnat.com>
33358
33359         * einfo.ads: Minor reformatting
33360
33361 2001-12-04  Ed Schonberg <schonber@gnat.com>
33362
33363         * einfo.ads: Block_Node points to the identifier of the block, not to
33364         the block node itself, to preserve the link when the block is
33365         rewritten, e.g. within an if-statement with a static condition.
33366
33367         * inline.adb (Cleanup_Scopes): recover block statement from block
33368         entity using new meaning of Block_Node.
33369
33370         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
33371         identifier of block node, rather than to node itself.
33372
33373 2001-12-04  Gary Dismukes <dismukes@gnat.com>
33374
33375         * layout.adb:
33376         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
33377         (Discrimify): Go back to setting the Etypes of the selected component
33378         because the Vname component does not exist at this point and will
33379         fail name resolution. Also set Analyzed.
33380         Remove with and use of Sem_Res.
33381
33382 2001-12-04  Arnaud Charlet <charlet@gnat.com>
33383
33384         * Makefile.in: (HIE_SOURCES): add s-fat*.
33385
33386 2001-12-04  Robert Dewar <dewar@gnat.com>
33387
33388         * sem_attr.adb:
33389         (Compile_Time_Known_Attribute): New procedure.
33390         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
33391          proper range check.
33392
33393 2001-12-04  Ed Schonberg <schonber@gnat.com>
33394
33395         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
33396         processing discriminants to diagnose illegal default values.
33397
33398 2001-12-04  Ed Schonberg <schonber@gnat.com>
33399
33400         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
33401         access discriminant within a type extension that constrains its
33402         parent discriminants.
33403
33404 2001-12-04  Ed Schonberg <schonber@gnat.com>
33405
33406         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
33407         is malformed, use instance of Any_Id to allow analysis to proceed.
33408
33409         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
33410         type definition is illegal.
33411         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
33412         misplaced.
33413
33414 2001-12-04  Ed Schonberg <schonber@gnat.com>
33415
33416         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
33417         constants.
33418
33419 2001-12-04  Robert Dewar <dewar@gnat.com>
33420
33421         * errout.adb: Minor reformatting
33422
33423 2001-12-04  Robert Dewar <dewar@gnat.com>
33424
33425         * exp_util.adb: Minor reformatting from last change
33426
33427         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
33428         which is a rewriting of an expression, traverse the original
33429         expression to remove warnings that may have been posted on it.
33430
33431 2001-12-04  Ed Schonberg <schonber@gnat.com>
33432
33433         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
33434         record that has other packed components.
33435
33436 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
33437
33438         * adaint.c: Minor cleanups.
33439
33440 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
33441
33442         * adaint.c: Do not use utime.h on vxworks.
33443
33444 2001-12-04  Arnaud Charlet <charlet@gnat.com>
33445
33446         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
33447         more confusion than it solves.
33448
33449 2001-12-04  Geert bosch <bosch@gnat.com>
33450
33451         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
33452
33453 2001-12-04  Geert Bosch  <bosch@gnat.com>
33454
33455         * Makefile.in (update-sources): New target.
33456         For use by gcc_release script.
33457
33458 2001-12-04  Ed Schonberg <schonber@gnat.com>
33459
33460         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
33461         a configuration pragma, it is now legal wherever a pragma can appear.
33462
33463 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
33464
33465         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
33466         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
33467         is now @CROSS@ -DIN_GCC; update comment.
33468
33469 2001-12-04  Robert Dewar <dewar@gnat.com>
33470
33471         * einfo.adb (Has_Pragma_Pure_Function): New flag.
33472         Fix problem that stopped ceinfo from working
33473
33474         * einfo.ads (Has_Pragma_Pure_Function): New flag.
33475
33476         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
33477
33478 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
33479
33480         * gnatchop.adb:
33481         (File_Time_Stamp): New procedure.
33482         (Preserve_Mode): New boolean.
33483         (Write_Unit): Pass time stamp.
33484         Implement -p switch (preserve time stamps).
33485
33486         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
33487
33488         * gnatchop.adb: Do usage info for -p switch
33489
33490         * adaint.h (__gnat_set_file_time_name): New function
33491
33492         * adaint.c (__gnat_set_file_time_name): Implement
33493
33494         * adaint.h: Fix typo
33495
33496 2001-12-03  Robert Dewar <dewar@gnat.com>
33497
33498         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
33499         have Associated_Node.
33500
33501 2001-12-03  Robert Dewar <dewar@gnat.com>
33502
33503         * prj-proc.adb: Minor reformatting
33504
33505         * make.adb: Minor reformatting
33506
33507 2001-12-03  Geert Bosch <bosch@gnat.com>
33508
33509         * make.adb: Minor reformatting.
33510
33511 2001-12-03 Robert Dewar  <dewar@gnat.com>
33512
33513         * sem_ch12.adb: Minor reformatting
33514
33515 2001-12-03  Ed Schonberg <schonber@gnat.com>
33516
33517         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
33518         push Standard on the stack before analyzing the instance body,
33519         in order to have a clean visibility environment.
33520
33521         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
33522
33523 2001-12-03  Ed Schonberg <schonber@gnat.com>
33524
33525         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
33526         instantiation of a body that contains an inlined body.
33527
33528 2001-12-03  Ed Schonberg <schonber@gnat.com>
33529
33530         * sem_ch12.adb:
33531         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
33532         to prevent freezing within formal packages.
33533         (Freeze_Subprogram_Body): If body comes from another instance that
33534         appeared before its own body, place freeze node at end of current
33535         declarative part, to prevent a back-end crash.
33536         (Inline_Instance_Body): Handle properly a package instance within
33537         a subprogram instance that is a child unit.
33538
33539 2001-12-01  Graham Stott  <grahams@redhat.com>
33540
33541         * Makefile.in (misc.o): Add missing $(srcdir) prefix
33542         and add optabs.h dependency.
33543
33544         * misc.c: Include optabs.h
33545         (gnat_tree_code_type): Make static and const.
33546         (gnat_tree_code_length): Likewise.
33547         (gnat_tree_code_name): Likewise.
33548         (update_setjmp_buf): Obtain operands mode from insn_data.
33549
33550 2001-11-29  Richard Henderson  <rth@redhat.com>
33551
33552         * init.c: Remove obsolete dwarf2 frame.h section.
33553
33554 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
33555
33556         * Make-lang.in (ada.generated-manpages): New dummy target.
33557
33558 2001-11-29  Ed Schonberg <schonber@gnat.com>
33559
33560         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
33561         into Command, an array conversion is illegal here. Uncovered by
33562         ACATS B460005.
33563
33564 2001-11-28  Geert Bosch <bosch@gnat.com>
33565
33566         * init.c: Minor whitespace changes.
33567
33568 2001-11-28  Doug Rupp <rupp@gnat.com>
33569
33570         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
33571         signal stack.
33572
33573 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
33574
33575         * misc.c (gnat_expand_constant): Move declaration above
33576         definition of lang_hooks.
33577         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
33578         (gnat_init): lang_expand_constant no longer exists.
33579
33580         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
33581         always have vprintf.
33582         (gnat_init): Always call set_internal_error_function.
33583
33584 2001-11-27  Andreas Jaeger  <aj@suse.de>
33585
33586         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
33587
33588 2001-11-27  Laurent Guerby  <guerby@acm.org>
33589
33590         * Makefile.in: Regenerate Ada dependencies.
33591
33592 2001-11-26  Richard Henderson  <rth@redhat.com>
33593
33594         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
33595         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
33596         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
33597
33598 2001-11-25  Laurent Guerby  <guerby@acm.org>
33599
33600         * sysdep.c (rts_get_*): Fix style.
33601
33602 2001-11-19  Laurent Guerby  <guerby@acm.org>
33603
33604         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
33605         since it is of no apparent use and cause warnings.
33606
33607 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
33608
33609         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
33610         static too.
33611         (gnat_init): Don't return NULL.
33612         (finish_parse): Remove.
33613
33614 2001-11-17  Laurent Guerby  <guerby@acm.org>
33615
33616         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
33617         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
33618         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
33619         * lang-spec.h: Add missing struct field to silence warnings.
33620         * sysdep.c (rts_get_*): Provide K&R prototype.
33621         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
33622         * traceback.c (Unlock_Task, Lock_Task): Likewise.
33623         * tracebak.c (__gnat_backtrace): Remove unused variable.
33624         * utils.c (end_subprog_body): Move to K&R style.
33625
33626 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33627
33628         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
33629
33630 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
33631
33632         * misc.c (gnat_init): Change prototype.  Include the
33633         functionality of the old init_parse and init_decl_processing.
33634         (gnat_init_decl_processing): New prototype.
33635         (init_parse): Remove.
33636         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
33637
33638 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
33639
33640         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
33641         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
33642         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
33643         set_yydebug): Remove.
33644
33645 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
33646
33647         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
33648         (struct lang_hooks): Constify.
33649         (language_string, lang_identify): Remove.
33650         * utils.c (init_decl_processing): Update.
33651
33652 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
33653
33654         * misc.c: Include langhooks-def.h.
33655         * Makefile.in: Update.
33656
33657 2001-10-30  Robert Dewar <dewar@gnat.com>
33658
33659         * style.adb:
33660         (Check_Identifier): Rewrite circuit to be compatible with use of letters
33661         in the upper half of ASCII.
33662         (Check_Identifier): Minor reformatting
33663
33664 2001-10-30  Geert Bosch <bosch@gnat.com>
33665
33666         * (Associated_Node, Set_Associated_Node): Do not check for
33667         Freeze_Entity.
33668
33669 2001-10-30  Robert Dewar <dewar@gnat.com>
33670
33671         * a-reatim.ads: Minor reformatting
33672
33673 2001-10-30  Robert Dewar <dewar@gnat.com>
33674
33675         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
33676         undocumented declarations.
33677
33678 2001-10-30  Pascal Obry <obry@gnat.com>
33679
33680         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
33681         to the binder and linker.
33682         Minor style fix.
33683
33684         * mdll.ads: Fix layout.  Update copyright notice.
33685
33686         * mdll.adb: Fix layout.  Update copyright notice.
33687
33688 2001-10-30  Robert Dewar <dewar@gnat.com>
33689
33690         * usage.adb: Minor fix to output for -gnaty.
33691
33692 2001-10-30  Ed Schonberg <schonber@gnat.com>
33693
33694         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
33695         to accommodate all its possible values.
33696
33697         * a-reatim.adb (Split): Special-case handling of Time_Span_First
33698         and of small absolute values of T.
33699
33700 2001-10-30  Richard Kenner <kenner@gnat.com>
33701
33702         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
33703         set_mem_attributes since not needed and wrong if RESULT if a REG;
33704         fixes ACATS failures.
33705
33706 2001-10-30  Geert Bosch <bosch@gnat.com>
33707
33708         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
33709         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
33710
33711 2001-10-30  Robert Dewar <dewar@gnat.com>
33712
33713         * bindusg.adb: Undocument -f switch.
33714
33715         * gnatcmd.adb: Remove /FULL_ELABORATION.
33716
33717         * opt.ads (Force_RM_Elaboration_Order): Document that this is
33718         obsolescent.
33719
33720         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
33721
33722         * gnatbind.adb: Minor update of warning msg.
33723
33724 2001-10-30  Vincent Celier <celier@gnat.com>
33725
33726         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
33727         for project file switches (-P (/PROJECT_FILE=),
33728          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
33729         or MEDIUM or HIGH)
33730
33731 2001-10-30  Geert Bosch <bosch@gnat.com>
33732
33733         * decl.c: Minor whitespace fixes.
33734
33735 2001-10-30  Richard Kenner <kenner@gnat.com>
33736
33737         * utils2.c (build_allocator): Test for SIZE overflow in array case too
33738
33739 2001-10-30  Geert Bosch <bosch@gnat.com>
33740
33741         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
33742         Found due to GCC 3.0 warning of using uninitialized value.
33743
33744         * layout.adb:
33745         (Get_Max_Size): Use variant record for tracking value/expression.
33746          Makes logic clearer and prevents warnings for uninitialized variables.
33747         (Layout_Array_Type): Use variant record for tracking value/expression.
33748          Makes logic clearer and prevents warnings for uninitialized variables.
33749
33750 2001-10-30  Robert Dewar <dewar@gnat.com>
33751
33752         * lib.adb: Minor reformatting
33753
33754         * s-taprop.ads: Minor reformatting
33755
33756 2001-10-29  Laurent Guerby  <guerby@acm.org>
33757
33758         * init.c:
33759         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
33760         const.
33761         (_gnat_error_handler): Make MSG const.
33762
33763 2001-10-29  Richard Kenner <kenner@gnat.com>
33764
33765         * sysdep.c: Fix localtime_r problem on LynxOS.
33766         Also remove #elif to avoid warnings.
33767
33768         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33769         used by this.
33770
33771         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33772
33773 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
33774
33775         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33776         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
33777         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
33778         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
33779         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
33780         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
33781         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
33782         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
33783         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
33784         types.ads, urealp.adb: Fix spelling errors.
33785
33786 2001-10-27  Laurent Guerby <guerby@acm.org>
33787
33788         * trans.c (gigi): Fix non determinism leading to bootstrap
33789         comparison failures for debugging information.
33790
33791 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
33792
33793         * gnat_rm.texi: Use @./@: where appropriate.
33794
33795 2001-10-26  Robert Dewar <dewar@gnat.com>
33796
33797         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
33798
33799 2001-10-26  Richard Kenner <kenner@gnat.com>
33800
33801         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
33802
33803 2001-10-26  Richard Kenner <kenner@gnat.com>
33804
33805         * decl.c (validate_size): Modify message for bad size to avoid
33806         implication that compiler is modifying the size.
33807
33808 2001-10-26  Robert Dewar <dewar@gnat.com>
33809
33810         * prj-util.adb: Minor reformatting. Fix bad header format.
33811
33812 2001-10-26  Robert Dewar <dewar@gnat.com>
33813
33814         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
33815
33816         * sinfo.ads: Clarify use of Associated_Node (documentation only).
33817
33818         * sem_ch12.adb: Change Node4 to Associated_Node. Change
33819         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
33820         much more narrowly in places where needed. These are cleanups.
33821
33822 2001-10-26  Joel Brobecker <brobecke@gnat.com>
33823
33824         * 5zosinte.ads (null_pthread): new constant.
33825
33826         * 5ztaprop.adb:
33827         (Initialize_TCB): Initialize thread ID to null, to be able to verify
33828          later that this field has been set.
33829         (Finalize_TCB): ditto.
33830         (Suspend_Task): Verify that the thread ID is not null before using it.
33831         (Resume_Task): ditto.
33832
33833         * s-tasdeb.adb:
33834         (Resume_All_Tasks): Lock the tasks list before using it.
33835         (Suspend_All_Tasks): ditto.
33836
33837 2001-10-26  Richard Kenner <kenner@gnat.com>
33838
33839         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
33840         Make constant variant of designated type for Is_Access_Constant.
33841         Call update_pointer_to with main variant.
33842
33843         * trans.c (process_freeze_entity, process_type):
33844         Call update_pointer_to on main variant.
33845
33846         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
33847         If main variant, update all other variants.
33848
33849         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
33850         TREE_STATIC.
33851
33852 2001-10-26  Robert Dewar <dewar@gnat.com>
33853
33854         * prj-util.adb: Minor reformatting
33855
33856 2001-10-26  Robert Dewar <dewar@gnat.com>
33857
33858         * prj-util.adb: Minor reformatting
33859
33860 2001-10-26  Robert Dewar <dewar@gnat.com>
33861
33862         * prj-attr.adb: Minor reformatting throughout
33863
33864 2001-10-26  Robert Dewar <dewar@gnat.com>
33865
33866         * prj-attr.ads: Minor reformatting
33867         Add ??? comment (this whole spec has almost no comments)
33868
33869 2001-10-26  Vincent Celier <celier@gnat.com>
33870
33871         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
33872         ("//") that precede the drive letter on Interix.
33873
33874 2001-10-26  Geert Bosch <bosch@gnat.com>
33875
33876         * gnat_rm.texi: Add GNAT Reference Manual.
33877
33878 2001-10-25  Robert Dewar <dewar@gnat.com>
33879
33880         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
33881         is Error. Similar change for other renaming cases.
33882
33883 2001-10-25  Robert Dewar <dewar@gnat.com>
33884
33885         * s-atacco.ads: Add pragma Inline_Always for functions.
33886         Fix header format. Add copyright 2001
33887
33888 2001-10-25  Ed Schonberg <schonber@gnat.com>
33889
33890         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
33891         return Error rather than Empty so that analysis can proceed.
33892
33893 2001-10-25  Ed Schonberg <schonber@gnat.com>
33894
33895         * sem_util.adb (Enter_Name): better handling of cascaded error
33896         messages when a unit appears in its own context.
33897
33898 2001-10-25  Ed Schonberg <schonber@gnat.com>
33899
33900         * sem_util.adb (Defining_Entity): in case of error, attach created
33901         entity to specification, so that semantic analysis can proceed.
33902
33903 2001-10-25  Robert Dewar <dewar@gnat.com>
33904
33905         * sem_util.adb
33906         (Defining_Entity): Deal with Error.
33907         (Process_End_Label): Deal with bad end label for.
33908
33909 2001-10-25  Ed Schonberg <schonber@gnat.com>
33910
33911         * sem_elab.adb (Check_A_Call): refine message when call is in an
33912         instance but callee is not declared in the generic unit.
33913
33914 2001-10-25  Ed Schonberg <schonber@gnat.com>
33915
33916         * sem_elab.adb (Check_A_Call): check for renaming before finding the
33917         enclosing unit, which may already be different from the calling unit.
33918
33919 2001-10-25  Geert Bosch <bosch@gnat.com>
33920
33921         * 4gintnam.ads: fix header format.
33922
33923 2001-10-25  Ed Schonberg <schonber@gnat.com>
33924
33925         * sem_res.adb (Resolve_Call): if the call is actually an indexing
33926         operation on the result of a parameterless call, perform elaboration
33927         check after the node has been properly rewritten.
33928
33929         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
33930         inlined within the generic tree, the defining identifier is not a
33931         compilation_unit.
33932
33933 2001-10-25  Ed Schonberg <schonber@gnat.com>
33934
33935         * sem_res.adb (Resolve): special-case resolution of Null in an
33936          instance or an inlined body to avoid view conflicts.
33937
33938         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
33939          compatibility by retrieving the access type of the generic copy.
33940
33941 2001-10-25  Robert Dewar <dewar@gnat.com>
33942
33943         * sem_ch3.adb:
33944         (Analyze_Number_Declaration): Handle error expression.
33945         (Signed_Integer_Type_Declaration): Handle error bound.
33946         (Analyze_Subtype_Indication): Handle error range.
33947
33948         * sem_util.adb (Get_Index_Bounds): Check for Error.
33949
33950 2001-10-25  Robert Dewar <dewar@gnat.com>
33951
33952         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
33953         in no run time mode.
33954
33955 2001-10-25  Pascal Obry <obry@gnat.com>
33956
33957         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
33958         mode case for ALLOC case.
33959
33960         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
33961         all platforms. Improvement of last change.
33962
33963 2001-10-25  Robert Dewar <dewar@gnat.com>
33964
33965         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
33966
33967 2001-10-25  Geert Bosch  <bosch@gnat.com>
33968
33969         * osint.adb (Is_Relative): Remove duplicate.
33970
33971 2001-10-25  Pascal Obry <obry@gnat.com>
33972
33973         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
33974         pathnames in UNIX and DOS style with drive letter.
33975         (Is_Relative): new routine.
33976
33977         * osint.adb: Minor reformatting
33978
33979         * osint.adb (Is_Relative): implementation using
33980         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
33981
33982 2001-10-25  Pascal Obry <obry@gnat.com>
33983
33984         * g-dirope.adb (Basename): correctly compute offset between the
33985         original Path and the translated one.
33986
33987         * g-dirope.adb: (Base_Name): add some comments.
33988
33989 2001-10-25  Robert Dewar <dewar@gnat.com>
33990
33991         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
33992         in HIE mode, avoids compilation abandoned message
33993
33994         * exp_imgv.adb: Correct typo in previous change
33995
33996         * exp_imgv.adb: Correct typo in previous change (not my day!)
33997
33998 2001-10-25  Robert Dewar <dewar@gnat.com>
33999
34000         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
34001
34002 2001-10-25  Pascal Obry <obry@gnat.com>
34003
34004         * g-awk.ads: Move all pragma inlines next to the routine
34005          declarations. This is more uniform with other GNAT spec.
34006
34007 2001-10-22  Geert Bosch  <bosch@gnat.com>
34008
34009         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
34010
34011 2001-10-19  Geert Bosch  <bosch@gnat.com>
34012
34013         * Makefile.in (tools, gnattools): Remove gnatmem.
34014
34015 2001-10-17  Richard Henderson  <rth@redhat.com>
34016
34017         * Makefile.in (misc.o): Depend on langhooks.h.
34018         * misc.c: Include it.
34019         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
34020         (LANG_HOOKS_DECODE_OPTION): New.
34021         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
34022
34023 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
34024
34025         * trans.c (tree_transform): Adjust to recent change in
34026         expand_asm_operands to implement named asm operands.
34027
34028 2001-10-11  Ed Schonberg  <schonber@gnat.com>
34029
34030         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
34031         renaming of discriminant for mutable record type.
34032
34033 2001-10-11  Robert Dewar  <dewar@gnat.com>
34034
34035         * validsw.adb: Properly save -gnatVn status.
34036
34037 2001-10-11  Robert Dewar <dewar@gnat.com>
34038
34039         * usage.adb: Add lines for V switch.
34040
34041         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
34042         (/VALIDITY_CHECKING).
34043
34044 2001-10-11  Ed Schonberg <schonber@gnat.com>
34045
34046         * sem_type.adb (Add_One_Interp): an operator for a type declared in
34047         an extension of System is known to be visible.
34048
34049 2001-10-11  Ed Schonberg <schonber@gnat.com>
34050
34051         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
34052         properly. Fixes regression on ACATS C34005G.
34053
34054 2001-10-11  Robert Dewar <dewar@gnat.com>
34055
34056         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
34057         loop in generic instance, since this is likely not very useful.
34058
34059 2001-10-11  Robert Dewar <dewar@gnat.com>
34060
34061         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
34062         the error message for high integrity mode.
34063
34064         * rtsfind.adb (RTE): Give message if we try to find an entity that
34065         is not available in high integrity mode.
34066
34067         * rtsfind.ads:
34068         (OK_To_Use_In_HIE_Mode): New array.
34069         (RTE): May return Empty in high integrity mode.
34070
34071         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
34072         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
34073
34074         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
34075         unit if not inlined always and in no runtime mode. Fixes problem
34076         caused by new Rtsfind changes.
34077
34078         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
34079         body is deleted.
34080
34081         * rtsfind.adb (RTE): Make sure we do not try to load unit after
34082         giving message for entity not available in high integrity mode.
34083
34084 2001-10-11  Pascal Obry <obry@gnat.com>
34085
34086         * impunit.adb: Add GNAT.CRC32.
34087
34088 2001-10-11  Ed Schonberg <schonber@gnat.com>
34089
34090         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
34091         properly the case where one universal operand in a non-static
34092         exponentiation of a real literal.
34093
34094 2001-10-11  Ed Schonberg <schonber@gnat.com>
34095
34096         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
34097         clause, return the gobal finalization list, for lack of anthing else.
34098
34099 2001-10-11  Ed Schonberg <schonber@gnat.com>
34100
34101         * exp_ch7.adb (Make_Transient_Block): if statement is within
34102         exception handler, always use new transient scope to place Clean
34103         procedure.
34104
34105 2001-10-11  Pascal Obry <obry@gnat.com>
34106
34107         * Makefile.in:
34108         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34109         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34110         (GNATLS_RTL_OBJS): add g-crc32.o
34111         (GNATMAKE_RTL_OBJS): add g-crc32.o
34112
34113         * ali-util.adb:
34114         (CRC_Match): new function.
34115         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
34116         instead of the previous simple checksum algorithm.
34117         (Time_Stamp_Mismatch): use CRC_Match for comparison.
34118         (Set_Source_Table): idem.
34119
34120         * ali-util.ads:
34121         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
34122         instead of simple checksum.
34123         (CRC_Match): new function.
34124         (CRC_Error): new constant.
34125
34126         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
34127         a CRC now and not a simple checksum. A CRC uses lower-case hex
34128         letters, fixes ambiguity in parsing.
34129
34130         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
34131         is what this variable will store.
34132
34133         * bcheck.adb: Change reference to chechsum in comments by CRC.
34134         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
34135         rename All_Checksum_Match to All_CRC_Match. Change due to API
34136         renaming since now GNAT does not use a simple checksum but a
34137         CRC using GNAT.CRC32.
34138
34139         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
34140         now and not anymore a simple checksum.
34141
34142         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
34143         places.
34144
34145         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
34146
34147         * scans.adb:
34148         (Restore_Scan_State): rename Checksum to CRC.
34149         (Save_Scan_State): idem.
34150
34151         * scans.ads:
34152         With GNAT.CRC32.
34153         (Checksum): rename to CRC.
34154         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
34155
34156         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
34157         GNAT.CRC32).  Update copyright notice.
34158
34159         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
34160         GNAT.CRC32).  Update copyright notice.
34161
34162         * scn.adb:
34163         (Accumulate_Checksum): removed.
34164         (Update): new procedure. Add a wide-character into the CRC.
34165
34166         * sinput-l.adb:
34167         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
34168         (Load_File): fix initialization of S (change Source_Checksum to
34169         Source_CRC)
34170
34171         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
34172         Source_CRC in S initialization.
34173
34174         * sinput.adb (Source_Checksum): renamed to Source_CRC.
34175
34176         * sinput.ads (Source_Checksum): renamed to Source_CRC.
34177         Update comments for the CRC.
34178
34179         * types.adb (Hex): Use lowercase for the letter part.
34180
34181         * types.ads (Get_Hex_String): Returns the hexadecimal representation
34182         for a word. This is currently used only for CRC. In previous version,
34183         the checksum was using a representation with all letter being
34184         upper-case. With the new implementation (using CRC) we do not remove
34185         the 32th bit of the CRC, so we can have an upper-case starting letter
34186         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
34187         It is ambigous since the CRC was optional and could be followed by
34188         options like EB, EE. So now this routines uses lower-case letter for
34189         the hexadecimal representation. Strange enough only lower case letters
34190         where checked in Scan_ALI (even if this was not a possible case).
34191
34192         * gnatvsn.ads (Library_Version): changed to 3.15a.
34193
34194         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
34195         for the compiler.
34196
34197         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
34198         for the compiler.
34199
34200         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
34201         Add 2001 to copyright notice
34202         (Accumulate_Checksum): Modify to use System.CRC32.
34203
34204         * ali-util.ads: Redo changes of previous revision to continue to use
34205         the word Checksum. Add 2001 to copyright notice.
34206
34207         * ali.adb: Undo some of previous changes, not needed.
34208         Keep the change for lower case letters in the checksum.
34209
34210         * ali.ads: Undo previous change not needed.
34211
34212         * bcheck.adb: Undo most of previous change, not needed.
34213         But do use Checksums_Match for checksum comparison.
34214
34215         * gnatls.adb: Undo most of previous change, not needed.
34216         But do use Checksums_Match for comparing checksums.
34217
34218         * lib-load.adb: Undo previous change, not needed.
34219
34220         * lib-writ.adb: Undo previous change, not needed.
34221
34222         * lib-writ.ads: Document that checksums use lower case,
34223         not upper case letters.
34224
34225         * scans.adb: Undo previous change, not needed
34226
34227         * scans.ads: Undo previous change, not needed.
34228
34229         * scn-nlit.adb: Undo previous changes, not needed.
34230
34231         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
34232
34233         * scn.adb:
34234         (Accumulate_Checksum): Use System.CRC32.
34235         (Initialize_Checksum): New procedure.
34236         Remove other changes of previous revision.
34237
34238         * sinput-p.adb: Undo previous change, not needed.
34239
34240         * sinput.adb: Undo previous change, not needed.
34241
34242         * sinput-l.adb: Undo previous change, not needed.
34243
34244         * sinput.ads: Undo previous change, not needed.  Keep only comment
34245         on new checksum algorithm
34246
34247         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
34248         Also remove a-tags and a-stream from GNAT sources.
34249
34250         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
34251
34252         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
34253
34254 2001-10-11  Geert Bosch  <bosch@gnat.com>
34255
34256         * einfo.h: Regenerate.
34257
34258         * nmake.ads: Regenerate.
34259
34260         * nmake.adb: Regenerate.
34261
34262         * sinfo.h: Regenerate.
34263
34264         * treeprs.adb: Regenerate.
34265
34266 2001-10-10  Geert Bosch  <bosch@gnat.com>
34267
34268         * gnat-style.texi: New file describing coding guidelines for Ada.
34269
34270 2001-10-10  Ed Schonberg <schonber@gnat.com>
34271
34272         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
34273         is Flag174.
34274
34275 2001-10-10  Geert Bosch  <bosch@gnat.com>
34276
34277         * snames.ads: Add new names for project facility.
34278
34279         * snames.adb: Update to reflect snames.ads changes.
34280
34281         * snames.h: Update to reflect snames.ads changes.
34282
34283 2001-10-10  Vincent Celier <celier@gnat.com>
34284
34285         * make.adb:
34286         (Add_Switches): reflect the changes for the switches attributes
34287         Default_Switches indexed by the programming language,
34288         Switches indexed by the file name.
34289         (Collect_Arguments_And_Compile): Idem.
34290         Reflect the attribute name changes.
34291
34292         * prj-attr.adb:
34293         (Initialisation_Data): Change the names of some packages and
34294         attributes.
34295         (Initialize): process case insensitive associative arrays.
34296
34297         * prj-attr.ads:
34298         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
34299
34300         * prj-dect.adb:
34301         (Parse_Attribute_Declaration): For case insensitive associative
34302          arrays, set the index string to lower case.
34303
34304         * prj-env.adb:
34305         Reflect the changes of the project attributes.
34306
34307         * prj-nmsc.adb:
34308         Replace Check_Naming_Scheme by Ada_Check and
34309         Language_Independent_Check.
34310
34311         * prj-nmsc.ads:
34312         Replaced Check_Naming_Scheme by 2 procedures:
34313         Ada_Check and Language_Independent_Check.
34314
34315         * prj-proc.adb:
34316         (Process_Declarative_Items): For case-insensitive associative
34317         arrays, set the index string to lower case.
34318         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
34319         Prj.Nmsc.Check_Naming_Scheme.
34320
34321         * prj-tree.adb:
34322         (Case_Insensitive): New function
34323         (Set_Case_Insensitive): New procedure
34324
34325         * prj-tree.ads:
34326         (Case_Insensitive): New function
34327         (Set_Case_Insensitive): New procedure
34328         (Project_Node_Record): New flag Case_Insensitive.
34329
34330         * prj-util.adb:
34331         (Value_Of): new function to get the string value of a single
34332         string variable or attribute.
34333
34334         * prj-util.ads:
34335         (Value_Of): new function to get the string value of a single
34336         string variable or attribute.
34337
34338         * prj.adb:
34339         (Ada_Default_Spec_Suffix): New function
34340         (Ada_Default_Impl_Suffix): New function
34341         Change definitions of several constants to reflect
34342         new components of record types.
34343
34344         * prj.ads:
34345         (Naming_Data): Change several components to reflect new
34346         elements of naming schemes.
34347         (Project_Data): New flags Sources_Present and
34348         Language_Independent_Checked.
34349         (Ada_Default_Spec_Suffix): New function.
34350         (Ada_Default_Impl_Suffix): New function.
34351
34352         * snames.ads:
34353         Modification of predefined names for project manager: added
34354         Implementation, Specification_Exceptions, Implementation_Exceptions,
34355         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
34356         Default_Switches, _Languages, Builder, Cross_Reference,
34357         Finder. Removed Body_Part, Specification_Append, Body_Append,
34358         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
34359         Gnatlink.
34360
34361         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34362         Add comments.
34363
34364         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
34365         not that it is Nil_Variable_Value.
34366
34367         * prj.ads: Add ??? for uncommented declarations
34368
34369 2001-10-10  Ed Schonberg <schonber@gnat.com>
34370
34371         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
34372         constant, do not indicate possible modification, so that gigi can
34373         treat it as a bona fide constant.
34374
34375 2001-10-10  Robert Dewar <dewar@gnat.com>
34376
34377         * sem_prag.adb: Add processing for pragma External.
34378
34379         * snames.ads: Add entry for pragma External.
34380
34381         * par-prag.adb: Add pragma External.
34382
34383         * snames.adb: Updated to match snames.ads.
34384
34385 2001-10-10  Ed Schonberg <schonber@gnat.com>
34386
34387         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
34388         a dynamic task if the allocator appears in an indexed assignment
34389         or selected component assignment.
34390
34391         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
34392         For a dynamic task in an assignment statement, use target of
34393         assignment to generate meaningful name.
34394
34395 2001-10-10  Ed Schonberg <schonber@gnat.com>
34396
34397         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
34398         a generic package.
34399
34400         * einfo.ads: Body_Entity is also defined for generic package.
34401         Documentation change only
34402
34403         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
34404         others_choice for a discriminated component initialization,
34405         convert discriminant references into the corresponding discriminals.
34406
34407         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
34408         only if original type is private and expression has to be wrapped
34409         in a conversion.
34410
34411         * checks.adb:
34412         (Apply_Constraint_Check): Do not perform length check
34413         if expression is an aggregate with only an others_choice.
34414         (Length_N_Cond): two references to the same in_parameter
34415         (typically the discriminal in an init_proc) denote the same value.
34416         Two useful optimization uncovered by bugfixes above.
34417
34418 2001-10-10  Robert Dewar <dewar@gnat.com>
34419
34420         * xeinfo.adb: Change int to char in translation of enumeration types.
34421         This fixes a problem in the C representation of component alignment.
34422         Add 2001 to copyright notice
34423
34424 2001-10-10  Richard Kenner <kenner@gnat.com>
34425
34426         * decl.c: (validate_size): Do check size of object of integral type
34427         if it is a packed array type.
34428
34429 2001-10-10  Richard Kenner <kenner@gnat.com>
34430
34431         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
34432         VAR_DECL for constant if not Is_Public but -O0.
34433
34434 2001-10-10  Richard Kenner  <kenner@gnat.com>
34435
34436         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
34437
34438 2001-10-10  Geert Bosch  <bosch@gnat.com>
34439
34440         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
34441         use '/' as switch character, allowing for absolute file names.
34442
34443 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
34444
34445         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
34446         FSF address.
34447
34448 2001-10-08  Geert Bosch  <bosch@gnat.com>
34449
34450         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
34451         Automatically build utilities when files need to be regenerated.
34452
34453 2001-10-08  Geert Bosch  <bosch@gnat.com>
34454
34455         * xsnames.adb: New utility for updating snames.ads and snames.adb
34456
34457 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
34458
34459         * Make-lang.in (ADAFLAGS): Add -W -Wall.
34460         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
34461         (gnat1): Also depend on attribs.o.
34462         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
34463         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
34464         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
34465         (ADAFLAGS): Add -W -Wall.
34466         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
34467         take out CFLAGS.
34468
34469         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
34470         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
34471         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
34472         Use $(ADAC), not $(CC), as compilation command.
34473
34474         (gnattools): Depend directly on tools to build, don't use
34475         recursive make.
34476         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
34477
34478         * einfo.h, sinfo.h: New files (autogenerated).
34479
34480 2001-10-08  Richard Henderson  <rth@redhat.com>
34481
34482         * comperr.adb (Abort_In_Progress): New.
34483         (Compiler_Abort): Use it to prevent recursion.
34484
34485 2001-10-08  Robert Dewar <dewar@gnat.com>
34486
34487         * atree.adb: Set Error_Posted in Error node, helps error recovery.
34488
34489         * par-endh.adb (Output_End_Expected): We should also not test
34490         Error_Posted on the Error node, since now it is always set.
34491
34492         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
34493         to help error recovery. Part of general work on 9407-004.
34494
34495         * par.adb: Add ??? for misuse of error
34496
34497         * sem_res.adb:
34498         (Resolve): Defend against Error, fixes 9407-003.
34499         (Resolve_Discrete_Subtype_Indication): Defend against Error.
34500
34501         * sinfo.ads (N_Error): Now has Etype field (which will be set
34502         to Any_Type to help error recovery).
34503
34504 2001-10-08  Richard Kenner (kenner@gnat.com)
34505
34506         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
34507         Consistently set MEM attributes from expression; fixes
34508         bootstrap failure on x86.
34509
34510 2001-10-08  Geert Bosch  (bosch@gnat.com)
34511
34512         * 5oosinte.adb: Add 2001 to copyright notice.
34513
34514 2001-10-08  Geert Bosch  (bosch@gnat.com)
34515
34516         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
34517
34518         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
34519
34520 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
34521
34522         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
34523
34524 2001-10-05  Geert Bosch  (bosch@gnat.com)
34525
34526         * adaint.h: Small formatting fix.
34527
34528 2001-10-04  Geert Bosch  <bosch@gnat.com>
34529
34530         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
34531         Arg is int, not FILE *, in dummy version of functions.
34532
34533         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
34534         Arg is int, not FILE *.
34535
34536 2001-10-04  Geert Bosch  <bosch@gnat.com>
34537
34538         * 3lsoccon.ads: Added file, missed with initial check ins.
34539
34540         * 4lintnam.ads: Fix header format.
34541         Change Linux to GNU/Linux.
34542
34543         * 5iosinte.adb: Change Linux to GNU/Linux.
34544
34545         * 5iosinte.ads: Change Linux to GNU/Linux.
34546
34547         * 5itaprop.adb: Change Linux to GNU/Linux.
34548
34549         * 5itaspri.ads: Change Linux to GNU/Linux.
34550         Update copyright notice.
34551
34552         * 5lintman.adb: Change Linux to GNU/Linux.
34553
34554         * 5lml-tgt.adb: Change Linux to GNU/Linux.
34555
34556         * 5losinte.ads: Change Linux to GNU/Linux.
34557
34558         * 5lsystem.ads: Change Linux to GNU/Linux.
34559
34560         * 5qosinte.adb: Change Linux to GNU/Linux.
34561
34562         * 5qosinte.ads: Change Linux to GNU/Linux.
34563
34564         * 5qparame.ads: Change Linux to GNU/Linux.
34565
34566         * 5qtaprop.adb: Change Linux to GNU/Linux.
34567
34568         * 5qtaspri.ads: Change Linux to GNU/Linux.
34569         Add 2001 to copyright notice.
34570
34571         * 5vintman.ads: Change Linux to GNU/Linux.
34572         Fix header format.  Add 2001 to copyright notice.
34573
34574         * g-soccon.ads: Change Linux to GNU/Linux.
34575
34576         * g-trasym.ads: Change Linux to GNU/Linux.
34577         Add 2001 to copyright notice.
34578
34579         * memtrack.adb: Change Linux to GNU/Linux.
34580
34581         * s-intman.ads: Change Linux to GNU/Linux.
34582         Add 2001 to copyright notice.  Fix header format.
34583
34584         * s-stache.adb: Change Linux to GNU/Linux.
34585
34586         * adaint.c: Change Linux to GNU/Linux.
34587
34588         * cio.c: Change Linux to GNU/Linux.
34589
34590         * cstreams.c: Change Linux to GNU/Linux.
34591
34592         * init.c: Change Linux to GNU/Linux.
34593
34594         * gmem.c: Change Linux to GNU/Linux.
34595
34596         * tracebak.c: Change Linux to GNU/Linux.
34597
34598
34599 2001-10-02  Geert Bosch  <bosch@gnat.com>
34600
34601         * misc.c (insert_default_attributes): Add dummy version.