OSDN Git Service

Resync.
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2
3         * s-tasuti.ads: Use Task_Address instead of System.Address.
4
5         * makeutl.adb (Path_Or_File_Name): New function
6
7         * nlists.ads, itypes.ads: Update comments.
8
9         * s-crtl.ads (malloc32, realloc32): New functions.
10
11         * s-auxdec.ads (Short_Address_Size): New constant.
12
13         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
14
15         * s-ststop.ads, s-ststop.adb: New file.
16
17         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
18         Minor reformatting.
19
20 2008-04-08  Pascal Obry  <obry@adacore.com>
21
22         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
23         (Stop_Bits_Number): New type.
24         (Parity_Check): Likewise.
25         (Set): Add parameter to set the number of stop bits and
26         the parity. Parameter timeout is now a duration instead
27         of a plain integer.
28
29         * g-sercom-linux.adb:
30         Implement the stop bits and parity support for GNU/Linux.
31         Fix handling of timeout, it must be given in tenth of seconds.
32         
33         * g-sercom-mingw.adb:
34         Implement the stop bits and parity support for Windows.
35         Use new s-win32.ads unit instead of declaring Win32 services
36         directly into this body.
37         Update handling of timeout as now a duration.
38
39         * s-win32.ads, s-winext.ads: New files.
40
41 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
42             Arnaud Charlet  <charlet@adacore.com>
43
44         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
45
46         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
47         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
48
49         * s-osinte-lynxos-3.ads,
50         (Alternate_Stack): Remove when not needed. Simplify declaration
51         otherwise.
52         (Alternate_Stack_Size): New constant.
53
54         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
55         'Unrestricted_Access.
56
57         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
58         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
59         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
60         s-osinte-solaris.ads, s-osinte-vms.ads
61         (SA_ONSTACK): New constant.
62         (stack_t): New record type.
63         (sigaltstack): New imported function.
64         (Alternate_Stack): New imported variable.
65         (Alternate_Stack_Size): New constant.
66
67         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
68
69         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
70         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
71         s-taspri-vms.ads (Task_Address): New subtype of System.Address
72         (Task_Address_Size): New constant size of System.Address
73         (Alternate_Stack_Size): New constant.
74
75         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
76         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
77         Establish the alternate stack if the platform makes use of n alternate
78         signal stack for stack overflows.
79         (Create_Task): Take into account the alternate stack in the stack size.
80         (Initialize): Save the address of the alternate stack into the ATCB for
81         the environment task.
82         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
83
84         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
85
86         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
87
88         * s-intman-posix.adb: 
89         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
90         alternate signal stack for stack overflows.
91
92         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
93         x86-64, adjust the saved value of the stack pointer if the signal was
94         raised by a stack checking probe.
95         (HP-UX section): Use global __gnat_alternate_stack as signal handler
96         stack and only for SIGSEGV.
97         (Linux section): Likewise on x86 and x86-64.
98         [VxWorks section]
99         (__gnat_map_signal): Now static.
100         (__gnat_error_handler): Not static any more.
101         (__gnat_adjust_context_for_raise): New function. Signal context
102         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
103         propagation circuitry.
104         (__gnat_error_handler): Second argument of a sigaction handler is a
105         pointer, not an int, and is unused.
106         Adjust signal context before mapping to exception.
107         Install signal handlers for LynxOS case.
108
109         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
110         (Task_Id): Set size to Task_Address_Size
111         (To_Task_id): Unchecked convert from Task_Address vice System.Address
112         (To_Address): Unchecked convert to Task_Address vice System.Address
113
114         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
115         address into the ATCB if the platform makes use of an alternate signal
116         stack for stack overflows.
117         (Free_Task): Add call to Finalize_Attributes_Link.
118         Add argument Relative_Deadline to pass the value specified for
119         the task. This is not yet used for any target.
120
121         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
122         the value specified for the task.
123
124 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
125
126         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
127         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
128         s-vxwext-rtp.adb): New files.
129
130         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
131         Minor updates to accomodate changes above.
132
133 2008-04-08  Pascal Obry  <obry@adacore.com>
134
135         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
136         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
137         Use new s-win32.ads unit instead of declaration
138         from s-osinte-mingw.ads.
139         
140         * s-osinte-mingw.ads:
141         Move all non tasking based interface to s-win32.ads.
142         
143         * s-osprim-mingw.adb:
144         Remove duplicated declarations and use s-win32.ads
145         unit instead.
146
147 2008-04-08  Vincent Celier  <celier@adacore.com>
148             Arnaud Charlet  <charlet@adacore.com>
149
150         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
151         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
152         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
153         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
154         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
155
156         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
157         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
158         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
159         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
160         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
161         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
162         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
163         mlib-tgt-specific-mingw.adb: New names.
164
165         * Makefile.in: 
166         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
167         Get rid of gnatbl.
168         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
169         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
170         Minor updates for VMS
171
172         * gnatbl.c: Removed.
173
174 2008-04-08  Thomas Quinot  <quinot@adacore.com>
175
176         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
177         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
178         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
179         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
180         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
181         ASCII.NUL throughout.
182
183 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
184             Matthew Heaney  <heaney@adacore.com>
185
186         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
187         renaming.
188
189         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
190         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
191         to convention for non-RM specs.
192         Add descriptive header, and documented each operation
193         document each operation
194
195 2008-04-08  Robert Dewar  <dewar@adacore.com>
196             Bob Duff  <duff@adacore.com>
197             Gary Dismukes  <dismukes@adacore.com>
198             Ed Schonberg  <schonberg@adacore.com>
199
200         * alloc.ads: Add entries for Obsolescent_Warnings table
201
202         * einfo.ads, einfo.adb: Minor reformatting.
203         (Is_Discriminal): New subprogram.
204         (Is_Prival): New subprogram.
205         (Is_Protected_Component): New subprogram.
206         (Is_Protected_Private): Removed.
207         (Object_Ref, Set_Object_Ref): Removed.
208         (Prival, Set_Prival): Change assertion.
209         (Privals_Chain, Set_Privals_Chain): Removed.
210         (Prival_Link, Set_Prival_Link): New subprogram.
211         (Protected_Operation, Set_Protected_Operation): Removed.
212         (Protection_Object, Set_Protection_Object): New subprogram.
213         (Write_Field17_Name): Remove case for Object_Ref.
214         (Write_Field20_Name): Add case for Prival_Link.
215         (Write_Field22_Name): Remove case for Protected_Operation,
216         Privals_Chain.
217         Add case for Protection_Object.
218         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
219         so clients
220         (Overlays_Constant): New flag
221         (Is_Constant_Object): New predicate
222         (Is_Standard_Character_Type): New predicate
223         (Optimize_Alignment_Space): New flag
224         (Optimize_Alignment_Time): New flag
225         (Has_Postconditions): New flag
226         (Obsolescent_Warrning): Field removed
227         (Spec_PPC_List): New field
228         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
229         subprograms to get and set the relative deadline associated to a task.
230
231         * exp_attr.adb (May_Be_External_Call): Account for the case where the
232         Access attribute is part of a named parameter association.
233         (Expand_Access_To_Protected_Op): Test for the attribute occurring
234         within an init proc and use that directly as the scope rather than
235         traversing up to the protected operation's enclosing scope. Only apply
236         assertion on Is_Open_Scopes in the case the scope traversal is done.
237         For the init proc case use the address of the first formal (_init) as
238         the protected object reference.
239         Implement Invalid_Value attribute
240         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
241         contents of the dispatch table there is no need to duplicate the
242         itypes associated with record types (i.e. the implicit full view
243         of private types).
244         Implement Enum_Val attribute
245         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
246         within _Postconditions procedure
247         (Expand_N_Attribute_Reference, case Result): Implement new attribute
248
249         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
250         a return statement calls a function that is not available in
251         configurable runtime.
252         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
253         (Expand_Non_Function_Return): Generate call to _Postconditions proc
254         (Expand_Simple_Function_Return): Ditto
255
256         * frontend.adb: Add call to Sem_Aux.Initialize
257
258         * sem_aux.ads, sem_aux.adb: New file.
259
260         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
261         Add new Pragma_Relative_Deadline.
262         Add support for pragmas Check and Check_Policy
263
264         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
265         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
266         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
267         missing check because they are not allowed in CPP tagged types.
268         Add Sure parameter to Note_Possible_Modification calls
269         Add implementation of Invalid_Value attribute
270         Implement new attribute Has_Tagged_Values
271         Implement Enum_Val attribute
272         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
273         generated attributes.
274         (Analyze_Attribute, case Result): If prefix of the attribute is
275         overloaded, it always resolves to the enclosing function.
276         (Analyze_Attribute, case Result): Properly deal with analysis when
277         Postconditions are not active.
278         (Resolve_Attribute, case Result): Properly deal with appearence during
279         preanalysis in spec.
280         Add processing for attribute Result
281
282         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
283         for operators.
284         (Analyze_Subprogram_Body): Install private_with_clauses when the body
285         acts as a spec.
286         (Check_Inline_Pragma): recognize an inline pragma that appears within
287         the subprogram body to which it applies.
288         (Analyze_Function_Return): Check that type of the expression of a return
289         statement in a function with a class-wide result is not declared at a
290         deeper level than the function.
291         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
292         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
293         user- defined operators.
294         (Install_Formals): Moved to spec to allow use from Sem_Prag for
295         analysis of precondition/postcondition pragmas.
296         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
297         Last_Formal, along with lots of comments on what this is about
298         (Analyze_Subprogram_Body): Fix case where we move entities from the
299         spec to the body when there are no body entities (now possible with
300         precondition and postcondition pragmas).
301         (Process_PPCs): New procedure
302         (Analyze_Subprogram_Body): Add call to Process_PPCs
303
304         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
305         clause.
306         (Pop_Scope): Restore Check_Policy_List on scope exit
307         (Push_Scope): Save Check_Policy_List on scope entry
308         Change name In_Default_Expression      => In_Spec_Expression
309         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
310         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
311         (Analyze_Object_Renaming): Allow 'Reference as object
312         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
313         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
314         of restriction identifier.
315         Add Sure parameter to Note_Possible_Modication calls
316
317         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
318         Don't check for primitive operations when calling Rep_Item_Too_Late.
319         (Process_Import_Or_Interface): Do not place flag on formal
320         subprograms.
321         (Analyze_Pragma, case Export): If the entity is a deferred constant,
322         propagate information to full view, which is the one elaborated by the
323         back-end.
324         (Make_Inline): the pragma is effective if it applies to an internally
325         generated subprogram declaration for a body that carries the pragma.
326         (Analyze_Pragma, case Optimize_Alignment): Set new flag
327         Optimize_Alignment_Local.
328         (Analyze_PPC_In_Decl_Part): New procedure
329         (Get_Pragma_Arg): Moved to outer level
330         (Check_Precondition_Postcondition): Change to allow new visibility
331         rules for package spec
332         (Analyze_Pragma, case Check_Policy): Change placement rules to be
333         same as pragma Suppress/Unsuppress.
334         Change name In_Default_Expression      => In_Spec_Expression
335         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
336         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
337         (Check_Precondition_Postcondition): Do proper visibility preanalysis
338         for the case of these pragmas appearing in the spec.
339         (Check_Enabled): New function
340         (Initialize): New procedure
341         (Tree_Read): New procedure
342         (Tree_Write): New procedure
343         (Check_Precondition_Postcondition): New procedure
344         Implement pragmas Check and Check_Policy
345         Merge Assert processing with Check
346
347         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
348         New warning flag -gnatw.e
349
350         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
351         returning whether a task (or main procedure) has a pragma
352         Relative_Deadline.
353         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
354         (or main procedure) has a pragma Relative_Deadline.
355         Add Next_Pragma field to N_Pragma node
356         (PPC_Enabled): New flag
357         (Next_Pragma): Now used for Pre/Postcondition processing
358
359         * snames.h, snames.ads, snames.adb: New standard name
360         Inherit_Source_Path
361         Add entry for 'Invalid_Value attribute
362         Add entry for new attribute Has_Tagged_Values
363         Add entry for Enum_Val attribute
364         Add new standard names Aggregate, Configuration and Library.
365         Add _Postconditions
366         Add _Result
367         Add Pragma_Precondition
368         Add Pragma_Postcondition
369         Add Attribute_Result
370         New standard name Archive_Builder_Append_Option
371         (Preset_Names): Add _relative_deadline and relative_deadline definitions
372         There was also a missing non_preemptive_within_priorities.
373         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
374         Relative_Deadline.
375         Add support for pragmas Check and Check_Policy
376
377         * tree_gen.adb: Call Sem_Aux.Tree_Write
378
379         * tree_in.adb: Call Sem_Aux.Tree_Read
380
381         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
382         sequence
383
384         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
385         sequence
386
387         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
388         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
389         Relative_Deadline.
390         (Expand_Pragma_Check): New procedure
391
392         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
393         buffer.
394
395         * sinfo.adb (PPC_Enabled): New flag
396
397 2008-04-08  Robert Dewar  <dewar@adacore.com>
398             Gary Dismukes  <dismukes@adacore.com>
399             Javier Miranda  <miranda@adacore.com>
400             Ed Schonberg  <schonberg@adacore.com>
401
402         * fe.h: Remove global Optimize_Alignment flag, no longer used
403
404         * layout.adb: Test Optimize_Alignment flags rather than global switch
405
406         * lib.ads, lib.adb: New OA_Setting field in library record
407
408         * lib-load.adb: New OA_Setting field in library record
409
410         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
411         units mentioned in limited_with_ clauses in the ali file, with an
412         'Y' marker.
413         New Ox fields in U line
414
415         * opt.adb: New flag Optimize_Alignment_Local
416         (Check_Policy_List[_Config]): New flags
417
418         * opt.ads (Invalid_Value_Used): New flag
419         New switch Optimize_Alignment_Local
420         (Warn_On_Parameter_Order): New flag
421         (Check_Policy_List[_Config]): New flags
422
423         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
424         limited_with clauses.
425         New data structures for Optimize_Alignment
426
427         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
428         New procedure
429         (Check_Consistent_Optimize_Alignment): Rework for new structure
430         (Check_Consistent_Restrictions): Fix incorrect error message
431
432         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
433         created class-wide type (to the Parent field of the specific type).
434         (Install_Siblings): Handle properly private_with_clauses on subprogram
435         bodies and on generic units.
436         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
437         illegal limited_with_clause that names a non-existent package.
438         (Check_Body_Required): Determine whether a unit named a limited_with
439         clause needs a body.
440         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
441         Capture Optimize_Alignment settings to set new OA_Setting field in
442         library record.
443         (Build_Limited_Views): Include task and protected type declarations.
444
445         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
446         case of a possible constant redeclaration where the current object is
447         an entry index constant.
448         (Analyze_Object_Declaration): Generate an error in case of CPP
449         class-wide object initialization.
450         (Analyze_Object_Declaration): Add extra information on warnings for
451         declaration of unconstrained objects.
452         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
453         conflicts with the setting of Stored_Constraint in the case where the
454         access type entity has already been created as an E_Incomplete_Type due
455         to a limited with clause.
456         Use new Is_Standard_Character_Type predicate
457         (Analyze_Object_Declaration): Apply access_constant check only after
458         expression has been resolved, given that it may be overloaded with
459         several access types.
460         (Constant_Redeclaration): Additional legality checks for deferred
461         constant declarations tha involve anonymous access types and/or null
462         exclusion indicators.
463         (Analyze_Type_Declaration): Set Optimize_Alignment flags
464         (Analyze_Subtype_Declaration): Ditto
465         (Analyze_Object_Declaration): Ditto
466         (Analyze_Object_Declaration): Don't count tasks in generics
467         Change name In_Default_Expression      => In_Spec_Expression
468         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
469         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
470         (Process_Discriminants): Additional check for illegal use of default
471         expressions in access discriminant specifications in a type that is not
472         explicitly limited.
473         (Check_Abstract_Overriding): If an inherited function dispaches on an
474         access result, it must be overridden, even if the type is a null
475         extension.
476         (Derive_Subprogram): The formals of the derived subprogram have the
477         names and defaults of the parent subprogram, even if the type is
478         obtained from the actual subprogram.
479         (Derive_Subprogram): In the presence of interfaces, a formal of an
480         inherited operation has the derived type not only if it descends from
481         the type of the formal of the parent operation, but also if it
482         implements it. This is relevant for the renamings created for the
483         primitive operations of the actual for a formal derived type.
484         (Is_Progenitor): New predicate, to determine whether the type of a
485         formal in the parent operation must be replaced by the derived type.
486
487         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
488         predicate recursive to handle components that have a user-defined
489         Initialize procedure. Handle controlled derived types whose ancestor
490         has a user-defined Initialize procedured.
491         (Note_Possible_Modification): Add Sure parameter, generate warning if
492         sure modification of constant
493         Use new Is_Standard_Character_Type predicate
494         (Find_Parameter_Type): when determining whether a protected operation
495         implements an interface operation, retrieve the type of the formal from
496         the entity when the formal is an access parameter or an
497         anonymous-access-to-subprogram.
498         Move Copy_Parameter_List to sem_util, for use when building stubbed
499         subprogram bodies.
500         (Has_Access_Values): Tagged types now return False
501         (Within_HSS_Or_If): New procedure
502         (Set_Optimize_Alignment_Flags): New procedure
503         Change name In_Default_Expression      => In_Spec_Expression
504         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
505         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
506
507 2008-04-08  Tristan Gingold  <gingold@adacore.com>
508
509         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
510
511 2008-04-08  Tristan Gingold  <gingold@adacore.com>
512
513 PR ada/10768
514
515         * cuintp.c: Fix 16 bits issue for AVR.
516         On AVR, integer is 16 bits, so it can't be used to do math with
517         Base (=32768).
518         So use long_integer instead.
519
520 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
521
522         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
523         System.OS_Primitives.
524         Change type of various constants, parameters and local variables from
525         Time to representation type OS_Time.
526         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
527         Remove the declaration of constant Mili_F from several routines. New
528         body for internal package Conversions_Operations.
529         (Time_Of): Add default parameters for several formals.
530
531         * a-caldel.adb: Minor reformatting
532
533         * a-calend.ads, a-calend.adb: New body for internal package
534         Conversions_Operations.
535         (Time_Of): Add default parameters for several formals.
536
537         * Makefile.rtl: Add a-ststop
538         Add Ada.Calendar.Conversions to the list of runtime files.
539         Add g-timsta
540
541         * a-calcon.adb, a-calcon.ads: New files.
542
543 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
544             Tristan Gingold  <gingold@adacore.com>
545
546         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
547         (Install_Restricted_Handlers): New procedure
548         which is a simplified version of Install_Handlers that does not store
549         previously installed.
550
551         * s-interr-vxworks.adb: Fix ACATS cxc3001
552         On VxWorks interrupts can't be detached.
553         (Install_Restricted_Handlers): New procedure.
554
555         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
556         procedure.
557
558 2008-04-08  Olivier Hainque  <hainque@adacore.com>
559
560         * s-intman-vxworks.ads, s-intman-vxworks.adb
561         (Map_And_Raise_Exception): Remove. Was an import of only part of the
562         required services already implemented elsewhere.
563         (Notify_Exception): Delete body, import __gnat_error_handler instead.
564         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
565         argument passed to the handler, which we need for ZCX propagation
566         purposes.
567
568 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
569
570         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
571
572         * g-timsta.adb, g-timsta.ads: New files.
573
574 2008-04-08  Robert Dewar  <dewar@adacore.com>
575
576         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
577         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
578         (Raise_Exception_Always): Fix documentation accordingly
579
580 2008-04-08  Robert Dewar  <dewar@adacore.com>
581
582         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
583         Stream_Convert)
584
585         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
586         FOnly
587
588 2008-04-08  Javier Miranda  <miranda@adacore.com>
589             Robert Dewar  <dewar@adacore.com>
590             Ed Schonberg  <schonberg@adacore.com>
591
592         * a-tags.adb (Register_Interface_Offset): New subprogram.
593         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
594         (To_Predef_Prims_Table_Ptr): Removed.
595         (Acc_Size): Removed.
596         (To_Acc_Size): Removed.
597         (Parent_Size): Modified to the call the subprogram returning the size of
598         the parent by means of the new TSD component Size_Func.
599
600         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
601         (DT_Offset_To_Top_Offset): New constant value that is used to generate
602         code referencing the Offset_To_Top component of the dispatch table's
603         prologue.
604         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
605         use of 'address to initialize dispatch table slots.
606         (Size_Func): New component of the TSD. Used by the run-time to call the
607         size primitive of the tagged type.
608
609         * checks.adb (Apply_Access_Check): Avoid check when accessing the
610         Offset_To_Top component of a dispatch table.
611         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
612         deferred constant declaration. do not add a null expression, to prevent
613         spurious errors when full declaration is analyzed.
614         (Apply_Discriminant_Check): If both discriminant constraints share a
615         node which is not static but has no side effects, do not generate a
616         check for that discriminant.
617         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
618         subexpr, since the prefix of an attribute is a name.
619
620         * checks.ads: Fix nit in comment.
621
622         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
623         and body of predefined primitives in case of CPP tagged type
624         derivations.
625         (Freeze_Type): Deal properly with no storage pool case
626         (Make_Predefined_Primitive_Specs): Generate specification of abstract
627         primitive Deep_Adjust if a nonlimited interface is derived from a
628         limited interface.
629         (Build_Dcheck_Functions): Create discriminant-checking functions only
630         for variants that have some component(s).
631         (Build_Slice_Assignment): In expanded code for slice assignment, handle
632         properly the case where the slice bounds extend to the last value of the
633         underlying representation.
634         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
635         (Is_Variable_Size_Record): An array component has a static size if
636         index bounds are enumeration literals.
637
638         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
639         an external tag has been specified for the type.
640         (Building_Static_DT): Add missing support for private types.
641         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
642         to the entity associated with the parent of Typ. This is done to
643         avoid wrong access when the parent is a private type.
644         (Expand_Interface_Conversion): Improve error message when the
645         configurable runtime has no support for dynamic interface conversion.
646         (Expand_Interface_Thunk): Add missing support to interface types in
647         configurable runtime.
648         (Expand_Dispatching_Call): remove obsolete code.
649         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
650         ensure that all subtypes and aggregates associated with dispatch
651         tables have the attribute Is_Dispatch_Table_Entity set to true.
652         (Register_Primitive): Rename one variable to improve code reading.
653         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
654         of the pointer to the 'size primitive in the TSD.
655
656         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
657         (RE_Offset_To_Top_Ptr): New entity.
658         (RE_Register_Interface_Offset): New entity.
659         (RE_Set_Dynamic_Offset_To_Top): New entity.
660         (RE_Set_Offset_To_Top): Removed entity.
661         (RE_Prim_Ptr): New entity
662         (RE_Size_Func): New entity
663         (RE_Size_Ptr): New entity
664         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
665         (Ada_Dispatching_Child): Define this new subrange.
666         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
667          RE_Time_Span, and RE_Time_Span_Zero).
668         (RE_Unit_Table): Add new required run-time calls
669
670         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
671         children.
672
673         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
674         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
675          initializes the Offset_To_Top component of a dispatch table.
676         (Build_Predef_Prims): Removed.
677         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
678          its actual code.
679         (Build_Set_Size_Function): New subprogram.
680
681         * exp_ch13.adb: Do not generate storage variable for storage_size zero
682         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
683
684 2008-04-08  Robert Dewar  <dewar@adacore.com>
685
686         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
687         computing Fore when Exp > 0
688
689 2008-04-08  Robert Dewar  <dewar@adacore.com>
690
691         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
692
693         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
694         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
695
696         * fmap.adb: Remove Big_String declarations (now in Types)
697         (No_Mapping_File): New Boolean global variable
698         (Initialize): When mapping file cannot be read, set No_Mapping_File to
699         False.
700         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
701         tables were empty before adding entries, open the mapping file
702         with Truncate = True, instead of delete/re-create.
703
704         * fname-sf.adb: Remove Big_String declarations (now in Types)
705
706         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
707         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
708         big pointer types
709
710         * table.ads: Add for Table_Ptr'Storage_Size use 0
711
712         * types.ads: Add Big_String declarations
713         Add Size_Clause of zero for big pointer types
714
715 2008-04-08  Vincent Celier  <celier@adacore.com>
716
717         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
718         (Usage): Add line for switch --subdirs=
719         Add new switch -eL, to follow symbolic links when processing project
720         files.
721
722         * gnatcmd.adb: Process switches -eL and --subdirs=
723         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
724         Program_Name to get proper tool names when AAMP_On_Target is set.
725         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
726         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
727         Osint.Program_Name).
728
729         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
730         (Usage): Add lines for switches -eL and --subdirs=
731
732         * makeusg.adb: Add line for switch --subdirs=
733
734         * prj.ads: 
735         (Source_Data): New Boolean component Compiled, defaulted to True
736         (Empty_File_Name: New global variable in private part, initialized in
737         procedure Initialize.
738         (Subdirs_Option): New constant string
739         (Subdirs): New String_Ptr global variable
740         (Language_Config): New component Include_Compatible_Languages
741         (Project_Qualifier): New type for project qualifiers
742         (Project_Data): New component Qualifier
743         (Project_Configuration): New component Archive_Builder_Append_Option
744
745         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
746         another imported project indicate the name of this imported project.
747         (Check_File): When a unit is in two project files, indicate the project
748         names and the paths of the source files for each project.
749         (Add_Source): Set Compiled to False if compiler driver is empty. Only
750         set object, dependency and switches file names if Compiled is True.
751         (Process_Compiler): Allow the empty string for value of attribute Driver
752         (Get_Directories): When Subdirs is not null and Object_Dir is not
753          specified, locate and create if necessary the actual object dir.
754         (Locate_Directory): When Subdirs is not empty and Create is not the
755         empty string, locate and create if necessary the actual directory
756         as a subdirectory of directory Name.
757         (Check_Library_Attributes.Check_Library): Allow a project where the only
758         "sources" are header files of file based languages to be imported by
759         library projects, in multi-language mode (gprbuild).
760         (Check_Library_Attributes.Check_Library): In multi-language mode
761         (gprbuild), allow a library project to import a project with no
762         sources, even when this is not declared explicitly.
763         (Check_If_Externally_Built): A virtual project extending an externally
764         built project is also externally built.
765         (Check_Library_Attributes): For a virtual project extending a library
766         project, inherit the library directory.
767         (Process_Project_Level_Array_Attributes): Process new attribute
768         Inherit_Source_Path.
769         For projects with specified qualifiers "standard", "library" or
770         "abstract", check that the project conforms to the qualifier.
771         (Process_Project_Level_Simple_Attributes): Process new attribute
772          Archive_Builder_Append_Option.
773
774         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
775         (Normalize_Compiler_Switches): Only keep compiler switches that are
776         passed to gnat1 by the gcc driver and that are stored in the ALI file
777         by gnat1.
778         Do not take into account switc -save-temps
779
780         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
781         gprmake is called with -eL.
782         (Scan_Arg): Recognize switch -eL
783         (Usage): Add line for switch -eL
784
785         * prj.adb (Initialize): Initialize Empty_File_Name
786         (Project_Empty): New component Qualifier
787
788         * prj-attr.ads, prj-attr.adb: New project level attribute
789         Inherit_Source_Path.
790         New project level attribute Archive_Builder_Append_Option
791
792         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
793
794         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
795         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
796         upward compatibility.
797
798         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
799         each Trying ..." on different lines.
800         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
801         is "configuration" when not in configuration. Fail when in configuration
802         when a specified qualifier is other than "configuration".
803
804         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
805         full associative array together.
806         (Recursive_Process): Put the project qualifier in the project data
807         
808         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
809         (Set_Project_Qualifier_Of): New procedure
810
811 2008-04-08  Robert Dewar  <dewar@adacore.com>
812
813         * errout.ads: Update comments for new handling of info: messages
814
815         * erroutc.adb (Matches): New procedure
816         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
817         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
818          info messages as well as style messages.
819
820         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
821
822         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
823         subprograms.
824         (Check_A_Call): Special "info: " warnings now have ? in the text
825         (Elab_Warning): Use info message in static case
826
827 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
828
829         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
830         whether an array aggregate with static bounds and scalar components
831         should be expanded into a static constant.
832
833 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
834             Ed Schonberg  <schonberg@adacore.com>
835             Robert Dewar  <dewar@adacore.com>
836
837         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
838         Has_Stream_Attribute_ Definition when checking for available stream
839         attributes on parameters of a limited type in Ada 2005. Necessary for
840         proper recognition of visible stream attribute clauses.
841         (Has_Stream_Attribute_Definition): If the type is derived from a
842         private type, then use the derived type's underlying type for checking
843         whether it has stream attributes.
844         (Validate_Object_Declaration): The check for a user-defined Initialize
845         procedure applies also to types with controlled components or a
846         controlled ancestor.
847         Reject an object declaration in a preelaborated unit if the type is a
848         controlled type with an overriding Initialize procedure.
849         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
850         checking when the parent of a dereference is a selected component and
851         the name has not been analyzed.
852
853         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
854         prefixes that are invalid explicit dereferences of remote
855         access-to-class-wide values, first checking whether the selected
856         component is a prefixed form of call to a tagged operation.
857         (Analyze_Call): Remove code that issues an error for limited function
858         calls in illegal contexts, as we now support all of the contexts that
859         were forbidden here.
860         Allow a function call that returns a task.and appears as the
861         prefix of a selected component.
862         (Analyze_Reference): Give error message if we try to make a 'Reference
863         for an object that is atomic/aliased without its type having the
864         corresponding attribute.
865         (Analyze_Call): Remove condition checking for attributes to allow
866         calls to functions with inherently limited results as prefixes of
867         attributes. Remove related comment about Class attributes.
868         (Analyze_Selected_Component): If the prefix is a remote type, check
869         whether this is a prefixed call before reporting an error.
870         (Complete_Object_Operation): If the controlling formal is an access to
871         variable reject an actual that is a constant or an access to one.
872         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
873         primitive operations from base type.
874
875         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
876         build-in-place
877         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
878         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
879         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
880         (Expand_N_Slice): Test for prefix that is a build-in-place function call
881         and call Make_Build_In_Place_Call_In_Anonymous_Context.
882         (Analyze_Call): Remove code that issues an error for limited function
883         calls in illegal contexts, as we now support all of the contexts that
884         were forbidden here.
885         New calling sequence for Get_Simple_Init_Val
886         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
887         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
888
889 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
890             Ed Schonberg  <schonberg@adacore.com>
891             Robert Dewar  <dewar@adacore.com>
892
893         * exp_ch2.adb: Minor reformatting.
894         (Expand_Entry_Index_Parameter): Set the type of the identifier.
895         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
896         (Expand_Protected_Component): New routine.
897         (Expand_Protected_Private): Removed.
898         Add Sure parameter to Note_Possible_Modification calls
899
900         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
901         generated subprogram declaration must inherit the overriding indicator
902         from the instantiation node.
903         (Validate_Access_Type_Instance): If the designated type of the actual is
904         a limited view, use the available view in all cases, not only if the
905         type is an incomplete type.
906         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
907         and the actual subtype does not exclude null.
908         (Process_Default): Handle properly abstract formal subprograms.
909         (Check_Formal_Package_Instance): Handle properly defaulted formal
910         subprograms in a partially parameterized formal package.
911         Add Sure parameter to Note_Possible_Modification calls
912         (Validate_Derived_Type_Instance): if the formal is non-limited, the
913         actual cannot be limited.
914         (Collect_Previous_Instances): Generate instance bodies for subprograms
915         as well.
916
917         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
918         try to set RM_Size.
919         Add Sure parameter to Note_Possible_Modification calls
920         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
921         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
922         constant overlaid by variable and issue warning.
923         Use new Is_Standard_Character_Type predicate
924         (Analyze_Record_Representation_Clause): Check that the specified
925         Last_Bit is not less than First_Bit - 1.
926         (Analyze_Attribute_Definition_Clause, case Address): Check for
927         self-referential address clause
928
929         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
930         detection mechanism when the lhs is a prival.
931         (Analyze_Assignment): Call Check_Unprotected_Access to detect
932         assignment of a pointer to protected data, to an object declared
933         outside of the protected object.
934         (Analyze_Loop_Statement): Check for unreachable code after loop
935         Add Sure parameter to Note_Possible_Modication calls
936         Protect analysis from previous syntax error such as a scope mismatch
937         or a missing begin.
938         (Analyze_Assignment_Statement): The assignment is illegal if the
939         left-hand is an interface.
940
941         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
942         violation of restriction No_Implicit_Conditionals
943         Add Sure parameter to Note_Possible_Modication calls
944         Use new Is_Standard_Character_Type predicate
945         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
946         call as operator. Fixes problems (e.g. validity checking) which
947         come from the result looking as though it does not come from source).
948         (Resolve_Call): Check case of name in named parameter if style checks
949         are enabled.
950         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
951         from the checking that such calls should not occur from an entry body.
952         (Resolve_Call): If the return type of an Inline_Always function
953         requires the secondary stack, create a transient scope for the call
954         if the body of the function is not available for inlining.
955         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
956         that are actuals for in-out formals.
957         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
958         primitive operations from base type.
959         (Analyze_Selected_Component): If the context is a call to a protected
960         operation the parent may be an indexed component prior to expansion.
961         (Resolve_Actuals): If an actual is of a protected subtype, use its
962         base type to determine whether a conversion to the corresponding record
963         is needed.
964         (Resolve_Short_Circuit): Handle pragma Check
965
966         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
967         Use new Is_Standard_Character_Type predicate
968         (Eval_Relational_Op): Catch more cases of string comparison
969
970 2008-04-08  Robert Dewar  <dewar@adacore.com>
971             Gary Dismukes  <dismukes@adacore.com>
972
973         * s-rident.ads: Add No_Default_Initialization restriction
974
975         * exp_tss.adb: 
976         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
977         (Set_TSS): Handle No_Default_Initialization case
978
979         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
980         No_Default_Initialization
981         (Expand_N_Subprogram_Body): Remove redundant initialization of out
982         parameters when Normalize_Scalars is active.
983         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
984         Fix casing error in formal parameter name in call
985         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
986         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
987         dispatching call on VM targets.
988
989 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
990             Thomas Quinot  <quinot@adacore.com>
991
992         * exp_ch7.adb (Find_Final_List): Change the test for generating a
993         selected component from an access type's Associated_Final_Chain to
994         check for the presence of that field, rather than assuming it exists
995         for all named access types.
996         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
997         procedure to call at the end of the generated cleanup procedure.
998         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
999         and an At_End_Proc already exists in the handled sequence of statements
1000         for which cleanup actions are being expanded, the original cleanup
1001         action must be preserved.
1002
1003 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1004             Ed Schonberg  <schonberg@adacore.com>
1005             Robert Dewar  <dewar@adacore.com>
1006             Gary Dismukes  <dismukes@adacore.com>
1007
1008         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
1009         Build_Unprotected_Subprogram_Body): Generate debug info for
1010         declarations related to the handling of private data in task and
1011         protected types.
1012         (Debug_Private_Data_Declarations): New subprogram.
1013         (Install_Private_Data_Declarations): Remove all debug info flagging.
1014         This is now done by Debug_Private_Data_Declarations at the correct
1015         stage of expansion.
1016         (Build_Simple_Entry_Call): If the task name is a function call, expand
1017         the prefix into an object declaration, and make the surrounding block a
1018         task master.
1019         (Build_Master_Entity): An internal block is a master if it wraps a call.
1020         Code reformatting, update comments. Code clean up.
1021         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
1022         (Replicate_Entry_Formals): If the formal is an access parameter or
1023         anonymous access to subprogram, copy the original tree to create new
1024         entities for the formals of the subprogram.
1025         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
1026         for tasks to store the value passed using pragma Relative_Deadline.
1027         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
1028         run-time call to create a task.
1029         (Build_Wrapper_Spec): If the controlling argument of the interface
1030         operation is an access parameter with a non-null indicator, use the
1031         non-null indicator on the wrapper.
1032
1033         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
1034         present, which it may not be in the case where the type entity is an
1035         incomplete view brought in by a limited with.
1036         (Analyze_Task_Type): Only retrieve the full view when present, which it
1037         may not be in the case where the type entity is an incomplete view brought
1038         in by a limited with.
1039         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
1040         private components of a protected type, to prevent the generation of freeze
1041         nodes for which there is no proper scope of elaboration.
1042
1043         * exp_util.ads, exp_util.adb
1044         (Remove_Side_Effects): If the expression is a function call that returns a
1045         task, expand into a declaration to invoke the build_in_place machinery.
1046         (Find_Protection_Object): New routine.
1047         (Remove_Side_Effects): Also make a copy of the value
1048         for attributes whose result is of an elementary type.
1049         (Silly_Boolean_Array_Not_Test): New procedure
1050         (Silly_Boolean_Array_Xor_Test): New procedure
1051         (Is_Volatile_Reference): New function
1052         (Remove_Side_Effects): Use Is_Volatile_Reference
1053         (Possible_Bit_Aligned_Component): Handle slice case properly
1054
1055         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
1056         case test to Exp_Util
1057         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
1058
1059 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1060
1061         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
1062         in call
1063         (Add_RACW_Features): When processing an RACW in another unit than the
1064         main unit, set Body_Decls to No_List to indicate that the bodies of
1065         the type's TSS must not be generated.
1066         (GARLIC_Support.Add_RACW_Read_Attribute,
1067         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
1068         Body_Decls is No_List.
1069         (PolyORB_Support.Add_RACW_Read_Attribute,
1070         PolyORB_Support.Add_RACW_Write_Attribute,
1071         PolyORB_Support.Add_RACW_From_Any,
1072         PolyORB_Support.Add_RACW_To_Any,
1073         PolyORB_Support.Add_RACW_TypeCode): Same.
1074         (Transmit_As_Unconstrained): New function.
1075         (Build_Ordered_Parameters_List): Use the above to order parameters.
1076         (GARLIC_Support.Build_General_Calling_Stubs):
1077         Use the above to determine which parameters to unmarshall using 'Input
1078         at the point where their temporary is declared (as opposed to later on
1079         with a 'Read call).
1080         (PolyORB_Support.Build_General_Calling_Stubs):
1081         Use the above to determine which parameters to unmarshall using From_Any
1082         at the point where their temporary is declared (as opposed to later on
1083         with an assignment).
1084
1085 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1086
1087         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
1088         an Input function for an access type, do not perform default
1089         initialization on the local variable that receives the value, to
1090         prevent spurious warnings when the type is null-excluding.
1091
1092 2008-04-08  Robert Dewar  <dewar@adacore.com>
1093             Ed Schonberg  <schonberg@adacore.com>
1094
1095         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
1096         units.
1097         (Size_Known): Generic formal scalar types have known at compile
1098         time size, so remove check.
1099         Fix casing error in formal parameter name in call
1100         (Freeze_Subprogram): If the subprogram is a user-defined operator,
1101         recheck its overriding indication.
1102
1103 2008-04-08  Vincent Celier  <celier@adacore.com>
1104
1105         * gnat1drv.adb: Send all messages indicating an error to standard error
1106
1107 2008-04-08  Robert Dewar  <dewar@adacore.com>
1108
1109         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
1110         (List_Applicable_Restrictions): Do not list existing restrictions
1111
1112 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1113
1114         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
1115         add a pointer to generic sockets literature
1116         do not mention that the given example is "typical" usage.
1117         Remove obsolete comment about multicast not being supported on Windows.
1118         (Connect_Socket): Make Server mode IN rather than IN OUT
1119         since this formal is never modified.
1120
1121 2008-04-08  Robert Dewar  <dewar@adacore.com>
1122
1123         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
1124         the declaration for some different entity.
1125         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
1126         list is precent (following the parent subtype indication), display
1127         appropriate "and" keyword.
1128
1129         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
1130         Remove unnecessary calls to Init_Size_Align and Init_Esize.
1131         Add notes on use of Parent field of an Itype
1132
1133 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1134             Robert Dewar  <dewar@adacore.com>
1135             Gary Dismukes  <dismukes@adacore.com>
1136
1137         * lib-xref.adb (Is_On_LHS): Remove dead code
1138         (Output_Overriden_Op): If the overridden operation is itself inherited,
1139         list the ancestor operation, which is the one whose body or absstract
1140         specification is actually being overridden. For source navigation
1141         purposes.
1142
1143         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
1144         operation is primitive for the type.
1145         (Declare_Inherited_Private_Subprograms): If the new operation overrides
1146         an inherited private subprogram, set properly the Overridden_Operation
1147         attribute, for better cross-reference information.
1148         (Analyze_Package_Specification): Do late analysis of spec PPCs
1149         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
1150         properly the full view and underlying full views of a private type in a
1151         child unit, whose full view is derived from a private type in a parent
1152         unit, and whose own full view becomes visible in the child body.
1153
1154         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
1155         primitive operation after the type has been frozen, add an explicit
1156         reference to the type and the operation, because other primitive
1157         references have been emitted already.
1158         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1159         dispatching call on VM targets.
1160
1161 2008-04-08  Vincent Celier  <celier@adacore.com>
1162             Thomas Quinot  <quinot@adacore.com>
1163
1164         * make.adb: (Gnatmake_Called): Remove, no longer necessary
1165         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
1166         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
1167         (Insert_Project_Sources): Take into account index in multi-unit source
1168         files.
1169         After building a library project, delete all temporary files.
1170         (Initialize): Reset current output after parsing project file.
1171         (Collect_Arguments_And_Compile): Never insert in the queue the sources
1172         of library projects that are externally built.
1173         Put file name in error and inform messages if -df is used
1174         (Display): If invoked with -d7, do not display path names, but only
1175         file names.
1176
1177         * makeutl.ads (Path_Or_File_Name): New function
1178         (Path_Or_File_Name): New function
1179
1180 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
1181
1182         * Make-lang.in: Disable warnings during first stage of bootstrap
1183         Get rid of gnatbl.
1184         Update dependencies.
1185
1186 2008-04-08  Vincent Celier  <celier@adacore.com>
1187
1188         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
1189         case to decide if ALI object file is included in library.
1190         (Build_Library): Never attempt to build a library if the project is
1191         externally built.
1192
1193 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1194
1195         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
1196         (No_List) is defined to return Empty.
1197
1198 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
1199
1200         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
1201         documentation.
1202         Update comments.
1203         (Read_Default_Search_Dirs): Do not consider spaces as path separators
1204         because spaces may be part of legal paths.
1205
1206 2008-04-08  Robert Dewar  <dewar@adacore.com>
1207
1208         * par-ch11.adb (P_Exception_Handler): Check indentation level for
1209         handler
1210
1211 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1212
1213         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
1214         in a type declaration, if this is not an interface declaration or
1215         private type extension.
1216
1217 2008-04-08  Vincent Celier  <celier@adacore.com>
1218
1219         * prj-util.adb (Executable_Of): New String parameter Language. When
1220         Ada_Main is False and Language is not empty, attempt to remove the body
1221         suffix or the spec suffix of the language to get the base of the
1222         executable file name.
1223         (Put): New Boolean parameter Lower_Case, defauilted to False. When
1224         Lower_Case is True, put the value in lower case in the name list.
1225         (Executable_Of): If there is no executable suffix in the configuration,
1226         then do not modify Executable_Extension_On_Target.
1227
1228         * prj-util.ads (Executable_Of): New String parameter Language,
1229         defaulted to the empty string.
1230         (Put): New Boolean parameter Lower_Case, defauilted to False
1231
1232 2008-04-08  Robert Dewar  <dewar@adacore.com>
1233
1234         * scng.adb (Scan_Identifier): Handle case of identifier starting with
1235         wide character using UTF-8 encoding.
1236
1237 2008-04-08  Javier Miranda  <miranda@adacore.com>
1238
1239         * sem.adb (Analyze): Consider case in which we analyze an empty node
1240         that was generated by a call to a runtime function that is not
1241         available under the configurable runtime.
1242
1243         * sem.ads (Inside_Freezing_Actions): New flag.
1244         (Save_Check_Policy_List): New field in scope stack entry
1245
1246 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1247             Robert Dewar  <dewar@adacore.com>
1248
1249         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
1250         the ancestor part of an extension aggregate for a limited type.
1251         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
1252         enumeration index bounds.
1253         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
1254         when array is too short.
1255         (Check_Expr_OK_In_Limited_Aggregate): Move function
1256         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
1257         change name).
1258         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
1259         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
1260         component associations.
1261         (Check_Non_Limited_Type): Moved to outer level and renamed.
1262         (Resolve_Record_Aggregate): In an extension aggregate, an association
1263         with a box initialization can only designate a component of the
1264         extension, not a component inherited from the given ancestor
1265
1266         * sem_case.adb: Use new Is_Standard_Character_Type predicate
1267
1268 2008-04-08  Robert Dewar  <dewar@adacore.com>
1269
1270         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
1271         negative scale
1272         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
1273         Properly handle case where Aft > Scale and input number is less than
1274         one.
1275
1276 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1277
1278         * s-stoele.ads, s-soflin.ads: Move the location of
1279         Dummy_Communication_Block from System.Storage_Elements to
1280         System.Soft_Links.
1281
1282         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
1283         emulate Communication_Block in certain scenarios.
1284
1285 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1286
1287         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
1288         subprogram.
1289         Add new subtype S_WWC, unchecked conversion routines From_WWC and
1290         To_WWC.
1291         (I_WWC, O_WWC): New routines for input and output of
1292         Wide_Wide_Character.
1293
1294 2008-04-08  Robert Dewar  <dewar@adacore.com>
1295
1296         * stringt.adb (Write_String_Table_Entry): Handle wide characters
1297         properly
1298
1299 2008-04-08  Robert Dewar  <dewar@adacore.com>
1300
1301         * styleg.adb (Check_Comment): Allow special char after -- in
1302         non-end-of-line case
1303
1304 2008-04-08  Robert Dewar  <dewar@adacore.com>
1305
1306         * stylesw.adb: Implement -gnaty + - y options
1307         (Set_GNAT_Style_Check_Options): Includ I in style check string
1308
1309         * stylesw.ads: Add comments for new style switch options
1310
1311 2008-04-08  Sergey Rybin  <rybin@adacore.com>
1312
1313         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
1314         to the set of the GNAT components needed by ASIS.
1315
1316 2008-04-08  Bob Duff  <duff@adacore.com>
1317
1318         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
1319
1320 2008-04-08  Tristan Gingold  <gingold@adacore.com>
1321
1322         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
1323         Improve error message generation.
1324
1325 2008-04-08  Vincent Celier  <celier@adacore.com>
1326
1327         * a-direct.adb (Start_Search): Check for Name_Error before checking for
1328         Use_Error, as specified in the RM. Check if directory is open and raise
1329         Use_Error if it is not.
1330
1331 2008-04-08  Vincent Celier  <celier@adacore.com>
1332             Robert Dewar  <dewar@adacore.com>
1333
1334         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
1335         AAMP_On_Target is set.
1336
1337         * vms_data.ads: Add NOxxx to style check switch list
1338         Add entry COMPONENTS for -gnatVe
1339         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
1340         (/SUBDIRS=).
1341         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
1342         Add qualifiers for gnatmetric coupling options
1343         Add note that -gnata enables all checks
1344         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
1345         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
1346         New warning flag -gnatw.e
1347
1348         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
1349         Add entry for -gnatyN (forgotten before)
1350         Line for new warning switch -gnatw.p
1351         New warning flag -gnatw.e
1352
1353         * gnat_ugn.texi: Add documentation fpr project file switch -aP
1354         Document -gnaty - + y
1355         Replace occurences of "package specification" with "package spec"
1356         Define preprocessing symbols in documentation of gnatprep
1357         Clarify reason for distinguishing overflow checking
1358         Add documentation for project-aware tool switches -eL and --subdirs=
1359         Complete list of configuration pragmas
1360         Specify that, even when gnatmake switch -x is used, mains on the command
1361         line need to be sources of project files.
1362         Editing of gnatcheck/gnatmetric doc.
1363         Add documentation for -gnatw.p/-gnatw.P
1364         Add missing documentation for -fno-inline-functions.
1365         Add documentation for -gnatw.e
1366
1367         * gnat_rm.texi: Add documentation for No_Default_Initialization
1368         Replace occurences of "package specification" with "package spec"
1369         Document use of * in Warnings Off string
1370         Update documentation of alignment/component clauses.
1371         Add documentation for Invalid_Value
1372         Document new consistency rule for Optimize_Alignment
1373         Add documentation for Precondition and Postcondition pragmas
1374         Add documentation for Check and Check_Policy pragmas
1375         Document new Enum_Val attribute
1376         Remove requirement for static string in pragma Assert
1377         Add documentation on GNAT.Time_Stamp
1378
1379         * ug_words: add entry for -gnatVe
1380         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
1381         Add entry for -gnatw.e
1382
1383         * debug.adb: Add missing documentation for d.a flag
1384         Document new -gnatd.a switch.
1385         Add documentation for new gnatmake debug switch -df
1386
1387 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1388
1389         * gen-soccon.c: Bump year in copyright notices.
1390
1391         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
1392
1393 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1394
1395         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
1396         Minor reformatting.
1397
1398 2008-04-08  Robert Dewar  <dewar@adacore.com>
1399             Bob Duff  <duff@adacore.com>
1400
1401         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
1402         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
1403
1404         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
1405
1406         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
1407
1408         * g-trasym.ads: Minor comment improvements
1409
1410         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
1411
1412         * a-sequio.ads, a-direio.ads: improve message for tagged type
1413
1414         * a-strunb.ads: Minor reformatting
1415
1416         * a-tifiio.adb: Minor reformatting
1417
1418         * atree.adb (Fix_Parents): Use clearer names for formals
1419         Cleanup and simplify code
1420         Use named notation in calls
1421
1422         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
1423         confusing calls
1424
1425         * uintp.adb: Used named notation for some confusing calls
1426
1427         * bindusg.adb: Minor change in one line of output
1428
1429         * cstand.adb: Minor reformatting of src representation of Standard
1430
1431         * a-assert.ads: Add comment.
1432
1433         * g-decstr.adb: Fix bad indentation
1434
1435         * expander.ads, expander.adb: Code clean up.
1436
1437         * sem_dist.ads: Minor comment improvement
1438
1439         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
1440         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
1441
1442         * i-cstrin.adb: Fix casing error in formal parameter name in call
1443
1444 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1445
1446         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
1447         mentioned in limited_with_clauses to do create semantic dependencies
1448         even though they appear in the ali file.
1449
1450 2008-04-08  Emmanuel Briot  <briot@adacore.com>
1451
1452         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
1453         statement.
1454         (Get_Configuration): New subprogram.
1455
1456         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
1457         These optional parameters help preserve the casing of the project's name
1458         when pretty-printing.
1459
1460 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
1461             Arnaud Charlet  <charlet@adacore.com>
1462
1463         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
1464         then use __gnat_set_exit_status to report the returned status code.
1465
1466         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
1467         messages on .NET, since some constructs of the language are not
1468         properly supported.
1469
1470         * gnatlink.adb (Gnatlink): In case the command line is too long for the
1471         .NET linker, gnatlink now concatenate all .il files and pass this to
1472         ilasm.
1473
1474 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1475             Xavier Grave  <grave@ipno.in2p3.fr>
1476
1477         * Makefile.in: Add make ifeq define for mips/mipsel support.
1478         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
1479         system-linux-mips.ads: New files.
1480
1481 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1482
1483         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
1484         detect systems using GNU libc.
1485         * gsocket.h: ditto.
1486         * socket.c: ditto.
1487         * adaint.c: ditto.
1488         * link.c: ditto.
1489
1490 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1491
1492         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
1493         constant constant for sysconf call.
1494         (bit_field): New packed boolean type used by cpu_set_t.
1495         (cpu_set_t): New type corresponding to the C type with
1496         the same name. Note that on the Ada side we use a bit
1497         field array for the affinity mask. There is not need
1498         for the C macro for setting individual bit.
1499         (pthread_setaffinity_np): New imported routine.
1500         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
1501         on GNU/kFreeBSD.
1502
1503 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1504
1505         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
1506
1507 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1508
1509         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
1510         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
1511         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
1512         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
1513         Return by Depressed Stack Pointer.
1514
1515 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1516
1517         * decl.c (is_variable_size): Do not unconditionally return false
1518         on non-strict alignment platforms.
1519
1520 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1521
1522         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
1523         used to process all the variants of the specified type.
1524         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
1525         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
1526         (rest_of_type_decl_compilation): Likewise.
1527         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
1528
1529 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1530
1531         * gigi.h (insert_block): Kill.
1532         * utils.c (insert_block): Kill.
1533
1534 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
1535
1536         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
1537         type has self-referential size, get the size from the initializing
1538         expression directly if it is also a constant whose nominal type
1539         has self-referential size.
1540
1541 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1542
1543         PR ada/33688
1544         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
1545
1546         PR ada/33857
1547         * env.c: Always include crt_externs.h if __APPLE__ is defined.
1548         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
1549
1550 2008-04-01  Andreas Jaeger  <aj@suse.de>
1551
1552         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
1553         IP_PKTINFO.
1554
1555 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1556
1557         * g-table.adb, g-tasloc.adb, g-traceb.ads,
1558         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
1559         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
1560         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
1561         gnatlink.adb, gnatmem.adb, gprep.adb,
1562         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
1563         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
1564         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
1565         lib-xref.ads, lib.adb, link.c, live.ads,
1566         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
1567         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
1568         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
1569         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
1570         namet.adb, namet.h, nlists.adb, nlists.ads,
1571         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
1572         osint-c.ads, osint.adb, osint.ads, output.ads,
1573         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1574         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
1575         par-endh.adb, par-labl.adb, par-prag.adb,
1576         par-sync.adb, par-tchk.adb, par-util.adb,
1577         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
1578         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1579         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
1580         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
1581
1582 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
1583
1584         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
1585         size if it has overflowed.
1586
1587 2008-03-31  Olivier Hainque  <hainque@adacore.com>
1588             Eric Botcazou  <ebotcazou@adacore.com>
1589
1590         * utils2.c (find_common_type): Document assumption on t1/t2 vs
1591         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
1592
1593 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1594
1595         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
1596         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
1597         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
1598         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
1599         exp_tss.ads, exp_util.adb, exp_util.ads,
1600         exp_vfpt.adb, freeze.adb, freeze.ads,
1601         frontend.adb, g-alleve.adb, g-altcon.adb,
1602         g-altive.ads, g-alveop.ads, g-alvevi.ads,
1603         g-arrspl.adb, g-busorg.ads, g-calend.adb,
1604         g-calend.ads, g-casuti.ads, g-cgideb.adb,
1605         g-comlin.adb, g-comlin.ads, g-curexc.ads,
1606         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
1607         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
1608         g-dyntab.adb, g-encstr.ads, g-excact.ads,
1609         g-except.ads, g-expect.ads, g-heasor.adb,
1610         g-hesora.adb, g-hesorg.adb, g-htable.ads,
1611         g-locfil.ads, g-md5.adb, g-md5.ads,
1612         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
1613         g-pehage.adb, g-pehage.ads, g-regexp.adb,
1614         g-regexp.ads, g-regpat.adb, g-regpat.ads,
1615         g-soccon-aix.ads, g-soccon-darwin.ads,
1616         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
1617         g-soccon-hpux.ads, g-soccon-irix.ads,
1618         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
1619         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
1620         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
1621         g-soccon-solaris.ads, g-soccon-tru64.ads,
1622         g-soccon-vms.ads, g-soccon-vxworks.ads,
1623         g-soccon.ads, g-socket.adb, g-socket.ads,
1624         g-socthi-mingw.adb, g-socthi-vms.adb,
1625         g-socthi-vxworks.adb, g-soliop-mingw.ads,
1626         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
1627         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
1628         typos.
1629
1630 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
1631
1632         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
1633         if the procedure is imported.
1634
1635 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1636
1637         * adaint.c: Fix warnings.
1638
1639 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1640
1641         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
1642
1643 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1644
1645         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
1646         Fix problem of status check for null file
1647
1648 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1649
1650         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
1651         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
1652         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
1653         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
1654         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
1655         comments.
1656
1657 2008-03-26  Thomas Quinot  <quinot@adacore.com>
1658
1659         PR ada/33688
1660         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
1661         Get_Socket_Option): Add support for Receive_Packet_Info.
1662
1663         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1664         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1665         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
1666         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
1667         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
1668         new constants SO_REUSEPORT and IP_PKTINFO
1669
1670 2008-03-26  Robert Dewar  <dewar@adacore.com>
1671
1672         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
1673         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1674         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
1675         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
1676         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
1677         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
1678         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
1679         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1680         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
1681         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
1682         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
1683         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
1684         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
1685         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
1686         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
1687         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
1688         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
1689         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
1690         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
1691         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
1692         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
1693         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
1694         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
1695         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
1696         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
1697         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
1698         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
1699         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
1700         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
1701         s-tasloc.adb: Minor reformatting.
1702         Update comments.
1703         Remove "used for" sections from comments.
1704
1705 2008-03-26  Robert Dewar  <dewar@adacore.com>
1706
1707         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
1708         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
1709         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
1710         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
1711         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
1712         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
1713         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
1714         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
1715         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
1716         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
1717         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
1718         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
1719         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
1720         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
1721         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
1722         double spaced if it fits on one line and otherwise single spaced.
1723
1724 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1725
1726         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
1727         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
1728         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
1729         or task info if the thread could not be created.
1730
1731 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1732
1733         * gnatvsn.ads (Library_Version): Bump to 4.4.
1734         (Current_Year): Bump to 2008.
1735
1736 2008-03-26  Robert Dewar  <dewar@adacore.com>
1737
1738         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
1739
1740         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
1741
1742         * debug.adb: Add debug flags d.r and d.v
1743         Add debug flag .T (Optimize_Alignment (Time))
1744         Add debug flag .S (Optimize_Alignment (Space))
1745
1746         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
1747         depending on setting of relevant debug flags.
1748         Replace use of Warnings_Off by Has_Warnings_Off
1749         (Freeze_Entity): In circuit for warning on suspicious convention
1750         actuals, do not give warning if subprogram has same entity as formal
1751         type, or if subprogram does not come from source.
1752         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
1753         if Optimize_Alignment set to Space.
1754
1755         * frontend.adb: Add call to Sem_Warn.Initialize
1756         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
1757         Reset Optimize_Alignment mode from debug switches .S and .T
1758
1759         * layout.adb (Layout_Composite_Object): Rewritten for
1760         Optimize_Aligment pragma.
1761
1762         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
1763         mode.
1764
1765         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
1766
1767         * par-prag.adb (N_Pragma): Chars field removed, use Chars
1768         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
1769         this change. Add entry for pragma Optimize_Alignment
1770
1771         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
1772         (Pragma_Identifier (..
1773         instead, adjustments throughout to accomodate this change.
1774         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
1775         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
1776         Add implementation of pragma Optimize_Alignment
1777
1778 2008-03-26  Vincent Celier  <celier@adacore.com>
1779
1780         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
1781         Improve memory usage to avoid use of stack.
1782
1783 2008-03-26  Robert Dewar  <dewar@adacore.com>
1784
1785         * a-teioed.ads: Correct value of Default_Fill
1786
1787         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
1788
1789 2008-03-26  Robert Dewar  <dewar@adacore.com>
1790
1791         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
1792         with Current_Output (introduce Self).
1793
1794 2008-03-26  Robert Dewar  <dewar@adacore.com>
1795
1796         * checks.adb (Ensure_Valid): Capture valid status if possible
1797         (eliminate checks)
1798
1799 2008-03-26  Robert Dewar  <dewar@adacore.com>
1800
1801         * stand.ads: Deal with reordering of package standard declarations
1802
1803         * cstand.adb: Put package Standard declarations in proper order
1804
1805 2008-03-26  Robert Dewar  <dewar@adacore.com>
1806
1807         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
1808         (Pragma_Identifier (.. instead.
1809         (OK_To_Reorder_Components): New flag
1810         (Has_Entries): Code cleanup.
1811         (Warnings_Off_Used): New flag
1812         (Warnings_Off_Used_Unmodified): New flag
1813         (Warnings_Off_Used_Unreferenced): New flag
1814         (Has_Warnings_Off): New function
1815         (Has_Unmodified): New function
1816         (Has_Unreferenced): New function
1817         (Is_Trivial_Subprogram): New flag
1818         (Is_Static_Dispatch_Table_Entity): New attribute.
1819         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
1820         (more consistent with other similar names)
1821         (Access_Subprogram_Type): New classification function
1822
1823 2008-03-26  Robert Dewar  <dewar@adacore.com>
1824
1825         * errout.ads: Document new !! insertion sequence
1826
1827         * errout.adb (N_Pragma): Chars field removed, use Chars
1828         (Pragma_Identifier (..  instead.
1829         Replace use of Warnings_Off by Has_Warnings_Off
1830         (Error_Msg_Internal): Don't delete warning ending in !!
1831
1832 2008-03-26  Robert Dewar  <dewar@adacore.com>
1833
1834         * par.adb (Check_No_Right_Paren): Removed no longer used
1835
1836         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
1837         (Pragma_Identifier (..  instead.
1838
1839         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
1840
1841         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
1842         par-ch4.adb: Minor improvements in error recovery and messages.
1843
1844         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
1845         non-serious
1846
1847         * par-ch9.adb: Minor improvements in error recovery and messages
1848         (P_Protected): Better error recovery for "protected type x;"
1849
1850         * par-util.adb: Minor improvements in error recovery and messages
1851         (Check_No_Right_Paren): Removed no longer used
1852
1853 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
1854
1855         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
1856         that the prefix of an attribute is the type of the aggregate being
1857         expanded.
1858
1859 2008-03-26  Javier Miranda  <miranda@adacore.com>
1860             Robert Dewar  <dewar@adacore.com>
1861
1862         * exp_attr.adb (N_Pragma): Chars field removed.
1863         (Expand_N_Attribute_Reference): If the designated type associated with
1864         attribute 'Unrestricted_Access is a subprogram entity then replace it
1865         by an E_Subprogram_Type itype.
1866         Implement attribute Old
1867
1868         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
1869
1870         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
1871         Replace call to
1872         New_Internal_Entity by call to Create_Itype to centralize calls
1873         building itypes, ad propagate the convention of the designated
1874         subprogram. In addition, disable the machinery cleaning constant
1875         indications from all entities in current scope when 'Unrestricted_Access
1876         corresponds with a node initializing a dispatch table slot.
1877         (Analyze_Attribute): Parameterless attributes returning a string or a
1878         type will not be called with improper arguments, so we can remove junk
1879         code that was dealing with this case.
1880         Implement attribute Old
1881
1882         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
1883         Add entry for pragma Optimize_Alignment
1884         New standard names Sync and Synchronize
1885
1886 2008-03-26  Robert Dewar  <dewar@adacore.com>
1887             Arnaud Charlet  <charlet@adacore.com>
1888
1889         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
1890         stmt.
1891         (No_Exception_Propagation_Active): New function.
1892         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
1893         Update comments, and review all uses of No_Exception_Propagation, which
1894         are now correct and in sync with what gigi expects.
1895
1896         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
1897         function.
1898         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
1899         Update comments, and review all uses of No_Exception_Propagation, which
1900         are now correct and in sync with what gigi expects.
1901
1902 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
1903
1904         * sem_ch3.adb (Access_Definition): If the access type is the return
1905         result of a protected function, create an itype reference for it
1906         because usage will be in an inner scope from the point of declaration.
1907         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
1908         OK_To_Reorder_Components.
1909         (Make_Index): If an overloaded range includes a universal integer
1910         interpretation, resolve to Standard.Integer.
1911         (Analyze_Subtype_Indication): Copy Convention to subtype
1912         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
1913         limited an synchronized progenitors in type declaration and private
1914         extension declarations.
1915
1916         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
1917         protected subprogram body, determine proper scope from subprogram
1918         declaration.
1919
1920 2008-03-26  Robert Dewar  <dewar@adacore.com>
1921
1922         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
1923         No_Run_Time_Mode
1924
1925 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
1926
1927         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
1928         of a heap allocator for a limited unconstrained function return when
1929         resstriction No_Allocators is active.
1930         (Analyze_Allocator): The restriction No_Allocators is now only checked
1931         on allocators that have Comes_From_Source set, as per RM-H.4(7).
1932
1933         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
1934         of a heap allocator for a limited unconstrained function return when
1935         resstriction No_Allocators is active.
1936         (Analyze_Allocator): The restriction No_Allocators is now only checked
1937         on allocators that have Comes_From_Source set, as per RM-H.4(7).
1938         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
1939         operands are fixed-point types, the universal_fixed predefined operation
1940         is used, regardless of whether the operand type (s) have a primitive
1941         operation of the same name.
1942
1943 2008-03-26  Javier Miranda  <miranda@adacore.com>
1944
1945         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
1946         Is_Static_Dispatch_Table
1947         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
1948         to Exchange_Declarations to exchange the private and full-view. Bug
1949         found working in this issue.
1950         (Expand_Dispatching_Call): Propagate the convention of the subprogram
1951         to the subprogram pointer type.
1952         (Make_Secondary_DT): Replace generation of Prim'Address by
1953         Address (Prim'Unrestricted_Access)
1954         (Make_DT): Replace generation of Prim'Address by
1955         Address (Prim'Unrestricted_Access)
1956         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
1957         simple call form for single entry.
1958         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
1959         tables of predefined primitives).
1960         (Make_Secondary_DT): Add support to handle access to dispatch tables of
1961         predefined primitives.
1962         (Make_Tags): Add entities to Access_Dispatch_Table associated with
1963         access to dispatch tables containing predefined primitives.
1964
1965         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
1966         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
1967         this change.
1968         (Register_Predefined_DT_Entry): Updated to handle the new contents
1969         of attribute Access_Disp_Table (pointers to dispatch tables containing
1970         predefined primitives).
1971
1972         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
1973         subprogram.
1974         (Find_Interface_ADT): Updated to skip the new contents of attribute
1975         Access_Dispatch_Table (pointers to dispatch tables containing predefined
1976         primitives).
1977
1978         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
1979         concurrent types.
1980         (Set_Convention): Use new function Is_Access_Subprogram_Type
1981         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
1982         Access_Dispatch_Table (pointers to dispatch tables containing predefined
1983         primitives).
1984
1985         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
1986         expanded code avoiding calls to Build_Predef_Prims.
1987         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
1988         call to Build_Get_Predefined_Prim_Op_Address.
1989
1990 2008-03-26  Javier Miranda  <miranda@adacore.com>
1991
1992         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
1993         subprogram Corresponding_Runtime_Package to know the runtime package
1994         that will provide support to a given protected type.
1995
1996         * exp_ch9.adb (Add_Private_Declarations,
1997         Build_Protected_Subprogram_Call,
1998         Build_Protected_Entry, Build_Simple_Entry_Call,
1999         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2000         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
2001         cleanup using the new centralized subprogram Corresponding_Runtime
2002         Package to know the runtime package that provides support to
2003         a given protected type.
2004
2005 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2006
2007         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
2008         assignment is within the initialization procedure for a packed array,
2009         and Initialize_Scalars is enabled, compile right-hand side with checks
2010         off, because the value is purposely out of range.
2011
2012 2008-03-26  Vincent Celier  <celier@adacore.com>
2013
2014         * gnatcmd.adb: Add processing for GNAT SYNC
2015
2016         * vms_conv.ads: (Command_Type): Add command Sync
2017
2018         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
2019
2020         * vms_data.ads: Add entries for -gnatw.w
2021         Add qualifier for gnatstub --header-file option
2022         Add switches for GNAT SYNC
2023
2024         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
2025         (Add_Package_Name): New procedure
2026         (Package_Name_List): New function
2027         (Initialize): Add known package names to the list
2028         (Register_New_Package): Add the new package name to the list
2029
2030 2008-03-26  Robert Dewar  <dewar@adacore.com>
2031
2032         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
2033         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
2034         Raise_Exception by "raise with" construct.
2035
2036 2008-03-26  Pascal Obry  <obry@adacore.com>
2037
2038         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
2039         supported platforms.
2040         
2041         * Makefile.rtl: Add g-sercom.o.
2042         
2043         * impunit.adb: Add g-sercom.adb.
2044         
2045         * s-crtl.ads (open): New routine.
2046         (close): Likewise.
2047         (write): Likewise.
2048         
2049         * s-osinte-mingw.ads (BYTE): New type.
2050         (CHAR): Likewise.
2051         (OVERLAPPED): Likewise.
2052         (GENERIC_READ): New constant.
2053         (GENERIC_WRITE): Likewise.
2054         (OPEN_EXISTING): Likewise.
2055         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
2056         type instead.
2057         (CreateFile): New routine.
2058         (WriteFile): Likewise.
2059         (ReadFile): Likewise.
2060         (CloseHandle): Move next to the other file oriented routines.
2061
2062         * g-sercom.ads: New unit.
2063
2064         * g-sercom.adb: Default implementation, calls to this unit will raise
2065         a program error exception.
2066         
2067         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
2068         GNU/Linux implementations.
2069
2070 2008-03-26  Robert Dewar  <dewar@adacore.com>
2071
2072         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
2073
2074         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
2075         unchecked conversion for different conventions only for subprogram
2076         pointers or on VMS.
2077
2078 2008-03-26  Vincent Celier  <celier@adacore.com>
2079
2080         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
2081         to check if the specified object file is correct.
2082
2083 2008-03-26  Thomas Quinot  <quinot@adacore.com>
2084
2085         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
2086         Comes_From_Source to exclude primitives from being checked. We want to
2087         exclude predefined primitives only, so use the appropriate specific
2088         predicate. Also, flag a formal parameter of an anonymous
2089         access-to-subprogram type as illegal for a primitive operation of a
2090         remote access to class-wide type.
2091
2092 2008-03-26  Vincent Celier  <celier@adacore.com>
2093
2094         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
2095         known, check if it may be a missspelling of a known package name. In
2096         not verbose, not mode, issue warnings only if the package name is a
2097         possible misspelling.
2098         In verbose mode, always issue a warning for a not known package name,
2099         plus a warning if the name is a misspelling of a known package name.
2100
2101         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
2102         limited withs or limited withs are parse during one call.
2103         (Parse_Single_Project): Post parse context clause in two passes: non
2104         limited withs before current project and limited withs after current
2105         project.
2106
2107         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
2108         project with the name With_Name, even if it is only extended indirectly.
2109         (Recursive_Process): Process projects in order: first single withs, then
2110         current project, then limited withs.
2111
2112         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
2113         project with the name With_Name, even if it is only extended indirectly.
2114
2115 2008-03-26  Robert Dewar  <dewar@adacore.com>
2116
2117         * scn.adb (Initialize_Scanner): Format messages belong on standard error
2118
2119 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2120
2121         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
2122         a generic subprogram that is imported, do not attempt to compile
2123         non-existent body.
2124
2125         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
2126         imported, do not generate a raise_program_error for the non-existent
2127         body.
2128         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
2129         perform minimal name resolution on the generic to avoid spurious
2130         warnings.
2131         (Find_Actual_Type): the designated type of the actual in a child unit
2132         may be declared in a parent unit without being an actual.
2133
2134 2008-03-26  Robert Dewar  <dewar@adacore.com>
2135
2136         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
2137         * sinfo.ads, sinfo.adb (From_At_End): New flag
2138
2139 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2140
2141         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
2142         operations that have an interface parameter.
2143         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
2144         Don't treat No_Return call as raise.
2145
2146         * sem_disp.adb (Check_Dispatching_Operations): apply check for
2147         non-primitive interface primitives to access parameters, not to all
2148         parameters of an access type.
2149
2150 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2151
2152         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
2153         declarations of a parent unit are made visible when compiling a child
2154         instance, the parent is not a hidden open scope, even though it may
2155         contain other pending instance.
2156         
2157         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
2158         hidden open scope for some child instance, it does affect the
2159         visibility status of other stach entries.
2160         (Analyze_Object_Renaming): Check that a class-wide object cannot be
2161         renamed as an object of a specific type.
2162
2163 2008-03-26  Robert Dewar  <dewar@adacore.com>
2164
2165         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
2166         recursion and raise SE directly.
2167         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
2168         set for formal type for IN mode parameter.
2169
2170 2008-03-26  Robert Dewar  <dewar@adacore.com>
2171
2172         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
2173         (Initialize): New procedure
2174         (Output_Warnings_Off_Warnings): New procedure
2175         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
2176         (Output_Non_Modifed_In_Out_Warnings): Ditto
2177         (Warn_On_Unreferenced_Entity): Ditto
2178
2179 2008-03-26  Vincent Celier  <celier@adacore.com>
2180
2181         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
2182         readable.
2183
2184 2008-03-26  Matthew Heaney  <heaney@adacore.com>
2185
2186         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
2187         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
2188         Marked with clauses as private, and controlled operations as overriding
2189
2190 2008-03-26  Robert Dewar  <dewar@adacore.com>
2191
2192         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
2193
2194 2008-03-26  Robert Dewar  <dewar@adacore.com>
2195
2196         * back_end.adb, back_end.ads: Minor reformatting
2197
2198         * bindgen.adb: Minor clarification of comments
2199
2200         * fname.ads: Minor comment fixes
2201
2202         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
2203         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
2204
2205         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
2206         xsnames.adb: Remove warnings off pragma no longer needed
2207
2208         * a-catizo.ads, a-calari.ads, a-calfor.adb,
2209         a-calfor.ads: Fix header.
2210
2211 2008-03-26  Tristan Gingold  <gingold@adacore.com>
2212
2213         * init.c: Do not adjust pc for HPARITH on alpha/vms.
2214
2215 2008-03-26  Robert Dewar  <dewar@adacore.com>
2216
2217         * lib-xref.adb: (OK_To_Set_Reference): New function
2218         (Generate_Reference): Don't set referenced from occurrence in Warnings,
2219         Unmodified, or Unreferenced pragma
2220
2221 2008-03-26  Robert Dewar  <dewar@adacore.com>
2222
2223         * alloc.ads: Add entries for Warnings_Off_Pragmas table
2224
2225 2008-03-26  GNAT Script  <nobody@adacore.com>
2226
2227         * Make-lang.in: Makefile automatically updated
2228
2229 2008-03-26  Robert Dewar  <dewar@adacore.com>
2230
2231         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
2232         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
2233         removed, use Chars (Pragma_Identifier (..  instead, adjustments
2234         throughout to accomodate this change.
2235
2236         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
2237
2238         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
2239         Einfo.Set_Needs_Debug_Info)
2240
2241 2008-03-26  Robert Dewar  <dewar@adacore.com>
2242
2243         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
2244         Add description for the new gnatstub option '--header-file'
2245         clarification of -gnatwz/-gnatwZ
2246         Add a "Irix-Specific Considerations" section to document the need to
2247         set LD_LIBRARY_PATH when using the default shared runtime library.
2248         Added documentation for both gcov and gprof.
2249
2250         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
2251         messages that are not suppressed when clients are compiled.
2252         Add documentation of s-pooglo s-pooloc
2253         Document the new GNAT.Serial_Communications API.
2254         Add documentation for 'Old attribute
2255         Add description of pragma Optimize_Alignment
2256
2257         * ug_words: Add entries for -gnatw.w -gnatw.W
2258
2259         * usage.adb: Add line for -gnatw.w (warn on warnings off)
2260
2261 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2262
2263         Revert
2264         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2265         PR ada/35186
2266         * decl.c (maybe_pad_type): Avoid padding an integral type when
2267         bumping its alignment is sufficient.
2268
2269 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
2270
2271         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
2272         Fix wrong formatting (lines too long)
2273
2274 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2275
2276         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
2277         a-calend-vms.adb, a-calend.adb, a-calend.ads,
2278         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
2279         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
2280         a-cohama.ads, a-comlin.ads, a-coorse.adb,
2281         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
2282         a-except-2005.ads, a-except.adb, a-except.ads,
2283         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
2284         a-exextr.adb, a-filico.ads, a-finali.ads,
2285         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
2286         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
2287         a-sequio.ads, a-strbou.ads, a-strfix.adb,
2288         checks.adb, exp_ch3.adb, exp_ch4.adb,
2289         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
2290         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
2291         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
2292         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
2293         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
2294
2295 2008-03-24  Robert Dewar  <dewar@adacore.com>
2296
2297         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2298         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2299         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2300         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2301         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2302         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2303         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2304         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2305         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2306         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2307         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2308         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2309         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2310         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2311         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2312         double spaced if it fits on one line and otherwise single spaced.
2313
2314 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2315
2316         PR documentation/15479
2317         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
2318         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
2319         (doc/gnat_ugn.info): Renamed from ...
2320         (doc/gnat_ugn_unw.info): ... this.
2321         (doc/gnat_ugn.dvi): Renamed from ...
2322         (doc/gnat_ugn_unw.dvi): ... this.
2323         (doc/gnat_ugn.pdf): Renamed from ...
2324         (doc/gnat_ugn_unw.pdf): ... this.
2325         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
2326         Adjusted.
2327         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
2328         unconditionally to gnat_ugn.info.  Fix cross references to the
2329         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
2330         and GNU make manuals to be proper texinfo links.
2331         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
2332
2333 2008-03-21  Olivier Hainque  <hainque@adacore.com>
2334
2335         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
2336         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
2337
2338 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
2339
2340         * trans.c (addressable_p): Add notes on addressability issues.
2341
2342 2008-03-21  Olivier Hainque  <hainque@adacore.com>
2343             Ed Schonberg  <schonberg@adacore.com>
2344
2345         * trans.c (addressable_p): Accept COND_EXPR when both arms
2346         are addressable.
2347         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
2348         (call_to_gnu): Do not use name reference in the error message
2349         for a misaligned by_reference_parameter. The actual may be a
2350         general expression.
2351
2352 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2353
2354         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2355         
2356 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2357
2358         * gnat_rm.texi (Implementation Defined Characteristics)
2359         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
2360         appropriate.
2361         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
2362         (Switches for gnatchop, Installing a library): Likewise.
2363
2364 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
2365
2366         * trans.c (emit_range_check): Do not emit the check if the base type
2367         of the expression is the type against which its range must be checked.
2368
2369 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2370
2371         * decl.c (maybe_pad_type): Use value_factor_p.
2372
2373 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2374
2375         * lang.opt (nostdlib): Move around.
2376         * misc.c (gnat_handle_option): Fix formatting.
2377         (gnat_dwarf_name): Move around.
2378         * trans.c (Case_Statement_to_gnu): Fix formatting.
2379         (gnat_to_gnu): Likewise.
2380         * utils.c (aggregate_type_contains_array_p): Likewise.
2381         (create_subprog_decl): Likewise.
2382
2383 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2384
2385         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
2386         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
2387
2388 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2389
2390         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
2391         BIGGEST_ALIGNMENT when capping the alignment of records with
2392         strict alignment and size clause.
2393
2394 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2395
2396         * lang-specs.h: Pass -gnatwa if -Wall is passed.
2397         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
2398         and -Wuninitialized.
2399         (gnat_post_options): Clear warn_unused_parameter.
2400
2401 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2402
2403         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
2404         aligned bit-fields, bumping the alignment of the record type if deemed
2405         profitable.
2406         (value_factor_p): Return false instead of 0.
2407
2408 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2409
2410         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
2411         for scalar types with small alignment.
2412
2413 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2414
2415         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
2416         from that of the front-end's end label.
2417         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
2418         from that of the loop label.
2419
2420 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2421
2422         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
2423         comment for the packed array type case.
2424         * utils.c (build_template): Use a loop to strip padding or
2425         containing records for justified modular types.
2426
2427 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2428
2429         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
2430         large alignments specified for types.
2431         (validate_alignment): Minor cleanup.
2432
2433 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2434
2435         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
2436         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
2437         the component for packing, if possible, as well as if a component
2438         size clause is specified.
2439         <E_Record_Subtype>: For an array type used to implement a packed
2440         array, get the component type from the original array type.
2441         Try to get a smaller form of the component for packing, if possible,
2442         as well as if a component size clause is specified.
2443         (round_up_to_align): New function.
2444         (make_packable_type): Add in_record parameter.
2445         For a padding record, preserve the size.  If not in_record and the
2446         size is too large for an integral mode, attempt to shrink the size
2447         by lowering the alignment.
2448         Ditch the padding bits of the last component.
2449         Compute sizes and mode manually, and propagate the RM size.
2450         Return a BLKmode record type if its size has shrunk.
2451         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
2452         Use Original_Array_Type to retrieve the type in case of an error.
2453         Adjust call to make_packable_type.
2454         (gnat_to_gnu_field): Likewise.
2455         (concat_id_with_name): Minor tweak.
2456         * trans.c (larger_record_type_p): New predicate.
2457         (call_to_gnu): Compute the nominal type of the object only if the
2458         parameter is by-reference.  Do the conversion actual type -> nominal
2459         type if the nominal type is a larger record.
2460         (gnat_to_gnu): Do not require integral modes on the source type to
2461         avoid the conversion for types with identical names.
2462         (addressable_p): Add gnu_type parameter.  If it is specified, do not
2463         return true if the expression is not addressable in gnu_type.
2464         Adjust recursive calls.
2465         * utils.c (finish_record_type): Remove dead code.
2466
2467 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2468
2469         PR ada/35186
2470         * decl.c (maybe_pad_type): Avoid padding an integral type when
2471         bumping its alignment is sufficient.
2472
2473 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2474
2475         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
2476         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
2477         statement.
2478         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
2479         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
2480         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
2481         code output strings.
2482         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
2483         system-vms_64.ads: Fix typos in ada source code comments.
2484         * sinfo-cn.adb: Remove incomplete sentence.
2485
2486         PR documentation/15479
2487         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
2488
2489 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
2490
2491         PR ada/22255
2492         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
2493
2494 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
2495
2496         PR ada/34799
2497         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
2498         that underlying type is present.
2499
2500 2008-02-26  Tom Tromey  <tromey@redhat.com>
2501
2502         * misc.c (internal_error_function): Remove test of
2503         USE_MAPPED_LOCATION.
2504         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
2505         (Sloc_to_locus): Remove old location code.
2506
2507 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2508
2509         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
2510         `i.e.' by adding comma or `@:' as appropriate.
2511         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
2512         plain characters `C', use `@samp{C}'.
2513         * gnat_ugn.texi (File Naming Rules, About gnatkr)
2514         (Krunching Method): Likewise.
2515
2516         * gnat_ugn.texi (Conventions): List environment variables and
2517         metasyntactic variables.
2518         (Compiling Programs): Fix notation of metasyntactic variables.
2519         Add @file where appropriate.  Use @file for file extensions,
2520         @samp for strings.
2521         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
2522         instead of @file, @env instead of @code.
2523
2524 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2525
2526         PR documentation/15479
2527         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
2528         and `...' with `@dots{}' or `@enddots{}'.
2529
2530         PR documentation/15479
2531         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
2532         use @command instead of @code, @option instead of @samp or @code,
2533         @code instead of @var, @samp instead of @file.
2534
2535         PR documentation/15479
2536         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
2537         in Makefile rules, by using `&&' rather than `;'.
2538
2539 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2540
2541         PR documentation/15479
2542         * gnat_ugn.texi: In non-code, avoid space before colon.
2543         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
2544         (Examples of gnatxref Usage): Use @command{vi} instead of
2545         @file{vi}.
2546         (Character Set Control): Do not use @code for UTF-8.
2547         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
2548         use @code for IEEE.
2549         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
2550         sample.
2551         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
2552
2553 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
2554
2555         PR ada/35143
2556         * env.c: Add __rtems__ to if defined.
2557         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
2558         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
2559         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
2560         pragma Convention as required.
2561         * gsocket.h: Make compile in and out of RTS.
2562         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
2563         Use g-soccon-rtems.ads.
2564         * g-soccon-rtems.ads, system-rtems.ads: New files.
2565
2566 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2567
2568         PR other/35107
2569         * Make-lang.in (gnat1): Add $(GMPLIBS).
2570
2571 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
2572
2573         * decl.c (components_to_record): Improve comment.
2574
2575 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
2576
2577         * decl.c (components_to_record): Do not reuse the empty union type
2578         if there is a representation clause on the record.
2579         * trans.c (addressable_p): Return true for INTEGER_CST.
2580
2581 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
2582
2583         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
2584         in pointer arithmetics.
2585         * utils2.c (build_allocator): Likewise.
2586
2587 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2588
2589         * utils.c (build_function_stub): Properly build the call expression.
2590
2591 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
2592
2593         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
2594         before converting the expression to the type of the object.
2595         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
2596         Stabilize constructors for special wrapping types.
2597
2598 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
2599
2600         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
2601         when necessary.  Merge some conditional statements.  Update comments.
2602         Rename unchecked_convert_p local variable to suppress_type_conversion.
2603         Do not suppress conversions in the In case.
2604         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
2605         into account on non strict-alignment platforms.
2606
2607 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2608
2609         * utils.c (aggregate_type_contains_array_p): New predicate.
2610         (create_field_decl): In a packed record, force byte alignment
2611         for fields without specified position that contain an array.
2612
2613 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2614
2615         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
2616
2617 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
2618
2619         PR ada/34466
2620         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
2621         sysconf call.
2622         (bit_field): New packed boolean type used by cpu_set_t.
2623         (cpu_set_t): New type corresponding to the C type with
2624         the same name. Note that on the Ada side we use a bit
2625         field array for the affinity mask. There is not need
2626         for the C macro for setting individual bit.
2627         (pthread_setaffinity_np): New imported routine.
2628
2629 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
2630
2631         PR ada/34647
2632         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2633         on OpenBSD as is done on other BSD systems.
2634
2635         PR ada/34645
2636         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
2637         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
2638         I/O.
2639
2640         PR ada/34644
2641         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
2642         clearenv().
2643
2644         PR ada/34646
2645         * init.c (__gnat_error_handler, __gnat_install_handler,
2646         __gnat_init_float): Define for OpenBSD.
2647
2648         * initialize.c (__gnat_initialize): Define for OpenBSD.
2649
2650 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
2651
2652         PR ada/34553
2653         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2654         instead of mktemp() or tmpnam() on NetBSD.
2655
2656 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
2657
2658         * trans.c (call_to_gnu): Make the temporary for non-addressable
2659         In parameters passed by reference.
2660         (addressable_p): Return true for STRING_CST and CALL_EXPR.
2661
2662 2007-12-19  Robert Dewar  <dewar@adacore.com>
2663
2664         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
2665         Add pragma Warnings (Off) for unassigned IN OUT arguments
2666
2667         * sem_warn.adb (Output_Reference): Suppress messages for internal names
2668         (Check_References): Extensive changes to tune up warnings
2669         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
2670         (Has_Pragma_Unmodifed_Check_Spec): New function
2671         (Check_References): Implement pragma Unmodified
2672         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
2673
2674         * par-prag.adb: Dummy entry for pragma Unmodified
2675
2676         * sem_prag.adb: Implement pragma Unmodified
2677
2678         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
2679         (Proc_Next_Component_Or_Discriminant): Fix typo.
2680         Update comments.
2681
2682         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
2683         Unmodified.
2684         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
2685         because the former already takes care of discarding the result.
2686         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
2687         Add comment.
2688
2689         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
2690
2691 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
2692
2693         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
2694         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
2695         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
2696         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
2697         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2698         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2699         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
2700         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2701         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2702         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
2703         (Dynamic_Trampolines_Used): Delete.
2704
2705         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
2706         Turn on stack probing mechanism on LynxOS.
2707
2708 2007-12-19  Bob Duff  <duff@adacore.com>
2709
2710         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
2711         the resulting tail recursion by hand. This prevents running out of
2712         memory on deeply nested concatenations, since Field2 is where the left
2713         operand of concatenations is stored.
2714         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
2715         clarify that it can only return OK or Abandon.
2716
2717         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
2718         operand by iteration, in order to avoid running out of memory on
2719         deeply-nested concatenations. Use the Parent pointer to get back up the
2720         tree.
2721         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
2722          Resolve_Op_Concat_Rest): New procedures split out of
2723         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
2724         clearer.
2725
2726         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
2727         Traverse_Func, because the former already takes care of discarding the
2728         result.
2729
2730         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
2731         because the former already takes care of discarding the result.
2732         (Remove_Warning_Messages): Use appropriate subtype for Status and
2733         Discard 
2734
2735 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2736
2737         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
2738         discriminants forces expansion of the aggregate into assignments.
2739         (Init_Record_Controller):  If the type of the aggregate is untagged and
2740         is not inherently limited, the record controller is not limited either.
2741
2742 2007-12-19  Robert Dewar  <dewar@adacore.com>
2743
2744         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
2745         handling compile time known size of record or array (case of front end
2746         layout active, e.g. in GNAAMP).
2747
2748 2007-12-19  Javier Miranda  <miranda@adacore.com>
2749
2750         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
2751         that forces the construction of static dispatch tables in case of
2752         record subtypes.
2753
2754 2007-12-19  Robert Dewar  <dewar@adacore.com>
2755
2756         * exp_ch9.adb (Null_Statements): Moved to library level
2757         (Trivial_Accept_OK): New function
2758         (Expand_Accept_Declaration): Use Trivial_Accept_OK
2759         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
2760
2761 2007-12-19  Robert Dewar  <dewar@adacore.com>
2762
2763         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
2764         in complex case where array is Volatile.
2765
2766 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2767
2768         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
2769         properly the Ada2005 rules concerning when the current instance of a
2770         record type is aliased.
2771
2772 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2773
2774         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
2775         mangled declaration
2776         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
2777         declarations.
2778         (P_Variant_Part): Cleaner patch for parenthesized discriminant
2779
2780 2007-12-19  Vincent Celier  <celier@adacore.com>
2781
2782         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
2783         package is not known
2784
2785         * prj-attr.ads (Unknown_Package): New constant
2786         Do not crash when an unknown package is in several projects
2787
2788         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
2789         ignored
2790
2791         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
2792         existing package Language_Processing.
2793
2794 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2795             Gary Dismukes  <dismukes@adacore.com>
2796             Samuel Tardieu  <sam@rfc1149.net>
2797
2798         PR ada/15803, ada/15805
2799         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
2800         illegal access subtypes when there is a constrained partial view.
2801         (Check_For_Premature_Usage): New procedure inside
2802         Access_Subprogram_Declaration for checking that an access-to-subprogram
2803         type doesn't reference its own name within any formal parameters or
2804         result type (including within nested anonymous access types).
2805         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
2806         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
2807         context is an access_to_variable, the expression cannot be an
2808         access_to_constant.
2809
2810 2007-12-19  Bob Duff  <duff@adacore.com>
2811
2812         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
2813         (Analyze_Concatenation): Use iteration instead of recursion in order
2814         to avoid running out of stack space for deeply nested concatenations.
2815
2816 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2817             Gary Dismukes  <dismukes@adacore.com>
2818
2819         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
2820         whose renamed entity is a subprogram that requires overriding.
2821         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
2822         issuing an error for premature usage and issue a message that says
2823         'type' rather than 'object'.
2824
2825 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
2826
2827         PR ada/34149
2828         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
2829         presence of a statically tagged operand (Present (Static_Tag)) with
2830         test for Indeterm_Ancestor_Call when determining whether to propagate
2831         the static tag to tag-indeterminate operands (which forces dispatching
2832         on such calls).
2833         (Check_Controlling_Formals): Ada2005, access parameters can have
2834         defaults.
2835         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
2836         not insert subprogram in list of primitive operations if already there.
2837
2838 2007-12-19  Tristan Gingold  <gingold@adacore.com>
2839
2840         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
2841         global variable.
2842
2843 2007-12-19  Thomas Quinot  <quinot@adacore.com>
2844
2845         Part of PR ada/33688
2846         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
2847         datagram info on Linux.
2848
2849 2007-12-19  Vincent Celier  <celier@adacore.com>
2850
2851         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
2852         that the source path name is always found in the dependencies.
2853
2854 2007-12-19  Robert Dewar  <dewar@adacore.com>
2855
2856         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
2857         Fix name of Wide_Wide_Latin_1/9 file names
2858         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
2859         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
2860         Add missing documentation for Ada.Command_Line.Response_File
2861         Update list of warning letters for Warnings pragma
2862         Add documentation for pragma Unmodified
2863
2864 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
2865
2866         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
2867
2868 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
2869
2870         * s-vxwork-alpha.ads: Removed, no longer used.
2871
2872 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
2873
2874         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
2875
2876 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
2877
2878         PR ada/34360
2879         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
2880         mlib-tgt-specific.adb.
2881
2882 2007-12-13  Bob Duff  <duff@adacore.com>
2883
2884         * trans.c (Attribute_to_gnu): Check for violations of the
2885         No_Implicit_Dynamic_Code restriction. This checking used to be done in
2886         the front end, but is moved here so we can make it more accurate.
2887
2888 2007-12-13  Pascal Obry  <obry@adacore.com>
2889
2890         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
2891          version is provided for older GNU/Linux distribution not
2892          supporting thread affinity sets.
2893         
2894         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
2895         call.
2896         (bit_field): New packed boolean type used by cpu_set_t.
2897         (cpu_set_t): New type corresponding to the C type with
2898         the same name. Note that on the Ada side we use a bit
2899         field array for the affinity mask. There is not need
2900         for the C macro for setting individual bit.
2901         (pthread_setaffinity_np): New imported routine.
2902         
2903         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
2904         no null.
2905         (Create_Task): Set the processor affinity mask if information
2906         is present.
2907         
2908         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
2909         
2910 2007-12-13  Robert Dewar  <dewar@adacore.com>
2911
2912         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
2913         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
2914         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
2915         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
2916         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
2917         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
2918         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
2919         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
2920         for subprogram pointers.
2921
2922         * g-ctrl_c.adb: New file.
2923
2924         * g-ctrl_c.ads (Install_Handler): New body.
2925
2926         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
2927         instead of obsolete function Is_Always_Inlined.
2928         (Freeze_Entity): check for tagged type in imported C subprogram
2929         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
2930         (Freeze_Entity): check for convention Ada subprogram pointer in
2931         imported C subprogram.
2932         (Freeze_Fixed_Point_Type): In the case of a base type where the low
2933         bound would be chopped off and go from negative to zero, force
2934         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
2935         bound) so that the size computation for the base type will take
2936         negative values into account.
2937
2938 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
2939             Bob Duff  <duff@adacore.com>
2940             Tristan Gingold  <gingold@adacore.com>
2941
2942         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
2943         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
2944         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
2945         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
2946         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
2947         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
2948         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
2949         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
2950         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
2951         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
2952         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
2953         (Always_Compatible_Rep): New flag to control trampolines globally.
2954         (Dynamic_Trampolines_Used): New flag for implementing the
2955         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
2956         and not yet set correctly for some targets).
2957
2958         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
2959         Simply indirectly call s-stchop when a task is created.
2960
2961         * ali.ads: 
2962         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
2963         appears as an argument (entries A) in an ALI file.
2964
2965         * fe.h (Stack_Check_Limits): Declare new target parameter.
2966         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
2967
2968         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
2969         This variable is declared in C to be sure not subject to elaboration
2970         code.
2971         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
2972         Storage_Error.
2973
2974         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
2975         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
2976
2977         * s-stchop.ads: Add comments.
2978
2979         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
2980         limit method of stack checking.
2981
2982         * s-stchop-limit.ads: New file.
2983
2984 2007-12-13  Robert Dewar  <dewar@adacore.com>
2985
2986         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
2987         a-cihama.adb, g-awk.adb, 
2988         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
2989         warnings
2990
2991         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
2992
2993         * sem.adb: Update handling of assigned value/unreferenced warnings
2994
2995         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
2996
2997         * lib-xref.ads: Improve documentation for k xref type
2998
2999         * lib-xref.adb: 
3000         Update handling of assigned value/unreferenced warnings
3001         (Generate_Reference): Warning for reference to entity for which a
3002         pragma Unreferenced has been given should be unconditional.
3003         If the entity is a discriminal, mark the original
3004         discriminant as referenced.
3005
3006         * sem_warn.ads, sem_warn.adb
3007         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
3008         no entities referenced in package
3009         (Check_One_Unit): Don't give message about no entities referenced in
3010         a package if a pragma Unreferenced has appeared.
3011         Handle new warning flag -gnatw.a/-gnatw.A
3012         Update handling of assigned value/unreferenced warnings
3013
3014         * atree.h: Add flags up to Flag247
3015         (Flag231): New macro.
3016
3017 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
3018
3019         * adaint.h: (__gnat_plist_init): Not defined for RTX.
3020
3021         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
3022         RTX systems.
3023
3024         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
3025         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
3026         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
3027         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
3028
3029         * mingw32.h: 
3030         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
3031
3032         * sysdep.c (winflush_function for RTX): Procedure that does nothing
3033         since we only have problems with Windows 95/98, which are not
3034         supported by RTX.
3035         (__gnat_ttyname): Return the empty string on Nucleus, just as
3036         done on vxworks.
3037
3038 2007-12-13  Robert Dewar  <dewar@adacore.com>
3039
3040         * a-textio.adb, a-textio.ads: 
3041         Extensive changes to private part for wide character encoding
3042
3043         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
3044         (Look_Ahead): Fix mishandling of encoded sequences
3045         Move declaration of Wch_Con to private part (should not be visible)
3046
3047         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
3048         UTF-8. Probably this is never used, but if it is, brackets is
3049         clearly correct.
3050
3051         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
3052         setting wide character encoding for no main program case and when
3053         encoding is specified using -W?
3054         Initialize stack limit of environment task if stack limit method of
3055         stack checking is enabled.
3056         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
3057         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
3058         (Get_Main_Unit_Name): New function.
3059         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
3060         (Gen_Output_File): Set Bind_Main_Program to True for .NET
3061
3062         * bindusg.adb: Add line for -Wx switch
3063
3064         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
3065         Add comments
3066         Add new useful constant WC_Longest_Sequences
3067
3068         * switch-b.adb: Clean up handling of -Wx switch
3069         For -gnatWx, set Wide_Character_Encoding_Method_Specified
3070
3071         * switch-c.adb: -gnatg activates warning on assertion errors
3072         For -gnatWx, set Wide_Character_Encoding_Method_Specified
3073
3074         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
3075
3076 2007-12-13  Robert Dewar  <dewar@adacore.com>
3077             Ed Schonberg  <schonberg@adacore.com>
3078
3079         * a-ngcoty.adb: New pragma Fast_Math
3080
3081         * opt.adb: New pragma Fast_Math
3082
3083         * par-prag.adb: 
3084         Add Implemented_By_Entry to the list of pragmas which do not require any
3085         special processing.
3086         (Favor_Top_Level): New pragma.
3087         New pragma Fast_Math
3088
3089         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
3090         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3091         Expand_Allocator_Expression): Take into account VM_Target
3092         (Expand_Attribute, case 'Identity):  Handle properly the case where
3093         the prefix is a task interface.
3094         New pragma Fast_Math
3095
3096         * par.adb (Next_Token_Is): New function
3097         (P_Pragma): Add Skipping parameter
3098         (U_Left_Paren): New procedure
3099         (U_Right_Paren): New procedure
3100         New pragma Fast_Math
3101
3102         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
3103         subunit
3104         New pragma Fast_Math
3105
3106         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
3107         Implemented_By_Entry.
3108         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
3109         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
3110         items, since it can apply to more than one overloadable entity. Set
3111         new flag Has_Pragma_Inline_Always for Inline_Always case.
3112         (Analyze_Pragma, case Complex_Representation): Improve error message.
3113         (Analyze_Pragma, case Assert): When assertions are disabled build the
3114         rewritten code with Sloc of expression rather than pragma, so new
3115         warning about failing is not deleted.
3116         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
3117         protected types and update error message to reflect that. Test whether
3118         the protected type is allowed for the pragma (an error is issued if the
3119         type has any entries, or components that do not have preelaborable
3120         initialization).
3121         New pragma Fast_Math
3122         (Analyze_Pragma, case No_Return): Handle generic instance
3123
3124         * snames.h, snames.ads, snames.adb: 
3125         Add new predefined name for interface primitive _Disp_Requeue.
3126         New pragma Fast_Math
3127
3128         * a-tags.ads, a-tags.adb: New calling sequence for
3129         String_To_Wide_[Wide_]String
3130         (Secondary_Tag): New subprogram.
3131
3132         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
3133         from Exp_Attr
3134         New calling sequence for String_To_Wide_[Wide_]String
3135         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
3136         the use of the secondary stack for image routines.
3137
3138         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
3139         calling sequence for String_To_Wide_[Wide_]String
3140
3141         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
3142         Ada 95 mode
3143         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
3144         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3145
3146         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
3147         (P_Formal_Part): Use Skipping parameter in P_Pragma call
3148         to improve error recovery
3149
3150         * par-util.adb (Next_Token_Is): New function
3151         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
3152
3153         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
3154         semicolon if missing
3155         (P_Pragma): Implement new Skipping parameter
3156         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3157         Fix location of flag for unrecognized pragma message
3158
3159         * par-tchk.adb (U_Left_Paren): New procedure
3160         (U_Right_Paren): New procedure
3161
3162 2007-12-13  Geert Bosch  <bosch@adacore.com>
3163
3164         * a-tifiio.adb: 
3165         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
3166         the second or later Scaled_Divide would omit leading zeroes,
3167         resulting in too few digits produced and a Layout_Error as result.
3168         (Put): Initialize Pos.
3169
3170 2007-12-13  Robert Dewar  <dewar@adacore.com>
3171
3172         atree.ads, atree.adb (Flag231..Flag247): New functions
3173         (Set_Flag231..Set_Flag247): New procedures
3174         (Basic_Set_Convention): Rename Set_Convention to be
3175         Basic_Set_Convention
3176         (Nkind_In): New functions
3177         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3178
3179         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
3180         instead
3181          of obsolete function Is_Always_Inlined
3182         (Register_Predefined_DT_Entry): Initialize slots of the second
3183         secondary dispatch table.
3184         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3185         (Expand_N_Function_Call): Remove special provision for stack checking.
3186
3187         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
3188         Include _Disp_Requeue in the list of predefined operations.
3189         (Find_Interface_ADT): Modified to fulfill the new specification.
3190         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3191
3192         * par-ch4.adb, nlists.ads, nlists.adb: 
3193         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3194
3195         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
3196         Fix location of flag for unrecognized pragma message
3197
3198         * sem_ch7.adb: Use Nkind_In
3199
3200 2007-12-13  Vincent Celier  <celier@adacore.com>
3201
3202         * opt.ads: 
3203         Indicate what flags are used by the Project Manager, gprbuild and
3204         gprclean.
3205         (Opt.Follow_Links_For_Dirs): New flag
3206         (Warn_On_Assertion_Failure): New flag
3207         (Wide_Character_Encoding_Method_Specified): New flag
3208         (Suppress_All_Inlining): New switch set by -fno-inline
3209         (Real_VMS_Target): New flag
3210         New pragma Fast_Math
3211
3212 2007-12-13  Robert Dewar  <dewar@adacore.com>
3213
3214         * back_end.adb: Recognize -fno-inline
3215
3216 2007-12-13  Robert Dewar  <dewar@adacore.com>
3217
3218         * checks.adb: Fix optimization problem with short-circuited form
3219
3220 2007-12-13  Bob Duff  <duff@adacore.com>
3221
3222         * clean.adb (Usage): Add line for -aP
3223         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
3224         with a parameter "procedure Usage", instead of passing a pointer to a
3225         procedure. This is to eliminate trampolines (since the Usage procedure
3226         is often nested in a main procedure, and it would be inconvenient to
3227         unnest it).
3228
3229         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
3230         to be generic, with a parameter "procedure Callback (...)", instead of
3231         passing a pointer to a procedure. This is to eliminate trampolines
3232         (since the Callback procedure is usually nested).
3233
3234         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
3235         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
3236         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
3237
3238         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
3239         Use the generic Heap_Sort_G instead of Heap_Sort_A.
3240
3241 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3242
3243         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
3244         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
3245         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
3246         (Renamed_In_Spec): New flag
3247         (Has_Pragma_Inline_Always): New flag
3248         Add missing doc for pragma Obsolescent_Warning
3249         Add missing doc for 17 additional unused flags (230-247)
3250         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
3251         Alphabetize with clauses.
3252         Separate Is_Thunk and Has_Thunks flags
3253         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
3254         (Related_Interface): Renamed to Related_Type.
3255         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
3256         (Set_Is_Flag): Restrict the assertion.
3257
3258 2007-12-13  Vincent Celier  <celier@adacore.com>
3259
3260         * errout.adb (Output_Source_Line): Do not keep a trailing space after
3261         the source line number if the source line is empty.
3262
3263 2007-12-13  Geert Bosch  <bosch@adacore.com>
3264
3265         * eval_fat.adb (Decompose_Int): Handle argument of zero.
3266         (Compose): Remove special casing of zero.
3267         (Exponent): Likewise.
3268         (Fraction): Likewise.
3269         (Machine): Likewise.
3270         (Decompose): Update comment.
3271
3272 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3273
3274         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
3275         limited ancestor part, initialize controllers of enclosing record
3276         before expanding ancestor aggregate.
3277         (Gen_Assign): If a component of the aggregate is box-initialized, add
3278         code to call Initialize if the component is controlled, and explicit
3279         assignment of null if the component is an access type.
3280
3281         Handle properly aggregates for limited types that appear in object
3282         declarations when the aggregate contains controlled values such as
3283         protected types.
3284         When expanding limited aggregates into individual components, do not
3285         call Adjust on controlled components that are limited.
3286
3287 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3288
3289         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
3290
3291 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3292
3293         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
3294         predefined primitive _Disp_Requeue.
3295         (Make_Predefined_Primitive_Specs): Create the spec for predefined
3296         primitive _Disp_Requeue.
3297         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
3298         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
3299         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
3300         an interface type. In case of limited interfaces we now declare all the
3301         predefined primitives associated with synchronized interfaces as
3302         abstract.
3303         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
3304         declarations.
3305         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
3306         tagged type is an interface type and there is no user-defined equality
3307         function.
3308         Add also bodies of predefined primitives associated with synchronized
3309         interfaces.
3310         (Freeze_Record_Type): Do not build bodies of predefined primitives of
3311         interface types because they are now defined abstract.
3312         Add missing documentation.
3313         (Expand_Record_Controller): Update occurrence of Related_Interface
3314         to Related_Type.
3315         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
3316         (Expand_N_Object_Declaration): Take into account VM_Target when handling
3317         class wide interface object declaration.
3318         (Expand_Previous_Access_Type): Do not create a duplicate master entity
3319         if the access type already has one.
3320         (Expand_N_Object_Declaration): Defend against attempt to validity check
3321         generic types. Noticed for -gnatVcf specified with previous errors.
3322
3323 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3324
3325         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3326         Expand_Allocator_Expression): Take into account VM_Target
3327
3328         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
3329         secondary stack when VM_Target /= No_VM
3330
3331 2007-12-13  Javier Miranda  <miranda@adacore.com>
3332             Ed Schonberg  <schonberg@adacore.com>
3333
3334         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
3335         Is_Complation_Unit by Is_Library_Level_Entity in the code
3336         that decides if the static dispatch tables need to be built.
3337         (Wrap_Transient_Declaration): Do not generate a finalization call if
3338         this is a renaming declaration and the renamed object is a component
3339         of a controlled type.
3340
3341 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
3342
3343         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
3344         In the case where the renamed subprogram is a dereference, call
3345         Force_Evaluation on the prefix.
3346
3347 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3348             Ed Schonberg  <schonberg@adacore.com>
3349
3350         * exp_ch9.adb (Expand_N_Asynchronous_Select,
3351         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
3352         comment reformatting.
3353         (Set_Privals): Inherit aliased flag from formal. From code reading.
3354         (Build_Simple_Entry_Call): Out parameters of an access type are passed
3355         by copy and initialized from the actual. This includes entry parameters.
3356         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
3357         and Ada 2005 models of requeue.
3358         (Null_Statements): Still connsider do-end block null if it contains
3359         Unreferenced and Warnings pragmas.
3360         (Expand_N_Accept_Statement): Do not optimize away null do end if
3361         dispatching policy is other than defaulted.
3362         (Expand_N_Timed_Entry_Call): When the triggering statement is a
3363         dispatching call, manually analyze the delay statement.
3364         (Find_Parameter_Type): Move subprogram to Sem_Util.
3365
3366 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3367             Javier Miranda  <miranda@adacore.com>
3368
3369         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
3370         _Disp_Requeue occupies dispatch table slot number 15. Move
3371         _Disp_Timed_Select to slot 16.
3372         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
3373         generate the spec and body of _Disp_Reqeueue.
3374         (Make_DT): Build and initialize the second dispatch table.
3375         Handle initialization of RC_Offset when the parent
3376         is a private type with variable size components.
3377         (Make_Secondary_DT): Complete documentation. Add support to
3378         initialize the second dispatch table.
3379         (Make_Tags): Generate the tag of the second dispatch table.
3380         (Register_Primitive): Add support to register primitives in the
3381         second dispatch table.
3382
3383 2007-12-13  Pascal Obry  <obry@adacore.com>
3384
3385         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
3386         Windows. This signal is used by gnatmake to kill child processes for
3387         example.
3388
3389 2007-12-13  Javier Miranda  <miranda@adacore.com>
3390
3391         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
3392         support for generic dispatching constructor calls in which we need to
3393         locate the tag of a secondary dispatch table associated with an
3394         interface type to properly dispatch the call.
3395         (Expand_N_Attribute_Reference [case Address],
3396         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
3397         handling of VM targets.
3398
3399 2007-12-13  Robert Dewar  <dewar@adacore.com>
3400             Ed Schonberg  <schonberg@adacore.com>
3401
3402         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
3403         assert fail
3404
3405         * ug_words: Add entries for -gnatw.a -gnatw.A
3406
3407         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
3408         literal is a subtype with non-static constraints, use the base type of
3409         the context as the base of the string subtype, to prevent type
3410         mismatches in gigi.
3411         (Resolve_Actuals): If the actual is an entity name, generate a
3412         reference before the actual is resolved and expanded, to prevent
3413         spurious warnings on formals of enclosing protected operations.
3414         (Analyze_Overloaded_Selected_Component): If type of prefix if
3415         class-wide, use visible components of base type.
3416         (Resolve_Selected_Component): Ditto.
3417         (Resolve_Short_Circuit): Detect case of pragma Assert argument
3418         evaluating to False, and issue warning message.
3419
3420         * usage.adb: Add lines for -gnatw.a and -gnatw.A
3421
3422 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3423
3424         * g-calend.ads (No_Time): New constant, to represent an uninitialized
3425         time value
3426
3427         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
3428         formats.
3429         (Month_Name_To_Number): New subprogram
3430
3431         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
3432         letter to upper-case.
3433
3434 2007-12-13  Robert Dewar  <dewar@adacore.com>
3435             Ed Schonberg  <schonberg@adacore.com>
3436
3437         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
3438
3439         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
3440         context is a limited view, use non-limited view when available. If the
3441         non-limited view is an unconstrained array, this enforces consistency
3442         requirements in 3.10.2 (27).
3443         (Layout_Type): For an access type whose designated type is a limited
3444         view, examine its declaration to determine if it is an unconstrained
3445         array, and size the access type accordingly.
3446         (Layout_Type): Do not force 32-bits for convention c subprogram
3447         pointers in -gnatdm mode, only if real vms target.
3448
3449         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
3450         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3451         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
3452         violations of the No_Implicit_Dynamic_Code restriction.
3453         (Resolve_Attribute, case 'Access): If designated type of context is a
3454         limited view, use non-limited view when available. If the non-limited
3455         view is an unconstrained array, this enforces consistency requirements
3456         in 3.10.2 (27).
3457         (Layout_Type): For an access type whose designated type is a limited
3458         view, examine its declaration to determine if it is an unconstrained
3459         array, and size the access type accordingly.
3460
3461 2007-12-13  Vincent Celier  <celier@adacore.com>
3462
3463         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
3464         object directory of main project does not exist.
3465         On VMS, correctly set then environment variable for the source
3466         directories.
3467
3468 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
3469
3470         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
3471         set to True this procedure will create the value of type REG_EXPAND_SZ.
3472         It was only possible to create REG_SZ values before.
3473
3474 2007-12-13  Robert Dewar  <dewar@adacore.com>
3475
3476         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
3477         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
3478         namet-sp.adb, namet-sp.ads: New files.
3479
3480         * g-speche.adb: Use generic routine in g-spchge
3481
3482         * s-wchcnv.ads, s-wchcnv.adb: 
3483         Minor code cleanup (make formal type consistent with spec)
3484
3485         * namet.adb: Update comments.
3486
3487         * par-endh.adb (Evaluate_End_Entry): Use new
3488         Namet.Sp.Is_Bad_Spelling_Of function
3489
3490         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
3491
3492         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
3493         ancestor is an access type initialized with a box, set its type
3494         explicitly, for use in subsequent expansion.
3495         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
3496         function
3497
3498 2007-12-13  Robert Dewar  <dewar@adacore.com>
3499
3500         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
3501         access Vstring)
3502
3503 2007-12-13  Robert Dewar  <dewar@adacore.com>
3504
3505         * inline.adb (Back_End_Cannot_Inline): Use new flag
3506         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3507
3508         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
3509         Has_Pragma_Inline_Always instead.
3510         of obsolete function Is_Always_Inlined
3511         (Build_Body_To_Inline): Same change
3512         (Cannot_Inline): Same change
3513         Do not give warning on exception raise in No_Return function
3514
3515         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
3516         component has two inconsistent component clauses in the same record
3517         representation clause, favor the message that complains about
3518         duplication rather than inconsistency.
3519         Update comments.
3520         (Record_Representation_Clause): Do not warn on missing component
3521         clauses for inherited components of a type extension.
3522         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
3523         an overloadable item if it is a pragma that can apply to multiple
3524         overloadable entities (e.g. Inline) because a pragma cannot be on
3525         more than one chain at a time.
3526         (Validate_Unchecked_Conversion): Add code to warn on unchecked
3527         conversion where one of the operands is Ada.Calendar.Time.
3528         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
3529         For now, ignore Component_Size clause on VM targets, as done for
3530         pragma Pack.
3531
3532 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3533             Vincent Celier  <celier@adacore.com>
3534
3535         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
3536         string
3537         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
3538         prj.ads
3539         (Hash): Move instantiation of System.HTable.Hash from spec to body
3540         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
3541         systems, since we do not need to recompute the Name_Id for the canonical
3542         file name.
3543         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3544         as a parameter. This parameter is in fact always "ada" in all calls, and
3545         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
3546         while loading a project with 40000 files
3547
3548         * prj-attr.adb: Fix name of attribute Dependency_Driver
3549         Change the kind of indexing for attribute Root
3550
3551         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
3552         variables already declared, in case constructions.
3553
3554         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
3555         Current_Object_Path_File to No_Path.
3556
3557         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
3558         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
3559
3560         * prj-makr.adb: new parameter Current_Dir
3561
3562         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
3563         Ada sources when language is not Ada.
3564         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3565         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
3566         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
3567         (Locate_Directory): Always resolve links when computing Canonical_Path
3568         (Look_For_Sources): Make sure that Name_Buffer contains the file name
3569         in Source_Files before checking for the presence of a directory
3570         separator.
3571         Optimize calls to Name_Find when on case sensitive systems.
3572         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3573         as a parameter.
3574         (Prj.Nmsc.Check): new parameter Current_Dir
3575         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
3576         cannot be empty and the spec suffix cannot be the same as the body or
3577         separate suffix.
3578         (Get_Unit): When a file name can be of several unit kinds (spec, body or
3579         subunit), always consider the longest suffix.
3580         (Check_Configuration): Do not issue an error if there is no compiler
3581         for a language. Just issue a warning and ignore the sources for the
3582         language.
3583         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
3584         not empty.
3585         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
3586         (Unit_Exceptions): New hash table
3587         (Check_Naming_Schemes): Check if a file that could be a unit because of
3588         the naming scheme is not in fact a source because there is an exception
3589         for the unit.
3590         (Look_For_Sources): Put the unit exceptions in hash table
3591         Unit_Exceptions
3592         (Get_Unit_Exceptions): Give initial value No_Source to local variable
3593         Other_Part to avoid exception when code is compiled with validity
3594         checking.
3595         (Get_Sources_From_File): Check that there is no directory information
3596         in the file names.
3597         (Look_For_Sources): Check that there is no directory information in the
3598         list of file names in Source_Files.
3599         (Look_For_Sources): In multi-language mode, do not allow exception file
3600         names that are excluded.
3601         (Excluded_Sources_Htable): New hash table
3602         (Search_Directories.Check_File): New procedure to simplify
3603         Search_Directories.
3604         (Search_Directories): Do not consider excluded sources
3605         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
3606         Search_Directories.
3607         (Get_Exceptions): Set component Lang_Kind of Source_Data
3608         (Get_Unit_Exceptions): Ditto
3609         (Search_Directories): Ditto
3610
3611         * prj-pars.adb: new parameter Current_Dir
3612
3613         * prj-part.ads, prj-part.adb: 
3614         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3615         (Opt.Follow_Links_For_Dirs): New flag
3616         (Project_Path_Name_Of): Cache information returned by this routine as
3617         Locate_Regular_File is a costly routine. The code to output a log
3618         information and the effective call to Locate_Regular_File is now
3619         factorized into a routine (code clean-up).
3620         (Parse, Parse_Single_Project): new parameter Current_Dir
3621         When main project file cannot be found, indicate in the error
3622         message the project path that was used to do the search.
3623
3624         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
3625         (Prj.Proc.Process*): new parameter Current_Dir
3626
3627         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
3628
3629 2007-12-13  Bob Duff  <duff@adacore.com>
3630
3631         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
3632         procedure to be called from the back end to check the
3633         No_Implicit_Dynamic_Code restriction.
3634
3635 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3636
3637         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
3638         Fixes another case where RTE_Available_Call was ignored instead of being
3639         taken into account.
3640         (Load_Fail): Ditto.
3641
3642         * rtsfind.ads: Add new entries.
3643
3644 2007-12-13  Robert Dewar  <dewar@adacore.com>
3645
3646         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
3647         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
3648
3649         * scn.adb: Implement BOM recognition
3650
3651 2007-12-13  Thomas Quinot  <quinot@adacore.com>
3652             Ed Schonberg  <schonberg@adacore.com>
3653
3654         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
3655         subprogram body that acts as its own spec may not have a non-private
3656         WITH clause on a private sibling.
3657         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
3658         child unit is a renaming, create an implicit with_clause on that
3659         parent, and not on the unit it renames, to prevent visibility errors
3660         in the current unit.
3661
3662 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3663
3664         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
3665         renaming declaration, use the Slocs of the formal parameters from the
3666         declaration of the formal subprogram when creating the formal parameter
3667         entities in the renaming declaration.
3668         (Analyze_Formal_Type_Declaration): Change the placement of the error
3669         message concerning illegal known discriminants. It is now posted on the
3670         type rather than on the first discriminant. This change ensures early
3671         error report.
3672         (Freeze_Subprogram_Body): If the generic subprogram is nested within
3673         the package body that contains the instance, do not generate an
3674         out-of-place freeze node for the enclosing package.
3675         (Collect_Previous_Instantiations): Ignore internal instantiations
3676         generated for formal packages.
3677         (Validate_Derived_Type_Instance): Add a check that when a formal
3678         derived type is Known_To_Have_Preelab_Init then the actual type must
3679         have preelaborable initialization, and issue an error when this
3680         condition is violated.
3681
3682 2007-12-13  Robert Dewar  <dewar@adacore.com>
3683
3684         * s-imenne.adb, s-imenne.ads: New files.
3685
3686         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
3687         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
3688         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
3689         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
3690         s-imgwch.ads: New calling sequence for Image routines to avoid sec
3691         stack usage.
3692
3693 2007-12-13  Javier Miranda  <miranda@adacore.com>
3694             Ed Schonberg  <schonberg@adacore.com>
3695
3696         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
3697         generation of spurious error if parent is an interface type; caused
3698         because predefined primitive bodies will be generated later by
3699         Freeze_Record_Type.
3700         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
3701         flag.
3702         (Derive_Subprograms): Handle derivations of predefined primitives
3703         after all the user-defined primitives to ensure that they are
3704         found in proper order in instantiations.
3705         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
3706         of Related_Interface to Related_Type.
3707         (Record_Type_Declaration): Minor reordering of calls to decorate the
3708         Tag component because the entity must have set its Ekind attribute
3709         before setting its Is_Tag attribute.
3710         (Analyze_Subtype_Declaration): In the case of subtypes with
3711         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
3712
3713 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3714             Ed Schonberg  <schonberg@adacore.com>
3715
3716         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
3717         statement to the list of contexts where a selected component with a
3718         concurrent tagged type prefix should yield a primitive operation.
3719         (Find_Primitive_Operation): Handle case of class-wide types.
3720         (Analyze_Overloaded_Selected_Component): If type of prefix is
3721         class-wide, use visible components of base type.
3722         (Resolve_Selected_Component): Ditto.
3723         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
3724         formal of a generic subprogram. find candidate interpretations by
3725         scanning the list of generic formal declarations.:
3726         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
3727         type from a limited_with_clause, and the full view is available, use it
3728         for subsequent semantic checks.
3729         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
3730         (Find_Primitive_Operation): New function.
3731         (Analyze_Overloaded_Selected_Component): insert explicit dereference
3732         only once if several interpretations of the prefix yield an access type.
3733         (Try_Object_Operation): Code and comment cleanup.
3734         (Analyze_Selected_Component): Reorder local variables. Minot comment and
3735         code reformatting. When the type of the prefix is tagged concurrent, a
3736         correct interpretation might be available in the primitive and
3737         class-wide operations of the type.
3738
3739 2007-12-13  Robert Dewar  <dewar@adacore.com>
3740             Ed Schonberg  <schonberg@adacore.com>
3741
3742         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
3743         renaming entry as subprogram using rename-as-body if subprogram spec
3744         frozen.
3745         (Use_One_Type): The clause is legal on an access type whose designated
3746         type has a limited view.
3747         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3748         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3749         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
3750         operation denoted by a selected component.
3751         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
3752         it can be an expression, possibly overloaded, that returns a task or
3753         an access to one.
3754
3755 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3756             Gary Dismukes  <dismukes@adacore.com>
3757
3758         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
3759         requeue statement is dispatching. Do not emit an error when the name is
3760         not an entry and the context is a dispatching select. Add code to
3761         perform subtype conformance between the formals of the current entry
3762         and those of the target interface primitive.
3763         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
3764         Timed_Entry_Call): Analyze the triggering statement as the first step of
3765         the processing. If this is a dispatching select, postpone the analysis
3766         of all select statements until the Expander transforms the select. This
3767         approach avoids generating duplicate identifiers after the Expander has
3768         replicated some of the select statements. In case the Expander is
3769         disabled, perform regular analysis.
3770         (Check_Triggering_Statement): New routine.
3771         (Analyze_Requeue): Exclude any interpretations that are not entries when
3772         checking overloaded names in a requeue. Also test type conformance for
3773         matching interpretations rather than requiring subtype conformance at
3774         that point to conform with the RM's resolution rule for requeues.
3775
3776 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3777
3778         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
3779         inherited operation is a defaulted tag-indeterminate call, and there is
3780         a statically tagged actual, use the static tag as a controlling actual
3781         for the defaulted actual.
3782
3783 2007-12-13  Geert Bosch  <bosch@adacore.com>
3784
3785         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
3786         context, so do not call Check_Non_Static_Context.
3787
3788 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3789
3790         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
3791         whether formal E is an entity which may have parameters.
3792
3793 2007-12-13  Bob Duff  <duff@adacore.com>
3794             Javier Miranda  <miranda@adacore.com>
3795             Robert Dewar  <dewar@adacore.com>
3796
3797         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
3798         (Set_Convention): New procedure to set the Convention flag, and in
3799         addition make sure the Favor_Top_Level flag is kept in sync (all
3800         foreign-language conventions require Favor_Top_Level = True).
3801         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
3802         to Related_Type.
3803         (Collect_Interfaces_Info): Minor update to handle the two secondary
3804         dispatch tables. Update occurrence of Related_Interface to Related_Type.
3805         (Generate_Parent_Ref): Add parameter to specify entity to check
3806         (Is_Preelaborable_Expression): Allow the name of a discriminant to
3807         initialize a component of a type with preelaborable initialization.
3808         This includes the case of a discriminal used in such a context.
3809         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
3810         latest Ada 2005 rules about renaming and 'Access of
3811         discriminant-dependent components.
3812         (Check_Nested_Access): Add handling when there are no enclosing
3813         subprograms (e.g. case of a package body).
3814         (Find_Parameter_Type): Factor routine from several other compiler files.
3815         Remove routine from Find_Overridden_Synchronized_Primitive.
3816
3817 2007-12-13  Thomas Quinot  <quinot@adacore.com>
3818
3819         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
3820         an invalid access to an uninitialized slot in the
3821         Source_File_Index_Table.
3822
3823 2007-12-13  Thomas Quinot  <quinot@adacore.com>
3824
3825         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
3826
3827 2007-12-13  Bob Duff  <duff@adacore.com>
3828
3829         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
3830         access-to-subprogram types in this package.
3831
3832 2007-12-13  Olivier Hainque  <hainque@adacore.com>
3833
3834         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
3835         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
3836         Stack_Overlay_Address and document that we are using an internal
3837         abstraction.
3838         (Byte_Size, Unsigned_32_Size): Remove, now useless.
3839         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
3840         consistently throughout the various implementation pieces.
3841
3842         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
3843         overlay we are using to fill the stack area with patterns.
3844         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
3845         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
3846         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
3847
3848 2007-12-13  Robert Dewar  <dewar@adacore.com>
3849
3850         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
3851
3852 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3853
3854         * s-tassta.adb: 
3855         (Create_Task): Take into account tasks created by foreign threads.
3856         Code clean up: use constants instead of hard coded values.
3857
3858 2007-12-13  Robert Dewar  <dewar@adacore.com>
3859
3860         * styleg.adb (Check_Comment): More liberal rules for comment placement
3861
3862 2007-12-13  Olivier Hainque  <hainque@adacore.com>
3863
3864         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
3865         of Procedure Value instead of Frame Pointer as the invocation
3866         identifier associated with the instruction pointer in each traceback
3867         entry.
3868
3869         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
3870         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
3871         Pointer as the invocation identifier passed to tbk$symbolize.
3872
3873         * s-traent-vms.ads, s-traent-vms.adb
3874         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
3875         Procedure Value instead of Frame Pointer as the invocation identifier
3876         passed to tbk$symbolize.
3877
3878 2007-12-13  Robert Dewar  <dewar@adacore.com>
3879
3880         * tbuild.ads, tbuild.adb: 
3881         Fix location of flag for unrecognized pragma message
3882
3883 2007-12-13  Robert Dewar  <dewar@adacore.com>
3884
3885         * treepr.ads, treepr.adb: (pl): implement use of positive value
3886         shorthands
3887
3888 2007-12-13  Robert Dewar  <dewar@adacore.com>
3889
3890         * xeinfo.adb: Remove warnings
3891         * xnmake.adb: Remove warnings
3892         * xsinfo.adb: Remove warnings
3893         * xtreeprs.adb: Remove warnings
3894         * xsnames.adb: Remove warnings
3895
3896         * a-ngcoar.adb: Fix typo.
3897         * s-interr.adb: Minor reformatting
3898         * env.c: Minor reformatting.
3899         * g-bytswa.adb: Minor reformatting.
3900         * g-rannum.ads: Minor documentation improvements
3901         * s-tasinf-mingw.adb: Minor header fix
3902         * a-clrefi.adb: Minor reformatting
3903         * g-sttsne.ads: Minor documentation improvement
3904         * g-sttsne-locking.ads: Minor documentation improvement
3905         * g-soliop-solaris.ads: Minor documentation improvement
3906         * g-soliop-mingw.ads: Minor documentation improvement
3907         * g-soliop.ads: Minor documentation improvement
3908         * exp_aggr.ads: Minor reformatting
3909         * debug.adb: Add documentation for the gprbuild debug flags
3910         * exp_ch2.adb: Use Nkind_In to simplify code throughout
3911         * exp_pakd.adb: Minor reformatting
3912
3913         * g-altive.ads, g-alleve.adb: Remove assertions.
3914         Add comment about minor differences between targets regarding
3915         floating-point operations.
3916
3917         * g-thread.adb: Remove pragma unreferenced.
3918         * lib.ads: Minor reformatting
3919         * par-ch9.adb: Minor reformatting of error messages
3920         * sem_case.adb: Minor reformatting
3921         * s-fileio.adb: Minor reformattinng
3922         * s-vmexta.ads: Minor typo
3923         * vxaddr2line.adb: 
3924         Take into account 'Success' value as per new GNAT warning.
3925
3926 2007-12-13  Vincent Celier  <celier@adacore.com>
3927
3928         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
3929         even on Windows
3930
3931 2007-12-13  Robert Dewar  <dewar@adacore.com>
3932             Bob Duff  <duff@adacore.com>
3933
3934         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
3935         Document that suffixes may be terminations of each others
3936         Add doc for -gnatw.a and -gnatw.A
3937         Document gnatbind -Wx switch
3938         Document BOM recognition
3939         Document pragma Implemented_By_Entry.
3940         Document new units.
3941
3942         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
3943         Add doc for pragma Unreferenced suppressing no entities referenced msg
3944         Add documentation of GNAT.Directory_Operations.Iteration
3945         Add documentation of GNAT.Random_Numbers
3946         Add documentation for pragma Shared.
3947         Correct documentation for Bit_Order
3948         Add documentation for the Pool_Address attribute.
3949         Fix and improve documentation of pragma machine_attribute.
3950         New pragma Fast_Math
3951         Document BOM recognition
3952
3953         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
3954         Add /Wide_Character_Encoding for binder
3955         Add qualifier for the new gnatpp option --no-separate-loop-then
3956
3957 2007-12-13  Matthew Heaney  <heaney@adacore.com>
3958
3959         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
3960         which generic formal operations are called for each operation.
3961
3962 2007-12-13  Olivier Hainque  <hainque@adacore.com>
3963
3964         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
3965         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
3966
3967 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3968
3969         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
3970         Reference_Dir unless we actually need it.
3971
3972 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
3973             Tristan Gingold  <gingold@adacore.com>
3974
3975         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
3976
3977         * s-osprim-vms.adb,
3978         a-calend-vms.adb: Remove pragma warning off and add pragma
3979         unreferenced.
3980
3981 2007-12-13  Robert Dewar  <dewar@adacore.com>
3982
3983         * impunit.adb: Add entries for missing units
3984
3985         * Makefile.rtl: Add new run-time units.
3986
3987         * Make-lang.in:  Update dependencies.
3988
3989 2007-12-13  Bob Duff  <duff@adacore.com>
3990
3991         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
3992         types, set Can_Use_Internal_Rep appropriately, based on
3993         Always_Compatible_Rep_On_Target.
3994
3995 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
3996             Arnaud Charlet  <charlet@adacore.com>
3997
3998         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
3999         it to the front end and setting the aamp_target environment variable
4000         to the switch's argument to ensure that gnaampbind and gnaamplink will
4001         take the specified library into account.
4002         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
4003         target, since the CIL compiler supports an "object" file (.il files).
4004
4005 2007-12-13  Vincent Celier  <celier@adacore.com>
4006
4007         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
4008         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
4009
4010 2007-12-13  Geert Bosch  <bosch@adacore.com>
4011
4012         * s-parame-vxworks.adb: 
4013         Update comments to reflect usage of this package by Nucleus.
4014
4015 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
4016
4017         * i-vxwork.ads: Kill new warning on Convention C, since changing the
4018         spec would break code.
4019
4020         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
4021
4022         * system-vxworks-alpha.ads: Removed.
4023
4024 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
4025
4026         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
4027
4028 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
4029
4030         PR ada/34366
4031         * sem_ch3.adb (Designates_T): New function.
4032         (Mentions_T): Factor reusable part of the logic into Designates_T.
4033         Consider non-access parameters and access and non-access result.
4034         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
4035         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
4036
4037         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
4038
4039 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
4040
4041         PR ada/34361
4042         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
4043         the new implementation of target-specific calls.
4044
4045 2007-12-07  Olivier Hainque  <hainque@adacore.com>
4046
4047         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
4048         the designated full view, only follow a second level Full_View link
4049         for Non_Limited_Views of from_limited_with references.
4050         
4051 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
4052
4053         PR ada/15805
4054         * sem_ch6.adb (Process_Formals): Prevent an access type formal
4055         to be initialized with an access to constant object.
4056
4057         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
4058         when an access to constant is used to initialize an access
4059         value.
4060
4061         PR ada/21346
4062         * a-direct.adb (Compose): Containing_Directory can be an empty string.
4063
4064 2007-12-07  Olivier Hainque  <hainque@adacore.com>
4065
4066         PR ada/34173
4067         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
4068         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
4069         this is from an alignment clause on the GNAT entity.
4070         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
4071         to distinguish the case where we set it from the type's alignment.
4072         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
4073         whether this alignment was set from an explicit alignment clause.
4074
4075 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
4076
4077         * decl.c (make_packable_type): Revert last change.
4078         (gnat_to_gnu_field): Avoid setting size and position multiple times.
4079         * utils.c (finish_record_type): Retrieve the real name of the type.
4080
4081 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
4082
4083         * trans.c (lvalue_required_p): Take base node directly instead
4084         of its parent.  Rename second parameter to 'gnu_type'.
4085         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
4086         <N_Slice>: Likewise.
4087         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
4088         Adjust calls to lvalue_required_p.
4089
4090 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
4091
4092         PR ada/21489
4093         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
4094         parameters of an entry call.
4095
4096 2007-12-03  Robert Dewar  <dewar@adacore.com>
4097             Samuel Tardieu  <sam@rfc1149.net>
4098
4099         PR ada/34287
4100         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
4101         of variables declared in a library-level package.
4102     
4103 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
4104
4105         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
4106         of Empty_String'Unchecked_Access.
4107
4108         * Makefile.in: Add support for sh4-linux.
4109
4110         * system-linux-sh4.ads: New file.
4111
4112 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
4113
4114         PR ada/33722
4115         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
4116         and its argument must not be free()ed.
4117
4118 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
4119
4120         * decl.c (make_packable_type): Retrieve the real name of the type.
4121         (maybe_pad_type): Simplify similar code.
4122
4123 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
4124
4125         PR ada/15804
4126         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
4127         than an identifier is used after "case" in a variant_part.
4128
4129         PR ada/17318
4130         * par-ch4.adb (Is_Parameterless_Attribute): New map.
4131         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
4132         attribute name or not depending on the new map.
4133
4134         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
4135         returning a string or a type will not be called with improper
4136         arguments.
4137
4138         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
4139
4140         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
4141
4142         PR ada/32792
4143         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
4144         Signal an error when attribute argument is a fixed-point value of
4145         an unknown type.
4146
4147         PR ada/22559
4148         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
4149         a derived ordinary fixed point type.
4150
4151         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
4152         RM_Size when a Small clause is found.
4153
4154 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
4155
4156         PR 34081/C++
4157         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
4158         Pass 'false' for the new allocate_struct_function parameter.
4159         * utils.c (build_function_stub): Likewise.
4160
4161 2007-11-25  Richard Guenther  <rguenther@suse.de>
4162
4163         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
4164         (gnat_poplevel): Likewise.
4165
4166 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
4167
4168         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
4169         strict alignment, no alignment clause and a known static size, cap
4170         the type alignment to the greatest power of 2 factor of the size.
4171         (gnat_to_gnu_field): If the field has a component clause, is aliased
4172         or of a type with strict alignment, require that its size be equal to
4173         that of the type.
4174         (validate_size): Use the type size as the minimum size for a type with
4175         strict alignment.
4176
4177 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
4178
4179         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
4180         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4181         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
4182         Use 'Access instead of 'Unchecked_Access in second and third
4183         arguments of pthread_sigmask.
4184
4185 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4186
4187         * decl.c (ceil_alignment): New function.
4188         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
4189         (make_packable_type): Likewise.
4190
4191 2007-11-22  Olivier Hainque  <hainque@adacore.com>
4192
4193         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
4194         to fit in 80 columns.
4195
4196 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
4197
4198         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
4199         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
4200
4201 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
4202
4203         PR ada/34098
4204         * misc.c (gnat_adjust_rli): Delete.
4205         (gnat_init): Do not initialize the translation code here.
4206         Do not call set_lang_adjust_rli.
4207         * trans.c (init_code_table): Make static.
4208         (gnat_init_stmt_group): Delete.
4209         (gigi): Initialize the translation code entirely here.
4210         Emit debug info for the common types here instead of...
4211         * utils.c (gnat_init_decl_processing): ...here.
4212         * gigi.h (init_code_table): Delete.
4213         (gnat_init_stmt_group): Likewise.
4214
4215 2007-11-16  Olivier Hainque  <hainque@adacore.com>
4216
4217         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
4218         retrieving an allocator return value from a super-aligned address from
4219         here to ...
4220         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
4221         expect a super-aligned address for a fat or thin pointer.
4222         
4223 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
4224
4225         * trans.c (call_to_gnu): Always set the source location on the call
4226         expression.  If the function returns-by-target, also set it on the
4227         address expression.
4228
4229 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
4230
4231         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
4232         sections of non-supported Interix target.
4233
4234         * s-osinte-interix.ads: Removed.
4235
4236         * i-cstrin.ads (chars_ptr): Make it a C convention type.
4237
4238 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
4239
4240         * a-tasatt.adb: Add a comment at the beginning of the package
4241         explaining why in general 'Unchecked_Access must be used instead
4242         of 'Access.
4243
4244         * sem_prag.adb (Process_Convention): Move the test for the
4245         entity on which the Convention pragma applies down to also
4246         forbid pragma Convention on enumeration literals reached
4247         through renamings.
4248
4249 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
4250
4251         * a-tasatt.adb: Revert previous change for this file as it will
4252         generate an error when this package is instantiated from a
4253         local context.
4254
4255 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
4256
4257         * a-tasatt.adb: Type Wrapper should be declared in comment instead
4258         of already declared type Node_Access.
4259         Use 'Access instead of 'Unchecked_Access when applicable. Local
4260         lifetime is the one of the package.
4261         (Set_Value): W is allocated on the heap.
4262
4263         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
4264         applicable.
4265         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
4266         access type.
4267         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
4268         access type.
4269
4270         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
4271         applicable.
4272         (elaboration code): Timer_Queue lifetime is the one of the
4273         package.
4274
4275         * tracebak.c (i386 alternative): Remove useless comparaison
4276         which is always false; LOWEST_ADDRESS is 0 and is never greater
4277         than an unsigned integer.
4278
4279         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
4280         embedded check for "Ada_Version >= Ada_05".
4281
4282 2007-11-07  Olivier Hainque  <hainque@adacore.com>
4283
4284         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
4285         craft and expand comment.
4286
4287 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
4288
4289         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4290
4291 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4292
4293         * misc.c (gnat_handle_option): Replace call to abort with
4294         call to gcc_unreachable.
4295         (gnat_init): Likewise.
4296         (gnat_expand_expr): Likewise.
4297         (fp_prec_to_size): Likewise.
4298         (fp_size_to_prec): Likewise.
4299
4300 2007-10-23  Richard Guenther  <rguenther@suse.de>
4301
4302         PR bootstrap/33608
4303         * tracebak.c: #undef abort after including system.h.
4304
4305 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
4306
4307         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
4308         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
4309         for win32 targets.
4310         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
4311
4312 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
4313
4314         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4315         Set the protection status of the guard page based on the value of On.
4316
4317         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
4318
4319         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
4320         (Exit_Task): Pass False to Hide_Yellow_Zone.
4321
4322 2007-10-15  Robert Dewar  <dewar@adacore.com>
4323
4324         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
4325         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
4326         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
4327         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
4328         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
4329         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
4330         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
4331         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
4332         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
4333         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
4334         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
4335         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
4336         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
4337         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
4338         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
4339         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
4340         Minor reformatting.
4341         Add Unreferenced and Warnings (Off) pragmas for cases of
4342         variables modified calls where they are IN OUT or OUT parameters and
4343         the resulting values are not subsequently referenced. In a few cases,
4344         we also remove redundant code found by the new warnings.
4345
4346         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
4347         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
4348         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
4349         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
4350         warning controlled by -gnatw.o that warns on cases of out parameter
4351         values being ignored.
4352
4353 2007-10-15  Geert Bosch  <bosch@adacore.com>
4354
4355         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
4356
4357         * expect.c: Initial port to arm-mentor-nucleus.
4358         Use kill for __gnat_kill() on VMS.
4359
4360 2007-10-15  Emmanuel Briot  <briot@adacore.com>
4361
4362         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
4363         value.
4364         (Xref_Record): Change type for Line, since in the case of a reference to
4365         a predefined entity (as happens for array index types), the line is set
4366         to 0.
4367         Add support for parsing multiple array index types info, or
4368         multiple inherited interfaces info. This information cannot be stored
4369         in Xref_Entity_Record, which only supports a single instance of Tref_*,
4370         and is therefore stored in the list of references instead. It has a
4371         special treatement later on in tools that use this information.
4372
4373 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4374
4375         * debug.adb: Document use of -gnatd.a and -gnatd.I
4376
4377         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
4378
4379 2007-10-15  Javier Miranda  <miranda@adacore.com>
4380
4381         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
4382         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
4383         care of access to class-wide interface types plus removal of bizarre
4384         conversion of tagged object to access type (reported by Gary
4385         Dismukes). After this patch there is no need to perform any
4386         additional management on these nodes in Expand_Interface_Actuals.
4387
4388         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
4389         that handles use of 'Access and 'Unchecked_Access applied to
4390         actuals covering interface types. Such code is now
4391         centralized in Expand_N_Attribute_Reference.
4392
4393 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4394
4395         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
4396         of tagged types whose ultimate ancestor is a CPP type.
4397         (Freeze_Array_Type): For a packed array type, generate an initialization
4398         procedure if the type is public, to handle properly a client that
4399         specifies Normalize_Scalars.
4400
4401 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4402
4403         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
4404         inside a generic body, retrieve the full view of the entry family
4405         discrete subtype if available.
4406
4407 2007-10-15  Thomas Quinot  <quinot@adacore.com>
4408
4409         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
4410         attempt to generate stubs for hidden primitive operations.
4411
4412 2007-10-15  Vincent Celier  <celier@adacore.com>
4413
4414         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
4415         returning None, used when there is no platform specific body for
4416         MLib.Tgt.Specific.
4417
4418 2007-10-15  Bob Duff  <duff@adacore.com>
4419
4420         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
4421         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
4422         the generic Heap_Sort_G, in order to avoid trampolines.
4423
4424 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
4425             Jose Ruiz  <ruiz@adacore.com>
4426
4427         * vx_stack_info.c: New file.
4428
4429         * i-forbla-unimplemented.ads: New file.
4430
4431         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
4432         for unsupported configurations; use it on VMS targets instead of the
4433         real one.
4434         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
4435         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
4436         used by VxWorks targets to have access to task-specific data and be
4437         able to extract the stack boundaries for stack checking.
4438         Use system-vms-ia64.ads on ivms.
4439
4440         * Make-lang.in: Update dependencies.
4441
4442         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
4443         (vx_stack_info.c).
4444
4445 2007-10-15  Vincent Celier  <celier@adacore.com>
4446
4447         * snames.adb, snames.ads: Add new standard name runtime_library_dir
4448
4449         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
4450
4451         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
4452
4453         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
4454         the source is unknown.
4455
4456         * prj-ext.adb: Spelling error fix
4457
4458         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
4459         95 reserved word in its name.
4460         (Process_Project_Level_Array_Attributes): Process new attribute
4461         Runtime_Library_Dir.
4462
4463         * prj-part.adb (Parse_Single_Project): Do not check the name of the
4464         config project against the user project names.
4465
4466         * prj-proc.adb (Expression): In multi-language mode, indexes that do
4467         not include a dot are always case insensitive.
4468         (Process_Declarative_Items): Ditto
4469         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
4470         detected.
4471
4472         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
4473         True, compare both indexes in lower case.
4474
4475 2007-10-15  Robert Dewar  <dewar@adacore.com>
4476
4477         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
4478
4479 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
4480
4481         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
4482         association for an access component, add an association with null as
4483         the expression. Remove testing for array subtypes and the setting in
4484         that case of Ctyp to the array component type, which prevented proper
4485         inclusion of an association for null-initialized arrays. Collapse
4486         condition that tests for array subtypes into just a test of
4487         Is_Partially_Initialized_Type (which already covers arrays anyway).
4488
4489 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4490
4491         * sem_ch12.adb: Minor code reformatting.
4492         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
4493         find the parent package which may have been hidden by local
4494         declarations.
4495
4496 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
4497
4498         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
4499         flag of derived concurrent types, taking into account the flag setting
4500         on the parent subtype and any new set of discriminants.
4501
4502 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4503
4504         * sem_ch4.adb: Minor code and comment reformatting.
4505         (Analyze_Allocator): When the designated type of an unconstrained
4506         allocator is a record with unknown discriminants or an array with
4507         unknown range bounds, emit a detailed error message depending on the
4508         compilation mode and whether the designated type is limited.
4509
4510 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4511
4512         * system-vms-ia64.ads: New file.
4513
4514         * system-vms_64.ads: Minor comment fix.
4515
4516 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4517
4518         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
4519         body generated for a function with a controlling result that is a null
4520         extension, discard the generated body in favor of the current explicit
4521         one.
4522
4523 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4524
4525         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
4526         examining its original form, to handle properly operator calls that
4527         have been rewritten.
4528
4529 2007-10-15  Olivier Hainque  <hainque@adacore.com>
4530
4531         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
4532         instead of a procedure value in each traceback entry.
4533
4534         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
4535         instead of procedure value to TBK$SYMBOLIZE.
4536
4537         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
4538         field.
4539         (TB_Entry_For): Account for the PV/FP renaming.
4540
4541         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
4542         add comment.
4543         (Null_TB_Entry): Account for change of component name.
4544         (PV_For): Rename as FP_For.
4545
4546 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4547
4548         * trans.c (gnat_to_gnu): Remove the padding structure more often.
4549         This optimize assignment to over-aligned record.
4550
4551 2007-10-15  Emmanuel Briot  <briot@adacore.com>
4552
4553         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
4554         interfaces.
4555
4556         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
4557         type, for dispatching calls.
4558
4559 2007-10-15  Vincent Celier  <celier@adacore.com>
4560             Robert Dewar  <dewar@adacore.com>
4561
4562         * gnat_ugn.texi: Add documentation for switches --version and --help
4563         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
4564         gnatxref, gnatfind, gnatls, and gnatclean.
4565         Document -gnatw.o.
4566         Mention attribute Excluded_Source_Dirs
4567         Replace obsolescent attribute Locally_Removed_Files with attribute
4568         Excluded_Source_Files.
4569         Improve documentation of -u (gnatbind)
4570         Document how to do reliable stack checking for the environmental task
4571         on iVMS.
4572
4573         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
4574         Document attribute Excluded_Source_Files and indicate that attribute
4575         Locally_Removed_Files is obsolescent.
4576
4577 2007-10-15  Thomas Quinot  <quinot@adacore.com>
4578
4579         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
4580
4581         * gen-soccon.c: 
4582         Update documentation to note that OpenVMS 8.3 or later must be used
4583         to generate g-soccon-vms.ads.
4584
4585         * atree.adb: Add ??? comment
4586
4587         * exp_util.adb: Minor reformatting.
4588         Add ??? comment in Kill_Dead_Code.
4589
4590 2007-10-15  Robert Dewar  <dewar@adacore.com>
4591
4592         * errout.ads: Comment clarification
4593
4594         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4595         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
4596
4597         * lib.ads: Comment update
4598
4599         * init.c: Minor reformatting.
4600
4601         * sem_attr.adb: Minor formatting
4602
4603         * osint-b.ads: Minor reformatting
4604
4605         * sem_ch9.adb: Implement -gnatd.I switch
4606
4607         * g-comlin.adb: (Start): Fix handling of empty command line.
4608
4609         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
4610         even when -rules follows the -cargs section.
4611
4612 2007-10-08  Ollie Wild  <aaw@google.com>
4613
4614         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
4615         gnat_return_tree.
4616         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
4617         gnat_return_tree.
4618         (gnat_eh_runtime_type): Removed.
4619         (gnat_return_tree): New function.
4620
4621 2007-10-08  Ben Elliston  <bje@au.ibm.com>
4622
4623         PR ada/33454
4624         Revert:
4625         2007-08-31  Ben Elliston  <bje@au.ibm.com>
4626
4627         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4628         when compiling for powerpc64-*-linux.
4629         * system-linux-ppc64.ads: New file.
4630
4631 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4632
4633         Mapped location support
4634         * back_end.adb (Call_Back_End): Pass information about source
4635         files instead of units to gigi.
4636         * gigi.h (struct File_Info_Type): New.
4637         (gigi): Rename and change type of number_units parameter, change
4638         type of file_info_ptr parameter.
4639         * trans.c (number_files): New global variable.
4640         (gigi): Rename and change type of number_units parameter, change
4641         type of file_info_ptr parameter.
4642         If mapped location support is enabled, create the isomorphic mapping
4643         between source files and line maps.
4644         (Sloc_to_locus): If mapped location support is enabled, translate
4645         source location into mapped location.
4646         (annotate_with_node): Rename into set_expr_location_from_node.
4647         Call set_expr_location instead of annotate_with_locus.
4648         (Pragma_to_gnu): Adjust for above change.
4649         (Loop_Statement_to_gnu): Likewise.
4650         (call_to_gnu): Likewise.
4651         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4652         (gnat_to_gnu): Likewise.
4653         (add_stmt_with_node): Likewise.
4654         (add_cleanup): Likewise.
4655         * utils.c (gnat_init_decl_processing): Do not set input_line.
4656
4657 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4658
4659         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
4660         (Applicable_Use): Emit a warning when a package tries to use itself.
4661         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
4662         is already in use or the package where it is declared is in use or is
4663         declared in the current package.
4664         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
4665
4666         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
4667         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
4668         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
4669
4670 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4671
4672         * a-calend-vms.adb, a-calend.adb: 
4673         Add a section on leap seconds control along with two entities used to
4674         enable and disable leap seconds support. The array Leap_Second_Times is
4675         now constant and contains hard time values pre-generated. Remove
4676         all elaboration code used to populate the table of leap seconds.
4677
4678         * bindgen.adb: 
4679         Add entity Leap_Seconds_Support to the list of global run-time variables
4680         along with a comment on its usage and values.
4681         (Gen_Adainit_Ada): Add code to generate the declaration and import of
4682         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
4683         or one (enabled) depending on the presence of binder switch "-y".
4684         (Gen_Adainit_C): Add code to generate the declaration of external int
4685         __gl_leap_seconds_support. Set is value to zero (disabled) or one
4686         (enabled) depending on the presence of binder switch "-y".
4687
4688         * init.c: Add __gl_leap_seconds_support to the list of global values
4689         computed by the binder.
4690
4691 2007-09-26  Jerome Guitton  <guitton@adacore.com>
4692
4693         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4694         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
4695          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4696         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
4697
4698         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
4699
4700         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
4701         function which can be called by the debugger to interrupt the tasks of
4702         an Ada application asynchronously, as needed on VxWorks.
4703         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
4704
4705         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
4706         renamed from Stop_All_Tasks. Update comments.
4707         (Stop_All_tasks): New function declaration.
4708
4709 2007-09-26  Olivier Hainque  <hainque@adacore.com>
4710
4711         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
4712         #include <utime.h> and #define GCC_RESOURCE_H before
4713         #include <sys/wait.h>.
4714         Add more protections in __gnat_translate_vms.
4715
4716         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
4717         #include <sys/wait.h>.
4718
4719 2007-09-26  Thomas Quinot  <quinot@adacore.com>
4720             Sergey Rybin  <rybin@adacore.com>
4721
4722         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
4723
4724         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4725         where it belongs.
4726
4727         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4728
4729         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4730         where it belongs.
4731
4732         * sem_dist.ads: Minor comment fix
4733
4734         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4735
4736 2007-09-26  Javier Miranda  <miranda@adacore.com>
4737             Eric Botcazou  <ebotcazou@adacore.com>
4738
4739         * a-tags.adb: 
4740         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
4741          indirection added to the HT_Link component of the TSD. This is required
4742          to statically allocate the TSD.
4743
4744         * a-tags.ads: 
4745         Minor reordering of the declarations in the private part. Required to
4746         add a level of indirection to the contents of the TSD component HT_Link.
4747         This is required to statically allocate the TSD.
4748
4749         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
4750         Is_Statically_Allocated set from constant objects.
4751         Do not make exported constants created by the compiler volatile.
4752         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
4753         as read-only.
4754
4755         * trans.c (Identifier_to_gnu): For constants, unshare initializers
4756         before returning them.
4757
4758         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
4759         public part of the package.
4760         (Make_DT): Move HT_Link component out of the TSD record. For this
4761         purpose Make_DT now declares a separate object that stores the
4762         HT_Link value, and initializes the TSD component with the address
4763         of this new object. The addition of this level of indirection is
4764         required to statically allocate the TSD because the TSD cannot
4765         have variable components.
4766         (Expand_Interface_Conversion): Improve the expanded code.
4767         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
4768
4769         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
4770         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
4771         if we are building static dispatch tables then we must not generate
4772         extra code to register the primitive because the dispatch table will
4773         be built at the end of the library package; otherwise we notify that
4774         we cannot build the static dispatch table.
4775
4776 2007-09-26  Robert Dewar  <dewar@adacore.com>
4777
4778         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
4779         overlays.
4780
4781         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
4782         (Analyze_Record_Representation_Clause): Suppress junk warning for
4783         missing component clause.
4784         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
4785         tests for controlled type overlay to composites with controlled
4786         components.
4787         (Analyze_Record_Representation_Clause): Add reference for component name
4788
4789 2007-09-26  Javier Miranda  <miranda@adacore.com>
4790             Gary Dismukes  <dismukes@adacore.com>
4791
4792         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
4793         for thunks associated with interface types.
4794
4795         * einfo.ads: Improve documentatation of Is_Internal
4796         (Is_Thunk): New attribute applicable to subprograms. True for thunks
4797         associated with interface types.
4798         Extensive comment fixes regarding flags that appear in all entities. The
4799         documentation is now consistent for all such flags (there were a number
4800         of errors in the documentation in this regard).
4801
4802         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
4803
4804         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
4805         of these procedures are passed a function call that already has
4806         build-in-place actuals (testing new flag
4807         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
4808         the case where processing continues.
4809         (Expand_Call): If the call is generated from a thunk body then we
4810         propagate the extra actuals associated with the accessibility
4811         level of the access type actuals.
4812
4813         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
4814         of each extra formal of a protected operation to reference the
4815         corresponding extra formal of the subprogram denoted by the
4816         operation's Protected_Body_Subprogram.
4817         
4818         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
4819         N_Function_Call nodes.
4820
4821 2007-09-26  Robert Dewar  <dewar@adacore.com>
4822
4823         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
4824
4825         * debug.adb: Add d.s flag.
4826
4827 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
4828
4829         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
4830         debug variable so that it won't be initialized when pragma
4831         Initialize_Scalars is in effect.
4832
4833 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
4834
4835         * freeze.adb (Freeze_Entity): Remove check for preelaborable
4836         initialization of a full view. This is moved to
4837         Analyze_Package_Specification.
4838
4839         * sem_ch7.adb (Analyze_Package_Specification): Add check for
4840         preelaborable initialization of a full view in entity loop.
4841         (Uninstall_Declarations): If entity is a use-visible compilation unit,
4842         its child units are use-visible only if they are visible child units.
4843
4844         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
4845         whether an expression can be used within a type declaration that
4846         requires preelaborable init.
4847         (Check_Components): Replace inline code that does partial checking for
4848         preelaborable default expressions with call to
4849         Is_Preelaborable_Expression.
4850         (Has_Preelaborable_Initialization): In the case of a generic actual
4851         subtype, (that is, Is_Generic_Actual is True), return the result of
4852         applying Has_Preelaborable_Initialization to the generic actual's base
4853         type.
4854
4855 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4856
4857         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
4858         call to Jan_1_Day _Of_Week to optimize its performance.
4859         (Is_Leap): Move the routine to the scope of Week_In_Year.
4860         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
4861         weekday on which January 1 falls of Year - 1 and Year + 1. This function
4862         avoids calling Time_Of and Split, thus making it more efficent.
4863         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
4864
4865         * g-calend.ads (Week_In_Year): Change comment to reflect new
4866         implementation.
4867
4868 2007-09-26  Emmanuel Briot  <briot@adacore.com>
4869
4870         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
4871         Command_Line): New types
4872         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
4873         support for defining how switches can be grouped on a command line (as
4874         is the case for -gnatw... for GNAT), and how simple switches can be
4875         used as aliases for more complex switches (-gnatwa is same as
4876         -gnatwbcef...)
4877         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
4878         (Start, Current_*): New subprograms
4879         Added support for parsing an array of strings in addition to the real
4880         command line.
4881         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
4882          be moved from the body to the private part of the spec.
4883         (*): All subprograms now have an extra parameter with default value to
4884         specify which parser should be used. For backward compatibility, it
4885         defaults to parsing the command line of the application. They were also
4886         modified to properly handle cases where each of the argument does not
4887         start at index 1 (which is always true for Ada.Command_Line, but not
4888         when processing any Argument_List).
4889         (Free): New subprogram
4890         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
4891         Argument): New subprograms
4892         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
4893         special characters like ':', '=',... are now handled in a single place,
4894         which makes the code more extensible eventually.
4895         (Getopt, Full_Switch): When the switch was returned as part of the
4896         special character '*', make sure it is prepended by the switch character
4897         ('-' in general), so that the application knows whether "foo" or "-foo"
4898         was specified on the command line.
4899
4900 2007-09-26  Florian Villoing  <villoing@adacore.com>
4901
4902         * g-dirope.adb (Remove_Dir): In case we are removing directories
4903         recursively, make sure that if an exception is raised during the
4904         processing, the current working directory is reset to its initial
4905         value before propagating the exception.
4906
4907 2007-09-26  Vincent Celier  <celier@adacore.com>
4908
4909         * gnatbind.adb: If there are several ALI files specified and there is
4910         a main program to bind, the first ALI is expected to contain the main
4911         subprogram and the names of the binder generated files will be derived
4912         from the first ALI file name.
4913         (Gnatbind): Fix insertion character in invocation of Error_Msg
4914
4915 2007-09-26  Vincent Celier  <celier@adacore.com>
4916
4917         * gnatcmd.adb (Check_Files): Do not include sources that have been
4918         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
4919
4920 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
4921
4922         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
4923         information about each of its index types, following the type
4924         reference for its component type.
4925
4926 2007-09-26  Vincent Celier  <celier@adacore.com>
4927
4928         * make.adb: (Kill): New procedure (__gnat_kill imported)
4929         (Running_Compile, Outstanding_Compiles): Global variables that
4930         were previously local to procedure Compile_Sources.
4931         (Sigint_Intercepted): Send signal SIGINT to all outstanding
4932         compilation processes.
4933
4934         (Gnatmake): If project files are used, create the mapping of all the
4935         sources, so that the correct paths will be found.
4936
4937         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
4938
4939 2007-09-26  Vincent Celier  <celier@adacore.com>
4940
4941         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
4942
4943         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
4944         Replace components Compiler_Min_Options and Binder_Min_Options with
4945         Compiler_Required_Switches and Binder_Required_Switches in record
4946         Language_Config.
4947         Remove components Default_Language and Config in Project_Tree_Data,
4948         no longer used.
4949
4950         * prj-attr.adb: New attributes Required_Switches (<language>) in
4951         packages Compiler and Binder.
4952
4953         * prj-nmsc.adb: Major rewrite of the processing of configuration
4954         attributes for gprbuild. No impact on GNAT tools.
4955
4956         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
4957         process configuration attributes: this is done in Prj.Nmsc.Check.
4958         (Recursive_Process): Make a full copy of packages inherited from project
4959         being extended, instead of a shallow copy.
4960         (Process_Project_Tree_Phase_1): New procedure
4961         (Process_Project_Tree_Phase_1): New procedure
4962         (Process): Implementation now uses the two new procedures
4963
4964         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
4965         from the project config, not the tree config that no longer exists.
4966
4967 2007-09-26  Vincent Celier  <celier@adacore.com>
4968
4969         * Make-lang.in: Update dependencies..
4970
4971 2007-09-26  Vincent Celier  <celier@adacore.com>
4972
4973         * osint.adb, osint.ads: Minor reformatting
4974
4975         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
4976
4977 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
4978
4979         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
4980         message to cite use of <> in aggregate component associations rather
4981         than wrongly indicating use of limited aggregates.
4982
4983 2007-09-26  Robert Dewar  <dewar@adacore.com>
4984
4985         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
4986         Address_Taken.
4987
4988 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
4989
4990         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
4991         ancestor of the derived type, the operations are inherited from the
4992         primary dispatch table of the parent.
4993         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
4994         when the context is an explicit type conversion.
4995
4996 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
4997
4998         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
4999         rule for qualified expressions properly, to detect improper conversions
5000         and resolve some cases of overloading.
5001
5002 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5003
5004         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
5005         proper kind of reference to the primitive operation, for better source
5006         navigation.
5007         (Valid_Conversion): A tagged conversion is legal if both operands are
5008         tagged.
5009
5010 2007-09-26  Robert Dewar  <dewar@adacore.com>
5011
5012         * sem_warn.adb (Check_References): Catch more cases of unreferenced
5013         packages.
5014
5015 2007-09-26  Vincent Celier  <celier@adacore.com>
5016
5017         * snames.adb, snames.ads: Change Include_Option to Include_Switches
5018
5019 2007-09-26  Robert Dewar  <dewar@adacore.com>
5020
5021         * s-wchstw.adb: provide messages for run time unit exceptions
5022
5023         * a-witeio.adb: Minor reformatting
5024
5025         * exp_ch13.adb: Minor reformatting
5026
5027 2007-09-26  Sergey Rybin  <rybin@adacore.com>
5028
5029         * vms_data.ads: Revise gnatmetric qualifiers.
5030         Add qualified for the new gnatbind option '-y'
5031
5032         * gnat_ugn.texi: Revise the gnatmetric section.
5033         Add entry for new gnatbind option '-y'.
5034
5035         * gnat_rm.texi: Minor spelling correction.
5036         Document restriction on overlaying controlled types
5037
5038 2007-09-26  Vincent Celier  <celier@adacore.com>
5039
5040         * makegpr.adb (Link_Executables): Do not fail when the root project has
5041         no sources, but is an extending project.
5042
5043 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
5044
5045         * trans.c: Fix misplaced #define.
5046
5047 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
5048
5049         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
5050         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
5051
5052 2007-09-21  Olivier Hainque  <hainque@adacore.com>
5053
5054         * utils.c (type_for_nonaliased_component_p): Return false for
5055         all AGGREGATE_TYPEs.
5056
5057 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5058
5059         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
5060         object covered by 13.3(19) volatile.
5061
5062 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
5063
5064         PR ada/26797
5065         PR ada/32407
5066         * utils.c (unchecked_convert): Use a subtype as the intermediate type
5067         in the special VIEW_CONVERT_EXPR case.
5068
5069 2007-09-12  Robert Dewar  <dewar@adacore.com>
5070
5071         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
5072
5073         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
5074         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
5075         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
5076         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
5077         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
5078         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
5079         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
5080         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
5081         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
5082         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
5083         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
5084         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
5085         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
5086         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
5087         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
5088         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
5089         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
5090         pragma Compiler_Unit and adds it to relevant library units.
5091
5092 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
5093
5094         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
5095         a box need not correspond to any component.
5096
5097 2007-09-12  Robert Dewar  <dewar@adacore.com>
5098
5099         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
5100         the tasking version of the Ada run time when foreign threads are
5101         present and there are no explicit Ada tasks or tasking constructs.
5102
5103         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
5104
5105 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
5106
5107         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
5108         the usage of switch -y.
5109
5110         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
5111         when switch -y is present.
5112
5113         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
5114         leap seconds in Ada.Calendar and its children.
5115
5116 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
5117
5118         * a-extiti.ads (Timer): The discriminant is a "not null access
5119         constant" in the Reference Manual.
5120         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
5121
5122 2007-09-12  Robert Dewar  <dewar@adacore.com>
5123
5124         * a-swuwha.adb: Remove junk RM header
5125
5126 2007-09-12  Vincent Celier  <celier@adacore.com>
5127
5128         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
5129         indicator
5130
5131         * g-bytswa.ads: Minor reformatting
5132
5133 2007-09-12  Thomas Quinot  <quinot@adacore.com>
5134
5135         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
5136         Add new constant Thread_Blocking_IO, always True by default, set False
5137         on a per-runtime basis.
5138         (Need_Netdb_Buffer): New constant.
5139
5140 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
5141
5142         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
5143         Added renames for corresponding functions in System.Partition_Interface.
5144
5145 2007-09-12  Doug Rupp  <rupp@adacore.com>
5146
5147         * Makefile.in: Remove VMS specific System.CRTL packages which are no
5148         longer needed.
5149
5150         * s-crtl-vms64.ads: Removed.
5151
5152 2007-09-12  Olivier Hainque  <hainque@adacore.com>
5153
5154         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
5155         with discriminant constraints, generalize the code for BIT_FIELDs
5156         to PACKED fields of constant size and propagate DECL_PACKED.
5157
5158 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
5159
5160         * decl.c (array_type_has_nonaliased_component): New predicate.
5161         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
5162         set the TYPE_NONALIASED_COMPONENT flag on the type.
5163         <E_Array_Subtype>: Likewise.
5164         * gigi.h (type_for_nonaliased_component_p): Declare.
5165         * utils.c (type_for_nonaliased_component_p): New predicate.
5166         (create_field_decl): Invoke the above predicate to set the
5167         DECL_NONADDRESSABLE_P flag on the field.
5168
5169 2007-09-11  Javier Miranda  <miranda@adacore.com>
5170
5171         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
5172         in library level record type entities if we are generating statically
5173         allocated dispatch tables.
5174
5175         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
5176         importing/exporting the _tag declaration by new code
5177         importing/exporting the dispatch table wrapper. This change allows us
5178         to statically allocate of the TSD.
5179         (Make_DT.Export_DT): New procedure.
5180         (Build_Static_DT): New function.
5181         (Has_DT): New function.
5182
5183         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
5184         True_Constant and Current_Value. Required to statically
5185         allocate the dispatch tables.
5186         (Check_Allocator): Make function iterative instead of recursive.
5187         Also return inner allocator node, when present, so that we do not have
5188         to look for that node again in the caller.
5189
5190 2007-09-11  Jan Hubicka  <jh@suse.cz>
5191
5192         * misc.c (gnat_expand_body): Kill.
5193         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5194
5195 2007-09-10  Robert Dewar  <dewar@adacore.com>
5196
5197         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
5198         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5199         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5200         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
5201         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
5202         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
5203         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
5204         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
5205         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
5206         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
5207         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
5208         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
5209         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
5210         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
5211         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
5212         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
5213         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
5214         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
5215         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
5216         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
5217         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
5218         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
5219         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
5220         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
5221         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
5222         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
5223         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
5224         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
5225         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
5226         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
5227         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
5228         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
5229         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
5230         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
5231         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
5232         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
5233         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
5234         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
5235         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
5236         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
5237         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
5238         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5239         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
5240         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
5241         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
5242         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
5243         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
5244         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
5245         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
5246         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
5247         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
5248         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
5249         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
5250         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
5251         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
5252         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
5253         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
5254         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
5255         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5256         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
5257         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
5258         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
5259         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
5260         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
5261         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
5262         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
5263         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
5264         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
5265         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
5266         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
5267         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
5268         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
5269         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
5270         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
5271         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
5272         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
5273         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
5274         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
5275         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
5276         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
5277         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
5278         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
5279         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
5280
5281 2007-09-10  Emmanuel Briot  <briot@adacore.com>
5282
5283         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
5284         classes ("[]").
5285
5286 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
5287
5288         * adaint.c (__gnat_translate_vms): new function.
5289
5290 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
5291             Thomas Quinot  <quinot@adacore.com>
5292
5293         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
5294         create an abstract subprogram in the case of 'Input. For 'Output we now
5295         create a real spec/body when the type is abstract, since it can
5296         potentially be called.
5297         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
5298         body for 'Output when the type is abstract (only the creation of the
5299         body for 'Input is excluded when the type is abstract).
5300         (Stream_Operation_OK): Add an additional condition in the return
5301         statement, so that False will be returned for TTS_Stream_Input if the
5302         associated tagged type is an abstract extension. Add comments for
5303         return statement.
5304         (Expand_N_Object_Declaration): For the case of a shared passive
5305         variable, insert init proc call only after the shared variable
5306         procedures have been processed, because the IP call needs to undergo
5307         shared passive variable reference expansion, which requires these
5308         procedures to be available (and elaborated).
5309
5310 2007-09-10  Vincent Celier  <celier@adacore.com>
5311
5312         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
5313         parameter Runtime_Project.
5314
5315 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
5316
5317         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
5318         given a box association, the type of the component is discriminated,
5319         and the value of the discriminant is the discriminant of the enclosing
5320         type, retrieve its value from the aggregate itself, where it must have
5321         been supplied.
5322
5323         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
5324         to remove other spurious ambiguities on arithmetic operations involving
5325         literals and addresses, on systems where Address is a visible integer
5326         type, when the operator is called in functional notation.
5327         (Try_Primitive_Operation): Within an instance, a call in prefixed form
5328         is legal when the types match, even if the operation is currently
5329         hidden.
5330
5331 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
5332
5333         * sem_ch12.adb (Build_Local_Package): A formal package with no
5334         associations is legal if all formals have defaults. It is not
5335         equivalent to a formal declared with a box.
5336
5337 2007-09-10  Sergey Rybin  <rybin@adacore.com>
5338
5339         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
5340
5341 2007-09-10  Sergey Rybin  <rybin@adacore.com>
5342
5343         * gnat_ugn.texi: Add description of the new '-lratio' option
5344         Update 7.3.1 section about availability of the feature.
5345
5346 2007-09-10  Thomas Quinot  <quinot@adacore.com>
5347
5348         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
5349         inserted node.
5350
5351 2007-09-10  Olivier Hainque  <hainque@adacore.com>
5352
5353         * Makefile.in: (mips-irix section): Activate build of libgmem.
5354
5355 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
5356
5357         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
5358         x87 registers.
5359
5360 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
5361
5362         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
5363         a debug renaming declaration specially.
5364
5365 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5366
5367         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
5368         which a constant renaming is treated as a normal object declaration.
5369         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
5370         the N_Indexed_Component case.
5371         <N_Indexed_Component>: Fall through to above case.
5372         <N_Object_Renaming_Declaration>: Return true for all composite types.
5373
5374 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5375
5376         * decl.c (make_packable_type): If the new type has been given BLKmode,
5377         try again to get an integral mode for it.
5378
5379 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
5380
5381         Re-apply accidentally reverted change:
5382
5383         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5384
5385         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
5386         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
5387         and _Unwind_SWord with _sleb128_t.
5388
5389 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
5390
5391         * trans.c (convert_with_check): Update call to real_2expN.
5392
5393 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
5394
5395         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
5396         * utils.c (end_subprog_body): Likewise.
5397
5398 2007-09-03  Nick Clifton  <nickc@redhat.com>
5399
5400         * Make-lang.in: Change copyright header to refer to version 3 of
5401         the GNU General Public License and to point readers at the
5402         COPYING3 file and the FSF's license web page.
5403         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
5404         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
5405         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
5406         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
5407         Likewise.
5408
5409 2007-08-31  Vincent Celier  <celier@adacore.com>
5410
5411         PR ada/4720
5412
5413         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
5414         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
5415         (Check_Version_And_Help): New procedure in package Switch to process
5416         switches --version and --help.
5417         Use Check_Version_And_Help in GNAT tools
5418
5419         * make.adb:  Ditto.
5420         (Compile_Sources): Make sure that sources that are "excluded" are not
5421         compiled.
5422         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
5423         project file is used.
5424         (Version_Switch): Remove, moved to Switch
5425         (Help_Switch): Remove, moved to Switch
5426         (Display_Version): Remove, moved to Switch
5427
5428         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
5429         package Switch to process switches --version and --help.
5430         (Display_Version): New procedure
5431
5432         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
5433
5434 2007-08-31  Javier Miranda  <miranda@adacore.com>
5435
5436         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
5437         internal tags.
5438
5439 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5440
5441         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
5442         (Mark_Non_Null): If the node for which we just generated an access check
5443         is a reference to an *in* parameter and the reference appears in the
5444         declarative part of a subprogram body, mark the node as known non null.
5445
5446 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5447
5448         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
5449         structure of E_Exception to reflect the new flag.
5450         (Is_Raised, Set_Is_Raised): New inlined routines.
5451         Update the usage of available flag to reflect the addition of Is_Raised.
5452         (Is_Raised, Set_Is_Raised): Bodies of new routines.
5453         (Write_Entity_Flags): Write the status of flag Is_Raised.
5454         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
5455         spurious ambiguities when integer literals appear in the context of an
5456         address type that is a visible integer type.
5457
5458         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
5459         exceptions never being raised.
5460         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
5461         explicitly raised.
5462
5463 2007-08-31  Javier Miranda  <miranda@adacore.com>
5464
5465         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
5466         statement when compiling under restriction No_Exceptions_Proparation.
5467
5468 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5469
5470         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
5471         initialization aggregate for the type, generate itype references for
5472         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
5473
5474 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
5475
5476         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
5477         library-level package renaming, pass the declaration associated with
5478         the renaming's special debug variable to Qualify_Entity_Names to ensure
5479         that its encoded name is properly qualified.
5480
5481         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
5482         occurring in the list of entities to qualify, and do not attempt to
5483         traverse an entity list in that case. Variables associated with
5484 `       library-level package renamings can now occur in the table.
5485
5486         * exp_dbug.ads: Revise documentation of the encoding for renaming
5487         declarations.
5488
5489 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5490
5491         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
5492         access type points to an unconstrained array.
5493
5494 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5495
5496         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
5497         conversion.
5498
5499         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
5500         simple redundant qualifications. The check is performed whenever the
5501         expression is a non-overloaded identifier.
5502         (Resolve_Type_Conversion): Enchance the redundant type conversion check
5503         to include loop parameters.
5504         (Valid_Conversion): Avoid generation of spurious error message.
5505
5506 2007-08-31  Bob Duff  <duff@adacore.com>
5507
5508         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
5509         concatenations of string literals into a single literal, in order to
5510         avoid very deep recursion in the front end, which was causing stack
5511         overflow.
5512
5513         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
5514         string, and the right operand is a string literal (the case of "" &
5515         "..."), optimize by avoiding copying the right operand -- just use the
5516         value of the right operand directly.
5517
5518         * stringt.adb (Store_String_Chars): Optimize by growing the
5519         String_Chars table all at once, rather than appending characters one by
5520         one.
5521         (Write_String_Table_Entry): If the string to be printed is very long,
5522         just print the first few characters, followed by the length. Otherwise,
5523         doing "pn(n)" in the debugger can take an extremely long time.
5524
5525         * sem_prag.adb (Process_Interface_Name): Replace loop doing
5526         Store_String_Char with Store_String_Chars.
5527
5528 2007-08-31  Vincent Celier  <celier@adacore.com>
5529
5530         * prj-attr.adb: Add new attribute Excluded_Source_Files
5531
5532         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
5533         Locally_Removed_Files.
5534
5535         * snames.ads, snames.adb: New standard name Excluded_Source_Files
5536
5537 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5538
5539         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
5540         clauses of subunits, ignore limited_with_clauses that are illegal and
5541         have not been fully analyzed.
5542
5543 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5544
5545         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
5546         flag, for effiency. It is called when analyzing arithmetic operators
5547         and also for actuals in calls that are universal_integers. The flag is
5548         set for the predefined type address, and for any type or subtype
5549         derived from it.
5550
5551         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
5552         Universal_Integer, when the formal is a descendent of address and the
5553         call appears in user code.
5554         (Analyze_Selected_Component): if the prefix is a private extension, the
5555         tag component is visible.
5556
5557         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
5558         entity flag.
5559
5560 2007-08-31  Robert Dewar  <dewar@adacore.com>
5561
5562         * s-fileio.adb (Open): Normalize file name to lower case in non-case
5563         sensitive file name systems to avoid unexpected mismatch in Vista.
5564
5565 2007-08-31  Vincent Celier  <celier@adacore.com>
5566
5567         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
5568
5569 2007-08-31  Vincent Celier  <celier@adacore.com>
5570
5571         * symbols-vms.adb (Initialize): Read symbol files with continuation
5572         lines
5573         (Finalize): If symbol is long, split the line
5574
5575 2007-08-31  Vincent Celier  <celier@adacore.com>
5576
5577         * fmap.ads: Minor comment updates
5578
5579 2007-08-31  GNAT Script  <nobody@adacore.com>
5580
5581         * Make-lang.in: Makefile automatically updated
5582
5583 2007-08-31  Bob Duff  <duff@adacore.com>
5584
5585         * sinfo.ads: Minor comment fix.
5586
5587 2007-08-31  Thomas Quinot  <quinot@adacore.com>
5588
5589         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
5590         with implementation.
5591         Documentation cleanup only.
5592
5593 2007-08-31  Sergey Rybin  <rybin@adacore.com>
5594
5595         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
5596         gnatpp '--separate-stmt-name' option.
5597         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
5598         option.
5599
5600         * gnat_ugn.texi: Add description for the new gnatpp
5601         '--separate-stmt-name' and '--use-on-new-line' options.
5602
5603 2007-08-31  Ben Elliston  <bje@au.ibm.com>
5604
5605         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
5606         when compiling for powerpc64-*-linux.
5607         * system-linux-ppc64.ads: New file.
5608
5609 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
5610
5611         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
5612         NetBSD.
5613
5614 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5615
5616         * misc.c (gnat_type_max_size): Constify.
5617
5618 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5619
5620         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
5621         associated with Standard_Debug_Renaming_Type, to be used as the type of
5622         the special variables whose names provide debugger encodings for
5623         renaming declarations.
5624
5625         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
5626         (Set_Debug_Renaming_Link): Change to set Node25.
5627         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
5628         (Write_Field25_Name): Add case for E_Variable to output
5629         "Debug_Renaming_Link".
5630         (Write_Field23_Name): Correct the output string for "Limited_View".
5631
5632         * exp_dbug.adb: Add with and use of Tbuild.
5633         (Debug_Renaming_Declaration): Replace creation of an enumeration type
5634         and literal with creation of a variable of type
5635         Standard_Debug_Renaming_Type whose name encodes both the renamed object
5636         and the entity of the renaming declaration.
5637         (Qualify_Entity_Name): Add the delayed qualification of the entity name
5638         part of the name of a variable that has a Debug_Renaming_Link.
5639
5640         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
5641         special type to be associated with variables that provide debugger
5642         encodings for renaming declarations.
5643
5644 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5645             Ed Schonberg  <schonberg@adacore.com>
5646             Javier Miranda  <miranda@adacore.com>
5647
5648         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
5649         ancestor part given by an aggregate to test for an unchecked conversion,
5650         since this can occur in some cases when the ancestor part is a function
5651         call, and we don't want to fall into the recursive call to this
5652         procedure in that case.
5653
5654         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
5655         stream attributes on limited types to account for user-specified
5656         attributes as well as whether Input (resp. Output) becomes available
5657         due to Read (resp. Write) being available for the type. Change Boolean
5658         variable to the more accurate name
5659         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
5660         double-"not" predicate at beginning of return statement to more
5661         understandable form.
5662
5663         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
5664         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
5665         in a block statement and use that as the first statement of the
5666         expanded return rather than incorrectly using the handled sequence as
5667         the first statement.
5668
5669         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
5670         operation, generate an explicit freeze node for it rather than
5671         generating extra formals, to ensure that gigi has the proper order of
5672         elaboration for anonymous subtypes in the signature of the subprograms.
5673         (Build_In_Place_Formal): Move assertion to beginning of loop.
5674         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
5675         applied to a function call (occurs for some cases of 'Input).
5676         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
5677         applied to a function call (occurs for some cases of 'Input).
5678
5679         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
5680         2005, generate an extended return statement enclosing the result object
5681         and 'Read call.
5682
5683         * freeze.adb (Freeze_Record_Type): Extend the current management of
5684         components that are access type with an allocator as default value: add
5685         missing support to the use of qualified expressions of the
5686         allocator (which also cause freezing of the designated type!)
5687         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
5688         dispatching operation, since extra formals may be needed by calls to
5689         build-in-place functions (such as stream 'Input).
5690
5691         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
5692         formals for 'Constrained and accessibility level in the case of a
5693         predefined dispatching operation.
5694
5695         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
5696         point, no need to find the parent node.
5697
5698 2007-08-16  Javier Miranda  <miranda@adacore.com>
5699
5700         * exp_attr.adb (Attribute_Priority): Add missing support for entries
5701         and entry barriers.
5702
5703 2007-08-16  Javier Miranda  <miranda@adacore.com>
5704
5705         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
5706         is not really required and can introduce regression with the debugger.
5707         The original problem is fixed with the patch written for checks.adb.
5708
5709 2007-08-16  Thomas Quinot  <quinot@adacore.com>
5710
5711         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
5712         Range_Check on Allocated_Table.
5713
5714 2007-08-16  Vincent Celier  <celier@adacore.com>
5715
5716         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
5717         Including_Non_Switch set to False.
5718         (Gnatmake): For the compiler, call Test_If_Relative_Path with
5719         Including_Non_Switch set to False.
5720
5721         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
5722         parameter Including_Non_Switch, defaulted to True. When
5723         Including_Non_Switch is False, options that are not switches and
5724         appear as relative path are not converted to absolute paths.
5725
5726 2007-08-16  Nicolas Roche  <roche@adacore.com>
5727
5728         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
5729         makefiles
5730
5731         * Make-lang.in: Update dependencies
5732
5733 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
5734
5735         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
5736         currently inspected is a selected component, retrieve the entity of
5737         its selector.
5738         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
5739         from the immediate ancestor of Main_Unit_Entity.
5740         (Install_Limited_Withed_Unit): Do not install the limited view of
5741         package P if P is reachable through an ancestor chain from package C
5742         and C also has a with clause for P in its body.
5743         (Has_Limited_With_Clause): New routine.
5744         (Has_With_Clause): New routine.
5745
5746 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
5747
5748         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
5749         generic for an enclosing instance is a global reference, even though
5750         its scope is the enclosing instance.
5751
5752 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5753             Javier Miranda  <miranda@adacore.com>
5754
5755         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
5756         initialize a limited object.
5757         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
5758         13/2 and 14/2.
5759         Make sure Has_Complex_Representation is inherited by derived type.
5760
5761 2007-08-16  Robert Dewar  <dewar@adacore.com>
5762
5763         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
5764         exception case
5765
5766 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
5767
5768         * sem_disp.adb (Check_Dispatching_Operation): If the operation
5769         implements an operation inherited from a progenitor interface, verify
5770         that they are subtype-conformant.
5771
5772 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
5773             Bob Duff  <duff@adacore.com>
5774             Nicolas Setton  <setton@adacore.com>
5775
5776         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
5777         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
5778         the statement which is being resolved comes from a predefined library
5779         unit, all non-predefined library interpretations are skipped.
5780         (Resolve_Op_Concat): If string concatenation was folded in the parser,
5781         but the "&" is user defined, give an error, because the folding would
5782         be wrong.
5783
5784         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
5785         the parser has folded a long sequence of concatenations of string
5786         literals.
5787
5788         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
5789         and "JMP_BUF" variables as artificial.
5790         (N_String_Literal): Do not use alloca for very long string literals. Use
5791         xmalloc/free instead. Otherwise the stack might overflow.
5792
5793         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
5794         compiler.
5795
5796 2007-08-16  Vincent Celier  <celier@adacore.com>
5797
5798         * vms_conv.adb (Process_Argument): Ensure that project related options
5799         are not put in the -cargs section when using GNAT COMPILE.
5800
5801 2007-08-16  Robert Dewar  <dewar@adacore.com>
5802
5803         * gnat_ugn.texi: Add note on preprocessing (output file not written)
5804
5805 2007-08-16  Thomas Quinot  <quinot@adacore.com>
5806
5807         * a-tags.adb: Minor reformatting.
5808
5809 2007-08-16  Bob Duff  <duff@adacore.com>
5810
5811         * sem_type.ads, sem_ch4.adb: Minor reformatting.
5812
5813 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5814
5815         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
5816         s-osinte-interix.ads, system-interix.ads: Removed.
5817
5818 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
5819
5820         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
5821         calls to Check_Within_Time_Bounds.
5822         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
5823         (Difference): Account for possible rounding of the resulting difference
5824
5825 2007-08-14  Robert Dewar  <dewar@adacore.com>
5826
5827         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
5828         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
5829         s-osinte-solaris.adb, s-osinte-solaris.ads,
5830         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
5831
5832         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
5833         switch -gnatyS. Enable -gnatyS in GNAT style check mode
5834
5835 2007-08-14  Robert Dewar  <dewar@adacore.com>
5836             Ed Schonberg  <schonberg@adacore.com>
5837
5838         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
5839         Suppress unmodified in-out parameter warning in some cases
5840         This patch is a also fairly significant change to the way suppressible
5841         checks are handled.
5842
5843         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
5844         needed for access to concurrent record types generated by the expander.
5845         (Generate_Range_Check): When generating a temporary to capture the
5846         value of a conversion that requires a range check, set the type of the
5847         temporary before rewriting the node, so that the type is always
5848         properly placed for back-end use.
5849         (Apply_Float_Conversion_Check): Handle case where the conversion is
5850         truncating.
5851         (Get_Discriminal): Code reformatting. Climb the scope stack looking
5852         for a protected type in order to examine its discriminants.
5853
5854 2007-08-14  Robert Dewar  <dewar@adacore.com>
5855             Gary Dismukes  <dismukes@adacore.com>
5856             Ed Schonberg  <schonberg@adacore.com>
5857             Thomas Quinot  <quinot@adacore.com>
5858
5859         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
5860         a-stwisu.adb, a-strsup.adb: Fix warnings for range
5861         tests optimized out.
5862
5863         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
5864         (Get_Allocator_Final_List): For the case of an anonymous access type
5865         that has a specified Associated_Final_Chain, do not go up to the
5866         enclosing scope.
5867         (Expand_N_Type_Conversion): Test for the case of renamings of access
5868         parameters when deciding whether to apply a run-time accessibility
5869         check.
5870         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
5871         aggregate code before allocator, and ahead of declaration for
5872         temporary, to prevent access before elaboration when the allocator is
5873         an actual for an access parameter.
5874         (Expand_N_Type_Conversion): On an access type conversion involving an
5875         access parameter, do not apply an accessibility check when the
5876         operand's original node was an attribute other than 'Access. We now
5877         create access conversions for the expansion of 'Unchecked_Access and
5878         'Unrestricted_Access in certain cases and clearly accessibility should
5879         not be checked for those.
5880
5881         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
5882         includes a type conversion of a packed component that has been expanded,
5883         recover the original expression for the object, and use this expression
5884         in the post-call assignment statement, so that the assignment is made
5885         to the object and not to a back-end temporary.
5886         (Freeze_Subprogram): In case of primitives of tagged types not defined
5887         at the library level force generation of code to register the primitive
5888         in the dispatch table. In addition some code reorganization has been
5889         done to leave the implementation clear.
5890         (Expand_Call): When expanding an inherited implicit conversion,
5891         preserve the type of the inherited function after the intrinsic
5892         operation has been expanded.
5893
5894         * exp_ch2.ads, exp_ch2.adb
5895         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
5896         of an entry formal appearing in an assignment statement does not assign
5897         to the formal.
5898         (Expand_Current_Value): Instead of calling a routine to determine
5899         whether the prefix of an attribute reference should be optimized or
5900         not, prevent the optimization of such prefixes all together.
5901
5902         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
5903         component whose prefix is known to be of an access type is an implicit
5904         dereference and does not assign to the prefix.
5905
5906 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5907             Robert Dewar  <dewar@adacore.com>
5908
5909         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
5910         itype is visited, make an entry into table to link associated node and
5911         new itype.
5912         Add comments and correct harmless error in Build_NCT_Hash_Tables
5913         (Array_Aggr_Subtype): Associate each itype created for an index type to
5914         the corresponding range construct, and not to the aggregate itself. to
5915         maintain a one-to-one correspondence between itype and its associated
5916         node, to prevent errors when complex expression is copied.
5917         Fix mishandling of multiple levels of parens
5918
5919         * sem_aggr.adb: Create a limited view of an incomplete type, to make
5920         treatment of limited views uniform for all visible declarations in a
5921         limited_withed package.
5922         (New_Copy_Tree): If hash table is being used and itype is visited,
5923         make an entry into table to link associated node and new itype.
5924         (Resolve_Record_Aggregate): Do not add an others box association for a
5925         discriminated record component that has only discriminants, when there
5926         is a box association for the component itself.
5927
5928         * par-ch4.adb: Fix mishandling of multiple levels of parens
5929
5930 2007-08-14  Robert Dewar  <dewar@adacore.com>
5931
5932         * comperr.adb: Fix problem with suppressing warning messages from gigi
5933
5934         * erroutc.ads, erroutc.adb, errout.ads, 
5935         errout.adb (Write_Eol): Remove trailing spaces before writing the line
5936         (Write_Eol_Keep_Blanks): New procedure to write a line, including
5937         possible trailing spaces.
5938         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
5939         Fix problem with suppressing warning messages from back end
5940         Improve handling of deleted warnings
5941
5942         * gnat1drv.adb: 
5943         Fix problem with suppressing warning messages from back end
5944         Handle setting of Static_Dispatch_Tables flag.
5945
5946         * prepcomp.adb: 
5947         Fix problem with suppressing warning messages from back end
5948
5949         * exp_intr.adb: Improve handling of deleted warnings
5950
5951 2007-08-14  Robert Dewar  <dewar@adacore.com>
5952
5953         * debug.adb: Improve -gnatdI to cover all cases of serialization
5954         Add documentation of dZ, d.t
5955
5956         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
5957         serialization.
5958         (Sprint_Node_Actual): Generate new output associated with implicit
5959         importation and implicit exportation of object declarations.
5960
5961 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5962             Robert Dewar  <dewar@adacore.com>
5963             Javier Miranda  <miranda@adacore.com>
5964             Gary Dismukes  <dismukes@adacore.com>
5965
5966         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
5967         to make treatment of limited views uniform for all visible declarations
5968         in a limited_withed package.
5969         Improve warnings for in out parameters
5970         (Set_Related_Interaface/Related_Interface): Allow the use of this
5971         attribute with constants.
5972         (Write_Field26_Name): Handle attribute Related_Interface in constants.
5973         Warn on duplicate pragma Preelaborable_Initialialization
5974
5975         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
5976         generation of a freezing node to ensure proper management of null
5977         excluding access types in the backend.
5978         (Create_Extra_Formals): Test base type of the formal when checking for
5979         the need to add an extra accessibility-level formal. Pass the entity E
5980         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
5981         originally being done in a couple of cases), to ensure that the
5982         Extra_Formals list gets set on the entity E when the first entity is
5983         added.
5984         (Conforming_Types): Add missing calls to Base_Type to the code that
5985         handles anonymous access types. This is required to handle the
5986         general case because Process_Formals builds internal subtype entities
5987         to handle null-excluding access types.
5988         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
5989         functions that need it, even when not marked Requires_Overriding.
5990         Improve warnings for in out parameters
5991         (Analyze_Function_Return): Warn for disallowed null return
5992         Warn on return from procedure with unset out parameter
5993         Ensure consistent use of # in error messages
5994         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
5995         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
5996         the implicit conversion of the expression done for anonymous access
5997         types. This is required to generate the code of the null excluding
5998         check (if required).
5999
6000         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
6001         A formal parameter is never publicly referenceable outside of its body.
6002         (Check_References): For an unreferenced formal parameter in an accept
6003         statement, use the same warning circuitry as for subprogram formal
6004         parameters.
6005         (Warn_On_Unreferenced_Entity): New subprogram, taken from
6006         Output_Unreferenced_Messages, containing the part of that routine that
6007         is now reused for entry formals as described above.
6008         (Goto_Spec_Entity): New function
6009         (Check_References): Do not give IN OUT warning for dispatching operation
6010         Improve warnings for in out parameters
6011         (Test_Ref): Check that the entity is not undefinite before calling
6012         Scope_Within, in order to avoid infinite loops.
6013         Warn on return from procedure with unset out parameter
6014         Improved warnings for unused variables
6015
6016 2007-08-14  Robert Dewar  <dewar@adacore.com>
6017             Javier Miranda  <miranda@adacore.com>
6018             Gary Dismukes  <dismukes@adacore.com>
6019
6020         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
6021         (Expand_N_Attribute_Reference): Further unify the handling of the
6022         three forms of access attributes, using common code now for all three
6023         cases. Add a test for the case of applying an access attribute to
6024         an explicit dereference when the context is an access-to-interface
6025         type. In that case we need to apply the conversion to the prefix
6026         of the explicit dereference rather than the prefix of the attribute.
6027         (Attribute_Version, UET_Address): Set entity as internal to ensure
6028         proper dg output of implicit importation.
6029         (Expand_Access_To_Type): Removed.
6030         (Expand_N_Attribute_Reference): Merge the code from the three cases
6031         of access attributes, since the processing is largely identical for
6032         these cases. The substantive fix here is to process the case of a
6033         type name prefix (current instance case) before handling the case
6034         of interface prefixes.
6035
6036 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6037             Ed Schonberg  <schonberg@adacore.com>
6038             Javier Miranda  <miranda@adacore.com>
6039             Robert Dewar  <dewar@adacore.com>
6040
6041         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
6042         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
6043         type that is an anonymous access to controlled object, establish
6044         an associated finalization chain to avoid corrupting the global
6045         finalization list when a dynamically allocated object designated
6046         by such a component is deallocated.
6047         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6048         functions that need it, even when not marked Requires_Overriding.
6049         (Initialize_Tag): Replace call to has_discriminants by call to
6050         Is_Variable_Size_Record in the circuitry that handles the
6051         initialization of secondary tags.
6052         (Is_Variable_Size_Record): New implementation.
6053         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
6054         Suppress_Initialization pragma for a derived type.
6055         (Is_Variable_Size_Record): New subprogram.
6056         (Build_Offset_To_Top_Functions): New implementation that simplifies the
6057         initial version of this routine and also fixes problems causing
6058         incomplete initialization of the table of interfaces.
6059         (Build_Init_Procedure): Improve the generation of code to initialize the
6060         the tag components of secondary dispatch tables.
6061         (Init_Secondary_Tags): New implementation that simplifies the previous
6062         version of this routine.
6063         (Make_DT): Add parameter to indicate when type has been frozen by an
6064         object declaration, for diagnostic purposes.
6065         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
6066         diagnose attemps to freeze a subprogram when some untagged type of its
6067         profile is a private type whose full view has not been analyzed yet.
6068         (Freeze_Array_Type): Generate init proc for packed array if either
6069         Initialize or Normalize_Scalars is set.
6070         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
6071         constructing the new profile, copy the null_exclusion indicator for each
6072         parameter, to ensure full conformance of the new body with the spec.
6073
6074         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
6075         Create wrappers for constructor functions that need it, even when not
6076         marked Requires_Overriding.
6077         (Covers): Handle properly designated types of anonymous access types,
6078         whose non-limited views are themselves incomplete types.
6079         (Add_Entry): Use an entity to store the abstract operation which hides
6080         an interpretation.
6081         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
6082         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
6083         initialization aggregate.
6084         (Function_Interp_May_Be_Hidden): Rename to
6085         Function_Interp_Has_Abstract_Op.
6086         (Has_Compatible_Type): Remove machinery that skips interpretations if
6087         they are labeled as potentially hidden by an abstract operator.
6088         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
6089         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
6090         (Write_Overloads): Output the abstract operator if present.
6091         (Add_Entry): Before inserting a new entry into the interpretation table
6092         for a node, determine whether the entry will be disabled by an abstract
6093         operator.
6094         (Binary_Op_Interp_May_Be_Hidden): New routine.
6095         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
6096         aggregate.
6097         (Function_Interp_May_Be_Hidden): New routine.
6098         (Has_Compatible_Type): Do not consider interpretations hidden by
6099         abstract operators when trying to determine whether two types are
6100         compatible.
6101         (Has_Hidden_Interp): New routine.
6102         (Set_May_Be_Hidden_Interp): New routine.
6103         (Write_Overloads): Write the status of flag May_Be_Hidden.
6104
6105 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6106             Javier Miranda  <miranda@adacore.com>
6107
6108         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
6109         types declared in the declarative part of a nested package body or in
6110         the proper body of a stub.
6111         (Set_All_DT_Position): Add missing check to avoid wrong assignation
6112         of the same dispatch table slot to renamed primitives.
6113         (Make_Select_Specific_Data_Table): Handle private types.
6114         (Tagged_Kind): Handle private types.
6115         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
6116         output of implicit importation and exportation.
6117         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
6118         first formal of the thunk is always associated with the controlling
6119         type. In addition perform the following code cleanup: remove formal
6120         Thunk_Alias which is no longer required, cleanup evaluation of the
6121         the controlling type, and update the documentation.
6122         Replace occurrence of Default_Prim_Op_Count by
6123         Max_Predef_Prims. Addition of compile-time check to verify
6124         that the value of Max_Predef_Prims is correct.
6125         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
6126         (Make_DT): Add parameter to indicate when type has been frozen by an
6127         object declaration, for diagnostic purposes.
6128         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
6129         construction of statically allocated dispatch tables.
6130         (Make_DT): In case of library-level tagged types export the declaration
6131         of the primary tag. Remove generation of tags (now done by Make_Tags).
6132         Additional modifications to handle non-static generation of dispatch
6133         tables. Take care of building tables for asynchronous interface types
6134         (Make_Tags): New subprogram that generates the entities associated with
6135         the primary and secondary tags of Typ and fills the contents of Access_
6136         Disp_Table. In case of library-level tagged types imports the forward
6137         declaration of the primary tag that will be declared later by Make_DT.
6138         (Expand_Interface_Conversion): In case of access types to interfaces
6139         replace an itype declaration by an explicit type declaration to avoid
6140         problems associated with the scope of such itype in transient blocks.
6141
6142 2007-08-14  Robert Dewar  <dewar@adacore.com>
6143             Ed Schonberg  <schonberg@adacore.com>
6144             Javier Miranda  <miranda@adacore.com>
6145
6146         * exp_util.ads, exp_util.adb: 
6147         This patch replaces a number of occurrences of explicit tests for N_Null
6148         with calls to Known_Null. This improves tracking of null values, since
6149         Known_Null also catches null constants, and variables currently known to
6150         be null, so we get better tracking.
6151         (Ensure_Defined): create an itype reference only in the scope of the
6152         itype.
6153         (Side_Effect_Free): A selected component of an access type that
6154         denotes a component with a rep clause must be treated as not
6155         side-effect free, because if it is part of a linked structure its
6156         value may be affected by a renaming.
6157         (Expand_Subtype_From_Expr): For limited objects initialized with build
6158         in place function calls, do nothing; otherwise we prematurely introduce
6159         an N_Reference node in the expression initializing the object, which
6160         breaks the circuitry that detects and adds the additional arguments to
6161         the called function. Bug found working in the new patch for statically
6162         allocated dispatch tables.
6163         (Is_Library_Level_Tagged_Type): New subprogram.
6164         (Remove_Side_Effects): If the expression of an elementary type is an
6165         operator treat as a function call.
6166         (Make_Literal_Range): If the index type of the array is not integer, use
6167         attributes properly to compute the constraint on the resulting aggregate
6168         which is a string.
6169
6170         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
6171         class-wide type whose base type is an incomplete private type, leave
6172         class-wide type unfrozen so that freeze nodes can be generated
6173         properly at a later point.
6174         (Freeze_Entity, array case): Handle case of pragma Pack and component
6175         size attributre clause for same array.
6176
6177 2007-08-14  Vincent Celier  <celier@adacore.com>
6178
6179         * prj.ads, prj.adb: Update Project Manager to new attribute names for
6180         gprbuild.
6181         Allow all valid declarations in configuration project files
6182         (Reset): Initialize all tables and hash tables in the project tree data
6183         Major update of the Project Manager and of the project aware tools,
6184         including gprmake, so that the same sources in the GNAT repository
6185         can be used by gprbuild.
6186         (Slash_Id): Change type to be Path_Name_Type
6187         (Slash): Return a Path_Name_Type instead of a File_Name_Type
6188
6189         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
6190         gprbuild.
6191         Update Project Manager to new attribute names for ghprbuild
6192         Allow all valid declarations in configuration project files
6193         Major update of the Project Manager and of the project aware tools,
6194         including gprmake, so that the same sources in the GNAT repository
6195         can be used by gprbuild.
6196
6197         * prj-com.ads: 
6198         Major update of the Project Manager and of the project aware tools,
6199         including gprmake, so that the same sources in the GNAT repository
6200         can be used by gprbuild.
6201
6202         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6203         insensitive flag for attributes with optional index.
6204         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6205         array attribute, put the index in lower case.
6206         Update Project Manager to new attribute names for ghprbuild
6207         Allow all valid declarations in configuration project files
6208         Major update of the Project Manager and of the project aware tools,
6209         including gprmake, so that the same sources in the GNAT repository
6210         can be used by gprbuild.
6211
6212         * prj-env.ads, prj-env.adb: 
6213         Major update of the Project Manager and of the project aware tools,
6214         including gprmake, so that the same sources in the GNAT repository
6215         can be used by gprbuild.
6216         (Get_Reference): Change type of parameter Path to Path_Name_Type
6217
6218         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
6219         removing '-' from the path to start with the first character of the
6220         next directory.
6221         Major update of the Project Manager and of the project aware tools,
6222         including gprmake, so that the same sources in the GNAT repository
6223         can be used by gprbuild.
6224         Major update of the Project Manager and of the project aware tools,
6225         including gprmake, so that the same sources in the GNAT repository
6226         can be used by gprbuild.
6227
6228         * prj-nmsc.ads, prj-nmsc.adb: 
6229         Update Project Manager to new attribute names for ghprbuild
6230         Allow all valid declarations in configuration project files
6231         (Search_Directories): Detect subunits that are specified with an
6232         attribute Body in package Naming. Do not replace a source/unit in the
6233         same project when the order of the source dirs are known. Detect
6234         duplicate sources/units in the same project when the order of the
6235         source dirs are not known.
6236         (Check_Ada_Name): Allow all identifiers that are not reserved words
6237         in Ada 95.
6238         Major update of the Project Manager and of the project aware tools,
6239         including gprmake, so that the same sources in the GNAT repository
6240         can be used by gprbuild.
6241         (Look_For_Sources): If the list of sources is empty, set the object
6242         directory of non extending project to nil.
6243         Change type of path name variables to be Path_Name_Type
6244         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
6245         otherwise creating missing directories will fail.
6246
6247         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
6248         prj-part.ads, prj-part.adb:
6249         Major update of the Project Manager and of the project aware tools,
6250         including gprmake, so that the same sources in the GNAT repository
6251         can be used by gprbuild.
6252
6253         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6254         insensitive flag for attributes with optional index.
6255         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6256         array attribute, put the index in lower case.
6257         (Parse_Variable_Reference): Allow the current project name to be used in
6258         the prefix of an attribute reference.
6259
6260         * prj-util.ads, prj-util.adb
6261         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
6262         defaulted to False. When True, always check against indexes in lower
6263         case.
6264
6265         * snames.ads, snames.h, snames.adb: 
6266         Update Project Manager to new attribute names for gprbuild
6267         Allow all valid declarations in configuration project files
6268
6269 2007-08-14  Robert Dewar  <dewar@adacore.com>
6270             Ed Schonberg  <schonberg@adacore.com>
6271
6272         * opt.ads: Warning for non-local exception propagation now off by
6273         default
6274         New switch -gnatI to disable representation clauses
6275         Implement new pragma Implicit_Packing
6276
6277         * usage.adb: 
6278         Warning for non-local exception propagation now off by default
6279         Add warning for unchecked conversion of pointers wi different
6280         conventions.
6281         New switch -gnatI to disable representation clauses
6282
6283         * usage.adb: new switch -gnatyS
6284
6285         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
6286         note that aggregates of anonymous array types are not flagged.
6287         -gnatwc now includes membership tests optimized away
6288         -gnatw.x warnings are now off by default
6289         Added conditional compilation Appendix
6290         Add documentation of -gnatI
6291         Add documentation for new -gnatyS style check
6292         Update documentation about SAL and auto-init on Windows.
6293
6294         * gnat_rm.texi: 
6295         Add documentation for pragma Check_Name and 'Enabled attribute
6296         Document that Eliminate on dispatching operation is ignored
6297         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
6298         Document pragma Main
6299         Document pragma Implicit_Packing
6300
6301         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
6302         different conventions
6303         New switch -gnatI to disable representation clauses
6304
6305         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
6306         recognized, report the invalid characters including "-gnat" instead of
6307         just the first character in the switch.
6308         New switch -gnatI to disable representation clauses
6309         Set Warn_On_Object_Renames_Function true for -gnatg
6310
6311         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
6312         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
6313         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
6314         to switch -aP (add directory to project search dir).
6315
6316         * par-prag.adb: Implement new pragma Implicit_Packing
6317
6318         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
6319         type as having a non-standard representation, to force expansion on
6320         conversion to related types.
6321         (Analyze_Pragma): Warn on misspelled pragma
6322         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
6323         Ensure consistent use of # in error messages
6324         Implement pragma Implicit_Packing
6325
6326 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6327             Eric Botcazou  <ebotcazou@adacore.com>
6328
6329         * targtyps.c (get_target_maximum_default_alignment): New function.
6330         Maximum alignment
6331         that the compiler might choose by default for a type or object.
6332         (get_target_default_allocator_alignment): New function. Alignment known
6333         to be honored by the target default allocator.
6334         (get_target_maximum_allowed_alignment): New function. Maximum alignment
6335         we might accept for any type or object on the target.
6336         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
6337
6338         * gigi.h (get_target_maximum_default_alignment): Declare new function.
6339         (get_target_default_allocator_alignment): Likewise.
6340         (get_target_maximum_allowed_alignment): Likewise.
6341
6342         PR ada/19037
6343         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
6344         result of a function call, first try to use a stabilized reference for
6345         a constant renaming too.
6346         (validate_alignment): Use target_maximum_allowed_alignment instead of
6347         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
6348         (gnat_to_gnu_entity): Use common nodes directly.
6349         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
6350         alignment and size for the object.
6351         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
6352         and N_Procedure_Call_Statement.
6353         (takes_address): Rename to lvalue_required_p, add third parameter
6354         'aliased' and adjust recursive calls.
6355         <N_Indexed_Component>: Update 'aliased' from the array type.
6356         <N_Selected_Component>: New case.
6357         <N_Object_Renaming_Declaration>: New Likewise.
6358         (Identifier_to_gnu): Adjust for above changes.
6359         (maybe_stabilize_reference) <CONST_DECL>: New case.
6360
6361         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
6362         between type variants.
6363         (build_simple_component_ref): Likewise.
6364         (build_call_alloc_dealloc): Use target_default_allocator_alignment
6365         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
6366         aligning type circuitry for allocations from the default storage pool.
6367         (build_allocator): Likewise.
6368         (build_simple_component_ref): Manually fold the reference for a
6369         constructor if the record type contains a template.
6370
6371         * utils.c (value_zerop): Delete.
6372         (gnat_init_decl_processing): Emit debug info for common types.
6373         (rest_of_record_type_compilation): If a union contains a field
6374         with a non-constant qualifier, treat it as variable-sized.
6375         (finish_record_type): Give the stub TYPE_DECL a name.
6376         (rest_of_record_type_compilation): Likewise.
6377         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
6378         types are equivalent array types.
6379         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
6380         even if the type is not passed by reference.
6381         (static_ctors, static_dtors): Delete.
6382         (end_subprog_body): Do not record constructors and destructors.
6383         (build_global_cdtor): Delete.
6384         (gnat_write_global_declarations): Do not call build_global_cdtor.
6385
6386         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
6387         -fRTS=rtp is specified.
6388         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
6389         specified.
6390
6391         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
6392         of the personality function with SJLJ exceptions.
6393
6394         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
6395         the name of the personality function with SJLJ exceptions.
6396
6397 2007-08-14  Robert Dewar  <dewar@adacore.com>
6398             Ed Schonberg  <schonberg@adacore.com>
6399
6400         * par.ads, par.adb: Improve handling of extra right parens.
6401         (Par): Remove flag From_Limited_With_Clause.
6402
6403         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
6404         Improve handling of extra right parens.
6405
6406 2007-08-14  Robert Dewar  <dewar@adacore.com>
6407
6408         * par-tchk.adb (TF_Semicolon): Improve error recovery
6409
6410 2007-08-14  Robert Dewar  <dewar@adacore.com>
6411             Ed Schonberg  <schonberg@adacore.com>
6412
6413         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
6414         enumeration type, mark all literals as referenced.
6415         (Eval_Attribute, case 'Image): If the argument is an enumeration
6416         literal and names are available, constant-fold but mark nevertheless as
6417         non-static.
6418         Clean up function names.
6419         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
6420         comment.
6421         (Requires_Simple_Name_Prefix): Removed.
6422
6423 2007-08-14  Robert Dewar  <dewar@adacore.com>
6424             Ed Schonberg  <schonberg@adacore.com>
6425
6426         * sem_ch11.adb: Improved warnings for unused variables
6427
6428         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
6429         is a synchronized interface, the derived type is limited.
6430         (Analyze_Object_Declaration): Mark the potential coextensions in the
6431         definition and expression of an object declaration node.
6432         (Build_Derived_Type): For the completion of a private type declaration
6433         with a derived type declaration, chain the parent type's representation
6434         items to the last representation item of the derived type (not the
6435         first one) if they are not present already.
6436         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
6437         object declaration of forward references to tags.
6438         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
6439         subprogram types can appear as access discriminants of synchronized
6440         types.
6441         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
6442         given in prefixed form as a selected component.
6443         (Process_Discriminants): If not all discriminants have defaults, place
6444         error message on a default that is present.
6445         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
6446         extend a synchronized tagged type.
6447         Improved warnings for unused variables
6448         (Is_Visible_Component): Fix a visibility hole on a component inherited
6449         by a private extension when parent is itself declared as a private
6450         extension, and the derivation is in a child unit.
6451         (Find_Hidden_Interface): Move spec from the package body.
6452
6453 2007-08-14  Robert Dewar  <dewar@adacore.com>
6454             Ed Schonberg  <schonberg@adacore.com>
6455
6456         * sem_ch5.adb: Improve warnings on redundant assignments
6457
6458         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
6459         parameter
6460         (Is_Synchronized_Tagged_Type): New subprogram that returns true
6461         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
6462         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
6463         is set to False. Improves handling of Known_[Not_]Null.
6464         (Wrong_Type): Special case address arithmetic attempt
6465         (Collect_Abstract_Interfaces): Add new formal to allow collecting
6466         abstract interfaces just using the partial view of private types.
6467         (Has_Abstract_Interfaces): Add new formal to allow checking types
6468         covering interfaces using the partial view of private types.
6469         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
6470         component still needs to be defined in this case, but is never
6471         initialized as VMs are using other dispatching mechanisms.
6472         (Abstract_Interface_List): For a protected type, use base type to get
6473         proper declaration.
6474         Improve warnings on redundant assignments
6475         (Is_Variable): Handle properly an implicit dereference of a prefixed
6476         function call.
6477         (Build_Actual_Subtype): If this is an actual subtype for an
6478         unconstrained formal parameter, use the sloc of the body for the new
6479         declaration, to prevent anomalises in the debugger.
6480
6481 2007-08-14  Robert Dewar  <dewar@adacore.com>
6482
6483         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
6484         dispatching operation
6485
6486 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6487             Gary Dismukes  <dismukes@adacore.com>
6488
6489         * exp_aggr.ads, 
6490         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
6491         expanded aggregate code before allocator, and ahead of declaration for
6492         temporary, to prevent access before elaboration when the allocator is
6493         an actual for an access parameter.
6494         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
6495         the TSD and the table of interfaces.
6496         (Convert_To_Assignments): Augment the test for delaying aggregate
6497         expansion for limited return statements to include the case of extended
6498         returns, to prevent creation of an unwanted transient scope.
6499         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
6500         (Expand_Array_Aggregate): Handle aggregates associated with
6501         statically allocated dispatch tables.
6502         (Expand_Record_Aggregate): Handle aggregates associated with
6503         statically allocated dispatch tables.
6504         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
6505         of anonymous access type.
6506
6507 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6508
6509         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
6510         is a variable that renames a slice, use the variable itself in the
6511         expannsion when the renamed expression itself may be modified between
6512         the declaration of the renaming and the array assignment.
6513
6514 2007-08-14  Jerome Guitton  <guitton@adacore.com>
6515
6516         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
6517         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
6518         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
6519         New functions; dummy implementations.
6520
6521         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
6522         functions, used to implement the multi-tasks mode routines on VxWorks.
6523
6524         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
6525         New functions, thin
6526         binding to the VxWorks routines which have changed between VxWorks 5
6527         and 6.
6528         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
6529         which are not callable from a RTP.
6530
6531         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
6532         implemented for the multi-tasks mode on VxWorks 5 and 6.
6533
6534         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
6535
6536         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
6537         functions.
6538
6539 2007-08-14  Vincent Celier  <celier@adacore.com>
6540
6541         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
6542         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
6543         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
6544         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
6545         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
6546         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
6547         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
6548         procedure.
6549         (Major_Id_Name): New function.
6550         mlib-tgt.ads/mlib.tgt.adb:
6551         (Library_Major_Minor_Id_Supported): New function, default returns True
6552         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
6553         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
6554         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
6555         Implementation of Library_Major_Minor_Id_Supported returns False
6556         clean.adb:
6557         (Clean_Library_Directory): If major/minor ids are supported, clean all
6558         library files.
6559         Major update of the Project Manager and of the project aware tools,
6560         including gprmake, so that the same sources in the GNAT repository
6561         can be used by gprbuild.
6562
6563 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6564
6565         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
6566         (GCC_ZCX_Support): Switch to True.
6567         
6568         * s-intman-solaris.adb (Notify_Exception): Call
6569         Adjust_Context_For_Raise before raising, as expected for signal
6570         handlers in general.
6571         
6572         * s-intman-posix.adb (Notify_Exception): Remove declaration of
6573         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
6574         to other implementation bodies.
6575         
6576         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
6577         be visible by multiple implementation bodies.
6578         
6579         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
6580         only for conditions coming from hardware.
6581         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
6582         adjustments to signal context prior to exception raise from signal
6583         handler.
6584         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
6585         mode.
6586         Solaris section: (__gnat_adjust_context_for_raise): New function.
6587         Implementation of the machine context adjustments to perform prior to
6588         raise from a signal handler. Version for both sparc and x86.
6589         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
6590         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
6591         prior to raising as expected for any handler, before possible nested
6592         faults to make sure all the contexts in a chain have been adjusted by
6593         the time we propagate.
6594
6595 2007-08-14  Pascal Obry  <obry@adacore.com>
6596
6597         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
6598         (SYSTEM_INFO): New record.
6599         (SetThreadIdealProcessor): New imported routine needed for supporting
6600         task_info pragma on Windows.
6601
6602         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
6603         info can be applied to the current host.
6604         (Create_Task): Set the ideal processor if information is present.
6605
6606         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
6607         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
6608
6609 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6610
6611         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
6612         stack size and initial stack pointer value for a given task.
6613         (Enter_Task): Get the stack attributes of the task we are entering and
6614         let the stack checking engine know about them.
6615
6616         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
6617         Let the stack-checking engine know about the initial sp value and stack
6618         size associated with the current task.
6619         (Set_Stack_Info): If a stack base has been notified for the current
6620         task, honor it. Fallback to the previous less accurate method otherwise.
6621
6622         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
6623
6624 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6625
6626         * sem_ch10.adb: Create a limited view of an incomplete type, to make
6627         treatment of limited views uniform for all visible declarations in a
6628         limited_withed package.
6629         Set flag indicating that a subprogram body for a child unit has a
6630         generated spec.
6631         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
6632         separate declaration, remove the unit name from visibility after
6633         compilation, so that environment is clean for subsequent compilations.
6634         (Install_Limited_Context_Clauses): Do not install a
6635         limited_private_with_clause unless the current unit is a body or a
6636         private child unit.
6637         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
6638         in the same fashion.
6639         (Install_Limited_Withed_Unit): Do not install a limited with clause if
6640         it applies to the declaration of the current package body.
6641         (Remove_Private_With_Clauses): If there is a regular with_clause for
6642         the unit, delete Private_With_Clause from context, to prevent improper
6643         hiding when processing subsequent nested packages and instantiations.
6644
6645 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
6646
6647         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
6648         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
6649         representing absolute path names.
6650         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
6651
6652         * cstreams.c (__gnat_full_name for VxWorks): Use
6653         __gnat_is_absolute_path to detect whether we need to add the current
6654         directory to normalize the path.
6655
6656 2007-08-14  Javier Miranda  <miranda@adacore.com>
6657
6658         * a-tags.ads, 
6659         a-tags.adb (Displace): Associate a message with the raised CE
6660         exception.
6661         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
6662         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
6663         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
6664         spec.
6665         (Default_Prim_Op_Count): Removed.
6666         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
6667         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
6668         Remove pragma Inline_Always.
6669
6670         * rtsfind.ads (Default_Prim_Op_Count): Removed
6671         (Max_Predef_Prims): New entity
6672         (RE_Expanded_Name): Removed
6673         (RE_HT_Link): Removed
6674         (RE_Iface_Tag): Remmoved
6675         (RE_Ifaces_Table): Removed
6676         (RE_Interfaces_Array): Removed
6677         (RE_Interface_Data_Element): Removed
6678         (RE_Nb_Ifaces): Removed
6679         (RE_RC_Offset): Removed
6680         (RE_Static_Offset_To_Top): Removed
6681
6682         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
6683         formal.
6684         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
6685         Prim_Op_Count by Max_Predef_Prims.
6686
6687 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6688             Vincent Celier  <celier@adacore.com>
6689
6690         * binde.adb (Elab_All_Links): Remove unnecessary call to
6691         Generic_Separately_Compiled (if a unit satisfies this predicate, there
6692         won't be an associated Afile).
6693         (Elab_All_Links): Fail if a referenced unit cannot be found
6694
6695         * bindgen.adb: 
6696         Fix comments in bindgen regarding consistency checks done in Bcheck:
6697         the checks are made across units within a partition, not across several
6698         partitions.
6699         Fix generation of C binder file for VxWorks.
6700
6701         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
6702         Generic_May_Lack_ALI, more descriptive of the current use of the
6703         predicate, and update documentation.
6704
6705         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
6706         reorganization and documentation update for the case of predefined
6707         library generics (for which we do not reference an Afile).
6708
6709 2007-08-14  Robert Dewar  <dewar@adacore.com>
6710
6711         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
6712         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
6713         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
6714         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
6715         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
6716         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
6717         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
6718         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
6719         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
6720         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
6721         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
6722         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
6723         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
6724         g-altcon.adb: Minor reformatting
6725
6726         ada-tree.h: Delete empty line.
6727
6728         ali.ads: Minor reformatting
6729         Clarification of comments.
6730         Minor spelling correction
6731
6732         * exp_dbug.adb: Add Warnings Off to suppress new warning
6733
6734         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6735         formal
6736
6737         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
6738         value
6739
6740         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
6741
6742         * a-textio.ads: Reorder the standard input/output/error declarations
6743         for consistency.
6744
6745         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
6746
6747         * par-ch2.adb: Recognize RM specially in errout
6748         Change 'R'M to RM in all error messages
6749
6750         * scng.adb: Recognize RM specially in errout
6751
6752         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
6753         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
6754
6755         * s-direio.adb: Add missing routine header box.
6756
6757         * sem_attr.ads: Add ??? comments
6758
6759         * sem_eval.adb: Recognize RM specially in errout
6760         Change 'R'M to RM in all error messages
6761
6762         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
6763
6764         * s-tasinf.ads: Fix minor comment typo.
6765
6766         * a-cihama.adb: Minor comment addition
6767
6768         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6769         formal
6770
6771         * s-tasinf-tru64.ads: Fix minor comment typo.
6772
6773         * itypes.ads: Comment update.
6774
6775         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
6776         anymore.
6777
6778         * argv.c: Added protection against null gnat_argv and gnat_envp.
6779
6780         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
6781         warning message when Tolerate_Consistency_Errors is True.
6782
6783         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
6784         Any_Id, as this subprogram is only applicable to *type* entities (it
6785         sets RM_Size). Instead initialize just Esize and Alignment.
6786
6787 2007-08-14  Bob Duff  <duff@adacore.com>
6788
6789         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
6790         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
6791         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
6792         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
6793         a-coorse.ads (Next): Applied pragma Inline.
6794         Make all Containers packages Remote_Types (unless they are already
6795         Pure).
6796         (Previous): applied pragma Inline
6797         (Elements_Type): is now a record instead of an array
6798
6799 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6800
6801         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
6802         of Set_Item.
6803         (Set_Item): When the new item is an element of the currently allocated
6804         table passed by reference, save a copy on the stack if we're going
6805         to reallocate. Also, in Table.Set_Item, make sure we test the proper
6806         variable to determine whether to call Set_Last.
6807
6808         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
6809         symbols-vms.adb, symbols-processing-vms-alpha.adb,
6810         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
6811         some occurrences of the pattern
6812            T.Increment_Last;
6813            T.Table (T.Last) := Value;
6814         with a cleaner call to
6815            T.Append (Value);
6816
6817 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6818             Gary Dismukes  <dismukes@adacore.com>
6819             Thomas Quinot  <quinot@adacore.com>
6820
6821         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
6822         derived type with interface progenitors use the analyzed formal as the
6823         parent of the actual, to create renamings for all the inherited
6824         operations in Derive_Subprograms.
6825         (Collect_Previous_Instances): new procedure within of
6826         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
6827         unit being loaded, to ensure that the generation of global symbols is
6828         consistent in different compilation modes.
6829         (Is_Tagged_Ancestor): New function testing the ancestor relation that
6830         takes progenitor types into account.
6831         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
6832         traversing over the primitives of the formal and actual types to locate
6833         any abstract subprograms of the actual type that correspond to a
6834         nonabstract subprogram of the formal type's ancestor type(s), and issue
6835         an error if such is found.
6836         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
6837         Instantiate_Package_Body, Instantiate_Subprogram_Body):
6838         Remove bogus guard around calls to Inherit_Context.
6839         (Reset_Entity): If the entity is the selector of a selected component
6840         that denotes a named number, propagate constant-folding to the generic
6841         template only if the named number is global to the generic unit.
6842         (Set_Instance_Env): Only reset the compilation switches when compiling
6843         a predefined or internal unit.
6844
6845 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6846
6847         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
6848         parameter to determine whether operation applies to the prefix.
6849         (Complete_Object_Operation): If actual has an access type and
6850         controlling formal is not an in_parameter, reject the actual if it is
6851         an access_to_constant type.
6852         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
6853         type, the candidate operations are found in the scope of declaration of
6854         the type, because the type has no primitive subprograms.
6855         (Analyze_Selected_Component): If prefix is class-wide, and root type is
6856         a private extension, only examine visible components before trying to
6857         analyze as a prefixed call.
6858         Change Entity_List to Type_To_Use, for better readability.
6859         (Has_Fixed_Op): Use base type when checking whether the type of an
6860         operator has a user-defined multiplication/division
6861         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
6862         user-defined operators are available for fixed-point types.
6863
6864 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6865             Ed Schonberg  <schonberg@adacore.com>
6866
6867         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
6868         formal At_Any_Place indicating, when True, that we want to test for
6869         availability of the stream attribute at any place (as opposed to the
6870         current visibility context only).
6871         (Missing_Read_Write_Attributes): A stream attribute is missing for the
6872         purpose of enforcing E.2.2(8) only if it is not available at any place.
6873         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
6874         when checking the legality of an extension aggregate in a preelaborable
6875         package. Treat the literal null as a valid default expression in a
6876         component declaration for a type with preelaborable initialization.
6877         A limited interface is a legal progenitor for the designated type of a
6878         remote access to class-wide type.
6879
6880 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6881             Ed Schonberg  <schonberg@adacore.com>
6882
6883         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
6884         reference): Use correct entity as denoted entity for the selector of
6885         the rewritten node.
6886         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
6887         setting the Referenced_As_LHS flag for entities that are implicitly
6888         dereferenced.
6889         (Find_Type): If the type is an internally generated incomplete type,
6890         mark the full view as referenced, to prevent spurious warnings.
6891         (Find_Selected_Component, Has_Components): Handle properly non-limited
6892         views that are themselves incomplete types.
6893         Handle interfaces visible through limited-with clauses.
6894         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
6895         subprogram generic actual for which we have generated a renaming.
6896         Warn when the renaming introduces a homonym of
6897         the renamed entity, and the renamed entity is directly visible.
6898
6899 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6900             Hristian Kirtchev  <kirtchev@adacore.com>
6901
6902         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
6903         appear in the subtree to the current allocator if it is not a static
6904         coextension.
6905         (Resolve_Allocator): Perform cleanup if resolution has determined that
6906         the allocator is not a coextension.
6907         (Resolve): Skip an interpretation hidden by an abstract operator only
6908         when the type of the interpretation matches that of the context.
6909         (Resolve): When looping through all possible interpretations of a node,
6910         do not consider those that are hidden by abstract operators.
6911         (Resolve_Actuals): When verifying that an access to class-wide object
6912         is an actual  for a controlling formal, ignore anonymous access to
6913         subprograms whose return type is an access to class_wide type.
6914         (Resolve_Slice): If the prefix of the slice is a selected component
6915         whose type depends on discriminants, build its actual subtype before
6916         applying range checks on the bounds of the slice.
6917         (Valid_Conversion): In an instance or inlined body, compare root types,
6918         to prevent anomalies between private and public views.
6919         (Resolve): Improve error message for ambiguous fixed multiplication
6920         expressions that involve universal_fixed multiplying operations.
6921
6922 2007-08-14  Javier Miranda  <miranda@adacore.com>
6923             Hristian Kirtchev  <kirtchev@adacore.com>
6924
6925         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
6926         location to allow the correct generation of errors in case of
6927         restrictions applied to the expanded code.
6928         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
6929         function if the condition does not reference them.
6930         (Expand_Entry_Body_Declarations): Mark the index constant as having a
6931         valid value.
6932
6933 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6934             Pablo Oliveira  <oliveira@adacore.com>
6935
6936         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
6937         typecode parameters for a union (in a variant record), remove
6938         extraneous layer of Any wrapping for member label.
6939         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
6940         elabration statements, register the package with the name server
6941         at the beginning, not at the end, of the elaboration statements so
6942         that they can create remote access to subprogram values that designate
6943         remote subprograms from the package.
6944
6945 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
6946
6947         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
6948         values to compute the number of seconds since the Unix Epoc in order to
6949         account for Daylight Savings Time. Perform special processing for dates
6950         that are earlier than the Unix Epoc to obtain a negative number.
6951
6952 2007-08-14  Emmanuel Briot  <briot@adacore.com>
6953
6954         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
6955         switches.
6956
6957 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
6958
6959         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
6960         binder-generated file is not in Ada.
6961         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
6962         recorded in the ALI file.
6963         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
6964
6965 2007-08-14  Vincent Celier  <celier@adacore.com>
6966
6967         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
6968         (Output_Source): Do nothing if parameter is No_Sdep_Id
6969
6970         * make.adb (Gnatmake): Do not rebuild an archive simply because a
6971         shared library it imports has a later time stamp.
6972         (Check): Resolve the symbolic links in the path name of the object
6973         directory.
6974         Check that the ALI file is in the correct object directory
6975         Check if a file name does not correspond to the mapping of units
6976         to file names.
6977         (Display_Version): New procedure
6978         (Initialize): Process switches --version and --help
6979         Use type Path_Name_Type for path name
6980
6981 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
6982
6983         * impunit.adb: Re-organize System.Random_Numbers and
6984         GNAT.Random_Numbers and add to builds.
6985
6986         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
6987
6988         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
6989
6990         * a-assert.ads, a-assert.adb: New files.
6991
6992 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
6993
6994         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
6995         if AAMP_On_Target is True, then the size of the type encompasses two
6996         addresses (a static link and a subprogram address), except in the case
6997         of library-level access types.
6998
6999 2007-08-14  Vincent Celier  <celier@adacore.com>
7000
7001         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
7002         writing the line.
7003         (Write_Eol_Keep_Blanks): New procedure to write a line, including
7004         possible trailing spaces.
7005         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7006
7007 2007-08-14  Javier Miranda  <miranda@adacore.com>
7008
7009         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
7010         null-excluding access types.
7011
7012 2007-08-14  Javier Miranda  <miranda@adacore.com>
7013
7014         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
7015         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
7016         of private types add missing check on matching interfaces in the
7017         partial and full declarations.
7018         (Analyze_Protected_Type): Code cleanup.
7019         (Analyze_Task_Type): Code cleanup.
7020
7021 2007-08-14  Javier Miranda  <miranda@adacore.com>
7022
7023         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
7024         generated interface thunk.
7025
7026 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7027
7028         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
7029         obsolescent warning on application of 'Class to an incomplete type.
7030
7031         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
7032         prevent obsolescent warning on application of 'Class to an incomplete
7033         type.
7034
7035 2007-08-14  Pascal Obry  <obry@adacore.com>
7036
7037         * s-fileio.adb (Is_Open): Add check for usability of the underlying
7038         file stream.
7039
7040 2007-08-14  Cyrille Comar  <comar@adacore.com>
7041
7042         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
7043         since it is potentially used in cases implying double finalization of
7044         the same object.
7045
7046 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
7047
7048         * s-tasini.adb (Get_Stack_Info): Move this function to
7049         System.Soft_Links.Tasking because it is common to the full and the
7050         restricted run times.
7051         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
7052         in SSL.Tasking.Init_Tasking_Soft_Links.
7053
7054         * s-solita.adb (Get_Stack_Info): Function moved from
7055         System.Tasking.Initialization because it is common to the full and the
7056         restricted run times.
7057         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
7058
7059 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
7060
7061         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
7062         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
7063         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
7064         parameter.
7065
7066         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
7067         guard to 12K.
7068
7069 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
7070
7071         * s-veboop.adb (SU): New named number initialized to
7072         System.Storage_Unit.
7073         (True_Val): The initialization expression is revised to use SU (=
7074         Storage_Unit) rather than assuming 8 for the component size of an
7075         unpacked Boolean array.
7076
7077 2007-08-14  Tristan Gingold  <gingold@adacore.com>
7078
7079         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
7080
7081         * tb-ivms.c: New file.
7082
7083         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
7084
7085 2007-08-14  Geert Bosch  <bosch@adacore.com>
7086
7087         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
7088         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
7089         Add required linker pragmas for automatically linking with the gnalasup
7090         linear algebra support library, and the systems math library.
7091         Rename cdot to cdotu and zdot to zdotu.
7092         Update header comment to describe purpose of package.
7093
7094 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7095
7096         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
7097         an explicitly specified Associated_Final_Chain, use that list.
7098         (Expand_N_Package_Body): Build dispatch tables of library level tagged
7099         types.
7100         (Expand_N_Package_Declaration): Build dispatch tables of library level
7101         tagged types. Minor code cleanup.
7102
7103 2007-08-14  Vincent Celier  <celier@adacore.com>
7104
7105         * gnatchop.adb (Terminate_Program): Remove exception and use
7106         Types.Terminate_Program instead.
7107
7108         * osint.ads, osint.adb (Current_Exit_Status): New global variable
7109         (Find_Program_Name): Added protection against empty name.
7110         (OS_Exit_Through_Exception): New procedure
7111
7112         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
7113         (OS_Exit_Default): New procedure that contains the previous
7114         implementation of procedure OS_Exit.
7115         (Final_Value): Remove obsolete Interix stuff.
7116
7117 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7118
7119         * g-socket.ads: Reorganize example code so that it also works on
7120         Windows XP.
7121
7122 2007-08-14  Tristan Gingold  <gingold@adacore.com>
7123
7124         * g-trasym.ads: AIX now supports symbolic backtraces.
7125
7126 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7127
7128         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
7129         units being loaded to detect circularities. A circularity may be
7130         present even if the current chain of pending units to load starts from
7131         a limited_with_clause.
7132
7133         * lib-load.ads: Change profile of Load_Unit to use a with_clause
7134         rather than a boolean flag, in order to detect circularities in
7135         with_clauses.
7136
7137         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
7138         than propagating the From_Limited_With flag, in order to handle
7139         properly circularities involving with_clauses.
7140
7141 2007-08-14  Nicolas Setton  <setton@adacore.com>
7142
7143         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
7144         warnings.
7145
7146 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
7147
7148         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
7149         to build for libgnala.
7150         libgnat: Add rules to build libgnala.a
7151         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
7152         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
7153         Add s-osinte-vxworks-kernel.adb to the target pairs of the
7154         kernel run-time lib for VxWorks 6, which would provide a different
7155         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
7156         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
7157         running ZCX by default.
7158         Add g-sttsne-locking to LynxOS version.
7159         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
7160         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
7161
7162         * system-darwin-x86.ads: New file.
7163
7164         * Make-lang.in: Delete files before copying onto them, so if they are
7165         read-only, the copy won't fail.
7166         Update dependencies
7167
7168 2007-08-14  Pascal Obry  <obry@adacore.com>
7169
7170         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
7171         naming scheme.
7172
7173 2007-08-14  Vincent Celier  <celier@adacore.com>
7174
7175         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
7176         (Gcc): Initialize Gcc_Name at the first call
7177
7178 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7179
7180         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
7181         with_clauses of the enclosing unit when analyzing the package
7182         specification of a nested instance.
7183
7184 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7185
7186         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
7187         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
7188         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
7189         layout of N_Allocator.
7190
7191 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7192
7193         * rtsfind.adb (Check_RPC): Add PCS version check.
7194
7195         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
7196         (Gnat_Free_Software): New function.
7197
7198         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
7199         the PCS_Version value from s-parint, used to check that it is consistent
7200         with what exp_dist expects.
7201
7202         * s-parint.ads (PCS_Version): New entity for checking consistency
7203         between exp_dist and PCS.
7204
7205         * gen-soccon.c: (SO_REUSEPORT): New constant.
7206
7207 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7208
7209         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
7210         variable Sub_Second to Duration in order to accomodate a larger range
7211         of arithmetic operations.
7212
7213 2007-08-14  Bob Duff  <duff@adacore.com>
7214
7215         * g-sttsne-locking.ads: Move comments from spec to body.
7216         * g-sttsne-locking.adb: Move comments from spec to body.
7217         * g-sttsne-vxworks.ads: Removed.
7218         * g-sttsne-vxworks.adb: Removed.
7219
7220 2007-08-11  Ian Lance Taylor  <iant@google.com>
7221
7222         * misc.c (gnat_get_alias_set): Change return type to
7223         alias_set_type.
7224
7225 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7226
7227         * decl.c, utils2.c: Fix whitespace in last change.
7228
7229 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7230
7231         * decl.c (compare_field_bitpos): Constify.
7232         * utils2.c (compare_elmt_bitpos): Likewise.
7233
7234 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
7235
7236         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
7237         anonymous access type.
7238         (pthread_sigmask): Now take an access sigset_t.
7239
7240 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
7241
7242         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
7243         
7244 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
7245
7246         PR tree-optimization/25737
7247         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
7248
7249 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7250
7251         * trans.c (Attribute_to_gnu): When subtracting an
7252         offset from a pointer, use POINTER_PLUS_EXPR with
7253         NEGATE_EXPR instead of MINUS_EXPR.
7254         (gnat_to_gnu): Likewise.
7255         * utils.c (convert): When converting between
7256         thin pointers, use POINTER_PLUS_EXPR and sizetype
7257         for the offset.
7258         * utils2.c (known_alignment): POINTER_PLUS_EXPR
7259         have the same semantics as PLUS_EXPR for alignment.
7260         (build_binary_op): Add support for the semantics of
7261         POINTER_PLUS_EXPR's operands.
7262         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
7263
7264 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
7265
7266         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
7267         of get_signed_or_unsigned_type.
7268         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
7269
7270 2007-06-11  Bob Duff  <duff@adacore.com>
7271             Thomas Quinot  <quinot@adacore.com>
7272
7273         * g-stsifd-sockets.adb (Create): Work around strange behavior of
7274         'bind' on windows that causes 'connect' to fail intermittently, by
7275         retrying the 'bind'.
7276         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7277
7278 2007-06-10  Duncan Sands  <baldrick@free.fr>
7279
7280         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
7281         than to void, for the fields when making a new fat pointer type.
7282         (gnat_substitute_in_type): Now substitute_in_type.
7283         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
7284         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
7285         * utils.c (update_pointer_to): Update fat pointers by updating the
7286         dummy node pointers used for the fields.
7287
7288 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7289             Bob Duff  <duff@adacore.com>
7290
7291         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
7292         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
7293         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
7294         constant Thread_Blocking_IO, always True by default, set False
7295         on a per-runtime basis.
7296         (Need_Netdb_Buffer): New constant.
7297
7298         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
7299         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
7300         files.
7301
7302         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
7303         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
7304         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
7305         child package Task_Safe_NetDB
7306         (Host_Error_Messages): Add stub body.
7307         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7308
7309         * g-soccon-mingw.ads: Add Windows-specific constants.
7310         (Need_Netdb_Buffer): New constant.
7311         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
7312         wrapper and import inet_addr(3) from the standard sockets library
7313         directly instead.
7314         (In_Addr): Add alignment clause.
7315         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7316
7317 2007-06-06  Robert Dewar  <dewar@adacore.com>
7318
7319         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7320         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
7321         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
7322         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
7323         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
7324         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
7325         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
7326         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
7327         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
7328         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
7329         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
7330         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
7331         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
7332         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7333         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7334         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
7335         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
7336         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
7337         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
7338         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
7339         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
7340         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
7341         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
7342         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
7343         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
7344         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
7345         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
7346         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
7347         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
7348         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
7349         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
7350         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
7351         Unchecked_* by Ada.Unchecked_*
7352
7353 2007-06-06  Robert Dewar  <dewar@adacore.com>
7354
7355         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
7356         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
7357         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
7358         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
7359         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
7360         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
7361
7362         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
7363         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
7364         s-tasloc.adb, s-tasloc.ads: New files.
7365
7366 2007-06-06  Bob Duff  <duff@adacore.com>
7367
7368         * g-expect-vms.adb: 
7369         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
7370         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
7371         (Send_Signal, Close): Raise Invalid_Process if the process id is
7372         invalid.
7373         (Pattern_Matcher_Access): Is now a general access type to be able to
7374         use aliased string.
7375
7376 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7377             Arnaud Charlet  <charlet@adacore.com>
7378
7379         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
7380         (SIGEMT is now used instead of SIGTERM on AIX).
7381
7382         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
7383         (Time_Slice_Supported): Set to True.
7384         Use SIGEMT instead of SIGTERM as SIGADAABORT.
7385
7386 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
7387
7388         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
7389         (Time, Time)): Use To_Relative_Time rather than manual calculation to
7390         express the bounds of Duration as Time. Raise Time_Error when the
7391         result is greater or equal to the higher bound of Duration (on the
7392         margin case).
7393         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
7394         Ada_High_And_Leaps.
7395         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
7396         Ada_High_And_Leaps.
7397         ("-" (Time, Time)): Reorder code.
7398         (All_Leap_Seconds): Removed.
7399         (Arithmetic_Operations.Add): Remove sign related kludge.
7400         (Arithmetic_Operations.Difference): Control the leaps seconds processing
7401         with flag Leap_Support.
7402         (Arithmetic_Operations.Subtract): Remove sign related kludge.
7403         (Check_Within_Time_Bounds): New procedure.
7404         (Clock): Control the leap seconds processing with flag Leap_Support.
7405         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
7406         (Formatting_Operations.Split): Control the leap seconds processing with
7407         flag Leap_Support.
7408         (Formatting_Operations.Time_Of): Control the leaps seconds processing
7409         with flag Leap_Support. Adjust the year, month and day (if applicable)
7410         when the value of day seconds designates a new day.
7411         (Split): Use parameter associations for better readability. Integrate
7412         flag Is_Ada_05.
7413         (Time_Of): Use parameter associations for better readability. Integrate
7414         flag Is_Ada_05.
7415
7416         * a-calfor.adb (Split): Use parameter associations for better
7417         readability. Integrate flag Is_Ada_05.
7418         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
7419         better readability. Integrate flag Is_Ada_05.
7420
7421 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7422
7423         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
7424         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
7425         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
7426         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
7427         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
7428         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
7429         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
7430         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
7431         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
7432         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
7433         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
7434         time when entering this routine to detect a backward clock setting
7435         (manual setting or DST adjustment), to avoid waiting for a longer delay
7436         than needed.
7437         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
7438         Remove handling of deferred priority change, and replace by setting the
7439         task priority directly, as required by AI-188.
7440         Update comments.
7441         (Max_Task_Image_Length): New constant.
7442         Replace Warnings (Off) by Unreferenced pragma, cleaner.
7443         (Dynamic_Priority_Support): Removed, no longer needed.
7444         (Poll_Base_Priority_Change): Ditto.
7445         (Set_Ceiling): Add this procedure to change the ceiling priority
7446         associated to a lock. This is a dummy implementation because dynamic
7447         priority ceilings are not supported by the underlying system.
7448
7449         * a-dynpri.adb (Set_Priority): Take into account case where Target is
7450         accepting a RV with its priority boosted.
7451         Remove handling of deferred priority change, and replace by setting the
7452         task priority directly, as required by AI-188.
7453
7454         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
7455         Succeeded = True.
7456         Remove handling of deferred priority change, and replace by setting the
7457         task priority directly, as required by AI-188.
7458         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
7459         of Self_Id earlier.
7460
7461         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
7462         (Poll_Base_Priority_Change): Removed.
7463         Code clean up: use SSL.Current_Target_Exception.
7464
7465         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
7466         to run as this is a potentially dispatching point.
7467         (Call_Synchronous): Use Local_Defer_Abort.
7468         (Callable): Relax assertion.
7469         (Selective_Wait): Relax assertion in case abort is not allowed.
7470         Remove handling of deferred priority change, and replace by setting the
7471         task priority directly, as required by AI-188.
7472
7473         * s-tasuti.adb (Make_Passive): Adjust assertions.
7474         Remove handling of deferred priority change, and replace by setting the
7475         task priority directly, as required by AI-188.
7476
7477 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7478
7479         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7480         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
7481         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
7482         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
7483         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
7484         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
7485         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
7486         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
7487         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
7488         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
7489         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
7490         This patch changes the largest non-binary modulus from 2**31-1 to
7491         2**32-1.
7492         (Compiler_System_Version): Removed, no longer used.
7493         Clean up system files by removing flags only used on a single target.
7494         Also remove obsolete flags, only used during bootstrap from system.ads
7495         (Address): Add a pragma Preelaborable_Initialization.
7496
7497         * system-aix.ads:  Ditto.
7498         (GCC_ZCX_Support): Set to true.
7499         Update priority range on AIX and map Ada priorities to target
7500         priorities appropriately for different scheduling policies.
7501
7502         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
7503
7504 2007-06-06  Vincent Celier  <celier@adacore.com>
7505
7506         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
7507         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
7508
7509         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
7510         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
7511         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
7512         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
7513         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
7514         MLib.Tgt, containing the default versions of the exported subprograms.
7515         For each platform, create a specific version of the body of new child
7516         package MLib.Tgt.Specific that contains only the body of subprograms
7517         that are different from the default.
7518         (Archive_Builder_Append_Options): New function.
7519
7520 2007-06-06  Matthew Gingell  <gingell@adacore.com>
7521
7522         * s-osinte-aix.adb: Map Ada priorities to target priorities
7523         appropriately for different scheduling policies.
7524
7525 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7526
7527         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
7528         its C counterpart.
7529         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
7530         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
7531
7532 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
7533
7534         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
7535         Noop on VMS, added for interface commonality.
7536
7537 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7538             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7539             Olivier Hainque  <hainque@adacore.com>
7540
7541         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
7542         renamed expression of a full renaming at toplevel.
7543         (gnat_to_gnu_entity, case object): If not defining, do not look inside
7544         the values the constant is initialized to if it is an N_Allocator.
7545         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
7546         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
7547         (make_aligning_type): Accept an extra ROOM argument for storage to be
7548         made available before the aligned field, and an extra BASE_ALIGN
7549         argument for callers to pass the alignment guaranteed to be honored for
7550         the whole aligning object. Avoid call to finish_record_type, which only
7551         interferes with the sizes we want to set.
7552         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
7553         make_aligning_type for super-aligned objects on stack.
7554         (components_to_record): Pass the adjusted size of the type when creating
7555         fields in the qualified union for the variant part.
7556         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
7557         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
7558         packed array type.
7559         (maybe_pad_type): Set TYPE_USER_ALIGN.
7560         (make_aligning_type): Likewise.
7561         ALIGN argument is unsigned int.
7562         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
7563         (gnat_to_gnu_param): Likewise, for parameters.
7564         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
7565         if it is constant and stems from a function call.
7566         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
7567         of the record is specified.  Adjust accordingly.
7568         (adjust_packed): New static function.
7569         (gnat_to_gnu_field): Use it to adjust the packedness setting.
7570         (components_to_record): Likewise.
7571         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
7572         side-effects if the object is deemed constant.
7573         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
7574         type instead of merely finalizing it.  Tidy.
7575         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
7576         <E_Access_Type>: Likewise.
7577         (defer_debug_incomplete_list): Rename to defer_finalize_list.
7578         (defer_debug_level): Delete.
7579         (gnat_to_gnu_entity) <debug_deferred>: Likewise
7580         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
7581         type.
7582         <E_Record_Type>: Do not explicitly defer finalizing the type.
7583         Adjust for write_record_type_debug_info renaming.
7584         <E_Subprogram_Type>: Likewise.
7585         Finalize deferred types right after deferred incomplete types are
7586         expanded.
7587         (rest_of_type_decl_compilation): New global function.
7588         (components_to_record): Rename defer_debug parameter to do_not_finalize.
7589         (components_to_record): Propagate the packedness to the fields of the
7590         qualified union type if there is a variant part.
7591         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
7592         instead of inline code to adjust the XUT field offsets.
7593         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
7594         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
7595         and write the debug info if the type derives from a discriminated one.
7596         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
7597         <E_Array_Subtype>: Likewise.
7598         <E_String_Literal_Subtype>: Likewise.
7599         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
7600         an alignment clause.
7601         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
7602         before giving warning.
7603         (prepend_one_attribute_to): New function, helper to prepend an attribute
7604         to an attribute list.
7605         (gnat_to_gnu_entity) <E_Procedure>: Use it.
7606         (prepend_attributes): Likewise.
7607         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
7608         <E_Array_Type>: Declare the padding type for the element type, if any.
7609         <E_Array_Subtype>: Likewise.
7610         (defer_limited_with): New variable.
7611         (Gigi_Equivalent_Type): New function.
7612         (gnat_to_gnu_entity): Use it at start and use result throughout.
7613         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
7614         Gigi_Equivalent_Type, support Limited_With, allow two levels of
7615         indirection, precompute if unconstrained array to simplify logic, and
7616         use defer_limited_with to defer elaboration of some types from limited
7617         with.
7618         (finalize_from_with_types): New function.
7619
7620 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
7621             Eric Botcazou  <ebotcazou@adacore.com>
7622             Tristan Gingold  <gingold@adacore.com>
7623             Olivier Hainque  <hainque@adacore.com>
7624
7625         * trans.c (Identifier_to_gnu): Change test for deferred constant by
7626         adding guard that the entity is an E_Constant before testing presence
7627         of Full_view (and remove unnecessary test that entity is not a type).
7628         For a CONST_DECL used by reference, manually retrieve
7629         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
7630         (struct language_function): Move from utils.c to here.
7631         (struct parm_attr): New structure.
7632         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
7633         (f_parm_attr_cache): New macro.
7634         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
7635         expressions for the 'First, 'Last and 'Length attributes of the
7636         unconstrained array IN parameters.
7637         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
7638         Allocate the information structure for the function earlier, as well
7639         as the language-specific part.
7640         If the parameter attributes cache has been populated, evaluate the
7641         cached expressions on entry.
7642         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
7643         N_Procedure_Call_Statement and N_Indexed_Component.
7644         (Pragma_to_gnu): Translate inspection_point to an asm statement
7645         containaing a comment and a reference to the object (either its address
7646         for BLKmode or its value).
7647         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
7648         to go to DECL_INITIAL. Together with the size constraint relaxation
7649         in create_var_decl, enlarges the set of situations in which an
7650         identifier may be used as an initializer without implying elaboration
7651         code.
7652         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
7653         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
7654         node.
7655         (maybe_stabilize_reference): Remove lvalues_only parameter.
7656         (gnat_stabilize_reference): Adjust for above change.
7657         (gnat_to_gnu): Do not set location information on the result
7658         if it is a reference.
7659         (add_cleanup): Add gnat_node parameter and set the location of the
7660         cleanup to it.
7661         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
7662         (Exception_Handler_to_gnu_zcx): Likewise.
7663         (gigi): Remove the cgraph node if the elaboration procedure is empty.
7664         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
7665         the former right after the latter.
7666         (start_stmt_group): Make global.
7667         (end_stmt_group): Likewise.
7668         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
7669         vars.
7670         (gnu_program_error_label_stack): Likewise.
7671         (gigi): Initialize them.
7672         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
7673         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
7674         New cases.
7675         (push_exception_label_stack): New function.
7676         (takes_address): New function.
7677
7678         * utils.c (struct language_function): Move to trans.c from here.
7679         (unchecked_convert): Do not wrap up integer constants in
7680         VIEW_CONVERT_EXPRs.
7681         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
7682         the latter for aggregate types, unexpected by later passes, and relax an
7683         arbitrary size constraint on the former.
7684         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
7685         to compare the sizes.
7686         (convert_vms_descriptor): When converting to a fat pointer type, be
7687         prepared for a S descriptor at runtime in spite of a SB specification.
7688         (shift_unc_components_for_thin_pointers): New function.
7689         (write_record_type_debug_info): For variable-sized fields, cap the
7690         alignment of the pointer to the computed alignment.
7691         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
7692         If REP_LEVEL is 2, do not compute the sizes.
7693         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
7694         (build_unc_object_type): Likewise.
7695         (declare_debug_type): New function.
7696
7697         * ada-tree.def: USE_STMT: removed (not emitted anymore).
7698
7699         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
7700         no statement is expandable anymore.
7701         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
7702         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
7703         when the user requested it explicitely.
7704         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
7705         to 0 for Ada.
7706         (get_alias_set): Return alias set 0 for a type if
7707         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
7708
7709         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
7710         (DECL_FUNCTION_STUB): New accessor macro.
7711         (SET_DECL_FUNCTION_STUB): New setter macro.
7712
7713         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
7714
7715         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
7716         declarations.
7717
7718 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
7719
7720         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
7721         Rename to Abort_Task_Interrupt to be able to keep the same interface
7722         as the rest of the targets.
7723
7724         * s-osinte-vxworks.ads s-osinte-vxworks.adb
7725         (To_VxWorks_Priority): Remove explicit "in" mode indicator
7726
7727         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
7728         New files.
7729
7730 2007-06-06  Robert Dewar  <dewar@adacore.com>
7731
7732         * a-chahan.ads: Remove obsolescent pragmas
7733
7734         * a-chlat1.ads: Minor reformatting
7735
7736 2007-06-06  Robert Dewar  <dewar@adacore.com>
7737
7738         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
7739         for Errout
7740
7741         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
7742         implementation
7743
7744         * errout.ads (Finalize): Changed interface
7745         (Output_Messages): New procedure
7746         (Compilation_Errors): New Interface
7747
7748         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
7749         Finalize/Output_Messages interface for Errout
7750         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
7751         Errout.
7752
7753 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7754             Olivier Hainque  <hainque@adacore.com>
7755             Robert Dewar  <dewar@adacore.com>
7756
7757         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
7758         check.
7759         (Raise_Current_Excep): Call Debug_Raise_Exception just before
7760         propagation starts, to let debuggers know about the event in a reliable
7761         fashion.
7762         (Local_Raise): Moved to System.Exceptions
7763         More convenient to have this as a separate unit
7764
7765         * s-except.adb, s-except.ads: New files.
7766
7767         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
7768         Debug_Unhandled_Exception in System.Exceptions where it belongs
7769         together with a couple of other debug helpers.
7770         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
7771         the former Unhandled_Exception.
7772
7773         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
7774         (Warn_No_Exception_Propagation): New procedure
7775         (Warn_If_No_Propagation): Rewritten for new warning generation
7776         (Expand_Exception_Handlers): New warning generation
7777         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
7778         (Add_Exception_Label): Use Special_Exception_Package_Used for test
7779         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
7780         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
7781         even if restriction is set (makes life easier in Check_Returns)
7782         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
7783         checking exception identities.
7784         (Expand_Local_Exception_Handlers): Do not optimize when all others case
7785         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
7786         block for handler (used by Check_Returns)
7787         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
7788         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
7789         remove all exception handlers when optimizing local raise statements.
7790         (Find_Local_Handler): Use Get_Renamed_Entity
7791         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
7792         marked analyzed after expanding exception handlers, do not generate
7793         redundant cleanup actions, because they have been constructed already.
7794
7795 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7796
7797         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
7798         presence of this categorization pragma is mandated by the language.
7799         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
7800         for this type.
7801
7802 2007-06-06  Vincent Celier  <celier@adacore.com>
7803             Robert Dewar  <dewar@adacore.com>
7804
7805         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
7806         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
7807         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
7808         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
7809         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
7810         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
7811         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
7812         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
7813         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
7814         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
7815         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
7816         ali.ads, ali.adb: 
7817         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
7818         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
7819         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
7820         Use variables of types File_Name_Type and Unit_Name_Type in error
7821         messages.
7822         (Get_Name): Add parameter Ignore_Special, and set it reading file name
7823         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
7824         here.
7825         Define flags Flag217-Flag230 with associated subprograms
7826         (Flag_Word5): New record type.
7827         (Flag_Word5_Ptr): New access type.
7828         (To_Flag_Word5): New unchecked conversion.
7829         (To_Flag_Word5_Ptr): Likewise.
7830         (Flag216): New function.
7831         (Set_Flag216): New procedure.
7832
7833 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7834
7835         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
7836         instead of 'Size.
7837
7838         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
7839
7840 2007-06-06  Javier Miranda  <miranda@adacore.com>
7841
7842         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
7843         the package.
7844         (Object_Specific_Data_Array): This is now internal to the package.
7845         (Object_Specific_Data): This is now internal to the package.
7846         (Select_Specific_Data_Element): This is now internal to the package.
7847         (Select_Specific_Data_Array): This is now internal to the package.
7848         (Select_Specific_Data): This is now internal to the package.
7849         (Offset_To_Top_Function_Ptr): This is now public.
7850         (To_Offset_To_Top_Function_Ptr): Removed.
7851         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
7852          local to subprogram Offset_To_Top.
7853         (Predefined_DT): Removed.
7854         (Typeinfo_Ptr): Removed.
7855         (OSD): This function is now internal to this package.
7856         (SSD): This function is now internal to this package.
7857         (DT): New function that displaces the pointer to the table of primitives
7858          to get access to the enclosing wrapper record.
7859         (IW_Membership): Code cleanup.
7860         (Offset_To_Top): Code cleanup.
7861         (Predefined_DT): Removed.
7862         (Register_Interface_Tag): Removed.
7863         (Set_Interface_Table): Removed.
7864         (Set_Offset_Index): Removed.
7865         (Set_Offset_To_Top): Code cleanup.
7866         (Set_OSD): Removed.
7867         (Set_Signature): Removed.
7868         (Set_SSD): Removed.
7869         (Set_Tagged_Kind): Removed.
7870         (Typeinfo_Ptr): Removed.
7871         (TSD): Removed.
7872         (Displace): Add missing check on null actual.
7873
7874         * exp_disp.ads, exp_disp.adb
7875         (Select_Expansion_Utilities): Removed.
7876         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
7877         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
7878         the interface requires a new parameter.
7879         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
7880         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
7881         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
7882         Done to remove package Select_Expansion_Utilities.
7883         (Make_DT): New implementation for statically allocated dispatch tables.
7884         (Make_Secondary_DT): Moved to the scope of Make_DT.
7885         (Register_Primitive): Code cleanup plus incoporate the use of the new
7886         function DT_Address_Attribute.
7887         (Expand_Interface_Thunk): The profile of this subprogram has been
7888         changed to return the Thunk_Id and the corresponding code.
7889         (Fill_DT_Entry): Removed. Its functionality is now provided by
7890         subprogram Register_Primitive.
7891         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
7892         subprogram Register_Primitive.
7893         (Register_Primitive): New subprogram that incorporates the previous
7894         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
7895         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
7896         was only required to call Make_DT_Access_Action, which is now removed.
7897         (Ada_Actions): Removed
7898         (Action_Is_Proc): Removed
7899         (Action_Nb_Arg): Removed
7900         Replace all the calls to Make_DT_Access_Action by direct calls to
7901         Make_Procedure_Call_Statement or Make_Function_Call.
7902         (Set_DTC_Entity_Value): New subprogram.
7903         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
7904         (Expand_Interface_Thunk): Add missing support for primitives that are
7905         functions with a controlling result (case in which there is no need
7906         to generate the thunk).
7907
7908         * exp_atag.ads, exp_atag.adb
7909         (Build_DT): New subprogram that displaces the pointer to reference the
7910         base of the wrapper record.
7911         (Build_Typeinfo_Offset): Removed.
7912         (RTE_Tag_Node): Removed.
7913         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
7914         (Build_Get_RC_Offset): Removed.
7915         (Build_Inherit_Predefined_Prims): Removed.
7916         (Build_Inherit_TSD: Removed.
7917         (Build_New_TSD): Removed.
7918         (Build_Set_External_Tag): Removed.
7919         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
7920         (Build_Set_Prim_Op_Address): Add documentation.
7921         (Build_Set_TSD): Removed.
7922
7923         * rtsfind.ads, rtsfind.adb
7924         (Load_Fail): If load fails and we are not in configurable run-time
7925         mode, then raise Unrecoverable_Error.
7926         (Text_IO_Kludge): Generate an error message if a run-time library is
7927         not available in a given run-time (ie. zfp run-time).
7928         (RTE_Record_Component): Add code to check that the component we search
7929         for is not found in two records in the given run-time package.
7930         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
7931         (RE_DT_Predef_Prims_Offset): New entity
7932         (RE_Static_Offset_To_Top): New entity
7933         (RE_HT_Link): New entity.
7934         (System_Address_Image): Addition of this run-time package.
7935         (RE_Address_Image): New entity.
7936         (RE_Abstract_Interface): Removed.
7937         (RE_Default_Prim_Op_Count): Removed.
7938         (RE_DT_Entry_Size): Removed.
7939         (RE_DT_Min_Prologue_Size): Removed.
7940         (RE_DT_Prologue_Size): Removed.
7941         (RE_Ifaces_Table_Ptr): Removed.
7942         (RE_Interface_Data_Ptr): Removed.
7943         (RE_Type_Specific_Data): Removed.
7944         (RE_Primary_DT): Removed.
7945         (RE_Register_Interface_Tag): Removed.
7946         (RE_Set_Offset_Index): Removed.
7947         (RE_Set_OSD): Removed.
7948         (RE_Set_SSD): Removed.
7949         (RE_Set_Signature): Removed.
7950         (RE_Set_Tagged_Kind): Removed.
7951         (RE_Address_Array): New entity.
7952         (RE_DT): New entity.
7953         (RE_Iface_Tag): New entity.
7954         (RE_Interfaces_Table): New entity.
7955         (RE_No_Dispatch_Table): New entity.
7956         (RE_NDT_Prims_Ptr): New entity.
7957         (RE_NDT_TSD): New entity.
7958         (RE_Num_Prims): New entity.
7959         (RE_Offset_To_Top_Function_Ptr): New entity.
7960         (RE_OSD_Table): New entity.
7961         (RE_OSD_Num_Prims): New entity.
7962         (RE_Predef_Prims): New entity
7963         (RE_Predef_Prims_Table_Ptr): New entity.
7964         (RE_Primary_DT): New entity.
7965         (RE_Signature): New entity.
7966         (RE_SSD): New entity.
7967         (RE_TSD): New entity.
7968         (RE_Type_Specific_Data): New entity.
7969         (RE_Tag_Kind): New entity.
7970
7971 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7972
7973         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
7974         C imported variable.
7975         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
7976         on entry.
7977
7978 2007-06-06  Robert Dewar  <dewar@adacore.com>
7979
7980         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
7981         character
7982
7983 2007-06-06  Vincent Celier  <celier@adacore.com>
7984
7985         * a-tifiio.adb (Put, internal): For negative numbers, check that there
7986         is room for at least one digit and the minus sign.
7987         (Put.Put_Character): Never put a character outside of the range of
7988         string To.
7989
7990 2007-06-06  Olivier Hainque  <hainque@adacore.com>
7991             Eric Botcazou  <ebotcazou@adacore.com>
7992
7993         * utils2.c (build_allocator): Provide the extra arguments to
7994         make_aligning_type for super-aligned objects allocated from the default
7995         pool. Leave enough room for a pointer before the aligning field, and
7996         store the system's allocator return value there.
7997         (build_call_alloc_dealloc): When releasing a super-aligned object,
7998         retrieve the system's allocator return value from where build_allocator
7999         has stored it, just ahead of the adjusted address we are passed.
8000         (build_call_raise): Handle properly the generation of line numbers when
8001         the node is marked No_Location.
8002         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
8003         by using DECL_UID on ties.
8004         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
8005         main variant.
8006         (build_call_raise): Handle converting exception into goto; support new
8007         argument KIND.
8008         (build_component_ref): Add new arg to build_call_raise.
8009
8010 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8011
8012         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
8013         "." in the case of nnn.xxx when nnn terminates with an underscore.
8014         Parse the remaining "#" or ":" in the case of nnn#.xxx#
8015
8016 2007-06-06  Robert Dewar  <dewar@adacore.com>
8017
8018         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
8019
8020 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
8021             Vincent Celier  <celier@adacore.com>
8022             Robert Dewar  <dewar@adacore.com>
8023
8024         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
8025         needed.
8026         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
8027         ((destructor)) for adafinal, even when switch -a is used.
8028         Do not issue pragma Linker_Destructor for adafinal when switch -a is
8029         used.
8030         (Gen_Object_Files_Options): Add formatting of Linker Options, when
8031         Output_Linker_Option_List is set. Suppress this formatting when
8032         Zero_Formatting is set.
8033         Add case for CLI_Target.
8034         (System_Restrictions_Used): New flag, used to avoid generating with of
8035         System_Restrictions and initialization of the data unless there is
8036         some use of System.Restrictions in the partition.
8037         (Check_System_Restrictions_Used): New procedure
8038
8039         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
8040         since we only with this unit in the binder file if it is used elsewhere
8041         in the partition.
8042
8043 2007-06-06  Vincent Celier  <celier@adacore.com>
8044
8045         * bindusg.adb: Add line for @<response file>
8046         Add lines for new switches -R and -Z
8047
8048         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
8049         hierarchy in the list of files of the closure when -R is used
8050         (Gnatbind): Accept arguments starting with '@' to indicate response
8051         files and take the arguments from the response files.
8052         If List_Closure is set, display the referenced files
8053
8054 2007-06-06  Javier Miranda  <miranda@adacore.com>
8055             Robert Dewar  <dewar@adacore.com>
8056             Ed Schonberg  <schonberg@adacore.com>
8057
8058         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
8059         which the address-clause is applied to in-mode actuals (allowed by
8060         13.1(22)).
8061         (Apply_Discriminant_Check): Do not generate a check if the type is
8062         constrained by a current instance.
8063         (Activate_Division_Check): New procedure
8064         (Activate_Overflow_Check): New procedure
8065         (Activate_Range_Check): New procedure
8066         Call these new Activate procedures instead of setting flags directly
8067         (Apply_Array_Size_Check): Removed, no longer needed.
8068         Code clean up: remove obsolete code related to GCC 2.
8069         (Get_E_Length): Protect against bomb in case scope is standard
8070         (Selected_Range_Checks): If the node to be checked is a conversion to
8071         an unconstrained array type, and the expression is a slice, use the
8072         bounds of the slice to construct the required constraint checks.
8073         Improve NOT NULL error messages
8074         (Apply_Constraint_Check): If the context is a null-excluding access
8075         type, diagnose properly the literal null.
8076
8077 2007-06-06  Pascal Obry  <obry@adacore.com>
8078
8079         * clean.adb (Clean_Archive): Use untouched casing for the archive name
8080         and the corresponding .deps file.
8081         (Clean_Interface_Copy_Directory): Use untouched casing for the library
8082         src directory. Minor code-clean-up. Use untouched casing for files
8083         read into the library src dir.
8084         (Clean_Library_Directory): Idem.
8085         (Parse_Cmd_Line): Accept new switch -aP
8086
8087 2007-06-06  Javier Miranda  <miranda@adacore.com>
8088             Ed Schonberg  <schonberg@adacore.com>
8089             Robert Dewar  <dewar@adacore.com>
8090             Eric Botcazou  <ebotcazou@adacore.com>
8091             Arnaud Charlet  <charlet@adacore.com>
8092
8093         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
8094         applicable to types that have the With_Type flag set. Returns the
8095         non-limited view of the type, if available, otherwise the type itself.
8096         For class-wide types, there is no direct link in the tree, so we have
8097         to retrieve the class-wide type of the non-limited view of the Etype.
8098         New attributes Static_Initialization and Static_Elaboration_Desired.
8099         Remove the pragma Thread_Body, and the associated flag
8100         Is_Thread_Body in entities, and all related code.
8101         (Suppress_Value_Tracking_On_Call): New flag
8102         E_Exception has Esize and Alignment fields
8103         (Universal_Aliasing): New function.
8104         (Set_Universal_Aliasing): New procedure.
8105         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
8106         (Check_Nested_Access): New procedure.
8107         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8108         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8109         (Related_Interface): New attribute. Present in dispatch table pointer
8110         components of records. Set to point to the entity of the corresponding
8111         interface type.
8112         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
8113         (Original_Access_Type): Remove, not needed.
8114         (Root_Type): Handle properly subtypes of class-wide-types.
8115         Update comments.
8116
8117         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
8118         class-wide types visible through limited-with clauses.
8119         (Try_Primitive_Operation): When examining all primitive operations of a
8120         tagged type, do not consider subprograms labeled as hidden unless they
8121         belong to a private generic type with a tagged parent.
8122         (Try_Object_Operation): Extensive rewriting, to handle properly various
8123         overloading cases, when several ancestors may have class-wide operations
8124         that are possible candidates, and when the overloaded functions return
8125         array types and have defaulted parameters so that the call may be
8126         interpreted as an indexing.
8127         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
8128         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
8129         successive actuals before analyzing the call itself.
8130         (Try_Primitive_Operation): A primitive operation is compatible with the
8131         prefix if the prefix has a synchronized type and the type of the formal
8132         is its corresponding record, as can be the case when the primitive
8133         operation is declared outside of the body of the type.
8134         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
8135         perform homonym traversal, looking for class-wide operation matches
8136         (formerly done in statements of Try_Class_Wide_Operation). Matches on
8137         access parameters are now restricted to anonymous access types.
8138         (Mark_Allocator): An allocator with a discriminant association parent is
8139         a coextension.
8140         (Try_One_Prefix_Interpretation): If the type of the object is
8141         incomplete, as can be happen when it is a limited view obtained through
8142         a limited_with_clause, the selected component is not part of a prefixed
8143         call.
8144         (Complete_Object_Operation): Diagnose properly an object that is not
8145         aliased when the corresponding controlling formal is an access
8146         parameter.
8147         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
8148         ambiguous calls in prefixed notation, where two primitives differ only
8149         in that the controlling argument of one is an access parameter.
8150
8151         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
8152         whether a function that returns an unconstrained type can be inlined.
8153         (Process_Formals): Diagnose properly the illegal use of an incomplete
8154         type in the profile of an access_to_subprogram declaration.
8155         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
8156         operations are attached to the corresponding record.
8157         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
8158         When processing a primitive of a concurrent type which implements an
8159         interface change the type of all controlling formals to that of the
8160         corresponding record type.
8161         (Check_Synchronized_Overriding): Relax the conditional logic when trying
8162         to determine the tagged type to which a primitive belongs.
8163         (Check_Conventions): Capture condition to ignore a primitive operation
8164         (which is shared between the loop in Check_Conventions and the one in
8165         Check_Convention) in a new local function Skip_Check.
8166         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
8167         confusion with Check_Conventions' own Prim_Op local variable.
8168         (Create_Extra_Formals): Test for a tagged result type rather than a
8169         controlling result when determining whether to add a BIP_Alloc_Form
8170         formal and a BIP_Final_List formal to the function.
8171         (Check_Conformance); For parameters that are anonymous access types,
8172         subtype conformance requires that the not null and the constant
8173         indicators must match
8174         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
8175         to retrieve the appropriate type when processing a concurrent type
8176         declared within a generic. Minor comment reformatting. Change invocation
8177         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
8178         mitive.
8179         (Analyze_Subprogram_Body): If the return type of a function is an
8180         anonymous access to the limited view of a class-wide type, and the
8181         non-limited view of the type is available, update the type of the
8182         function so that code can be generated.
8183         (Process_Formals): In case of access-subtype itype whose designated
8184         type is also an itype (situation that happens now with access to
8185         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
8186         attribute to avoid backend problems.
8187         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
8188         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
8189         anonymous types' designated types are same before testing
8190         Subtypes_Statically_Match.
8191         (Create_Extra_Formals): Test for a named access parameter that is a
8192         controlling formal as an additional condition for adding an
8193         accessibility level formal. This can occur in the subp type created for
8194         dispatching calls in Expand_Dispatching_Call, and allows calling
8195         Create_Extra_Formals from that procedure rather than special-casing the
8196         extra formals there.
8197         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
8198         when the function has a controlling result.
8199         (Check_Returns): Add much more knowledge of the optimization of local
8200         raise statements to gotos, to retain proper warnings in this case.
8201         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
8202         nodes when looking for last statement.
8203
8204         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
8205         class-wide types visible through limited with clauses.
8206         (Add_One_Interp): If the operands are anonymous access types, the
8207         predefined operator on universal_access is immediately visibles
8208         (Find_Unique_Type): Handle anonymous access to subprogram types just as
8209         other anonymous access types.
8210         (Disambiguate): Take into account CIL convention.
8211         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
8212
8213 2007-06-06  Robert Dewar  <dewar@adacore.com>
8214
8215         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
8216         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
8217         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
8218         Fix lower bound of tables.
8219         Add rep clauses.
8220
8221         * nlists.adb: Ditto.
8222         (Prev_Node, Next_Node): Change index type to Int so that it properly
8223         covers the range First_Node_Id - 1 up.
8224
8225 2007-06-06  Javier Miranda  <miranda@adacore.com>
8226             Ed Schonberg  <schonberg@adacore.com>
8227             Bob Duff  <duff@adacore.com>
8228             Hristian Kirtchev  <kirtchev@adacore.com>
8229
8230         * exp_aggr.ads, exp_aggr.adb: 
8231         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
8232         in extension aggregates.
8233         (Flatten): Other conditions being met, an aggregate is static if the
8234         low bound given by component associations is different from the low
8235         bound of the base index type.
8236         (Packed_Array_Aggregate_Handled): If the component type is itself a
8237         packed array or record, the front-end must expand into assignments.
8238         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
8239         Init_Pr, instead of Ancestor_Is_Expression.
8240         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
8241         coextension chain root, either generate a list controller or use the
8242         already existing one.
8243         (Static_Array_Aggregate): New procedure to construct a positional
8244         aggregate that can be handled by the backend, when all bounds and
8245         components are compile-time known constants.
8246         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
8247         types covering interface types into assignments.
8248         (Replace_Type): move to Build_Record_Aggr_Code.
8249         (Expand_Record_Aggr_Code): if the target of the aggregate is an
8250         interface type, convert to the definite type of the aggregate itself,
8251         so that needed components are visible.
8252         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
8253         components and the context is an extended return statement do not
8254         create a transient block for it, to prevent premature finalization
8255         before the return is executed.
8256         (Gen_Assign): Do not generate a call to deep adjust routine if the
8257         component type is itself an array of controlled (sub)-components
8258         initialized with an inner aggregate.
8259         (Component_Check): New name for Static_Check. This name is now more
8260         appropriate, and documentation is added which was missing.
8261         (Component_Check): Add test for bit aligned component value
8262         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
8263         Tagged_Comps, name is more appropriate given added function below.
8264         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
8265
8266 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8267             Javier Miranda  <miranda@adacore.com>
8268             Robert Dewar  <dewar@adacore.com>
8269
8270         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
8271         Terminated: Add unchecked type conversion from System.Address to
8272         System.Tasking.Task_Id when calling the predefined primitive
8273         _disp_get_task_id.
8274         Disable new Ada 05 accessibility check for JVM.NET targets, which
8275         cannot be implemented in a practical way.
8276         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
8277         the sources always references the tag of the actual object. Therefore,
8278         if 'Tag is applied in the sources to class-wide interface objects we
8279         generate code that displaces "this" to reference the base of the object.
8280         (Expand_N_Attribute_Reference, case Size): Return specified size if
8281         known to front end.
8282         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
8283         has code that displaces the pointer of the object to manage interface
8284         types. However this code must not be executed when the prefix is a
8285         subprogram. This bug caused the wrong expansion of the internally
8286         generated assignment that fills the dispatch table when the primitive
8287         is a function returning a class-wide interface type.
8288         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
8289         Set_Attribute_Name for Name_Unaligned_Valid.
8290
8291 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8292             Gary Dismukes  <dismukes@adacore.com>
8293
8294         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
8295         If the initialization is the equivalent aggregate of the initialization
8296         procedure of the type, do not remove it.
8297         (Expand_N_Attribute_Definition_Clause): Exclude access variables
8298         initialized to null from having their expression reset to empty and
8299         note this exception in the comment.
8300
8301 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8302             Robert Dewar  <dewar@adacore.com>
8303             Ed Schonberg  <schonberg@adacore.com>
8304             Gary Dismukes  <dismukes@adacore.com>
8305
8306         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
8307         Add "with" and "use" clauses for Sem_Attr.
8308         (Expand_Current_Value): Do not replace occurences of attribute
8309         references where the prefix must be a simple name.
8310
8311         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
8312         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
8313         Attribute_Requires_Simple_Name_Prefix.
8314         (Name_Modifies_Prefix): Body of new function.
8315         (Requires_Simple_Name_Prefix): Body of new function.
8316         (Resolve_Attribute, case Access): Improve error message for case of
8317         mismatched conventions.
8318         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
8319         incomplete type.
8320         (Analyze_Attribute, case 'Access): If the type of the prefix is a
8321         constrained subtype for a nominal unconstrained type, use its base type
8322         to check for conformance with the context.
8323         (Resolve_Attribute): Remove test of the access type being associated
8324         with a return statement from condition for performing accessibility
8325         checks on access attributes, since this case is now captured by
8326         Is_Local_Anonymous_Access.
8327         (Analyze_Access_Attribute): Set Address_Taken on entity
8328         (Analyze_Attribute, case Address): Set Address_Taken on entity
8329         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
8330         validating an access attribute whose prefix is a current instance.
8331         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
8332         applied to dispatching operations, if freezing is required then we set
8333         the attribute Has_Delayed_Freeze in the prefix's entity.
8334         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
8335         current scope if access of local subprogram taken
8336         (Analyze_Access_Attribute): Check legality of self-reference even if the
8337         expression comes from source, as when a single component association in
8338         an aggregate has a box association.
8339         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
8340         the prefix if it is a protected operation and the attribute is
8341         Unrestricted_Access.
8342         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
8343         reference to the base type of the context, to force a constraint check
8344         when the context is an access subtype with an explicit constraint.
8345         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
8346         node is rewritten as an interface conversion. leave unanalyzed after
8347         resolution, to ensure that type checking against the context will take
8348         place.
8349
8350 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8351             Javier Miranda  <miranda@adacore.com>
8352             Robert Dewar  <dewar@adacore.com>
8353
8354         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
8355         wrapper when the full view of the controlling type of an inherited
8356         function that dispatches on result implements interfaces.
8357         (Expand_N_Object_Declaration): In cases where the type of the
8358         declaration is anonymous access, create finalization list for it.
8359         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
8360         if the object has no explicit initialization, to match description of
8361         functionality of pragam Persistent_BSS.
8362         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
8363         new function to build static aggregates, to replace initialization call
8364         when static initialization is desired.
8365         (Freeze_Type): Generate a list controller for an access type whenever
8366         its designated type has controlled anonymous access discriminants.
8367         (Build_Equivalent_Aggregate): New procedure to compute a static
8368         aggregate to be used as default initialization for composite types,
8369         instead of a generating a call to the initialization procedure for the
8370         type.
8371         (Build_Initialization_Call): When available, replace a call to the
8372         initialization procedure with a copy of the equivalent static aggregate
8373         for the type.
8374         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
8375         declarations for objects of a class-wide interface type, rather than
8376         just identifiers, to prevent visibility problems.
8377         (Expand_N_Object_Declaration): When expanding the declaration for an
8378         object of a class-wide interface type, preserve the homonym chain of
8379         the original entity before exchanging it with that of the generated
8380         renaming declaration.
8381         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
8382         active, because there is no way to handle the exception.
8383         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
8384         to do a minimum decoration of the Access_Disp_Table list.
8385         (Expand_Record_Controller): Avoid the addition of the controller between
8386         the component containing the tag of a secondary dispatch table and its
8387         adjacent component that stores the offset to the base of the object.
8388         This latter component is only generated when the parent type has
8389         discriminants ---documented in Add_Interface_Tag_Components).
8390         (Apply_Array_Size_Check): Removed, no longer needed.
8391         (Expand_N_Full_Type_Declaration): If the type has anonymous access
8392         components, create a Master_Entity for it only if it contains tasks.
8393         (Build_Init_Procedure): Suppress the tag assignment compiling under
8394         no run-time mode.
8395         (Freeze_Record_Type): Remove code associated with creation of dispatch
8396         table.
8397         (Init_Secondary_Tags): Update type of actuals when generating calls to
8398         Ada.Tags.Set_Offset_To_Top
8399         (Stream_Operation_OK): Disable use of streams compiling under no
8400         run-time mode
8401         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
8402         if Has_Init_Expression set.
8403         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
8404         Register_Primitive, which provides the same functionality.
8405         (Requires_Init_Proc): Return false in case of interface types.
8406         (Add_Secondary_Tables): Use the new attribute Related_Interface to
8407         cleanup the code.
8408         (Predefined_Primitive_Freeze): Do not assume that an internal entity
8409         is always associated with a predefined primitive because the internal
8410         entities associated with interface types are not predefined primitives.
8411         Therefore, the call to Is_Internal is replaced by a call to the
8412         function Is_Predefined_Dispatching_Operation.
8413         (Make_Eq_If): When generating the list of comparisons for the
8414         components of a given variant, omit the controller component that is
8415         present if the variant has controlled components.
8416
8417 2007-06-06  Javier Miranda  <miranda@adacore.com>
8418             Hristian Kirtchev  <kirtchev@adacore.com>
8419             Bob Duff  <duff@adacore.com>
8420
8421         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
8422         handle the creation of finalization lists and calls for nested
8423         coextensions when the root of the chains is part of a return statement.
8424         (Inside_A_Return_Statement): New function inside Complete_Coextension_
8425         Finalization.
8426         (Expand_Record_Equality): Skip components that are interface types.
8427         (Displace_Allocator_Pointer): Add missing support for interface subtypes
8428         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
8429         with Rewrite_Coextension. Change the condition for detecting coextension
8430         root nodes.
8431         (Is_Local_Access_Discriminant): Removed.
8432         (Rewrite_Coextension): New routine which rewrites a static coextension
8433         as a temporary and uses its unrestricted access in the construction of
8434         the outer object.
8435         (Complete_Coextension_Finalization): New routine. Generate finalization
8436         attachment calls to all delayed coextensions.
8437         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
8438         the allocator is not a coextension itself and has delayed coextensions.
8439         If the current allocator is controlled, but also a coextension, delay
8440         the generation of the finalization attachment call.
8441         Rename local variable "Node" to "Nod" in order to avoid confusion with
8442         "Elists.Node".
8443         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
8444         limited types that are not inherently limited. Such an allocator is
8445         illegal, but is generated by the expander for a return statement, to
8446         copy the result onto the secondary stack. This is the only case where a
8447         limited object can be copied. Generate code to displace the pointer
8448         to the object if the qualified expression is a class-wide interface
8449         object. Such displacement was missing and hence the copy of the object
8450         was wrong.
8451         (Apply_Accessibility_Check): Handle allocated objects initialized in
8452         place.
8453         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
8454         and Expand_Allocator_Expression. Allocating class-wide interface objects
8455         this routine displaces the pointer to the allocated object to reference
8456         the component referencing the corresponding secondary dispatch table.
8457         Expand_Allocator_Expression): Add missing support to allocate class-wide
8458         interface objects initialized with a qualified expression.
8459         (Get_Allocator_Final_List): Test for an anonymous access type that is a
8460         function result type, and use the finalization list associated with the
8461         function scope in that case (such an anonymous type should not be
8462         treated like an access parameter's type).
8463
8464 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8465             Gary Dismukes  <dismukes@adacore.com>
8466             Javier Miranda  <miranda@adacore.com>
8467
8468         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
8469         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
8470         required exception handler.
8471         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
8472         properly the case of a function whose return type is a limited
8473         class-wide interface type. Modify the code of the accessibility
8474         check to handle class-wide interface objects. In this case we need to
8475         displace "this" to reference the primary dispatch table to get access
8476         to the TSD of the object (to evaluate its accessibility level).
8477         (Expand_N_Extended_Return_Statement): Test for a tagged result type
8478         rather than a controlling result as one of the conditions for
8479         generating tests of the implicit BIP_Alloc_Form formal. The
8480         initialization assignment is also handled according to whether the
8481         result is tagged instead of controlling.
8482         In the case where the init assignment is inserted in the "then" part of
8483         the allocation conditional, rewrite the target to be a dereference of
8484         the implicit BIP_Object_Access formal.
8485         If the returned value is unconstrained and created on the secondary
8486         stack, mark the enclosing block and function so that the secondary
8487         stack is not reclaimed on return.
8488         Treat returns from functions with controlling results similarly to
8489         returns from functions with unconstrained result subtypes.
8490         If the object returned is unconstrained, and an allocator must be
8491         created for it, analyze the allocator once the block for the extended
8492         return is installed, to ensure that finalizable components
8493         of the expression use the proper finalization list. Guard the call to
8494         Move_Final_List with a check that there is something to finalize.
8495         (Make_Tag_Ctrl_Assignment): Use "old" handling
8496         of controlled type assignment for virtual machines, since new code uses
8497         unsupported features (such as direct access to bytes in memory).
8498
8499 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
8500             Ed Schonberg  <schonberg@adacore.com>
8501
8502         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
8503         accessibility actual, check for the case of an aliased object that has
8504         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
8505         we fall into processing for the attribute rather than the name of the
8506         object.
8507         (Expand_Inline_Call): If an actual is a literal, and the corresponding
8508         formal has its address taken in the body, create a temporary to capture
8509         value.  If the return type is a limited interface, do not treat the
8510         return value as Controlled.
8511         (Is_In_Place_Function):  If the return type is a limited interface,
8512         treat as returning in place. The actual returned object may not always
8513         be limited, but the caller has to assume that it is returned in place.
8514         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
8515         context of an allocator, use the correct finalization chain (that is,
8516         the chain belonging to the access type, rather than the chain belonging
8517         to the current scope).
8518         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
8519         result type rather than a controlling result as a precondition for
8520         adding an allocation form actual to a build-in-place call.
8521         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
8522         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
8523         primitive in the dispatch tables. This work is now done by Make_DT when
8524         the type is frozen.
8525         (Register_Predefined_DT_Entry): Removed.
8526         (Add_Return): If end label is not present, use sloc of last statement
8527         for generated return statement in procedure, for better gdb behavior
8528         on expanded code.
8529         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
8530         object address nodes to ensure proper processing by routines like
8531         Insert_After*.
8532         (Expand_Call): Fix generation of validity check for parameter
8533         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
8534         the allocation form parameter if the result subtype is constrained,
8535         except when the function has a controlling result.
8536         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
8537         rather than Is_Controlled and Has_Controlled_Component, since we want to
8538         include class-wide result types in this treatment. Also test for a
8539         controlling result, since that also requires passing a finalization
8540         list.
8541         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
8542         even when the result subtype is constrained, to handle calls involving
8543         controlling results.
8544         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
8545         is now called even when the result subtype is constrained, to handle
8546         calls involving controlling results.
8547         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
8548         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
8549         now performs the test).
8550         (Make_Build_In_Place_Call_In_Object_Declaration):
8551         Add_Alloc_Form_Actual_* is now called even when the result subtype is
8552         constrained, to handle calls involving controlling results.
8553         (Add_Return): Accomodate rewritten pattern from local raise to goto
8554         transformation, so that we still recognize an transfer statement
8555         and do the right thing here in that case.
8556         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
8557         and end of subprogram code.
8558         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
8559         support for primitives that are functions (without formals) with a
8560         controlling result.
8561         (Inherited_From_Formal): If the actual subtype has not generic parent
8562         type, it is not an actual for a formal derived type, and there is no
8563         operation to inherit from the formal.
8564
8565 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8566             Thomas Quinot  <quinot@adacore.com>
8567
8568         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
8569         inserted cleanup code appropriately for GDB use.
8570         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
8571         exception handler for Deep_Adjust or Deep_Finalize.
8572         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
8573         Raise_From_Controlled_Operation is available, use a call to that
8574         subprogram instead of a plain "raise Program_Error" node to raise
8575         Program_Error if an exception is propagated from an Adjust or Finalize
8576         operation.
8577         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
8578         appears in the optional statement list of a triggering alternative, the
8579         scope actions can be inserted directly there, and not in the list that
8580         includes the asynchronous select itself.
8581
8582 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8583             Robert Dewar  <dewar@adacore.com>
8584             Hristian Kirtchev  <kirtchev@adacore.com>
8585
8586         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
8587         generated exception handler appropriately when debugging generated code.
8588         Deal properly with No_Exception_Propagation restriction mode.
8589         (Expand_N_Abort_Statement): Add an unchecked type conversion from
8590         System.Address to System.Tasking.Task_Id when processing the result of
8591         the predefined primitive _disp_get_task_id.
8592         (Expand_N_Asynchronous_Select): Clarify comment.
8593         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
8594         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
8595         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
8596         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
8597         privals and for generated call to Complete_Entry_Body, for better gdb
8598         behavior.
8599         (Copy_Result_Type): Utility to construct a parameter and result profile
8600         for protected functions whose return type is an anonymous access to
8601         subprogram.
8602         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
8603         call the above.
8604         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
8605         point when the local-raise-to-goto transformation has taken place.
8606
8607 2007-06-06  Javier Miranda  <miranda@adacore.com>
8608             Nicolas Setton  <setton@adacore.com>
8609
8610         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
8611         functionality when the backend is generating code.
8612         Otherwise any serious error
8613         reported by the backend calling the frontend routine Error_Msg
8614         changes the Compilation_Mode to Check_Semantics, disables the
8615         functionality of this routine and causes the generation of
8616         spureous additional errors.
8617
8618         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
8619         debugging information now generated by the compiler for fat-pointer
8620         types.
8621         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
8622         DWARF2/3.
8623         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
8624
8625 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8626
8627         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
8628         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8629         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8630         For a remote call to a function with a classwide return type, apply an
8631         E.4(18) check to the returned value.
8632         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
8633         stream attributes of the designated type of an RACW, as they are not
8634         dispatching primitive operations.
8635
8636 2007-06-06  Geert Bosch  <bosch@adacore.com>
8637
8638         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
8639         negative literal
8640         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
8641         positive
8642         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
8643         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
8644         positive
8645         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
8646
8647 2007-06-06  Javier Miranda  <miranda@adacore.com>
8648
8649         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
8650         attribute compiling package Ada.Tags under No_Run_Time_Mode.
8651
8652 2007-06-06  Javier Miranda  <miranda@adacore.com>
8653
8654         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
8655         deallocation of class-wide interface objects.
8656         (Expand_Dispatching_Constructor_Call): Take into account that if the
8657         result of the dispatching constructor is an interface type, the
8658         function returns a class-wide interface type; otherwise the returned
8659         object would be actual. The frontend previously accepted returning
8660         interface types because Expand_Interface_Actuals silently performed
8661         the management of the returned type "as if" it were a class-wide
8662         interface type.
8663         (Expand_Dispatching_Constructor_Call): Replace call to
8664         Make_DT_Access_Action by direct call to Make_Function_Call.
8665
8666 2007-06-06  Robert Dewar  <dewar@adacore.com>
8667             Ed Schonberg  <schonberg@adacore.com>
8668
8669         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
8670         compute masking constant, since we now set Esize properly to the
8671         underlying size.
8672         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
8673         to match the alignment.
8674         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
8675         packed arrays of 8 bits or less.
8676
8677         * freeze.adb (Freeze_Entity): When freezing the formals of a
8678         subprogram, freeze the designated type of a parameter of an access type
8679         only if it is an access parameter.
8680         Increase size of C convention enumeration object
8681         (Freeze_Entity, array type case): Make sure Esize value is properly
8682         adjusted for the alignment if it is known.
8683         (Freeze_Entity, array type case): When checking bit packed arrays for
8684         the size being incorrect, check RM_Size, not Esize.
8685         (Freeze_Record_Type): Check for bad discriminated record convention
8686         (In_Exp_Body): Return true if the body is generated for a subprogram
8687         renaming, either an attribute renaming or a renaming as body.
8688         (Check_Itype): If the designated type of an anonymous access component
8689         is a non-protected subprogram type, indicate that it is frozen, to
8690         prevent out-of-scope freeze node at some subsequent call.
8691         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
8692         only if the subprogram is neither imported nor exported, as well as the
8693         NCA descriptor class if the subprogram is exported.
8694
8695 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8696             Arnaud Charlet  <charlet@adacore.com>
8697             Robert Dewar  <dewar@adacore.com>
8698             Gary Dismukes  <dismukes@adacore.com>
8699
8700         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
8701         default initialization on an imported object, when there is no
8702         initialization call generated for it.
8703         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
8704         restriction
8705
8706         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
8707         Static_Elaboration_Desired.
8708         Remove pragma Thread_Body.
8709         Implement a new pragma No_Body
8710         Removes the Explicit_Overriding pragma
8711         Remove Optional_Overriding pragma
8712         (Prag): Deal with Universal_Aliasing.
8713         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
8714         Pragma_CIL_Constructor): New names.
8715
8716         * sem_cat.adb (Validate_Object_Declaration): An initialization that
8717         uses the equivalent aggregate of a type must be treated as an implicit
8718         initialization.
8719         (Get_Categorization): Check a unit for pragma Preelaborate only if it
8720         has none of the other categories.
8721         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
8722         to apply Import to an object renaming declaration.
8723
8724         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
8725         from a C++ class should be declared as limited and that it will be
8726         considererd limited.
8727         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
8728         should be declared as limited and that it will be considererd limited.
8729         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
8730         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
8731         (Analyze_Pragma): Deal with Universal_Aliasing.
8732         (Sig_Flags): Likewise.
8733         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
8734         (Overflow_Checks_Unsuppressed): New flag.
8735         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8736         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
8737         case of JVM or .NET targets, and compiling user code.
8738         Add debugging convenience routine rv
8739
8740 2007-06-06  Robert Dewar  <dewar@adacore.com>
8741
8742         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
8743         are interface type.
8744         (Build_Elementary_Input_Call): For floating-point use right type in the
8745         absence of strange size or stream size clauses.
8746         (Build_Elementary_Write_Call): Same fix
8747         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
8748         set to value that does not match base type size.
8749
8750 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8751
8752         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
8753         object of a limited type can be initialized with a call to a function
8754         that returns in place. If the limited type has unknown discriminants,
8755         and the underlying type is a constrained composite type, build an actual
8756         subtype from the function call, as is done for private types.
8757         (Side_Effect_Free): An expression that is the renaming of an object or
8758         whose prefix is the renaming of a object, is not side-effect free
8759         because it may be assigned through the renaming and its value must be
8760         captured in a temporary.
8761         (Has_Controlled_Coextensions): New routine.
8762         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
8763         as is done for other limited types.
8764         (Non_Limited_Designated_Type): new predicate.
8765         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
8766         objects.
8767         Remove all handling of with_type clauses.
8768
8769         * par-ch10.adb: Remove all handling of with_type clauses.
8770
8771         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
8772         checksum if the main source could not be parsed.
8773         (Loat_Unit): When processing a child unit, determine properly whether
8774         the parent unit is a renaming when the parent is itself a child unit.
8775         Remove handling of with_type clauses.
8776
8777         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
8778         (Set_Is_Static_Coextension): New procedure.
8779         (Has_Local_Raise): New function
8780         (Set_Has_Local_Raise): New procedure
8781         (Renaming_Exception): New field
8782         (Has_Init_Expression): New flag
8783         (Delay_Finalize_Attach): Remove because flag is obsolete.
8784         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
8785         Remove all handling of with_type clauses.
8786         (Exception_Junk): Can now be set in N_Block_Statement
8787
8788 2007-06-06  Vincent Celier  <celier@adacore.com>
8789             Robert Dewar  <dewar@adacore.com>
8790
8791         * frontend.adb (Frontend): Return immediately if the main source could
8792         not be parsed, because of preprocessing errors.
8793
8794         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
8795         (Gnat1drv): Exit with errors if the main source could not be parsed,
8796         because of preprocessing errors.
8797         (Check_Rep_Info): New procedure
8798
8799 2007-06-06  Robert Dewar  <dewar@adacore.com>
8800
8801         * g-hesorg.ads, g-heasor.ads,
8802         g-busorg.ads, g-bubsor.ads: Update documentation
8803         GNAT.Heap/Bubble_Sort_G is now pure
8804
8805 2007-06-06  Robert Dewar  <dewar@adacore.com>
8806
8807         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
8808
8809 2007-06-06  Robert Dewar  <dewar@adacore.com>
8810             Ed Schonberg  <schonberg@adacore.com>
8811
8812         * g-comlin.ads, g-comlin.adb: 
8813         Add new warning for renaming of function return objects
8814
8815         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
8816         (Tree_Read): Use size of object instead of type'object_size, since the
8817         latter is incorrect for packed array types.
8818         (Tree_Write): Same fix
8819
8820         * opt.ads: Add new warning for renaming of function return objects
8821         (Generating_Code): New boolean variable used to indicate that the
8822         frontend as finished its work and has called the backend to process
8823         the tree and generate the object file.
8824         (GCC_Version): Is now private
8825         (Static_Dispatch_Tables): New constant declaration.
8826         (Overflow_Checks_Unsuppressed): New flag.
8827         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8828         (List_Closure): New flag for gnatbind (-R)
8829         Zero_Formatting: New flag for gnatbind (-Z)
8830         (Special_Exception_Package_Used): New flag.
8831         (Warn_On_Unrepped_Components): New flag.
8832
8833         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
8834         unit is a compilation unit, rather than relying on its scope, so that
8835         Standard can be renamed.
8836         (Analyze_Object_Renaming): Add new warning for renaming of function
8837         return objects.
8838         Also reject attempt to rename function return object in Ada 83 mode.
8839         (Attribute_Renaming): In case of tagged types, add the body of the
8840         generated function to the freezing actions of the type.
8841         (Find_Type): A protected type is visible right after the reserved word
8842         "is" is encountered in its type declaration. Set the entity and type
8843         rather than emitting an error message.
8844         (New_Scope): Properly propagate Discard_Names to inner scopes
8845         (Check_Nested_Access): New procedure.
8846         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
8847         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8848
8849         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
8850         Add new warning for renaming of function return objects
8851         (Check_References): Suppress warnings for objects whose type or
8852         base type has Warnings suppressed.
8853         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
8854         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
8855
8856 2007-06-06  Vincent Celier  <celier@adacore.com>
8857             Emmanuel Briot  <briot@adacore.com>
8858             Olivier Hainque  <hainque@adacore.com>
8859
8860         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
8861         absolute value of Header.Block_Size when displaying the freed physical
8862         memory in traces.
8863         (Allocate): Compute Storage_Address using Integer_Address, not
8864         Storage_Offset, because the range of Storage_Offset may not be large
8865         enough.
8866         (Configure): New parameter Low_Level_Traces
8867         (Allocate, Deallocation, Free_Physically): Added low-level traces
8868         (Configure): new parameter Errors_To_Stdout.
8869         (Output_File): new subprogram
8870         (Deallocate, Dereference): Send error messages to the proper stream
8871         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
8872         documented. Previous code would send it to the current output file
8873         defined in GNAT.IO, which might not be stdout
8874         (Is_Valid): Adjust comment to mention that a positive reply means that
8875         Header_Of may be used to retrieve the allocation header associated with
8876         the subprogram Storage address argument. Return False early if this
8877         address argument is misaligned.
8878
8879 2007-06-06  Vincent Celier  <celier@adacore.com>
8880
8881         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
8882         switch -P
8883         (ASIS_Main): New global variable
8884         (Get_Closure): New procedure
8885         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
8886         check, metric or pretty. Call Get_Closure in this case.
8887         (Check_Files): For GNAT LIST, check all sources of all projects when
8888         All_Projects is True.
8889         (GNATCmd): Accept -U for GNAT LIST
8890
8891 2007-06-06  Vincent Celier  <celier@adacore.com>
8892
8893         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
8894         has been specified
8895         Correct error message when invocation of the linker fails
8896         Add explicit size clause for the C imported variables
8897         Object_List_File_Supported and Using_GNU_Linker to emphasize that
8898         we expect char size.
8899         Read target parameters earlier, since this is needed to set
8900         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
8901         targets.
8902
8903 2007-06-06  Vincent Celier  <celier@adacore.com>
8904
8905         * gnatls.adb: 
8906         Add 3 spaces before the default project directory when displaying
8907         the project search path.
8908         Add new command line switch '-l' to display license information.
8909
8910 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
8911
8912         * gmem.c: Add support for timestamps on memory operations.
8913
8914         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
8915         operations (not used currently, just foundation for future
8916         enhancements). Add possibility to perform full dump of gmem.out file.
8917         (Print_Back_Traces): Declare accesses to root arrays constants since
8918         they aren't modified.
8919         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
8920
8921 2007-06-06  Vincent Celier  <celier@adacore.com>
8922
8923         * gnatsym.adb: Update Copyright notice
8924         (Parse_Cmd_Line): Accept new switch -D
8925         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
8926          file.
8927
8928         * prj.ads (Policy): New policy Direct
8929         (Yes_No_Unknown): New enumeration type
8930         (Project_Data): New component Libgnarl_Needed
8931
8932         * prj-nmsc.adb (Check_For_Source): When recording a source file make
8933         use the untouched pathname casing.
8934         (Get_Directories): Ensure that the Display_Exec_Directory is using the
8935         proper casing on non case-sensitive platforms like Windows.
8936         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
8937         on all platforms, as it is not possible to know which one is allowed
8938         before processing the project files.
8939         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
8940         specified when symbol policy is Direct. Check that when there is a
8941         symbol file defined (either by default or with attribute
8942         Library_Symbol_File) it is not the same as the reference symbol file.
8943         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
8944         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
8945         extending projects.
8946         (Record_Ada_Source): Record a source that has been locally removed in an
8947         imported project.
8948
8949         * symbols.ads (Policy): New policy Direct
8950
8951         * symbols-vms.adb (Initialize): Take new policy Direct in case
8952         statement
8953
8954 2007-06-06  Vincent Celier  <celier@adacore.com>
8955
8956         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
8957         Correct obvious bug (return Dir; instead of return Directory;).
8958         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
8959
8960 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8961
8962         * g-pehage.adb (Produce): Open output files in Binary mode, so that
8963         they have UNIX line endings (LF only) even on Windows, and thus pass
8964         all GNAT style checks.
8965
8966 2007-06-06  Emmanuel Briot  <briot@adacore.com>
8967
8968         * g-regpat.adb (Quote): Fix improper quoting of '.'
8969
8970 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8971
8972         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
8973         default, set False on a per-runtime basis.
8974         (Need_Netdb_Buffer): New constant.
8975
8976         * g-socket.ads, g-socket.adb: Import new package
8977         GNAT.Sockets.Thin.Task_Safe_NetDB.
8978         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
8979         binding to obtain proper message.
8980         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
8981         Replace various occurrences of Arry (Arry'First)'Address with the
8982         equivalent Arry'Address (GNAT always follows implementation advice from
8983         13.3(14)).
8984         (Get_Host_By_Address, Get_Host_By_Name,
8985         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
8986         instead, rely on platform-specific task safe netdb operations provided
8987         by g-socthi.
8988
8989         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
8990         parameter Process_Blocking_IO.
8991         (Host_Error_Messages): Add stub body.
8992         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
8993         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
8994         Safe_Getservbyport): Move functions into new child package
8995         Task_Safe_NetDB.
8996         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
8997         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
8998         (In_Addr): Add alignment clause.
8999
9000 2007-06-06  Robert Dewar  <dewar@adacore.com>
9001
9002         * g-trasym.ads, g-traceb.ads: Update list of supported targets
9003         Add note about symbolic traceback
9004
9005 2007-06-06  Pascal Obry  <obry@adacore.com>
9006
9007         * hostparm.ads (Normalized_CWD): Use the host directory separator
9008         instead of the hardcoded forward slash which is not the proper
9009         character on Windows for example.
9010         (Java_VM): Removed.
9011
9012 2007-06-06  Vincent Celier  <celier@adacore.com>
9013             Arnaud Charlet  <charlet@adacore.com>
9014
9015         * a-clrefi.adb, a-clrefi.ads: New files
9016
9017         * impunit.adb: Add s-os_lib in the list of user visible units.
9018         (Non_Imp_File_Names_95): Add a-clrefi to this list
9019         Remove obsolete run-time entries.
9020         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
9021          "a-exetim" -- Ada.Execution_Time
9022          "a-extiti" -- Ada.Execution_Time.Timers
9023
9024         * mlib-prj.ads, mlib-prj.adb
9025         (Build_Library): Use untouched object dir and library dir. At the
9026         same time makes sure that the checks are done using the canonical
9027         form. Removes hard-coded directory separator and use the proper host
9028         one instead.
9029         (Process_Project): Do not look in object directory to check if libgnarl
9030         is needed for a library, if there is no object directory.
9031         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
9032         linking.
9033         (Build_Library): When invoking gnatbind, use a response file if the
9034         total size of the arguments is too large.
9035
9036         * Makefile.rtl: (g-sttsne): New object file.
9037         Add entry for a-clrefi, s-utf_32, System.Exceptions
9038
9039         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
9040         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
9041         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
9042         Change g-string to s-string, g-os_lib to s-os_lib
9043         Change all g-utf_32 references to s-utf_32
9044
9045 2007-06-06  Tristan Gingold  <gingold@adacore.com>
9046             Olivier Hainque  <hainque@adacore.com>
9047
9048         * init.c: Do not adjust IP of an imported VMS exception of ia64.
9049         LIB$STOP is called to raise an exception and the IP of the exception
9050         is the instruction right after the call.
9051         (__gnat_adjust_context_for_raise, AIX): Implement.
9052         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
9053          adjust_context_for_raise before Raise_From_Signal_Hanler.
9054         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
9055         siginfo is passed to the handler, necessary to let the zcx propagation
9056         engine unwind past it.
9057
9058 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9059
9060         * initialize.c (__gnat_initialize for vxworks):  Update documentation
9061         on the ZCX support, using different sets of crtstuff objects than with
9062         GCC 3.4.
9063
9064 2007-06-06  Robert Dewar  <dewar@adacore.com>
9065
9066         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
9067         spec from body
9068         (Layout_Type): Fix recomputation of size from alignment.
9069
9070 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9071             Javier Miranda  <miranda@adacore.com>
9072
9073         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
9074         association in an instance.
9075         (Copy_Generic_Node): If the node is a string literal, no need to copy
9076         its descendants.
9077         (Is_Generic_Formal): For a formal subprogram, the declaration is the
9078         grandparent of the entity.
9079         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
9080         to simplify handling of formal interfaces that derive from other formal
9081         interfaces.
9082         (Instantiate_Subprogram_Body): The defining unit name of the body of
9083         the instance should be a defining identifier.
9084         (Install_Formal_Packages): make global to the package, for use in
9085         instantiations of child units.
9086         (Analyze_Package_Instantiation): Do not attempt to set information on an
9087         enclosing master of an entry when expansion is disabled.
9088         (Instantiate_Type): If the actual is a tagged synchronized type and the
9089         generic ancestor is an interface, create a generic actual for the
9090         corresponding record.
9091         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
9092         declaration, to ensure that the interface list is processed correctly.
9093         (Inline_Instance_Body): If enclosing scope is an instance body, remove
9094         its entities from visibiility as well.
9095         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
9096         given with a named association, analyze the expression only, not the
9097         discriminant association itself.
9098         (Reset_Entity): If the analysis of a selected component is transformed
9099         into an expanded name in the prefix of a call with parameters, do not
9100         transform the original node into an expanded name, to prevent visibility
9101         errors in the case of nested generics.
9102         (Check_Private_View): For an array type, check whether the index types
9103         may need exchanging.
9104
9105 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9106             Vincent Celier  <celier@adacore.com>
9107
9108         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
9109         since both are separated.
9110         Add support for imported CIL packages.
9111         Add further special handling of "value_type" for CIL.
9112         Add special handling of pragma Import for CIL.
9113
9114         * make.ads, make.adb: When switch -eS is used, direct all outputs to
9115         standard output instead of standard error, except errors.
9116         (Absolute_Path): Use untouched casing for the parent directory.
9117         (Add_Library_Search_Dir): Use the untouched directory name.
9118         (Add_Source_Search_Dir): Idem.
9119         (Change_To_Object_Directory): Update output to use proper casing.
9120         (Create_Binder_Mapping_File): Use the untouched filename to set
9121         ALI_Name.
9122         (Gnatmake): Use untouched library and executable directory names.
9123         (Insert_Project_Sources): Use untouched filename for spec and body.
9124         (Is_In_Object_Directory): Use untouched object directory.
9125         (Mark_Directory): Idem.
9126         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
9127         contains the non-canonical filename in all cases.
9128         (Change_To_Object_Directory): In verbose mode, display the name of the
9129         object directory we're changing to.
9130         (Compile_Sources): Make sure, when a project file is used, to compile
9131         the body of the unit, when there is one, even when only the spec is
9132         recorded in an ALI file.
9133         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
9134         spec to the body.
9135         (Report_Compilation_Failed): New procedure
9136         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
9137         procedures moved from the spec to the body.
9138         (Extract_Failure): Removed, not used
9139         Replace explicit raises of exception Bind_Failed and Link_Failed with
9140         calls to Make_Failed with the proper message.
9141         Replace explicit raises of exception Compilation_Failed with calls to
9142         procedure Report_Compilation_Failed.
9143         (Initialize): Create mapping files unconditionally when using project
9144         files.
9145
9146         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9147         Pragma_CIL_Constructor): New names.
9148
9149         * targparm.ads, targparm.adb
9150         (Compiler_System_Version): Removed, no longer used.
9151         (Get_Target_Parameters): Relax checks on system.ads validity. Add
9152         handling of two new system flags: JVM and CLI.
9153
9154 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9155             Arnaud Charlet  <charlet@adacore.com>
9156
9157         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
9158         time, use the default s-interr body that provides interrupt support
9159         based on signals.
9160         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
9161         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
9162         g-soccon.ads, and s-taprop.adb for the marte run time.
9163         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
9164         timers are supported on marte.
9165         (EH_MECHANISM for marte): Do not use ZCX.
9166         (THREADSLIB for marte): Use -lmarte.
9167         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
9168         Add mlib-tgt-specific.o to gnatmake objects
9169         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
9170         longer of MLib.Tgt.
9171         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
9172         6, either kernel or rtp, use a specialized version of s-osinte.ads.
9173
9174 2007-06-06  Pascal Obry  <obry@adacore.com>
9175
9176         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
9177
9178 2007-06-06  Vincent Celier  <celier@adacore.com>
9179
9180         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
9181         separator, use instead the proper host directory separator.
9182         (Copy_ALI_Files): Make sure that an already existing ALI file in the
9183         ALI copy dir is writable, before doing the copy.
9184
9185         * mlib-utl.ads, mlib-utl.adb: 
9186         (Gcc): If length of command line is too long, put the list of object
9187         files in a response file, if this is supported by the platform.
9188         (Ar): If invocation of the archive builder is allowed to be done in
9189         chunks and building it in one shot would go above an OS dependent
9190         limit on the number of characters on the command line, build the archive
9191         in chunks.
9192
9193 2007-06-06  Vincent Celier  <celier@adacore.com>
9194
9195         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
9196         of specified object file is not equal to base name of source.
9197
9198 2007-06-06  Javier Miranda  <miranda@adacore.com>
9199             Hristian Kirtchev  <kirtchev@adacore.com>
9200             Ed Schonberg  <schonberg@adacore.com>
9201
9202         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
9203         the full type declaration.
9204         (Analyze_Component_Declaration): Add local variable E to capture the
9205         initialization expression of the declaration. Replace the occurences of
9206         Expression (N) with E.
9207         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
9208         limited interface object with a function call.
9209         (Array_Type_Declaration): If the declaration lacks subtype marks for
9210         indices, create a simple index list to prevent cascaded errors.
9211         (Is_Null_Extension): Ignore internal components created for secondary
9212         tags when checking whether a record extension is a null extension.
9213         (Check_Abstract_Interfaces): Add missing support for interface subtypes
9214         and generic formals.
9215         (Derived_Type_Declaration): Add missing support for interface subtypes
9216         and generic formals.
9217         (Analyze_Object_Declaration): If an initialization expression is
9218         present, traverse its subtree and mark all allocators as static
9219         coextensions.
9220         (Add_Interface_Tag_Component): When looking for components that may be
9221         secondary tags, ignore pragmas that can appear within a record
9222         declaration.
9223         (Check_Abstract_Overriding): an inherited function that dispatches on
9224         result does not need to be overriden if the controlling type is a null
9225         extension.
9226         (Mentions_T): Handle properly a 'class attribute in an anonymous access
9227         component declaration, when the prefix is an expanded name.
9228         (Inherit_Component): If the derivation is for a private extension,
9229         inherited components remain visible and their ekind should not be set
9230         to Void.
9231         (Find_Type_Of_Object): In the case of an access definition, always set
9232         Is_Local_Anonymous_Access. We were previously not marking the anonymous
9233         access type of a return object as a local anonymous type.
9234         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
9235         range with character literal bounds.
9236         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
9237         (Access_Subprogram_Declaration): Indicate that the type declaration
9238         depends on an incomplete type only if the incomplete type is declared
9239         in an open scope.
9240         (Analyze_Subtype_Declaration): Handle properly subtypes of
9241         synchronized types that are tagged, and that may appear as generic
9242         actuals.
9243         (Access_Subprogram_Declaration): An anonymous access to subprogram can
9244         appear as an access discriminant in a private type declaration.
9245         (Add_Interface_Tag_Components): Complete decoration of the component
9246         containing the tag of a secondary dispatch table and the component
9247         containing the offset to the base of the object (this latter component
9248         is only generated when the parent type has discriminants --as documented
9249         in this routine).
9250         (Inherit_Components): Use the new decoration of the tag components to
9251         improve the condition that avoids inheriting the components associated
9252         with secondary tags of the parent.
9253         (Build_Discriminanted_Subtype): Indicate to the backend that the
9254         size of record types associated with dispatch tables is known at
9255         compile time.
9256         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
9257         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
9258         to include task, protected, and synchronized interfaces as limited
9259         interfaces.
9260         (Process_Discriminants): Remove the setting of
9261         Is_Local_Anonymous_Access on the type of (anonymous) access
9262         discriminants of nonlimited types.
9263         (Analyze_Interface_Type_Declaration): Complete the decoration of the
9264         class-wide entity it is is already present. This situation occurs if
9265         the limited-view has been previously built.
9266         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
9267         field.
9268         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
9269         Related_Interface.
9270
9271 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9272
9273         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
9274         of the type that specify the position of interface tags when the type
9275         inherits discriminated array components from the parent type.
9276         If a component is initialized with a box, check for the presence of a
9277         default expression in its declaration before using its default
9278         initialization procedure.
9279         (Resolve_Record_Aggregate): If a component is box-initialized, and the
9280         component type has a discriminants, create a partial aggregate for it
9281         by copying the discriminants of the component subtype.
9282         Reject attempt to initialize a discriminant with a box.
9283         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
9284         associated with dispatch tables is known at compile time.
9285         (Get_Value): If an association in a record aggregate has a box
9286         association, and the corresponding record component has a default
9287         expression, always copy the default expression, even when the
9288         association has a single choice, in order to create a proper
9289         association for the expanded aggregate.
9290
9291 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9292             Robert Dewar  <dewar@adacore.com>
9293
9294         * par-ch12.adb (P_Generic_Associations): The source position of an
9295         Others association is that of the others keyword, not that of the token
9296         that follows the box.
9297         (P_Formal_Type_Definition): Handle formal access types that carry a
9298         not null indicator.
9299
9300         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
9301         multiple identifier are present, save Scan_State before scanning the
9302         colon, to ensure that separate trees are constructed for each
9303         declaration.
9304         (P_Identifier_Declarations): For object declaration, set new flag
9305         Has_Init_Expression if initialization expression present.
9306         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
9307         Improve NOT NULL error messages
9308
9309 2007-06-06  Robert Dewar  <dewar@adacore.com>
9310
9311         * par-ch4.adb: (P_Name): Recover from literal used as name
9312
9313 2007-06-06  Vincent Celier  <celier@adacore.com>
9314
9315         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
9316         defaulted to False.
9317         In the "not" case, recursive call with Complemented set to True.
9318         Do not allow "or" or "and" operators when Complemented is True.
9319
9320 2007-06-06  Vincent Celier  <celier@adacore.com>
9321
9322         * prj.adb (Project_Empty): Gives default value for new component
9323         Libgnarl_Needed
9324
9325         * prj-attr.ads: Minor reformatting
9326
9327         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
9328         directory using the untouched casing.
9329         (For_All_Source_Dirs): Idem.
9330
9331         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
9332         directories specified with switches -aP.
9333         (Add_Search_Project_Directory): New procedure
9334         (Initialize_Project_Path): Put the directories in table
9335         Search_Directories in the project search path.
9336         (Initialize_Project_Path): For VMS, transform into canonical form the
9337         project path.
9338
9339 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9340
9341         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
9342         true if configurable run-time or No_Run_Time is set.
9343         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
9344         processing an unit which is not the one being compiled.
9345
9346 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9347
9348         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
9349         Replace UC by Ada.UC
9350
9351         * s-bitops.adb: Get rid of System.Pure_Exceptions.
9352         Replace UC by Ada.UC
9353
9354 2007-06-06  Robert Dewar  <dewar@adacore.com>
9355
9356         * scng.adb: (Check_End_Of_Line): Deal with very long lines
9357
9358 2007-06-06  Robert Dewar  <dewar@adacore.com>
9359
9360         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
9361         Remove no longer used nodes.
9362
9363 2007-06-06  Javier Miranda  <miranda@adacore.com>
9364             Ed Schonberg  <schonberg@adacore.com>
9365             Robert Dewar  <dewar@adacore.com>
9366
9367         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
9368         on obsolescent withed unit in case of limited-withed units.
9369         (Analyze_Compilation_Unit): Add guard to code that removed an
9370         instantiation from visibility, to prevent compiler aborts when
9371         instantiation is abandoned early on.
9372         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
9373         current unit being analyzed, and Distinguish local incomplete types
9374         from limited views of types declared elsewhere.
9375         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
9376         to state that the class-wide entity is shared by the limited-view
9377         and the full-view.
9378         (Analyze_With_Clause): Improve placement of flag for case of
9379         unimplemented unit.
9380         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
9381         manner similar to GNAT.Current_Exception. This is a violation of
9382         restriction (No_Exception_Propagation), and also inhibits the
9383         optimization of local raise to goto.
9384         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
9385         and if so set Most_Recent_Exception_Used flag in Opt, and also check
9386         for violation of restriction No_Exception_Propagation.
9387
9388 2007-06-06  Javier Miranda  <miranda@adacore.com>
9389             Hristian Kirtchev  <kirtchev@adacore.com>
9390             Gary Dismukes  <dismukes@adacore.com>
9391
9392         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
9393         use of entity Exception_Occurrence if it is not available in the
9394         target run-time.
9395
9396         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
9397         concurrent types are declared within an Ada 2005 generic, build their
9398         corresponding record types since they are needed for overriding-related
9399         semantic checks.
9400         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
9401         protected type does not implement a task interface or a nonlimited
9402         interface.
9403         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
9404         type does not implement a protected interface or a nonlimited interface.
9405         (Single_Task_Declaration, Single_Protected_Declaration): use original
9406         entity for variable declaration, to ensure that debugging information
9407         is correcty generated.
9408         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
9409         routines if the expander is not active.
9410         (Analyze_Task_Body): Mark all handlers to stop optimization of local
9411         raise, since special things happen for task exception handlers.
9412
9413         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
9414         concurrent types declared within a generic.
9415         (Check_Dispatching_Operation): Do not emit warning about late interface
9416         operations in the context of an instance.
9417         (Check_Dispatching_Call): Remove restriction against calling a
9418         dispatching operation with a limited controlling result.
9419         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
9420         Register_Interface_DT_Entry by calls to Register_Primitive.
9421         (Check_Dispatching_Formals): Handle properly a function with a
9422         controlling access result.
9423
9424 2007-06-06  Robert Dewar  <dewar@adacore.com>
9425             Arnaud Charlet  <charlet@adacore.com>
9426
9427         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
9428         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
9429         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
9430         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
9431         message when using a VM, since this attribute is not supported.
9432         (Analyze_Record_Representation_Clause): Give unrepped component warnings
9433
9434         * usage.adb: Add new warning for renaming of function return objects
9435         Indicate that -gnatwp and -gnatwP concern front-end inlining
9436         Add line for -gnatyg
9437         Add usage information for -gnatw.c/C
9438
9439 2007-06-06  Robert Dewar  <dewar@adacore.com>
9440             Ed Schonberg  <schonberg@adacore.com>
9441
9442         * sem_ch5.adb
9443         (Find_Var): Do not consider function call in test for infinite loop
9444         warning if warnings set off for function entity.
9445         (One_Bound): Do not create a temporary for a loop bound if it is a
9446         character literal.
9447         (Analyze_Assignment): Traverse the right hand side of an assignment and
9448         mark all allocators as static coextensions.
9449         (Analyze_Assignment): Exempt assignments involving a dispatching call
9450         to a function with a controlling access result from the check requiring
9451         the target to be class-wide.
9452
9453 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9454             Ed Schonberg  <schonberg@adacore.com>
9455             Robert Dewar  <dewar@adacore.com>
9456             Javier Miranda  <miranda@adacore.com>
9457
9458         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
9459         chain of coextensions when an allocator serves as the root of such a
9460         chain.
9461         (Propagate_Coextensions): Remove the test for the root being an
9462         allocator.
9463         (Resolve_Allocator): Add condition to ensure that all future decoration
9464         occurs on an allocator node. Add processing and cleanup for static
9465         coextensions.
9466         (Valid_Conversion): If the operand type is the limited view of a
9467         class-wide type, use the non-limited view is available to determine
9468         legality of operation.
9469         (Ambiguous_Character): move to spec, for use elsewhere.
9470         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
9471         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
9472         character literals.
9473         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
9474         Do_Division_Check flag explicitly.
9475         (Resolve_Actuals): If the actual is of a synchronized type, and the
9476         formal is of the corresponding record type, this is a call to a
9477         primitive operation of the type, that is declared outside of the type;
9478         the actual must be unchecked-converted to the type of the actual
9479         (Resolve_Call): Kill all current values for any subprogram call if
9480         flag Suppress_Value_Tracking_On_Call is set.
9481         (Resolve_Type_Conversion): Generate error message the the operand
9482         or target of interface conversions come from a limited view.
9483         (Check_Infinite_Recursion): Ignore generated calls
9484         (Check_Allocator_Discrim_Accessibility): New procedure for checking
9485         that an expression that constrains an access discriminant in an
9486         allocator does not denote an object with a deeper level than the
9487         allocator's access type.
9488         (Resolve_Allocator): In the case of an allocator initialized by an
9489         aggregate of a discriminated type, check that associations for any
9490         access discriminants satisfy accessibility requirements by calling
9491         Check_Allocator_Discrim_Accessibility.
9492         (Resolve_Equality_Op): Handle comparisons of anonymous access to
9493         subprogram types in the same fashion as other anonymous access types.
9494         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
9495         message that is not a continuation message.
9496         (Resolve_Type_Conversion): Add missing support for conversion to
9497         interface type.
9498         (Resolve_Actuals): Introduce a transient scope around the call if an
9499         actual is a call to a function returning a limited type, because the
9500         resulting value must be finalized after the call.
9501         (Resolve_Actuals): If the call was given in prefix notations, check
9502         whether an implicit 'Access reference or implicit dereference must be
9503         added to make the actual conform to the controlling formal.
9504
9505 2007-06-06  Robert Dewar  <dewar@adacore.com>
9506             Javier Miranda  <miranda@adacore.com>
9507
9508         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
9509         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
9510         overriding of an inherited private subprogram now there is no need to
9511         inherit its dispatching slot and reduce the size of the dispatch table.
9512         Set_All_DT_Position now ensures that the same slot is now assigned to
9513         both entities. This is required to statically build the dispatch table.
9514         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
9515         of calling Set_All_DT_Position to re-evaluate the position of the
9516         entries in the dispatch table. Such reevaluation is not desired if
9517         the tagged type is already frozen.
9518
9519 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9520             Gary Dismukes  <dismukes@adacore.com>
9521             Robert Dewar  <dewar@adacore.com>
9522             Javier Miranda  <miranda@adacore.com>
9523
9524         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
9525         reference acts as an lvalue when the attribute name modifies the prefix
9526         (Is_Coextension_Root): New routine.
9527         (Mark_Static_Coextensions): New routine.
9528         (Type_Access_Level): Revise code for checking the level of the
9529         anonymous access type of a return object.
9530         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
9531         (Matches_Prefixed_View_Profile): Remove the no longer necessary
9532         retrieval of the corresponding controlling record type.
9533         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
9534         concurrent types declared within a generic as well as class wide types.
9535         Emit a mode incompatibility error whenever a protected entry or routine
9536         override an interface routine whose first parameter is not of mode
9537         "out", "in out" or access to variable.
9538         (Overrides_Synchronized_Primitive): Rename to
9539         Find_Overridden_Synchronized_Primitive.
9540         (Collect_Interface_Components): New subprogram that collects all the
9541         components of a tagged record containing tags of secondary dispatch
9542         tables.
9543         (Add_Global_Declaration): New procedure
9544         (Abstract_Interface_List): Handle properly the case of a subtype of a
9545         private extension.
9546         (Type_Access_Level): In the case of a type whose parent scope is a
9547         return statement, call Type_Access_Level recursively on the enclosing
9548         function's result type to determine the level of the return object's
9549         type.
9550         (Build_Elaboration_Entity): Build name of elaboration entity from the
9551         scope chain of the entity, rather than the unit name of the file name.
9552         (Check_Nested_Access): New procedure.
9553         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9554         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9555         (Get_Renamed_Entity): Utility routine for performing common operation
9556         of chasing the Renamed_Entity field of an entity.
9557
9558 2007-06-06  Robert Dewar  <dewar@adacore.com>
9559
9560         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
9561         elaboration model
9562         (Check_A_Call): Add check for entry call which was causing blowup
9563
9564 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9565
9566         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
9567         special code on ia64-vms to handle major incompatibilities between the
9568         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
9569         this routine with a very different set of arguments and expectations on
9570         the return value.
9571
9572 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9573
9574         * socket.c (__gnat_close_signalling_fd): New function.
9575         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
9576         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
9577         New supporting functions for task safe Netdb operations.
9578
9579 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9580             Olivier Hainque  <hainque@adacore.com>
9581
9582         * a-except-2005.ads, a-except-2005.adb
9583         (Raise_From_Controlled_Operation): New procedure in
9584         (private part of) Ada.Exceptions (standard runtime version). Used to
9585         provide informational exception message when Program_Error is raised as
9586         a result of an Adjust or Finalize operation propagating an exception.
9587         (Rmsg_28): Fix description for E.4(18) check.
9588         (Raise_Current_Excep): Call Debug_Raise_Exception just before
9589         propagation starts, to let debuggers know about the event in a reliable
9590         fashion.
9591         Take the address of E and dereference to make sure it is homed on stack
9592         and prevent the stores from being deleted, necessary for proper
9593         debugger behavior on "break exception" hits.
9594         (Local_Raise): Moved to System.Exceptions
9595
9596         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
9597         exception message from the current occurrence and raise Program_Error
9598         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
9599
9600 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9601             Arnaud Charlet  <charlet@adacore.com>
9602
9603         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
9604         lock, if needed.
9605
9606         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
9607         priority associated to a lock.
9608
9609         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
9610         assertion to take into account case of no abort restriction.
9611         (Initialize_Protection_Entries): Add initialization for the field
9612         New_Ceiling associated to the protected object.
9613         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
9614         needed.
9615
9616         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9617         since this function needs to be set consistently with Update_Exception.
9618
9619         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9620         since this function needs to be set consistently with Update_Exception.
9621
9622         * s-taskin.ads: Update comments on
9623         Interrupt_Server_Blocked_On_Event_Flag.
9624         (Unbind_Handler): Fix handling of server_task wakeup
9625         (Server_Task): Set self's state so that Unbind_Handler can take
9626         appropriate actions.
9627         (Common_ATCB): Now use a constant from System.Parameters to determine
9628         the max size of the Task_Image field.
9629
9630         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
9631         Initialize_Analyzer function.
9632         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
9633         take into account case of no abort restriction.
9634         ([Vulnerable_]Complete_Master): Modify assertion.
9635
9636         * s-tataat.adb (Finalize): Use the nestable versions of
9637         Defer/Undefer_Abort.
9638
9639         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
9640
9641         * s-tpobop.ads: Update comments.
9642
9643         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
9644         of locking the object manually, to avoid inconsistencies between
9645         Lock/Unlock_Entry assertions.
9646
9647         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
9648         terminating
9649         application and System.Parameters.No_Abort is True.
9650         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
9651         (Unbind_Handler): Fix handling of server_task wakeup
9652         (Server_Task): Set self's state so that Unbind_Handler can take
9653         appropriate actions.
9654
9655 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9656
9657         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
9658         declarations instead of an explicit null body, for conciseness.
9659
9660 2007-06-06  Robert Dewar  <dewar@adacore.com>
9661
9662         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
9663         illegal aggregate and the type is still Any_Composite.
9664         (Subtypes_Statically_Match): Fix problem of empty discriminant list
9665
9666 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9667
9668         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
9669         to prevent subsequent expansion.
9670
9671 2007-06-06  Robert Dewar  <dewar@adacore.com>
9672
9673         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
9674
9675 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9676             Robert Dewar  <dewar@adacore.com>
9677
9678         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
9679         exceptions.
9680         (Write_Itype): Handle case of string literal subtype, which
9681         comes up in this context.
9682         (Update_Itype): when debugging expanded code, update sloc of itypes
9683         associated with defining_identifiers and ranges, for gdb use.
9684         (Sprint_Node_Actual): Add static keyword to object or exception
9685         declaration output if Is_Statically_Allocated is True.
9686         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
9687         or task body, so that the tree carries the proper Sloc information for
9688         debugging use.
9689         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
9690
9691 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9692
9693         * s-secsta.adb (Chunk): Ensure this object has a static size known at
9694         compile time, to avoid dynamic memory allocation
9695         (Elaboration code): Only use dynamic memory allocation when needed.
9696
9697 2007-06-06  Quentin Ochem  <ochem@adacore.com>
9698
9699         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
9700         "Overflow_Guard".
9701         (Stack_Analyzer): Added field "Overflow_Guard"
9702         (Task_Result): Added field "Overflow_Guard".
9703         (Index_Str): New constant.
9704         (Task_Name_Str): New constant.
9705         (Actual_Size_Str): New constant.
9706         (Pattern_Array_Element_Size): New constant.
9707         (Get_Usage_Range): New subprogram.
9708         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
9709         Now align the output.
9710         Added comments.
9711         (Initialize): Added value for Overflow_Guard.
9712         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
9713         Update the value of the overflow guard according to the actual
9714         beginning of the pattern array.
9715         (Initialize_Analyzer): Added parameter Overflow_Guard.
9716         Take this parameter into accound when computing the max size.
9717         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
9718         (Report_Result): Removed extra useless procedure.
9719         Updated call to Output_Result.
9720         Moved full computation of the Task_Result here.
9721
9722 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9723
9724         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
9725         Thread_Blocking_IO, always True by default, set False on a per-runtime
9726         basis.
9727         Add Windows-specific constants
9728         Add new constant Need_Netdb_Buffer.
9729         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9730         not, whether to use getXXXbyYYY_r.
9731
9732         * gsocket.h: Add new constant Need_Netdb_Buffer.
9733         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9734         not, whether to use getXXXbyYYY_r.
9735
9736 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9737
9738         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
9739         than their first call.
9740         Add type Dummy_Communication_Block used in the generation of the pre-
9741         defined dispatching primitive _disp_asynchronous_select.
9742         (Storage_Element): Put Pragma Universal_Aliasing on it.
9743
9744 2007-06-06  Vincent Celier  <celier@adacore.com>
9745
9746         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
9747         function.
9748
9749         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
9750         letter if it is not followed by a '/' or a '\'.
9751         (Windows): New Boolean function
9752
9753         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
9754         Ada 2005.
9755         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
9756         drive letter.
9757         (Containing_Directory): Raise Use_Error when the directory is a root
9758         directory.
9759         (Extension): When returning the result, use a conversion to Result_Type,
9760         not a qualification.
9761
9762 2007-06-06  Robert Dewar  <dewar@adacore.com>
9763
9764         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
9765         (Set_Style_Check_Options): Recognize new -gnatyg style switch
9766
9767         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
9768         Warn_On_Non_Local_Exception to False, to turn off warnings for
9769         No_Exception_Propagation in ZFP runtime.
9770         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
9771         back-ends.
9772         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
9773
9774 2007-06-06  Vincent Celier  <celier@adacore.com>
9775
9776         * switch-b.adb (Scan_Binder_Switches): Add processing for new
9777         switches -R and -Z
9778
9779         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
9780         (Scan_Make_Switches): Recognize new switch -aP
9781
9782 2007-06-06  Matthew Gingell  <gingell@adacore.com>
9783             Jose Ruiz  <ruiz@adacore.com>
9784
9785         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
9786         VxWorks task descriptor in the Ada run time, call a C subprogram
9787         (__gnat_get_stack_info) that extracts the required information.
9788
9789         * sysdep.c: Back out temporary lynxos workaround.
9790         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
9791         time the stack information associated to the currently executing task.
9792         Only VxWorks systems require this function.
9793
9794 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9795
9796         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
9797         add the stack bias if the offset is computed from a frame address.
9798         (__gnat_backtrace): Adjust for above change.
9799
9800 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9801
9802         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
9803         PE_Non_Transportable_Actual.
9804         (By_Descriptor_Last): New constant.
9805         (By_Copy_Return): Likewise.
9806
9807 2007-06-06  Vincent Celier  <celier@adacore.com>
9808
9809         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
9810         is.
9811
9812         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
9813         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
9814         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
9815         Add missing comment for /OPTIMIZE=SPACE
9816         Add entry for OPTIMIZE=SPACE
9817         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
9818         Add documentation for new qualifiers corresponding to -gnatw.c/.C
9819
9820 2007-06-06  Vincent Celier  <celier@adacore.com>
9821             Robert Dewar  <dewar@adacore.com>
9822
9823         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
9824         -gnatw.C)
9825
9826         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
9827         Document gnatbind switch -a
9828         (case Constructions): Document that variables declarations are allowed
9829         for previously declared variables.
9830         Fix external lib project example
9831         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
9832         Indicate that "#if not X or Y then" is not allowed in input files to
9833         gnatprep.
9834         Document gnatw.x and gnatw.X warning flags
9835         Mention -Winline switch to activate warnings when back-end inlining is
9836         ineffective.
9837         Add gnatcheck rule descriptions
9838         Describe how to use the GNAT driver to call a tool on a closure.
9839         Describe how to run project-wide checks or metrics.
9840         Document gnatbind's -R option
9841         Updated to account for Ada 2005 support
9842
9843         * gnat_rm.texi (Case Construction): Allow variable declarations for
9844         previously declared variables.
9845         (Representation Clauses and Pragmas): Lift restriction on alignment
9846         clauses for record types.
9847         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
9848         Document No_Exception_Propagation restriction
9849         Document No_Body pragma
9850         Updated to account for Ada 2005 support; corrected some typos
9851         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
9852
9853         * gnat-style.texi: Make it clear that we never use mode IN for
9854         procedures or functions
9855
9856         * ug_words: Add entries for -gnatw.x and -gnatw.X
9857         Add entries for -gnatw.c/.C
9858
9859 2007-06-06  Pascal Obry  <obry@adacore.com>
9860             Vincent Celier  <celier@adacore.com>
9861
9862         * makegpr.adb (Add_Archive_Path): Use untouched object and library
9863         dirs and library name.
9864         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
9865         comments.
9866         (Build_Library): Idem.
9867         (Compile_Individual_Sources): Idem.
9868         (Compile_Link_With_Gnatmake): Idem.
9869         (Compile_Sources): Idem.
9870         (Get_Imported_Directories): Idem.
9871         (Link_Executables): Idem. Same change for the executable dir.
9872         (Check_Compilation_Needed): C_Source_Path new variable containing
9873         the canonical form of Source_Path to check against the source names
9874         in the dependency file.
9875         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
9876         verbose mode, display the name of the object directory we're changing
9877         to.
9878         (Saved_Switches): New name of table X_Switches
9879         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
9880         (Usage): New line for switch -aP
9881         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
9882         testing if a directory should be added to the search path.
9883
9884 2007-06-06  Javier Miranda  <miranda@adacore.com>
9885
9886         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
9887         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
9888         declaration after freezing point of all its associated tagged types;
9889         otherwise such types are frozen too early.
9890
9891 2007-06-06  Robert Dewar  <dewar@adacore.com>
9892
9893         * a-reatim.adb: Documentation addition
9894
9895         * g-cgideb.adb: Minor code reorganization
9896
9897         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
9898         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
9899         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
9900
9901         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
9902         function.  Change name New_Scope to Push_Scope
9903         (Get_Debug_Flag_K): Remove unused obsolete function.
9904
9905         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
9906         Push_Scope.
9907
9908         * makeusg.adb: Update Copyright notice
9909         Add line for switch -aP
9910
9911         * makeusg.adb: Fix wording of some usage messages
9912
9913         * s-assert.adb (Raise_Assert_Failure): Add call to
9914         Debug_Raise_Assert_Failure.
9915
9916         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
9917         (2, Standard'Alignment) for compatibility with AAMP (where alignment
9918         is restricted to 1).
9919
9920         * s-wchjis.adb: Remove use of System.Pure_Exceptions
9921
9922         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
9923         node location to No_Location when we're not debugging the expanded
9924         code.
9925
9926 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
9927
9928         * misc.c (enumerate_modes): Consider log2_b to always be one.
9929
9930 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
9931
9932         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
9933
9934 2007-05-02  Pascal Obry  <obry@adacore.com>
9935
9936         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
9937         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
9938         encoding support of Stream_IO.
9939         (Write_Unit): Idem.
9940
9941         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
9942         filename and corresponding encoding to match the OS requirement.
9943         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
9944         routine will fail on specific devices like CON: AUX: ...
9945
9946         PR ada/29856: Add missing braces
9947
9948 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9949
9950         PR ada/31660
9951         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
9952
9953 2007-04-21  Jan Hubicka  <jh@suse.cz>
9954
9955         * misc.c (gnat_expand_body): Don't call target for destructors,
9956         avoid redundant check on syntax errors.
9957
9958 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9959
9960         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
9961         instead of checking GIMPLE_STMT_P in chain_next.
9962
9963 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9964
9965         PR ada/31576
9966         * system-linux-alpha.ads: Disable constant condition warning for the
9967         Default_Bit_Order variable.
9968         * system-linux-s390.ads: Likewise.
9969         * system-linux-s390x.ads: Likewise.
9970         * system-linux-sparc.ads: Likewise.
9971
9972 2007-04-06  Javier Miranda  <miranda@adacore.com>
9973             Matt Heaney  <heaney@adacore.com>
9974             Robert Dewar  <dewar@adacore.com>
9975
9976         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9977         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
9978         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
9979         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
9980         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
9981         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
9982         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
9983         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
9984         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
9985         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
9986         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
9987         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
9988         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
9989         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
9990         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
9991         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
9992         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
9993         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
9994         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
9995         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
9996         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
9997         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
9998         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
9999         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
10000         s-taprop-tru64.adb, s-taprop-irix.adb,
10001         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
10002         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
10003         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
10004         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
10005         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
10006         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
10007         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
10008         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
10009         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
10010         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
10011         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
10012         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
10013         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
10014         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
10015         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
10016         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
10017         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
10018         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
10019         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
10020         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
10021         access types.
10022         Update documentation.
10023         Minor rewording.
10024
10025 2007-04-06  Robert Dewar  <dewar@adacore.com>
10026
10027         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10028         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10029         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
10030         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10031         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
10032         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10033         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10034         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
10035         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10036         system-hpux-ia64.ads, targparm.adb,
10037         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
10038
10039         * system.ads: Move Functions_Return_By_DSP to obsolete section,
10040         kept for bootstrap purposes only.
10041
10042 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10043
10044         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10045         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
10046         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
10047         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
10048
10049 2007-04-06  Robert Dewar  <dewar@adacore.com>
10050
10051         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
10052         (Local_Raise): New dummy procedure called when a raise is converted
10053         to a local goto. Used for debugger to detect that the exception
10054         is raised.
10055
10056         * debug.adb: Document new d.g flag (expand local raise statements to
10057         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
10058
10059         * exp_sel.adb: Use Make_Implicit_Exception_Handler
10060
10061         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
10062         suppress warnings for unused handlers.
10063         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
10064         warnings for raise statements not handled locally.
10065         (Get_RT_Exception_Entity): New function
10066         (Get_Local_Call_Entity): New function
10067         (Find_Local_Handler): New function
10068         (Warn_If_No_Propagation): New procedure
10069         (Expand_At_End_Handler): Call Make_Implicit_Handler
10070         (Expand_Exception_Handlers): Major additions to deal with local handlers
10071         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
10072         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
10073         for local raise
10074
10075         * exp_ch11.ads (Get_RT_Exception_Entity): New function
10076         (Get_Local_Call_Entity): New function
10077
10078         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
10079         of restrictions that the binder will never suggest adding.
10080
10081         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
10082         to No_Elist.
10083
10084         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
10085         be with'ed in the presence of pragma Restriction
10086         (No_Exception_Propagation).
10087
10088         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
10089
10090         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
10091         parameter, then the handler is not a suitable target for a local raise,
10092         and this is a violation of restriction No_Exception_Propagation.
10093         (Analyze_Handled_Statements): Analyze choice parameters in exception
10094         handlers before analyzing statement sequence (needed for proper
10095         detection of local raise statements).
10096         (Analyze_Raise_Statement): Reraise statement is a violation of the
10097         No_Exception_Propagation restriction.
10098
10099         * s-rident.ads: Add new restriction No_Exception_Propagation
10100
10101         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
10102         function, like Make_Exception_Handler but sets Local_Raise_Statements
10103         to No_List.
10104         (Add_Unique_Serial_Number): Deal with case where this is called during
10105         processing of configuration pragmas.
10106
10107 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10108             Pat Rogers  <rogers@adacore.com>
10109             Pascal Obry  <obry@adacore.com>
10110
10111         * g-stsifd-sockets.adb: New file.
10112
10113         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
10114         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
10115         g-socthi-vms.adb: Move signalling
10116         fd management to a nested package, so that they can conveniently be
10117         moved to a subunit that is shared across Windows, VMS, and VxWorks
10118         (Ada implementation) or completed with imported bodies from socket.c
10119         (UNIX case).
10120         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
10121         subprograms.
10122         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
10123         the signalling file descriptor.
10124         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
10125         signalling file descriptor.
10126         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
10127         instead of creating a pair of sockets for signalling here.
10128
10129         * g-socthi.adb: Ditto.
10130         Set the runtime process to ignore SIGPIPEs on platforms that support
10131         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10132
10133         * g-socthi-mingw.adb: Ditto.
10134         (WS_Version): Use Windows 2.2.
10135         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10136
10137         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
10138         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10139
10140         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
10141         added GNAT byte swapping facility
10142         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
10143
10144         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
10145
10146         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
10147         New subprograms.
10148         (__gnat_create_signalling_fds): New subprogram.
10149         Set the runtime process to ignore SIGPIPEs on platforms that support
10150         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10151
10152 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
10153             Vincent Celier  <celier@adacore.com>
10154
10155         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
10156         New version of Ada.Calendar which supports the new upper bound of Ada
10157         time (2399-12-31 86_399.999999999).
10158         The following modifications have been made to the package:
10159          - New representation of time as count of nanoseconds since the start of
10160            Ada time (1901-1-1 0.0).
10161          - Target independent Split and Time_Of routines which service both
10162            Ada 95 and Ada 2005 code.
10163          - Target independent interface to the Ada 2005 children of Calendar.
10164          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
10165          - Handling of non-leap centenial years.
10166          - Updated clock function.
10167          - Updated arithmetic and comparison operators.
10168
10169         * a-caldel.adb (To_Duration): Add call to target independent routine in
10170         Ada.Calendar to handle the conversion of time to duration.
10171
10172         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
10173         (UTC Offset).
10174         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
10175         set off to 0.
10176         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
10177         targets do not have a natural time zone, GMT is used as a default.
10178         (__gnat_get_task_options): New.
10179
10180         * a-direct.adb (Modification_Time): Add with and use clauses for
10181         Ada.Calendar and Ada.
10182         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
10183         since it is no longer needed.
10184         (Duration_To_Time): Removed.
10185         (OS_Time_To_Long_Integer): Removed.
10186         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
10187         Formatting Time_Of routines which automatically handle time zones,
10188         buffer periods and leap seconds.
10189
10190         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
10191         target independent routines in Ada.Calendar.
10192
10193         * a-calfor.ads, a-calfor.adb: 
10194         Code cleanup and addition of validity checks in various routines.
10195         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
10196         Ada.Calendar.
10197
10198         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
10199         independent routine in Ada.Calendar.
10200
10201 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10202
10203         * adaint.c: 
10204         (convert_addresses): Adjust prototype and dummy definition to expect an
10205          extra file_name argument.
10206
10207         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
10208         filling the now expected file_name argument with the appropriate
10209         argv[0] expansion.
10210         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
10211         (tracebk): Array of void * instead of char *, corresponding to what
10212          convert_addresses expects.
10213         (exename): New static global, to hold the executable file name to be
10214         used in all convert_addresses invocations.
10215         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
10216         change.
10217         (__gnat_gmem_a2l_initialize): Resolve exename.
10218         (__gnat_convert_addresses): Use exename as the convert_addresses
10219         file_name argument.
10220
10221         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
10222         "convert_addresses", now expecting a filename argument. Import the
10223         necessary entities to compute the filename to use and pass it to
10224         convert_addresses.
10225
10226 2007-04-06  Matt Gingell  <gingell@adacore.com>
10227
10228         * system-aix.ads: Back out previous change.
10229         (Functions_Return_By_DSP): Removed
10230
10231 2007-04-06  Pascal Obry  <obry@adacore.com>
10232
10233         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
10234         or the monotonic used by Ada.Real_Time) to compute the sleep duration
10235         on Windows.
10236
10237 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
10238
10239         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
10240         function. Its value changes in different VxWorks versions, and it is
10241         now handled by the function __gnat_get_task_options.
10242
10243         * s-taprop-vxworks.adb (Create_Task): Call the function
10244         __gnat_get_task_options to get the required options for creating a task.
10245
10246 2007-04-06  Pascal Obry  <obry@adacore.com>
10247             Thomas Quinot  <quinot@adacore.com>
10248
10249         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
10250         dealing with filename.
10251         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
10252         filename from a standard string to a wide-string depending on the
10253         encoding value.
10254         (__gnat_freopen): Idem.
10255         (__gnat_current_time): New function (wrapper for time(3) standard C
10256         function).
10257
10258         * g-os_lib.ads (Current_Time): New function. Returns the current
10259         system time as an OS_Time value.
10260
10261         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
10262         (Monotonic_Clock): Same.
10263
10264 2007-04-06  Quentin Ochem  <ochem@adacore.com>
10265
10266         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
10267         not on a natural.
10268         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
10269
10270 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
10271
10272         * a-retide.adb: Add elaboration code to ensure that the tasking run
10273         time is initialized when using delay operations even when no task is
10274         created.
10275
10276 2007-04-06  Javier Miranda  <miranda@adacore.com>
10277
10278         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
10279         component Num_Prim_Ops.
10280         (Set_Num_Prim_Ops): Removed.
10281         Remove all the assertions because all the routines of this
10282         package are inline always.
10283         (Get_Offset_Index): Add support to primary dispatch tables.
10284         Move the documentation about the dispatch table to a-tags.ads
10285         (Set_External_Tag): Removed
10286         (Inherit_TSD): Removed.
10287         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
10288         moved to a-tags.ads
10289         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
10290         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
10291         of the TSD field "Table" because this field has been renamed to
10292         "Ifaces_Table".
10293         (Inherit_CPP_DT): Removed.
10294         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
10295         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
10296         declarations have been moved to a-tags.ads
10297         (Check_Size): Removed.
10298         (Expanded_Name): Updated to get access to the new field of TSD
10299         containing the address of the expanded name.
10300         (Get_Access_Level/Set_Access_Level): Removed.
10301         (Get_Predefined_Prim_Op_Address): Removed.
10302         (Set_Predefined_Prim_Op_Address): Removed.
10303         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
10304         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
10305         (Set_Expanded_Name): Removed.
10306         (Inherit_DT): Removed.
10307         (Inherit_CPP_DT): Removed.
10308         (Set_RC_Offset): Removed.
10309         (Set_TSD): Removed.
10310         (Base_Address): New function that displaces "this" to point to the base
10311         of the object (that is, to point to the primary tag of the object).
10312
10313 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10314             Javier Miranda  <miranda@adacore.com>
10315
10316         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
10317         anonymous access component, do not create a master_id if type already
10318         has one, as may happen if the type is a subcomponent of a packed array
10319         type.
10320         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
10321         Initialize_Tag): Remove code associated with the old CPP pragmas.
10322         CPP_Virtual and CPP_Vtable are no longer supported.
10323         (Build_Offset_To_Top_Internal): Add support for concurrent record types
10324         (Build_Offset_To_Top_Functions): Add support for concurrent record types
10325         (Freeze_Record_Type): Remove call to
10326         Init_Predefined_Interface_Primitives.
10327         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
10328         code required to initialize the tags of the secondary dispatch tables.
10329         This leaves the algoritm more clear.
10330         (Init_Secondary_Tags): Add support for concurrent record types
10331         (Make_Predefined_Primitive_Specs): Code cleanup.
10332         (Predefined_Primitive_Bodies): Code cleanup.
10333         (Build_Master_Renaming): New local subprogram.
10334         (Expand_N_Full_Type_Declaration): Build the master_id associated with
10335         anonymous access to task type components.
10336         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
10337         subtype indication are resolved during analysis, and must not be done
10338         here.
10339         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
10340
10341 2007-04-06  Geert Bosch  <bosch@adacore.com>
10342             Ed Schonberg  <schonberg@adacore.com>
10343             Javier Miranda  <miranda@adacore.com>
10344             Bob Duff  <duff@adacore.com>
10345
10346         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
10347         for conversion of a Float_Type'Truncation to integer.
10348
10349         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
10350         check if a node is an attribute that can be handled directly by the
10351         back end.
10352         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
10353         attributes that can be handled directly by the back end.
10354         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
10355         use new predicate Is_Access_Protected_Subprogram_Type.
10356         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
10357         and Unchecked_Union if it is generated as part of the default  Output
10358         procedure for a type with default discriminants.
10359         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
10360         if we are compiling under restriction No_Dispatching_Calls.
10361         (Constrained): Use Underlying_Type, in case the type is private without
10362         discriminants, but the full type has discriminants.
10363         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
10364         call to Build_Get_Access_Level.
10365         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
10366         interface objects requires a call to the run-time subprogram that
10367         returns the base address of the object.
10368         (Valid_Conversion): Improve error message on illegal attempt to store
10369         an anonymous access to subprogram value into a record component.
10370
10371         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
10372         null".
10373         (Simplify_Type_Conversion): New procedure that performs simplification
10374         of Int_Type (Float_Type'Truncation (X)).
10375         (Resolve_Type_Conversion): Call above procedure after resolving operand
10376         and before performing checks. This replaces the existing ineffective
10377         code in Exp_Ch4.
10378         (Set_String_Literal_Subtype): When creating the internal static lower
10379         bound subtype for a string literal, use a newly created copy of the
10380         subtree representing the lower bound.
10381         (Resolve_Call): Exclude build-in-place function calls from transient
10382         scope treatment. Update comments to describe this exception.
10383         (Resolve_Equality_Op): In case of dispatching call check violation of
10384         restriction No_Dispatching_Calls.
10385         (Resolve_Call): If the call returns an array, the context imposes the
10386         component type of the array, and the function has one non-defaulted
10387         parameter, rewrite the call as the indexing of a call with a single
10388         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
10389         in prefix form.
10390         (Resolve_Actuals): If an actual is an allocator for an access parameter,
10391         the master of the created object is the innermost enclosing statement.
10392         (Remove_Conversions): For a binary operator, check if type of second
10393         formal is numeric, to check if an abstract interpretation is present
10394         in the case of exponentiation as well.
10395
10396 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10397             Bob Duff  <duff@adacore.com>
10398
10399         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
10400         copying a parameter list in a call, set properly the First_Named_Formal
10401         and Next_Named_Formal fields in the new list and in the enclosing call.
10402         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
10403         names, to ease typing in the debugger. Improve comments.
10404         (Watch_Node): New variable, intended to be set in the debugger.
10405         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
10406         called when the watched node is created.
10407         (New_Node_Debugging_Output): Combined version of local procedures
10408         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
10409         with a parameter so that conditional breakpoints like "if Node = 12345"
10410         work.
10411         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
10412         Add Elist1 function
10413
10414 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10415             Ed Schonberg  <schonberg@adacore.com>
10416             Gary Dismukes  <dismukes@adacore.com>
10417
10418         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
10419         required for a conversion between two access-to-unconstrained-array
10420         types.
10421         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
10422         to discriminant constraints on discriminant objects. This rule must
10423         apply as well to discriminants of protected types in private components.
10424         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
10425         object of a null-excluding access type then don't require the
10426         the object declaration to have an expression and don't emit a
10427         run-time check.
10428
10429 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10430             Eric Botcazou  <botcazou@adacore.com>
10431
10432         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
10433         and made constant.
10434
10435         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
10436         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
10437         carry any.
10438
10439         * fe.h (Compiler_Abort): Add third parameter.
10440
10441         * misc.c (internal_error_function): Build third argument from current
10442         input location and pass it to Compiler_Abort.
10443
10444 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
10445
10446         * cstand.adb (Create_Standard): When the target's storage unit size is
10447         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
10448         Standard_String.
10449
10450 2007-04-06  Nicolas Roche  <roche@adacore.com>
10451
10452         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
10453         absolute path can have the following form: device:/a/b. In this case
10454         '/' should be inserted between the path and the filename.
10455
10456 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10457             Eric Botcazou  <botcazou@adacore.com>
10458
10459         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
10460         VAR_DECL to a CONST_DECL we make for a public constant when we know the
10461         corresponding definition has created the so made visible variable.
10462         Handle anonymous access to protected subprogram.
10463         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
10464         object with an address clause volatile.  Re-enable original fix.
10465         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
10466         too.
10467         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
10468         associated with either the Equivalent or Root type, instead of the
10469         naked type node.
10470         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
10471         subtree for every field of a global record type.
10472         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
10473         discriminants, invoke again variable_size on its newly computed sizes.
10474
10475 2007-04-06  Robert Dewar  <dewar@adacore.com>
10476             Thomas Quinot  <quinot@adacore.com>
10477             Ed Schonberg  <schonberg@adacore.com>
10478             Bob Duff  <duff@adacore.com>
10479
10480         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
10481         (Next_Component_Or_Discriminant): New function and procedure
10482         (First_Index, First_Literal, Master_Id,
10483         Set_First_Index, Set_First_Literal, Set_Master_Id):
10484         Add missing Ekind assertions.
10485         (Is_Access_Protected_Subprogram_Type): New predicate.
10486         (Has_RACW): New entity flag, set on package entities to indicate that
10487         the package contains the declaration of a remote accecss-to-classwide
10488         type.
10489         (E_Return_Statement): This node type has the Finalization_Chain_Entity
10490         attribute, in case the result type has controlled parts.
10491         (Requires_Overriding): Add this new flag, because "requires
10492         overriding" is subtly different from "is abstract" (see AI-228).
10493         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
10494         Is_Abstract_Type. Make sure these are called only when appropriate.
10495         (Has_Pragma_Unreferenced_Objects): New flag
10496
10497         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
10498         class-wide, the tag of the right-hand side must be an exact match, not
10499         an ancestor of that of the object on left-hand side.
10500         (Move_Activation_Chain): New procedure to create the call to
10501         System.Tasking.Stages.Move_Activation_Chain.
10502         (Expand_N_Extended_Return_Statement): Generate code to call
10503         System.Finalization_Implementation.Move_Final_List at the end of a
10504         return statement if the function's result type has controlled parts.
10505         Move asserts to Build_In_Place_Formal.
10506         (Move_Final_List): New function to create the call statement.
10507         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
10508         tagged type, replace generation of call to the run-time subprogram
10509         CW_Membership by call to Build_CW_Membership.
10510         (Expand_N_Return_Statement): Replace generation of call to the run-time
10511         subprogram Get_Access_Level by call to Build_Get_Access_Level.
10512         (Expand_N_Simple_Function_Return): Replace generation of call to the
10513         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10514
10515         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
10516         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
10517         access to protected operations.
10518         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
10519         master and chain actual parameters to a build-in-place function call
10520         involving tasks.
10521         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
10522         statement.
10523         (Make_Build_In_Place_Call_In_Allocator,
10524         Make_Build_In_Place_Call_In_Anonymous_Context,
10525         Make_Build_In_Place_Call_In_Assignment,
10526         Make_Build_In_Place_Call_In_Object_Declaration): Call
10527         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
10528         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
10529         stubbed procedure with a null body, replace the call with a null
10530         statement without using the full inlining machinery, for efficiency
10531         and to avoid invalid values in source file table entries.
10532
10533         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
10534         renamings of calls to build-in-place functions.
10535
10536         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
10537         provides the functionality of RTE_Available to record components.
10538         (RTU_Entity): The function Entity has been renamed to RTU_Entity
10539         to avoid undesired overloading.
10540         (Entity): New subprogram that returns the entity for the referened
10541         unit. If this unit has not been loaded, it returns Empty.
10542         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
10543         Remove no longer used entities.
10544         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
10545         (RE_Type_Specific_Data): New entity.
10546         (RE_Move_Any_Value): New entity.
10547         (RE_TA_A, RE_Get_Any_Type): New entities.
10548         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
10549          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
10550          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
10551         (Entity): New subprogram that returns the entity for the referened
10552         unit. If this unit has not been loaded, it returns Empty.
10553         (RTE): Addition of a new formal that extends the search to the scopes
10554         of the record types found in the chain of the package.
10555
10556         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
10557         "abstract subprograms must be visible" message, whether or not the type
10558         is an interface; that is, remove the special case for interface types.
10559         (Analyze_Function_Return): Remove error message "return of task objects
10560         is not yet implemented" because this is now implemented.
10561         (Create_Extra_Formals): Add the extra master and activation chain
10562         formals in case the result type has tasks.
10563         Remove error message "return of limited controlled objects is not yet
10564         implemented".
10565         (Create_Extra_Formals): Add the extra caller's finalization list formal
10566         in case the result type has controlled parts.
10567         (Process_Formals): In case of access formal types there is no need
10568         to continue with the analysis of the formals if we already notified
10569         errors.
10570         (Check_Overriding_Indicator): Add code to check overriding of predefined
10571         operators.
10572         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
10573         flags for formals that do not require them,.
10574         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
10575         hidden entity is use visible or directly visible.
10576         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
10577         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
10578         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
10579         New_Overloaded_Entity): Split Is_Abstract flag into
10580         Is_Abstract_Subprogram and Is_Abstract_Type.
10581
10582         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
10583         a return statement's finalization list to the caller's list, used for
10584         build-in-place functions with result type with controlled parts.
10585         Remove no longer used entities.
10586
10587         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
10588         longer needed, because the full type is now limited, and therefore a
10589         pass-by-reference type.
10590         (Foreign_Task_Level): New constant.
10591
10592         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
10593         move tasks from the activation chain belonging to a return statement to
10594         the one passed in by the caller, and update the master to the one
10595         passed in by the caller.
10596         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
10597         of unactivated tasks, so we don't kill the ones that are being returned
10598         by a build-in-place function.
10599         (Create_Task): Ignore AI-280 for foreign threads.
10600
10601 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10602             Robert Dewar  <dewar@adacore.com>
10603             Bob Duff  <duff@adacore.com>
10604             Gary Dismukes  <dismukes@adacore.com>
10605
10606         * errout.adb (Unwind_Internal_Type): Use predicate
10607         Is_Access__Protected_Subprogram_Type.
10608
10609         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
10610         (Freeze_Entity, packed array case): Do not override explicitly set
10611         alignment and size clauses.
10612         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
10613         the enclosing subprogram is a child unit body that acts as a spec.
10614         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
10615         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
10616         Remove all code for DSP option
10617
10618         * layout.adb (Layout_Record_Type): Use First/
10619         Next_Component_Or_Discriminant
10620         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
10621         to handle properly the anonymous access case.
10622
10623         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
10624         for all access attributes, because overload resolution should work the
10625         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
10626         causes the error message for the ambiguous "X'Access = Y'Access" and
10627         "X'Unrestricted_Access = Y'Access" and so forth to match.
10628         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
10629         now that anonymous access to protected operations have their own kind.
10630         (Resolve_Attribute): In case of dispatching call check the violation of
10631         restriction No_Dispatching_Calls.
10632         (Check_Array_Type): Check new -gnatyA array index style option
10633
10634         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
10635         attempt to derive from a synchronized tagged type.
10636         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
10637         type, inherit the class-wide type already created, because it may
10638         already have been used in a self-referential anonymous access component.
10639         (Mentions_T): Recognize self-referential anonymous access components
10640         that use (a subtype of) the class-wide type of the enclosing type.
10641         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
10642         Derived_Type for Prev formal on call to
10643         Check_Anonymous_Access_Components rather than Empty.
10644         (Make_Incomplete_Type_Declaration): Add test for case where the type has
10645         a record extension in deciding whether to create a class-wide type,
10646         rather than just checking Tagged_Present.
10647         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
10648         to stand-alone object declarations as well as component declarations.
10649         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
10650         prevent accidental overwriting when enclosing package appears in
10651         a limited_with_clause.
10652         (Array_Type_Declaration): If the component type is an anonymous access,
10653         the associated_node for the itype is the type declaration itself.
10654         (Add_Interface_Tag_Components): Modified to support concurrent
10655         types with abstract interfaces.
10656         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
10657         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
10658         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
10659         to complete the decoration of synchronized interface types. Add also
10660         a call to Check_Abstract_Interfaces to verify the ARM rules.
10661         (Derive_Interface_Subprograms): Modified to support concurrent types
10662         with abstract interfaces.
10663         (Analyze_Subtype_Indication): Resolve the range with the given subtype
10664         mark, rather than delaying the full resolution depending on context.
10665         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
10666         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
10667         Array_Type_Declaration,Build_Derived_Record_Type,
10668         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
10669         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
10670         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
10671         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
10672         called only when appropriate.
10673         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
10674         to private type.
10675         (Analyze_Subtype_Declaration): For an access subtype declaration, create
10676         an itype reference for the anonymous designated subtype, to prevent
10677         scope anonmalies in gigi.
10678         (Build_Itype_Reference): New utility, to simplify construction of such
10679         references.
10680
10681 2007-04-06  Vincent Celier  <celier@adacore.com>
10682
10683         * errutil.adb (Initialize): Initialize warnings table, if all warnings
10684         are suppressed, supply an initial dummy entry covering all possible
10685         source locations.
10686
10687         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
10688         and start with only one, such as "-RTS=none".
10689         (Collect_Arguments): Do not check for sources outside of projects.
10690         Do not collect arguments if project is externally built.
10691         (Compile_Sources): Do nothing, not even check if the source is up to
10692         date, if its project is externally built.
10693         (Compile): When compiling a predefined source, add -gnatpg
10694         as the second switch, after -c.
10695         (Compile_Sources): Allow compilation of Annex J renames without -a
10696         (Is_In_Object_Directory): Check if the ALI file is in the object
10697         even if there is no project extension.
10698         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
10699         gnatbind if the ALI file effectively exists.
10700         (Initialize): Add the directory where gnatmake is invoked in front of
10701         the path if it is invoked from a bin directory, even without directory
10702         information, so that the correct GNAT tools will be used when spawned
10703         without directory information.
10704
10705         * makeusg.adb: Change switch -S to -eS
10706         Add lines for new switches -we, -wn and -ws
10707         Add line for new switch -p
10708
10709         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
10710         Treat_As_Error and there are warnings.
10711
10712         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
10713         -gnatww Change gnatmake switch -S to -eS
10714         (Scan_Make_Switches): Code reorganisation. Process separately multi
10715         character switches and single character switches.
10716         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
10717         False when switch is not recognized by gnatmake.
10718         (Scan_Make_Switches): Set Setup_Projects True when -p or
10719         --create-missing-dirs is specified.
10720
10721         * fname.adb (Is_Predefined_File_Name): Return True for annex J
10722         renamings Calendar, Machine_Code, Unchecked_Conversion and
10723         Unchecked_Deallocation only when Renamings_Included is True.
10724
10725         * par.adb: Allow library units Calendar, Machine_Code,
10726         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
10727         when -gnatg is not specified.
10728         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
10729         there is no need to generate always a record_definition_node in case
10730         of synchronized interface types.
10731         (SIS_Entry_Active): Initialize global variable to False
10732         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
10733         indicate cases where AI-447 says "not null" is legal.
10734
10735         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
10736
10737         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
10738         files with with several lines starting with the object fileb name.
10739         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
10740         is specified.
10741         (Initialize): Add the directory where gprmake is invoked in front of the
10742         path, if it is invoked from a bin directory or with directory
10743         information, so that the correct GNAT tools will be used when invoked
10744         directly.
10745         (Check_Compilation_Needed): Process correctly backslashes on Windows.
10746
10747         * vms_data.ads: Update switches/qualifiers
10748
10749 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10750             Thomas Quinot  <quinot@adacore.com>
10751
10752         * exp_aggr.adb:
10753         If the array component is a discriminated record, the array aggregate
10754         is non-static even if the component is given by an aggregate with
10755         static components.
10756         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
10757         (Convert_Aggr_In_Allocator): If the allocator is for an access
10758         discriminant and the type is controlled. do not place on a finalization
10759         list at this point. The proper list will be determined from the
10760         enclosing object.
10761         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
10762         initialize record controller if needed, before the components, to ensure
10763         that they are properly finalized.
10764         (Build_Record_Aggr_Code): For the case of an array component that has a
10765         corresponding array aggregate in the record aggregate, perform sliding
10766         if required.
10767
10768 2007-04-06  Javier Miranda  <miranda@adacore.com>
10769             Gary Dismukes  <dismukes@adacore.com>
10770             Ed Schonberg  <schonberg@adacore.com>
10771
10772         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
10773         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
10774
10775         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
10776         accessibility on class-wide allocators if the allocator occurs at the
10777         same scope level as the allocator's type. The check is guaranteed to
10778         succeed in that case, even when the expression originates from a
10779         parameter of the containing subprogram.
10780         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
10781         under No_Dispatching_Calls restriction. During the semantic analysis
10782         we already notified such violation.
10783         (Tagged_Membership): Constant folding. There is no need to check
10784         the tag at run-time if the type of the right operand is non
10785         class-wide abstract.
10786         Replace call to Is_Ancestor by call to Is_Parent
10787         to support concurrent types with interface types.
10788         (Expand_N_Allocator): Add an assertion associated with the generation
10789         of the master_id.
10790         (Expand_N_Slice): Do not enable range check to nodes associated
10791         with the frontend expansion of the dispatch table.
10792         (Is_Local_Access_Discriminant): Subsidiary function to
10793         Expand_N_Allocator.
10794         (Tagged_Membership): Replace generation of call to the run-time
10795         subprogram CW_Membership by call to Build_CW_Membership.
10796         (Expand_Allocator_Expression): Replace generation of call to the
10797         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10798
10799         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
10800         initialize most the TSD components by means of an aggregate.
10801         Modify the declaration of the object containing the TSD
10802         because we now expand code that has a higher level of abstraction.
10803         The TSD has a discriminant containing the Inheritance Depth Level,
10804         value that is used in the membership test but also to fix the size
10805         of the table of ancestors.
10806         (Expand_Interface_Conversion): Insert function body at the closest place
10807         to the conversion expression, to prevent access-before-elaboration
10808         errors in the backend.
10809         Code improved to reduce the size of the dispatch table if
10810         compiling under restriction No_Dispatching_Calls plus code cleanup.
10811         Code reorganization plus removal of calls to Set_Num_Prim_Ops
10812         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
10813         (Expand_Dispatching_Call): Minor code reorganization plus addition of
10814         code to return immediately if compiling under No_Dispatching_Calls
10815         restriction.
10816         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
10817         CPP_Virtual and CPP_Vtable are no longer supported.
10818         (Expand_Interface_Conversion): Add missing support for interface type
10819         derivations.
10820         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
10821         Is_Parent to support concurrent types with interfaces.
10822         (Init_Predefined_Interface_Primitives): Removed.
10823         (Make_Secondary_DT): Modified to support concurrent record types.
10824         (Set_All_DT_Position): Modified to support concurrent record types.
10825         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
10826         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
10827         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
10828         with CW_Membership.
10829         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
10830         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
10831         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
10832         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
10833         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
10834         (Expand_Dispatching_Call): Replace generation of call to the run-time
10835         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
10836         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
10837         Address.
10838         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
10839         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
10840         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
10841         Build_Set_Prim_Op_Address.
10842         (Get_Remotely_Callable): Subprogram removed.
10843         (Init_Predefined_Interface_Primitives): Replace generation of call to
10844         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
10845         Prims.
10846
10847         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
10848         First (Parameter_Associations ()) with the call to First_Actual that
10849         returns an actual parameter expression for both named and positional
10850         associations.
10851
10852         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
10853         check violation of restriction No_Dispatching_Calls.
10854         (Check_Controlling_Type): A formal of a tagged incomplete type is a
10855         controlling argument.
10856
10857         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
10858         First/Next_Component_Or_Discriminant
10859         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
10860         (Find_Implemented_Interface): Removed. All the calls to this subprogram
10861         specify Any_Limited_Interface, and this functionality is already
10862         provided by the function Has_Abstract_Interfaces.
10863         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
10864         support concurrent types implementing interfaces.
10865         (Find_Implemented_Interface): Removed. All the calls to this subprogram
10866         specify kind Any_Limited_Interface, and this functionality is already
10867         provided by the function Has_Abstract_Interfaces.
10868         (Remove_Side_Effects): replace Controlled_Type by
10869         CW_Or_Controlled_Type whenever the issue is related to
10870         using or not the secondary stack.
10871
10872         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
10873         P_Interface_Type_Definition to fulfill the new interface (the formal
10874         Is_Synchronized is no longer required).
10875
10876         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
10877         Update dependencies.
10878
10879         * exp_atag.ads, exp_atag.adb: New file
10880
10881 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10882             Bob Duff  <duff@adacore.com>
10883             Cyrille Comar  <comar@adacore.com>
10884
10885         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
10886         anonymous, use finalization list of enclosing dynamic scope.
10887         (Expand_N_Package_Declaration): For a library package declaration
10888         without a corresponding body, generate RACW subprogram bodies in the
10889         spec (just as we do for the task activation call).
10890         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
10891         Is_Abstract_Type. Make sure these are called only when appropriate.
10892         Remove all code for DSP option
10893         (CW_Or_Controlled_Type): new subprogram.
10894
10895 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
10896             Ed Schonberg  <schonberg@adacore.com>
10897             Gary Dismukes  <dismukes@adacore.com>
10898
10899         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
10900         parameter. If it is set to true, return a result capped according to
10901         the global upper bound for the index of an entry family.
10902         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
10903         (Build_Find_Body_Index): Adjust for above change.
10904         (Entry_Index_Expression): Likewise.
10905         (Is_Potentially_Large_Family): New function extracted from...
10906         (Collect_Entry_Families): ...here. Call it to detect whether the family
10907         is potentially large.
10908         (Build_Entry_Count_Expression): If the family is potentially large, call
10909         Family_Size with 'Cap' set to true.
10910         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
10911         a protected version of an operation declared in the private part of
10912         a protected object, because they may be invoked through a callback.
10913         (Set_Privals): If the type of a private component is an anonymous access
10914         type, do not create a new itype for each protected body.
10915         If the body of a protected operation creates
10916         controlled types (including allocators for class-widetypes), the
10917         body of the corresponding protected subprogram must include a
10918         finalization list.
10919         (Build_Activation_Chain_Entity): Build the chain entity for extended
10920         return statements.
10921         (Type_Conformant_Parameters): Use common predicate Conforming_Types
10922         to determine whether operation overrides an inherited primitive.
10923         (Build_Wrapper_Spec): Add code to examine the parents while looking
10924         for a possible overriding candidate.
10925         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
10926         hold an actual parameter value since its initialization is separated
10927         from the the declaration. Prevents errors on null-excluding access
10928         formals.
10929
10930 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10931             Pablo Oliveira  <oliveira@adacore.com>
10932
10933         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
10934         Do an Unchecked_Conversion to handle the passage from the Underlying
10935         Type to the Base Type when calling Build_To_Any_Call and
10936         Build_From_Any_Call.
10937         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
10938         E_Constant, depending upon Variable formal.
10939         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10940         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
10941         parameter that requires an extra constrained parameter, declare
10942         temporary for actual as a variable, not a constant.
10943         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
10944         the unit being compiled is the one that contains the stub type.
10945         Change primitive operation name for the RACW associated with a RAS
10946         from Call to _Call so it cannot clash with any legal identifier.
10947         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
10948         Is_RAS.
10949         (Append_RACW_Bodies): New subprogram.
10950         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
10951         Add_Receiving_Stubs_To_Declarations functions.
10952         When expanding a package body, this list correspond to the
10953         statements in the HSS at the end of the pacakge.
10954         When expanding a package spec, this list correspond to the
10955         spec declarations.
10956         (Add_Receiving_Stubs_To_Declarations): Append the function
10957         registering the receiving stubs at the end of the 'Stmts' list.
10958         (RCI_Package_Locator): Pass the new Version generic formal when
10959         instantiating a RCI_Locator package.
10960         (Build_From_Any_Function): To compute the High bound for an
10961         unconstrained array actual, we add the Low bound with the length.
10962         Thus we must convert the low bound and the length to an appropriate
10963         type before doing the sum.
10964         (Build_Subprogram_Receiving_Stubs, PolyORB):
10965          * Retrieve the extra formals parameters at the
10966            end of the parameter stream.
10967          * Use Move_Any_Value to write back out parameters
10968            after executing the request as it is more efficient
10969            than Copy_Any_Value.
10970          * Build the any containing Extra Formals with the
10971            appropriate typecode.
10972         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
10973         empty Component_List.
10974         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
10975         the tree the declaration for an object that serves as actual parameter
10976         in server-side stubs.
10977         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10978         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10979         Use Build_Actual_Object_Declaration to prepare the actuals.
10980         (Add_Parameter_To_NVList): Set the parameter mode to In for
10981         Extra Constrained Parameters.
10982         (Build_General_Calling_Stubs): Set the parameter type to boolean for
10983         Extra Constrained parameters.
10984         (Build_To_Any_Function, Build_From_Any_Function,
10985         Built_TypeCode_Function): When Typ is implicit, call the correct
10986         function with the first not implicit parent type.
10987         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
10988         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
10989         typecode from the Etype. Therefore we retrieve the correct typecode
10990         with a call to Get_Any_Type.
10991         (Copy_Specification): Do controlling formal type substitution based on
10992         Is_Controlling_Formal flag, instead of caller-provided object type.
10993         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
10994         a RACW primitive operation, we might get a subprogram declaration for an
10995         ancestor of the RACW designated type (not for the designated type
10996         itself), in the case where this operation is inherited. In this case we
10997         have no easy means of determining the original tagged type for which
10998         the primitive was declared, so instead we now rely on
10999         Copy_Specification to use the Is_Controlling_Formal flag to determine
11000         which formals require type substitution.
11001
11002 2007-04-06  Robert Dewar  <dewar@adacore.com>
11003             Ed Schonberg  <schonberg@adacore.com>
11004
11005         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
11006         GNAT.Current_Exception are not allowed if pragma Restrictions
11007         (No_Exception_Propagation) is set and in any case make the associated
11008         handler unsuitable as a target for a local raise statement.
11009         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
11010         run-time subprogram CW_Membership by call to Build_CW_Membership.
11011         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
11012         by a function call, a temporary must be created before expanding the
11013         Constructor_Call itself, to prevent out-of-order elaboration in the
11014         back-end when stack checking is enabled..
11015
11016 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11017
11018         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
11019         result are the bounds of the left operand, not the right.
11020
11021 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11022
11023         * exp_strm.adb
11024         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
11025          discriminant defaults.
11026         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
11027         (Make_Component_List_Attributes): Ditto.
11028
11029 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11030             Bob Duff  <duff@adacore.com>
11031
11032         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
11033         an association with a box as providing a value even though the
11034         initialization procedure for the type is not available.
11035         (Resolve_Record_Aggregate): Check that a choice of an association with a
11036         box corresponds to a component of the type.
11037         (Resolve_Record_Aggregate): Split Is_Abstract flag into
11038         Is_Abstract_Subprogram and Is_Abstract_Type.
11039
11040         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
11041         assert.
11042
11043         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
11044         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
11045         called only when appropriate.
11046
11047 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11048
11049         * g-alleve.ads (Low Level Vector type definitions): Map each to the
11050         associated vector view instead of all to the unsigned char view.
11051
11052         * g-altcon.adb (Generic_Conversions): New internal generic package,
11053         offering facilities for all the Vector/View conversion routines
11054         implemented by this unit.
11055         (To_View/To_Vector - all versions): Reimplemented in a systematic
11056         manner, using the internal Generic_Conversions facilities.
11057
11058 2007-04-06  Pascal Obry  <obry@adacore.com>
11059
11060         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
11061         string.
11062         (Create): Free the source string before storing the new one.
11063
11064 2007-04-06  Vincent Celier  <celier@adacore.com>
11065
11066         * g-debpoo.adb (Validity): New package with a complete new
11067         implementation of subprograms Is_Valid and Set_Valid.
11068         (Is_Valid): Move to local package Validity
11069         (Set_Valid): Move to local package Validity
11070
11071 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
11072             Pablo Oliveira  <oliveira@adacore.com>
11073
11074         * g-expect.adb (Get_Command_Output): When expanding the output buffer
11075         we must ensure that there is enough place for the new data we are going
11076         to copy in.
11077
11078 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11079
11080         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
11081         computation.
11082
11083 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
11084             Vincent Celier  <celier@adacore.com>
11085
11086         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
11087         (Stack_String): Add this String that contains the name of the Stack
11088         package in the project file.
11089         (Packages_To_Check_By_Stack): Add this list that contains the packages
11090         to be checked by gnatstack, which are the naming and the stack packages.
11091         (Check_Files): If no .ci files were specified for gnatstack we add all
11092         the .ci files belonging to the projects, including binder generated
11093         files.
11094         (Non_VMS_Usage): Document that gnatstack accept project file switches.
11095         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
11096         Add gnatstack to the list of commands that use project file related
11097         switches, and get the single attribute Switches from the stack package
11098         in a project file when calling gnatstack. Parse the -U flag for
11099         processing files belonging to all projects in the project tree.
11100         Remove all processing for command Setup
11101
11102         * prj-attr.adb: Add new package Stack with single attribute Switches
11103
11104         * vms_conv.ads (Command_Type): Add command Stack.
11105         Move to body declarations that are only used in the body: types Item_Id,
11106         Translation_Type, Item_Ptr, Item and its subtypes.
11107
11108         * vms_conv.adb: (Initialize): Add data for new command Stack.
11109         Add declarations moved from the spec: types Item_Id, Translation_Type,
11110         Item_Ptr, Item and its subtypes.
11111         (Cargs_Buffer): New table
11112         (Cargs): New Boolean global variable
11113         (Process_Buffer): New procedure to create arguments
11114         (Place): Put character in table Buffer or Cargs_Buffer depending on the
11115          value of Cargs.
11116         (Process_Argument): Set Cargs when processing qualifiers for GNAT
11117         COMPILE
11118         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
11119         empty, for table Cargs_Buffer.
11120         (Initialize): Remove component Setup in Command_List
11121
11122 2007-04-06  Vincent Celier  <celier@adacore.com>
11123
11124         * gprep.adb (Process_Files.Process_One_File): Use full file name when
11125         issuing pragma Source_Reference.
11126
11127 2007-04-06  Emmanuel Briot  <briot@adacore.com>
11128
11129         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
11130         [[:xdigit:]] character class.
11131         Also raise an exception when an invalid character class is used.
11132
11133 2007-04-06  Pascal Obry  <obry@adacore.com>
11134
11135         * i-cstrea.ads: (fopen): Add encoding parameter.
11136         (freopen): Idem.
11137         Change reference from a-sysdep.c to sysdep.c in comment.
11138         Update copyright notice.
11139         This set of patch add support for the encoding form parameter.
11140
11141         * mingw32.h (S2WSU): New macro to convert from a string to a
11142         wide-string using the UTF-8 encoding. The S2WS macro supports now only
11143         standard 8bits encoding.
11144         (WS2SU): As above but converting from wide-sring to string.
11145         This is needed as it is necessary to have access to both versions in the
11146         runtime for the form parameter encoding support.
11147         This set of patch add support for the encoding form parameter.
11148         (S2WS): Improve implementation to handle cases where the filename is not
11149         UTF-8 encoded. In this case we default to using the current code page
11150         for the conversion.
11151
11152         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
11153         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
11154         the constants defined in adaint.h.
11155         (fopen): Add encoding parameter.
11156         (freopen): Idem.
11157
11158         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
11159         encoding. This is needed for the Reset routine (freopen low level-call).
11160
11161         * s-fileio.adb (Open): Decode encoding form parameter and set the
11162         corresponding encoding value into AFCB structure.
11163         (Reset): Pass the encoding value to freopen.
11164         (Close): Move the call to Lock_Task to the beginning of the procedure.
11165
11166 2007-04-06  Geert Bosch  <bosch@adacore.com>
11167             Robert Dewar  <dewar@adacore.com>
11168
11169         * i-fortra.ads: Add Double_Complex type.
11170
11171         * impunit.adb: (Is_Known_Unit): New function
11172         Add Gnat.Byte_Swapping
11173         Add GNAT.SHA1
11174         Add new Ada 2005 units
11175         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
11176         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
11177         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
11178         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
11179
11180         * impunit.ads (Is_Known_Unit): New function
11181
11182         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
11183         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
11184         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
11185         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
11186         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
11187         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
11188         New files.
11189
11190         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
11191
11192         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
11193
11194 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11195             Arnaud Charlet  <charlet@adacore.com>
11196
11197         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
11198         __gnat_adjust_context_for_raise.
11199         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
11200         implementation of floating point operations as native x86 targets.
11201         So the FPU should be initialized in the same way using finit. Fix
11202         floating point operations accuracy issues.
11203         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
11204         member in struct sigaction, so as to avoid warning for incompatible
11205         pointer types.
11206
11207 2007-04-06 Serguei Rybin  <rybin@adacore.com>
11208
11209         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
11210         switches from previously loaded tree
11211
11212 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11213
11214         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
11215         cases where a given dependency has a body or not.
11216         (Write_With_File_Names): New subprogram, common code for the two cases
11217         above.
11218
11219 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11220             Javier Miranda  <miranda@adacore.com>
11221
11222         * lib-xref.ads, lib-xref.adb: 
11223         Modify the loop that collects type references, to include interface
11224         types that the type implements. List each of these interfaces when
11225         building the entry for the type.
11226         (Generate_Definition): Initialize component Def and Typ of new entry
11227         in table Xrefs, to avoid to have these components unitialized.
11228         (Output_References): Split Is_Abstract flag into
11229         Is_Abstract_Subprogram and Is_Abstract_Type.
11230         (Generate_Reference): Add barrier to do not generate the warning
11231         associated with Ada 2005 entities with entities generated by the
11232         expander.
11233
11234 2007-04-06  Robert Dewar  <dewar@adacore.com>
11235             Arnaud Charlet  <charlet@adacore.com>
11236             Vincent Celier  <celier@adacore.com>
11237
11238         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
11239         Update 'Exception Handling Control' chapter which was outdated.
11240         Minor fix to documentation of -gnatwq
11241         Remove section "Adapting the Run Time to a New C++ Compiler" because
11242         it is now obsolete.
11243         Add passage on need of -nostart-files in some non-ada-main cases.
11244         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
11245         Update documentation about Interfacing with C++
11246         Add documentation for new gnatmake switch -p
11247         Add missing protocol part in URLs.
11248         Document -gnatyA
11249         Document pragma Compile_Time_Error
11250         Add documentation for Object_Size indicating that stand alone
11251         objects can have a larger size in some cases.
11252         Add node for GNAT.Byte_Swapping, GNAT.SHA1
11253         Update reference to the Ravenscar profile.
11254         Document pragma Unreferenced_Objects
11255
11256         * gnat-style.texi: Fix typo
11257
11258 2007-04-06  Vincent Celier  <celier@adacore.com>
11259
11260         * mlib.adb (Building_Library): Only output "building a library..." in
11261         verbose mode
11262
11263         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
11264         files in verbose mode.
11265
11266         * mlib-utl.adb (Ar): Only output the first object files when not in
11267         verbose mode.
11268         (Gcc): Do not display all the object files if not in verbose mode, only
11269         the first one.
11270
11271 2007-04-06  Robert Dewar  <dewar@adacore.com>
11272
11273         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
11274         it no longer destroys the contents of Name_Buffer or Name_Len and
11275         non-standard and invalid names are handled better.
11276         (Get_Decoded_Name_String): Improve performance by using
11277         Name_Has_No_Encodings flag in the name table.
11278         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
11279         Used for debugging printouts.
11280
11281 2007-04-06  Robert Dewar  <dewar@adacore.com>
11282             Javier Miranda  <miranda@adacore.com>
11283             Bob Duff  <duff@adacore.com>
11284
11285         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
11286         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11287         there is no need to generate always a record_definition_node in case
11288         of synchronized interface types.
11289         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
11290         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
11291         illegal in Ada 95, in cases where it is legal. Change the warnings to
11292         errors in other cases. Don't give the error unless the "not null"
11293         parses properly. Correct the source position at which the error occurs.
11294         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
11295         P_Null_Exclusion, to suppress "not null" warnings.
11296         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
11297         associated goto statements.
11298
11299         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
11300         of END RECORD
11301
11302         * scans.ads (Type_Token_Location): New flag
11303
11304         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
11305         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
11306         P_Null_Exclusion, to suppress "not null" warnings.
11307
11308 2007-04-06  Robert Dewar  <dewar@adacore.com>
11309             Javier Miranda  <miranda@adacore.com>
11310             Bob Duff  <duff@adacore.com>
11311             Vincent Celier  <celier@adacore.com>
11312
11313         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
11314         (Extensions_Allowed): No longer sets Ada_Version
11315         Entry for pragma Unreferenced_Objects
11316
11317         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
11318         system.tasking if pragma priority used in a procedure
11319         (Analyze_Pragma, case Warning): Handle dot warning switches
11320         (Process_Compile_Time_Warning_Or_Error): New procedure
11321         (Analyze_Pragma): Add processing for Compile_Time_Error
11322         Add support for extra arguments External_Name and Link_Name.
11323         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
11324         (Process_Import_Or_Interface): Add support for the use of pragma Import
11325         with tagged types.
11326         (Extensions_Allowed): No longer affects Ada_Version
11327         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
11328         Is_Abstract_Type. Make sure these are called only when appropriate.
11329         Add processing for pragma Unreferenced_Objects
11330
11331         * snames.h, snames.ads, snames.adb: Add entry for pragma
11332         Compile_Time_Error
11333         Add new standard name Minimum_Binder_Options for new gprmake
11334         Add new standard names for gprmake: Archive_Suffix,
11335         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
11336         Library_Support, Library_Version_Options,
11337         Shared_Library_Minimum_Options,
11338         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
11339         Change Name_Call to Name_uCall so that it cannot clash with a legal
11340         subprogram name.
11341         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
11342         Append C_Plus_Plus to convention identifiers as synonym for CPP
11343         Add new standard names Stack and Builder_Switches
11344         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
11345         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
11346         Run_Path_Option, Toolchain_Version.
11347         Entry for pragma Unreferenced_Objects
11348
11349         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
11350         switches, without repetition of "eD". Make sure that last character of
11351         -gnatep= switch is not taken as -gnat switch character.
11352         Complete rewrite of circuit for handling saving compilation options
11353         Occasioned by need to support dot switchs for -gnatw, but cleans up
11354         things in general.
11355         -gnatX does not affect Ada_Version
11356         Include -gnatyA in -gnatg style switches
11357
11358         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
11359         warnings on return objects.
11360         (Warn_On_Useless_Assignment): Exclude warnings on return objects
11361         (Set_Dot_Warning_Switch): New procedure
11362         (Check_References): Add missing case of test for
11363         Has_Pragma_Unreferenced_Objects
11364         (Output_Unreferenced_Messages): Implement effect of new pragma
11365         Unreferenced_Objects, remove special casing of limited controlled
11366         variables.
11367
11368 2007-04-06  Vincent Celier  <celier@adacore.com>
11369
11370         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
11371         the default project path, initially done during elaboration of the
11372         package.
11373         If the prefix returned by Sdefault is null, get the prefix from a call
11374         to Executable_Prefix_Path.
11375         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
11376         null.
11377
11378         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
11379         canonical directory name to open the directory from which files are
11380         retrieved.
11381         (Record_Other_Sources): Idem.
11382         (Locate_Directory): Add the possibility to create automatically missing
11383         directories when Setup_Projects is True.
11384         Call Locate_Directory so that the directory will be created when
11385         Setup_Projects is True, for object dir, library dir, library ALI dir,
11386         library source copy dir and exec dir.
11387
11388         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
11389         versions of GNAT.
11390
11391 2007-04-06  Robert Dewar  <dewar@adacore.com>
11392
11393         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
11394         Use First/Next_Component_Or_Discriminant
11395         (Analyze_Record_Representation_Clause):
11396         Use First/Next_Component_Or_Discriminant
11397         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
11398         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
11399         definition if type is unconstrained.
11400         (Adjust_Record_For_Reverse_Bit_Order): New procedure
11401         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
11402         Is_Abstract_Subprogram and Is_Abstract_Type.
11403         (Adjust_Record_For_Reverse_Bit_Order): New procedure
11404
11405         * repinfo.adb (List_Record_Info): Use First/
11406         Next_Component_Or_Discriminant.
11407
11408         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
11409         New procedure.
11410
11411         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
11412         Include -gnatyA in default switches
11413
11414         * opt.ads: (Warn_On_Non_Local_Exception): New flag
11415         (Warn_On_Reverse_Bit_Order): New flag
11416         (Extensions_Allowed): Update the documentation.
11417         (Warn_On_Questionable_Missing_Parens): Now on by default
11418
11419         * usage.adb: Add documentation of -gnatw.x/X switches
11420         Document new -gnatyA style switch
11421         -gnatq warnings are on by default
11422
11423 2007-04-06  Ed Falis  <falis@adacore.com>
11424
11425         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
11426         full word is no longer compared twice.
11427
11428 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11429
11430         * sem_ch10.adb (Install_Limited_Context_Clauses.
11431         Expand_Limited_With_Clause): Use a new copy of selector name in the
11432         call to Make_With_Clause. This fixes the tree structure for ASIS
11433         purposes. Nothing is changed in the compiler behaviour.
11434         (Process_Body_Clauses): Handle properly use clauses whose prefix is
11435         a package renaming.
11436         (Install_Limited_With_Clauses): Do not install non-limited view when it
11437         is still incomplete.
11438
11439 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11440             Gary Dismukes  <dismukes@adacore.com>
11441
11442         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
11443         when capturing size information, instead of base type, which for a
11444         formal array type will be the unconstrained type.
11445         (Analyze_Formal_Object_Declaration): Add check for illegal default
11446         expressions for a formal in object of a limited type.
11447         (Instantiate_Object): Ditto.
11448         (Check_Formal_Package_Instance): Skip entities that are formal objects,
11449         because they were defaulted in the formal package and no check applies
11450         to them.
11451         (Check_Formal_Package_Instance): Extend conformance check to other
11452         discrete types beyond Integer.
11453         (Process_Default): Copy directly the unmatched formal. A generic copy
11454         has already been performed in Analyze_Formal_Package.
11455         (Analyze_Associations): If a formal subprogram has no match, check for
11456         partial parametrization before looking for a default, to prevent
11457         spurious errors.
11458         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
11459         not set the instantiation environment before analyzing the actuals.
11460         Fixes regression on 8515-003 with implementation of AI-133.
11461         Set_Instance_Env checks whether the generic unit is a predefined
11462         unit, in which case the instance must be analyzed with the latest Ada
11463         mode. This setting must take place after analysis of the actuals,
11464         because the actuals must be analyzed and frozen in the Ada mode extant
11465         outside of the current instantiation.
11466         (Save_Env, Restore_Env): Preserve and restore the configuration
11467         parameters so that predefined units can be compiled in the proper Ada
11468         mode.
11469         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
11470         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
11471         and Is_Abstract_Type.
11472         (Analyze_Formal_Package): For better error recovery, Add exception
11473         handler to catch Instantion_Error, which can be raised in
11474         Analyze_Associations
11475
11476 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11477             Bob Duff  <duff@adacore.com>
11478             Gary Dismukes  <dismukes@adacore.com>
11479
11480         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
11481         prefix type is a discriminated subtype of the type of the formal.
11482         (Analyze_Allocator): Collect all coextensions regardless of the context.
11483         Whether they can be allocated statically is determined in exp_ch4.
11484         (Analyze_Selected_Component): If the prefix is a limited view and the
11485         non-limited view is available, use the non-limited one.
11486         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
11487         therefore illegal), suggest a qualified expression rather than a type
11488         conversion, because a type conversion would be illegal in this context.
11489         (Anayze_Allocator): Trace recursively all nested allocators so that all
11490         coextensions are on the corresponding list for the root. Do no mark
11491         coextensions if the root allocator is within a declaration for a stack-
11492         allocated object, because the access discriminants will be allocated on
11493         the stack as well.
11494         (Analyze_Call): Remove restriction on calls to limited functions for the
11495         cases of generic actuals for formal objects, defaults for formal objects
11496         and defaults for record components.
11497         (Analyze_Allocator): Before analysis, chain coextensions on the proper
11498         element list. Their expansion is delayed until the enclosing allocator
11499         is processed and its finalization list constructed.
11500         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
11501         for an operation with the given name among the primitive operations of
11502         the corresponding record type.
11503         (Analyze_Selected_Component): If the prefix is a task type that
11504         implements an interface, and there is no entry with the given name,
11505         check whether there is another primitive operation (e.g. a function)
11506         with that name.
11507         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
11508         properly the indexing of a function call written in prefix form, where
11509         the function returns an array type, and all parameters of the function
11510         except the first have defaults.
11511         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
11512         the original operands, rather than relocating them, for efficiency and
11513         to work properly when an operand is overloaded.
11514         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
11515         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
11516         (Analyze_Selected_Component): If the prefix is a private extension, only
11517         scan the visible components, not those of the full view.
11518         (Try_Primitive_Operation): If the operation is a procedure, collect all
11519         possible interpretations, as for a function, because in the presence of
11520         classwide parameters several primitive operations of the type can match
11521         the given arguments.
11522
11523 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11524             Robert Dewar  <dewar@adacore.com>
11525
11526         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
11527         tag-indeterminate call to an abstract function, when the left-hand side
11528         is not classwide.
11529         (Analyze_Loop_Statement): Improve detection of infinite loops
11530
11531 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11532             Thomas Quinot  <quinot@adacore.com>
11533
11534         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
11535         out of Analyze_Package_Declaration, because processing must be applied
11536         to package bodies as well, for deferred constants completed by pragmas.
11537         (Analyze_Package_Declaration): When the package declaration being
11538         analyzed does not require an explicit body, call Check_Completion.
11539         (May_Need_Implicit_Body): An implicit body is required when a package
11540         spec contains the declaration of a remote access-to-classwide type.
11541         (Analyze_Package_Body): If the package contains RACWs, append the
11542         pending subprogram bodies generated by exp_dist at the end of the body.
11543         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
11544         Is_Abstract_Subprogram and Is_Abstract_Type.
11545         (Preserve_Full_Attributes): The full entity list is not an attribute
11546         that must be preserved from full to partial view.
11547
11548         * sem_dist.adb (Add_RAS_Dereference_TSS):
11549         Change primitive name to _Call so it cannot clash with any legal
11550         identifier, and be special-cased in Check_Completion.
11551         Mark the full view of the designated type for the RACW associated with
11552         a RAS as Comes_From_Source to get proper view switching when installing
11553         private declarations.
11554         Provite a placeholder nested package body along with the nested spec
11555         to have a place for Append_RACW_Bodies to generate the calling stubs
11556         and stream attributes.
11557
11558 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11559             Robert Dewar  <dewar@adacore.com>
11560
11561         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
11562         that is a limited view, check the non-limited view if available.
11563         (Undefined): Refine error message for missing with of Text_IO
11564         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
11565         to distinguish real missing with cases.
11566         Fix format of all missing with messages
11567         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
11568         renaming as body when renamed entity is abstract.
11569
11570 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11571             Javier Miranda  <miranda@adacore.com>
11572
11573         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
11574         predicate recursive, to handle complex expressions on literals whose
11575         spurious ambiguity comes from the abstract interpretation of some
11576         subexpression.
11577         (Interface_Present_In_Ancestor): Add support to concurrent record
11578         types.
11579         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
11580         Is_Abstract_Subprogram and Is_Abstract_Type.
11581
11582 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11583             Javier Miranda  <miranda@adacore.com>
11584
11585         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
11586         dereference of a local object R created as a reference to another
11587         object O, use the access level of O.
11588         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
11589         rather than local Same_Formal_Type, to check whether protected operation
11590         overrides an inherited one.
11591         (Same_Formal_Type): New predicate, used when matching signatures of
11592         overriding synchronized operations, to handle the case when a formal
11593         has a type that is a generic actual.
11594         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
11595         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
11596         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
11597         syntactic ambiguities involving indexing of function calls that return
11598         arrays.
11599         (Abstract_Interface_List): New subprogram that returns the list of
11600         abstract interfaces associated with a concurrent type or a
11601         concurrent record type.
11602         (Interface_Present_In_Parent): New subprogram used to check if a
11603         given type or some of its parents implement a given interface.
11604         (Collect_Abstract_Interfaces): Add support for concurrent types
11605         with interface types.
11606         (Has_Abstract_Interfaces): Add support for concurrent types with
11607         interface types.
11608         (Is_Parent): New subprogram that determines whether E1 is a parent
11609         of E2. For a concurrent type its parent is the first element of its
11610         list of interface types; for other types this function provides the
11611         same result than Is_Ancestor.
11612         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
11613         (Collect_Synchronized_Interfaces): Removed because the subprogram
11614         Collect_Abstract_Interfaces provides this functionality.
11615         (Collect_Abstract_Interfaces): Minor update to give support to
11616         concurrent types and thus avoid undesired code duplication.
11617         (Get_Subprogram_Entity): Handle entry calls.
11618         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
11619         entry calls.
11620         (Enter_Name): Do not give -gnatwh hiding warning for record component
11621         entities, they never result in hiding.
11622
11623 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11624             Robert Dewar  <dewar@adacore.com>
11625
11626         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
11627         to chain nested components that are allocators for access discriminants
11628         of the enclosing object.
11629         Add N_Push and N_Pop nodes
11630         New field Exception_Label added
11631         (Local_Raise_Statements): New field in N_Exception_Handler_Node
11632         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
11633         (Is_Coextension): New flag for allocators, to mark allocators that
11634         correspond to access discriminants of dynamically allocated objects.
11635         (N_Block_Statement): Document the fact that the corresponding entity
11636         can be an E_Return_Statement.
11637         (Is_Coextension): New flag for allocators.
11638         Remove all code for DSP option
11639
11640         * sprint.ads, sprint.adb: Display basic information for class_wide
11641         subtypes. Add handling of N_Push and N_Pop nodes
11642
11643 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
11644
11645         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
11646         before propagating exception.
11647
11648 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11649
11650         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
11651         an address always within the call instruction from a return address.
11652
11653 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11654             Eric Botcazou  <botcazou@adacore.com>
11655
11656         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
11657         expression with a COMPOUND_EXPR including the call instead of emitting
11658         the call directly here.
11659         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
11660         high bound is constant and the slice is empty.  Tidy.
11661         (tree_transform, case N_Op_Not): Handle properly the case where the
11662         operation applies to a private type whose full view is a modular type.
11663         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
11664         Address_Clause, use the associated Expression as the GNAT tree
11665         representing the choice value to ensure the corresponding GCC tree is
11666         of the proper kind.
11667         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
11668         instead of just the operands, as the base GCC stabilize_reference does.
11669         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
11670         requested; otherwise fail.
11671         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
11672
11673 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11674
11675         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
11676         implementation of UI_Div.
11677         (UI_Div): Reimplement as a call to UI_Div_Rem.
11678         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
11679         remainder, avoiding the cost of a multiplication and a subtraction.
11680         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
11681         provides both quotient and remainder in a single computation.
11682         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
11683         functions for uint.
11684         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
11685         is undefined if the given n is not inversible.
11686
11687 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11688
11689         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
11690         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
11691         opcodes.
11692
11693 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11694             Olivier Hainque  <hainque@adacore.com>
11695
11696         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
11697         when updating the contents of the old pointer to an unconstrained array.
11698         (end_subprog_body): Set error_gnat_node to Empty.
11699         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
11700         (unchecked_convert): For subtype to base type conversions, require that
11701         the source be a subtype if it is an integer type.
11702         (builtin_decls): New global, vector of available builtin functions.
11703         (gnat_pushdecl): Add global builtin function declaration nodes to the
11704         builtin_decls list.
11705         (gnat_install_builtins): Adjust comments.
11706         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
11707         calling gnat_pushdecl, so that it knows when it handed a builtin
11708         function declaration node.
11709         (builtin_decl_for): Search the builtin_decls list.
11710
11711 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11712
11713         * s-stchop-vxworks.adb: 
11714         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
11715
11716 2007-04-06  Robert Dewar  <dewar@adacore.com>
11717             Arnaud Charlet  <charlet@adacore.com>
11718
11719         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
11720
11721         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
11722         of files
11723         Add mention of -Sev (set initialize_scalars option from environment
11724         variable at run time) in gnatbind usage message.
11725
11726         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
11727
11728         * fname-uf.ads: Minor comment fix
11729
11730         * osint.ads: Change pragma Elaborate to Elaborate_All
11731
11732         * par-load.adb: Add documentation.
11733
11734         * sem_cat.ads, sem_cat.adb: Minor code reorganization
11735
11736         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
11737
11738         * s-secsta.ads: Extra comments
11739
11740         * s-soflin.ads: Minor comment fixes
11741
11742         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
11743
11744         * s-wchcon.ads: Minor comment addition
11745
11746         * treepr.adb: Minor change in message
11747         (Print_Name,Print_Node): Make these debug printouts more robust: print
11748         "no such..." instead of crashing on bad input.
11749
11750 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
11751
11752         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
11753         instead of gnat_signed_or_unsigned_type.
11754         * utils.c (gnat_signed_or_unsigned_type): Remove.
11755         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
11756         * gigi.h (gnat_signed_or_unsigned_type): Remove
11757
11758 2007-03-09  Roger Sayle  <roger@eyesopen.com>
11759
11760         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
11761         fold with the result of buildN.
11762         * decl.c (gnat_to_gnu_entity): Likewise.
11763         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
11764         * utils.c (finish_record_type, merge_sizes, max_size, convert):
11765         Likewise.
11766         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
11767         nonbinary_modular_operation, build_binary_op, build_unary_op,
11768         build_cond_expr): Likewise.
11769
11770         * utils.c (convert): Use fold_build1 when casting values to void.
11771         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
11772         fold_convert instead of convert when appropriate.
11773
11774 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
11775
11776         * Make-lang.in: Add install-pdf target as copied from
11777         automake v1.10 rules.
11778
11779 2007-02-28  Andreas Schwab  <schwab@suse.de>
11780
11781         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
11782         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
11783         (doc/gnat-style.info): Likewise.
11784
11785 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
11786
11787         * gnat-style.texi: Standardize title page.
11788         * gnat_rm.texi: Likewise.
11789         * gnat_ugn.texi: Likewise.
11790
11791 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
11792
11793         * decl.c (annotate_value): Adjust for refactoring of tree_map
11794         hierarchy.
11795
11796 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
11797
11798         * decl.c (annotate_value): Adjust for refactoring of tree_map
11799         hierarchy.
11800
11801 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
11802
11803         PR ada/18819
11804         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
11805         untagged derived type, add hidden components to keep discriminant
11806         layout consistent, when a given discriminant of the derived type
11807         constraints several discriminants of the parent type.
11808
11809 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
11810             Sandra Loosemore  <sandra@codesourcery.com>
11811
11812         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
11813         build the call expression.
11814         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
11815         * utils.c (max_size) <tcc_exceptional>: Delete.
11816         <tcc_vl_exp>: New case.
11817         <tcc_expression>: Delete CALL_EXPR subcase.
11818         (build_global_cdtor): Use build_call_nary instead of build3.
11819         * utils2.c (build_call_1_expr): Likewise.
11820         (build_call_2_expr): Likewise.
11821         (build_call_0_expr): Likewise.
11822         (build_call_alloc_dealloc): Likewise.
11823
11824 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
11825
11826         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
11827         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
11828         and _Unwind_SWord with _sleb128_t.
11829
11830 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
11831
11832         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
11833         * decl.c: Include gt-ada-decl.h.
11834         (annotate_value_cache): New.
11835         (annotate_value): Use it instead of TREE_COMPLEXITY.
11836
11837 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
11838
11839         * misc.c, utils2.c: Fix comment typos.
11840
11841 2007-01-24  Roger Sayle  <roger@eyesopen.com>
11842
11843         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
11844         TREE_CONSTANT_OVERFLOW.
11845         (allocatable_size_p, annotate_value): Likewise.
11846         * trans.c (gnat_to_gnu): Likewise.
11847         * utils.c (unchecked_convert): Likewise.
11848         * utils2.c (build_simple_component_ref): Likewise.
11849
11850 2007-01-23  Richard Guenther  <rguenther@suse.de>
11851
11852         PR bootstrap/30541
11853         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
11854         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
11855         (gnatboot3): Likewise.
11856         (GNATBIND): Do not define.
11857         * Makefile.in (GNATBIND): Do not define.
11858
11859 2007-01-08  Richard Guenther  <rguenther@suse.de>
11860
11861         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
11862         * trans.c (gnat_to_gnu): Likewise.
11863
11864 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
11865
11866         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
11867         * adaint.c: Likewise.
11868
11869 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
11870
11871         Merge from gimple-tuples-branch:
11872         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
11873
11874         * ada-tree.h (lang_tree_node): Handle gimple tuples.
11875         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
11876         GIMPLE_MODIFY_STMT.
11877
11878 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
11879
11880         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
11881         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
11882         Fix typos.
11883
11884 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
11885
11886         PR ada/27936
11887         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
11888         if the initializer takes into account the padding.
11889
11890 2006-11-11  Richard Guenther  <rguenther@suse.de>
11891
11892         * trans.c (maybe_stabilize_reference): Remove handling of
11893         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
11894
11895 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
11896
11897         PR ada/29707
11898         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
11899         (To_Target_Priority): New function.
11900
11901 2006-10-31  Robert Dewar  <dewar@adacore.com>
11902
11903         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
11904         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
11905         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
11906         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
11907         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
11908         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
11909         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
11910         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
11911         a-szbzha.adb: Minor reformatting. Fix header.
11912
11913         * a-numaux-x86.adb: Add parentheses for use of unary minus
11914         * a-ngcefu.adb: Supply missing parentheses for unary minus
11915         * a-ngcoty.adb: Add parens for use of unary minus
11916         * a-ngelfu.adb: Add missing parens for unary minus
11917         * a-tifiio.adb: Add parentheses for uses of unary minus
11918
11919 2006-10-31  Robert Dewar  <dewar@adacore.com>
11920             Bob Duff  <duff@adacore.com>
11921             Ed Schonberg  <schonberg@adacore.com>
11922
11923         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
11924         with multiplying operator.
11925         (Expected_Type_Is_Any_Real): New function to determine from the Parent
11926         pointer whether the context expects "any real type".
11927         (Resolve_Arithmetic_Op): Do not give an error on calls to the
11928         universal_fixed "*" and "/" operators when they are used in a context
11929         that expects any real type. Also set the type of the node to
11930         Universal_Real in this case, because downstream processing requires it
11931         (mainly static expression evaluation).
11932         Reword some continuation messages
11933         Add some \\ sequences to continuation messages
11934         (Resolve_Call): Refine infinite recursion case. The test has been
11935         sharpened to eliminate some false positives.
11936         Check for Current_Task usage now includes entry barrier, and is now a
11937         warning, not an error.
11938         (Resolve): If the call is ambiguous, indicate whether an interpretation
11939         is an inherited operation.
11940         (Check_Aggr): When resolving aggregates, skip associations with a box,
11941         which are priori correct, and will be replaced by an actual default
11942         expression in the course of expansion.
11943         (Resolve_Type_Conversion): Add missing support for conversion from
11944         a class-wide interface to a tagged type. Minor code cleanup.
11945         (Valid_Tagged_Converion): Add support for abstact interface type
11946         conversions.
11947         (Resolve_Selected_Component): Call Generate_Reference here rather than
11948         during analysis, and use May_Be_Lvalue to distinguish read/write.
11949         (Valid_Array_Conversion): New procedure, abstracted from
11950         Valid_Conversion, to incorporate accessibility checks for arrays of
11951         anonymous access types.
11952         (Valid_Conversion): For a conversion to a numeric type occurring in an
11953         instance or inlined body, no need to check that the operand type is
11954         numeric, since this has been checked during analysis of the template.
11955         Remove legacy test for scope name Unchecked_Conversion.
11956
11957         * sem_res.ads: Minor reformatting
11958
11959         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
11960         (PE_Current_Task_In_Entry_Body): New exception code
11961         (SE_Restriction_Violation): Removed, not used
11962
11963         * a-except.ads:  Update comments.
11964
11965         * types.h, types.ads: Add definition for Validity_Check
11966         (PE_Current_Task_In_Entry_Body): New exception code
11967         (SE_Restriction_Violation): Removed, not used
11968
11969 2006-10-31  Thomas Quinot  <quinot@adacore.com>
11970
11971         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
11972         error status.
11973
11974 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
11975             Jose Ruiz  <ruiz@adacore.com>
11976
11977         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
11978         part of Ada.Calendar: all subprogram raise Unimplemented.
11979         (Split_W_Offset): Temp function body, raising Unimplemented
11980
11981         * a-calend.ads, a-calend-vms.ads: 
11982         Add imported variable Invalid_TZ_Offset used to designate targets unable
11983         to support time zones.
11984         (Unimplemented): Temporary function raised by the body of new
11985         subprograms below.
11986         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
11987         unit provides handling of leap seconds and is used by the new Ada 2005
11988         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
11989         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
11990         version returns an extra value which is the offset to UTC.
11991
11992         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
11993         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
11994         (Split_W_Offset): New function body.
11995         (Time_Of): When a date is close to UNIX epoch, compute the time for
11996         that date plus one day (that amount is later substracted after
11997         executing mktime) so there are no problems with time zone adjustments.
11998
11999         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
12000
12001         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
12002         a-catizo.ads, a-catizo.adb: New files.
12003
12004         * impunit.adb: Add new Ada 2005 entries
12005
12006         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
12007         Rename all occurences of "__gnat_localtime_r" to
12008         "__gnat_localtime_tzoff".
12009         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
12010         zone data and calculate the GMT offset.
12011         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
12012         Use the field "tm_gmtoff" to extract the GMT offset.
12013         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
12014         the external variable "timezone" to calculate the GMT offset.
12015
12016 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
12017             Jose Ruiz  <ruiz@adacore.com>
12018
12019         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
12020         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
12021         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
12022         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
12023         System.Any_Priority to a POSIX priority on the target.
12024
12025         * system-linux-ia64.ads: 
12026         Extend range of Priority types on Linux to use the whole range made
12027         available by the system.
12028
12029         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
12030         function maps from System.Any_Priority to a POSIX priority on the
12031         target.
12032         (PTHREAD_PRIO_PROTECT): Set real value.
12033         (PTHREAD_PRIO_INHERIT): Now a function.
12034         (SIGCPUFAIL): New signal.
12035         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
12036         are documented as reserved by the OS.
12037
12038         * system-aix.ads: Use the full range of priorities provided by the
12039         system on AIX.
12040
12041         * s-taprop-posix.adb: Call new function To_Target_Priority.
12042         (Set_Priority): Take into account Task_Dispatching_Policy and
12043         Priority_Specific_Dispatching pragmas when determining if Round Robin
12044         must be used for scheduling the task.
12045
12046         * system-linux-x86_64.ads, system-linux-x86.ads, 
12047         system-linux-ppc.ads: Extend range of Priority types on Linux to use
12048         the whole range made available by the system.
12049
12050         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
12051         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
12052         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
12053         when deallocating the TCB in order to avoid potential references to
12054         deallocated data.
12055         (Set_Priority): Take into account Task_Dispatching_Policy and
12056         Priority_Specific_Dispatching pragmas when determining if Round Robin
12057         or FIFO within priorities must be used for scheduling the task.
12058
12059         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
12060         the Thread field (to be used internally by the run-time system) and the
12061         kernel-level task id in the LWP field (to be used by the debugger).
12062         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
12063         instance, and propagate the current task options to the spawned task.
12064         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
12065         (Initialize): Set Round Robin dispatching when the corresponding pragma
12066         is in effect.
12067
12068 2006-10-31  Robert Dewar  <dewar@adacore.com>
12069
12070         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
12071         system-linux-hppa.ads, system-hpux-ia64.ads, 
12072         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
12073         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
12074         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
12075         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
12076         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
12077         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
12078         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
12079         Default_Bit_Order) to kill constant condition warnings for references
12080         to this switch.
12081
12082 2006-10-31  Vincent Celier  <celier@adacore.com>
12083             Eric Botcazou  <ebotcazou@adacore.com>
12084
12085         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
12086         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
12087         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
12088         Ext_To, when building the library file name
12089
12090         * mlib-tgt-vxworks.adb: ditto.
12091         (Get_Target_Suffix): Add support for x86 targets.
12092
12093         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
12094
12095         * mlib-tgt-darwin.adb: 
12096         Use Append_To, instead of Ext_To, when building the library file name
12097         (Flat_Namespace): New global variable.
12098         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
12099         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
12100         (Link_Shared_Libgcc): Delete.
12101         (Build_Dynamic_Library): Adjust for above changes.
12102         Use Opt package.
12103         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
12104
12105 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
12106
12107         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
12108         (Initialize): Add type conversions required by above change.
12109
12110 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12111
12112         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
12113         (getpid): New body for this function that uses the underlying taskIdSelf
12114         function for VxWorks 5 and VxWorks 6 in kernel mode.
12115         (unsigned_int): New type, modular to allow logical bit operations.
12116         (taskOptionsGet): New imported function.
12117
12118         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
12119         field to be compliant with the type used by the corresponding operating
12120         system primitive.
12121
12122 2006-10-31  Pascal Obry  <obry@adacore.com>
12123             Eric Botcazou  <ebotcazou@adacore.com>
12124             Vincent Celier  <celier@adacore.com>
12125
12126         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
12127         ASCII version of the registry API. This is needed as the GNAT runtime
12128         is now UNICODE by default.
12129         Include version.h.
12130         (get_gcc_version): Do not hardcode the return value.
12131         (__gnat_file_time_name): On Windows properly set the default returned
12132         value to -1 which corresponds to Invalid_Time.
12133         (__gnat_fopen): New routine. A simple wrapper on all plateforms
12134          except on Windows where it does conversion for unicode support.
12135         (__gnat_freopen): Idem.
12136         (__gnat_locate_exec_on_path): If environment variable PATH does not
12137         exist, return a NULL pointer
12138
12139         * adaint.h: (__gnat_fopen): Declare.
12140         (__gnat_freopen): Likewise.
12141
12142         * mingw32.h (_tfreopen): Define this macro here for older MingW
12143         version.
12144         Activate the unicode support on platforms using a MingW runtime
12145         version 3.9 or newer.
12146
12147         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
12148         This is needed for proper unicode support on Windows.
12149         (freopen): Idem.
12150
12151 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
12152             Nicolas Setton  <setton@adacore.com>
12153             Olivier Hainque  <hainque@adacore.com>
12154             Gary Dismukes  <dismukes@adacore.com>
12155
12156         * gigi.h: (tree_code_for_record_type): Declare.
12157         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
12158         (get_global_renaming_pointers): Rename to
12159         invalidate_global_renaming_pointers.
12160         (static_ctors): Delete.
12161         (static_dtors): Likewise.
12162         (gnat_write_global_declarations): Declare.
12163         (create_var_decl): Adjust descriptive comment to indicate that the
12164         subprogram may return a CONST_DECL node.
12165         (create_true_var_decl): Declare new function, similar to
12166         create_var_decl but forcing the creation of a VAR_DECL node.
12167         (get_global_renaming_pointers): Declare.
12168         (add_global_renaming_pointer): Likewise.
12169
12170         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
12171
12172         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
12173         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
12174         processing.
12175         (gnat_to_gnu_entity): Remove From_With_Type from computation for
12176         imported_p.
12177         <E_Access_Type>: Use the Non_Limited_View as the full view of the
12178         designated type if the pointer comes from a limited_with clause.  Make
12179         incomplete designated type if it is in the main unit and has a freeze
12180         node.
12181         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
12182         Underlying_Full_View similarly.  Return earlier if the full view already
12183         has an associated tree.
12184         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
12185         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
12186         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
12187         reference type built for objects with an address clause.
12188         Use create_true_var_decl with const_flag set for
12189         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
12190         TREE_READONLY set.
12191         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
12192         for Character and Wide_Character types. This info is read by the
12193         dwarf-2 writer, and is needed to be able to use the command "ptype
12194         character" in the debugger.
12195         (gnat_to_gnu_entity): When generating a type representing
12196         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
12197         so that debug writers can distinguish it from ordinary integers.
12198         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
12199         addition to TREE_READONLY to assert the constantness of variables for
12200         elaboration purposes.
12201         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
12202         parameters to call new Einfo function First_Formal_With_Extras.
12203         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
12204         protected type with its corresponding discriminant, to obtain a usable
12205         declaration
12206         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
12207         for a multiple elaboration of the "equivalent" type.
12208         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
12209         into record_global_renaming_pointer.
12210         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
12211         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
12212         <E_Array_Subtype>: Likewise.
12213         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
12214         incomplete subtypes and incomplete subtypes of incomplete types visible
12215         through a limited with clause.
12216         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
12217         the base index type for the maximum size of the array only if they are
12218         constant.
12219         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
12220         expression into a SAVE_EXPR if stabilization failed.
12221
12222         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
12223         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
12224         by lower level compilation passes.
12225         (gnat_genericize): New function, lowering a function body to GENERIC.
12226         Turn the type of RESULT_DECL into a real reference type if the decl
12227         has been marked DECL_BY_REFERENCE, and adjust references to the latter
12228         accordingly.
12229         (gnat_genericize_r): New function. Tree walking callback for
12230         gnat_genericize.
12231         (convert_from_reference, is_byref_result): New functions. Helpers for
12232         gnat_genericize_r.
12233         (create_type_decl): Call gnat_pushdecl before calling
12234         rest_of_decl_compilation, to make sure that field TYPE_NAME of
12235         type_decl is properly set before calling the debug information writers.
12236         (write_record_type_debug_info): The heuristics which compute the
12237         alignment of a field in a variant record might not be accurate. Add a
12238         safety test to make sure no alignment is set to a smaller value than
12239         the alignment of the field type.
12240         (make_dummy_type): Use the Non_Limited_View as the underlying type if
12241         the type comes from a limited_with clause. Do not loop on the full view.
12242         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
12243         (dummy_node_table): New global variable, moved from decl.c.
12244         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
12245         (save_gnu_tree): Use above macros.
12246         (get_gnu_tree): Likewise.
12247         (present_gnu_tree): Likewise.
12248         (init_dummy_type): New function, moved from decl.c. Use above macros.
12249         (make_dummy_type): Likewise.
12250         (tree_code_for_record_type): New function extracted from make_dummy_type
12251         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
12252         (static_ctors): Change it to a vector, make static.
12253         (static_dtors): Likewise.
12254         (end_subprog_body): Adjust for above change.
12255         (build_global_cdtor): Moved from trans.c.
12256         (gnat_write_global_declarations): Emit global constructor and
12257         destructor, and call cgraph_optimize before emitting debug info for
12258         global declarations.
12259         (global_decls): New global variable.
12260         (gnat_pushdecl): Store the global declarations in global_decls, for
12261         later use.
12262         (gnat_write_global_declarations): Emit debug information for global
12263          declarations.
12264         (create_var_decl_1): Former create_var_decl, with an extra argument to
12265          state whether the creation of a CONST_DECL is allowed.
12266         (create_var_decl): Behavior unchanged. Now a wrapper around
12267         create_var_decl_1 allowing CONST_DECL creation.
12268         (create_true_var_decl): New function, similar to create_var_decl but
12269         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
12270         (create_field_decl): Do not always mark the field as addressable
12271         if its type is an aggregate.
12272         (global_renaming_pointers): New static variable.
12273         (add_global_renaming_pointer): New function.
12274         (get_global_renaming_pointers): Likewise.
12275
12276         * misc.c (gnat_dwarf_name): New function.
12277         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
12278         (gnat_post_options): Add comment about structural alias analysis.
12279         (gnat_parse_file): Do not call cgraph_optimize here.
12280         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
12281
12282         * trans.c (process_freeze_entity): Don't abort if we already have a
12283         non dummy GCC tree for a Concurrent_Record_Type, as it might
12284         legitimately have been elaborated while processing the associated
12285         Concurrent_Type prior to this explicit freeze node.
12286         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
12287         exception handler volatile if it is of variable size.
12288         (process_type): Remove bypass for types coming from a limited_with
12289         clause.
12290         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
12291         actual, convert the corresponding gnu_actual to the real destination
12292         type when necessary.
12293         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
12294         originally TREE_READONLY but whose elaboration cannot be performed
12295         statically.
12296         Part of fix for F504-021.
12297         (tree_transform, subprogram cases): Change loops on formal parameters to
12298         call new Einfo function First_Formal_With_Extras.
12299         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
12300         stemming from type conversion for the lhs.
12301         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
12302         number of bits per unit for components of records.
12303         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
12304         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
12305         with At_End_Proc after the SJLJ EH cleanup.
12306         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
12307         compilation unit.
12308         (elaborate_all_entities): Do not retest type_annotate_only.
12309         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
12310         result type of an abstract subprogram, which may be an itype associated
12311         with an anonymous access result (related to AI-318-02).
12312         (build_global_cdtor): Move to utils.c.
12313         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
12314         this choice is not a null tree nor an integer constant.
12315         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
12316         on the body of elaboration routines instead of mark_unvisited.
12317         (add_stmt): Do not mark the tree.
12318         (add_decl_expr): Tweak comment.
12319         (mark_unvisited): Delete.
12320         (unshare_save_expr): New static function.
12321         (call_to_gnu): Issue an error when making a temporary around a
12322         procedure call because of non-addressable actual parameter if the
12323         type of the formal is by_reference.
12324         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
12325         after building the elaboration routine.
12326
12327 2006-10-31  Bob Duff  <duff@adacore.com>
12328
12329         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
12330         as finalization-started, so we can raise Program_Error on 'new'.
12331
12332         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
12333         collection has already started.
12334
12335         * s-finimp.ads (Collection_Finalization_Started): Added new special
12336         flag value for indicating that a collection's finalization has started.
12337
12338         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
12339         create a task whose master has already waited for dependent tasks.
12340
12341 2006-10-31  Robert Dewar  <dewar@adacore.com>
12342
12343         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
12344
12345         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
12346         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
12347         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
12348         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
12349         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
12350         a-except-2005.ads: Add pragma Preelaborable_Warning
12351
12352 2006-10-31  Robert Dewar  <dewar@adacore.com>
12353             Jose Ruiz  <ruiz@adacore.com>
12354
12355         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
12356
12357         * ali.adb (Get_Name): Properly handle scanning of wide character names
12358         encoded with brackets notation.
12359         (Known_ALI_Lines): Add S lines to this list.
12360         (Scan_ALI): Acquire S (priority specific dispatching) lines.
12361         New flag Elaborate_All_Desirable in unit table
12362
12363         * ali.ads (Priority_Specific_Dispatching): Add this range of
12364         identifiers to be used for Priority_Specific_Dispatching table entries.
12365         (ALIs_Record): Add First_Specific_Dispatching and
12366         Last_Specific_Dispatching that point to the first and last entries
12367         respectively in the priority specific dispatching table for this unit.
12368         (Specific_Dispatching): Add this table for storing each S (priority
12369         specific dispatching) line encountered in the input ALI file.
12370         New flag Elaborate_All_Desirable in unit table
12371
12372         * bcheck.adb: (Check_Configuration_Consistency): Add call to
12373         Check_Consistent_Dispatching_Policy.
12374         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
12375         verifying that the use of Priority_Specific_Dispatching,
12376         Task_Dispatching_Policy, and Locking_Policy is consistent across the
12377         partition.
12378
12379         * bindgen.adb: (Public_Version_Warning): function removed.
12380         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
12381         required information from ALI files in order to initialize the table
12382         containing the specific dispatching policy.
12383         (Gen_Adainit_Ada): Generate the variables required for priority specific
12384         dispatching entries (__gl_priority_specific_dispatching and
12385         __gl_num_specific_dispatching).
12386         (Gen_Adainit_C): Generate the variables required for priority specific
12387         dispatching entries (__gl_priority_specific_dispatching and
12388         __gl_num_specific_dispatching).
12389         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
12390         pragma entries.
12391         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
12392         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
12393         (Tab_To): Removed.
12394         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
12395         a call to gnat_set_globals.
12396         Generate a string containing settings from
12397         Priority_Specific_Dispatching pragma entries.
12398         (Gen_Object_Files_Options): Do not include the runtime libraries when
12399         pragma No_Run_Time is specified.
12400
12401         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
12402         consistency with s-intman-posix.adb.
12403         (__gnat_error_handler, case FreeBSD): Account for the fact that the
12404         handler is installed with SA_SIGINFO.
12405         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
12406         FreeBSD ZCX support, copied from Linux version.
12407         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
12408         sigfillset, and sigemptyset so the routines defined by MaRTE.
12409         (__gl_priority_specific_dispatching): Add this variable that stores the
12410         string containing priority specific dispatching policies in the
12411         partition.
12412         (__gl_num_specific_dispatching): Add this variable that indicates the
12413         highest priority for which a priority specific dispatching pragma
12414         applies.
12415         (__gnat_get_specific_dispatching): Add this routine that returns the
12416         priority specific dispatching policy, as set by a
12417         Priority_Specific_Dispatching pragma appearing anywhere in the current
12418         partition. The input argument is the priority number, and the result
12419         is the upper case first character of the policy name.
12420         (__gnat_set_globals): Now a dummy function.
12421         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
12422         mechargs instead of sigargs, as the latter can be retrieved from the
12423         former and sigargs is not what we want on ia64.
12424         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
12425         mechargs argument.
12426         (__gnat_adjust_context_for_raise, ia64-vms): New function.
12427         (tasking_error): Remove unused symbol.
12428         (_abort_signal): Move this symbol to the IRIX specific part since this
12429         is the only target that uses this definition.
12430         (Check_Abort_Status): Move this symbol to the IRIX specific part since
12431         this is the only target that uses this definition.
12432         (Lock_Task): Remove unused symbol.
12433         (Unlock_Task): Remove unused symbol.
12434
12435         * lib-writ.adb (Write_ALI): Output new S lines for
12436         Priority_Specific_Dispatching pragmas.
12437         Implement new flag BD for elaborate body desirable
12438
12439         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
12440         (Specific_Dispatching): Add this table for storing the entries
12441         corresponding to Priority_Specific_Dispatching pragmas.
12442         Document new BD flag for elaborate body desirable
12443
12444         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
12445         of known pragmas.
12446
12447 2006-10-31  Javier Miranda  <miranda@adacore.com>
12448
12449         * a-tags.ads, a-tags.adb: 
12450         (Predefined_DT): New function that improves readability of the code.
12451         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
12452         Inherit_DT): Use the new function Predefined_DT to improve code
12453         readability.
12454         (Register_Interface_Tag): Update assertion.
12455         (Set_Interface_Table): Update assertion.
12456         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
12457         determining progenitor interfaces in Tags.
12458         (Inherit_CPP_DT): New subprogram.
12459
12460         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
12461         analysis of the thunk code.
12462         (Expand_Interface_Conversion): Handle run-time conversion of
12463         access to class wide types.
12464         (Expand_Dispatching_Call): When generating the profile for the
12465         subprogram itype for a dispatching operation, properly terminate the
12466         formal parameters chaind list (set the Next_Entity of the last formal
12467         to Empty).
12468         (Collect_All_Interfaces): Removed. This routine has been moved to
12469         sem_util and renamed as Collect_All_Abstract_Interfaces.
12470         (Set_All_DT_Position): Hidden entities associated with abstract
12471         interface primitives are not taken into account in the check for
12472         3.9.3(10); this check is done with the aliased entity.
12473         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
12474         interfacing with CPP by default.
12475         (Expand_Interface_Conversion): Add missing support for static conversion
12476         from an interface to a tagged type.
12477         (Collect_All_Interfaces): Add new out formal containing the list of
12478         abstract interface types to cleanup the subprogram Make_DT.
12479         (Make_DT): Update the code to generate the table of interfaces in case
12480         of abstract interface types.
12481         (Is_Predefined_Dispatching_Alias): New function that returns true if
12482         a primitive is not a predefined dispatching primitive but it is an
12483         alias of a predefined dispatching primitive.
12484         (Make_DT): If the ancestor of the type is a CPP_Class and we are
12485         compiling under full ABI compatibility mode we avoid the generation of
12486         calls to run-time services that fill the dispatch tables because under
12487         this mode we currently inherit the dispatch tables in the IP subprogram.
12488         (Write_DT): Emit an "is null" indication for a null procedure primitive.
12489         (Expand_Interface_Conversion): Use an address as the type of the formal
12490         of the internally built function that handles the case in which the
12491         target type is an access type.
12492
12493 2006-10-31  Robert Dewar  <dewar@adacore.com>
12494
12495         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
12496
12497 2006-10-31  Robert Dewar  <dewar@adacore.com>
12498
12499         * bindusg.ads, bindusg.adb:
12500         Change to package and rename procedure as Display, which
12501         now ensures that it only outputs usage information once.
12502
12503 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12504
12505         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
12506         using RTPs.
12507
12508         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
12509         when using RTPs.
12510
12511 2006-10-31  Robert Dewar  <dewar@adacore.com>
12512             Ed Schonberg  <schonberg@adacore.com>
12513
12514         * treepr.adb: Use new subtype N_Membership_Test
12515
12516         * checks.ads, checks.adb: Add definition for Validity_Check
12517         (Range_Or_Validity_Checks_Suppressed): New function
12518         (Ensure_Valid): Test Validity_Check suppressed
12519         (Insert_Valid_Check): Test Validity_Check suppressed
12520         (Insert_Valid_Check): Preserve Do_Range_Check flag
12521         (Validity_Check_Range): New procedure
12522         (Expr_Known_Valid): Result of membership test is always valid
12523         (Selected_Range_Checks): Range checks cannot be applied to discriminants
12524         by themselves. Disabling those checks must also be done for task types,
12525         where discriminants may be used for the bounds of entry families.
12526         (Apply_Address_Clause_Check): Remove side-effects if address expression
12527         is non-static and is not the name of a declared constant.
12528         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
12529         Code cleanup and new error messages.
12530         (Enable_Range_Check): Test for some cases of suppressed checks
12531         (Generate_Index_Checks): Suppress index checks if index checks are
12532         suppressed for array object or array type.
12533         (Apply_Selected_Length_Checks): Give warning for compile-time detected
12534         length check failure, even if checks are off.
12535         (Ensure_Valid): Do not generate a check on an indexed component whose
12536         prefix is a packed boolean array.
12537         * checks.adb: (Alignment_Checks_Suppressed): New function
12538         (Apply_Address_Clause_Check): New procedure, this is a completely
12539         rewritten replacement for Apply_Alignment_Check
12540         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
12541         we request a discriminal value only in case of discriminants.
12542         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
12543         assignments where the target subtype is unconstrained and the target
12544         object is a parameter or dereference (other aliased cases are known
12545         to be unconstrained).
12546
12547 2006-10-31  Robert Dewar  <dewar@adacore.com>
12548
12549         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
12550         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
12551         vms_conv.adb: Fix bad table increment values (much too small)
12552
12553         * table.adb (Realloc): Make sure we get at least some new elements
12554         Defends against silly small values for table increment
12555
12556 2006-10-31  Robert Dewar  <dewar@adacore.com>
12557             Ed Schonberg  <schonberg@adacore.com>
12558             Bob Duff  <duff@adacore.com>
12559
12560         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
12561         entities. Move other fields around to make this possible
12562         (Is_Derived_Type): Add missing call to Is_Type.
12563         (Extra_Formals): New function for subprograms, entries, subprogram
12564         types.
12565         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
12566         (First_Formal_With_Extras): New function for subprogs, entries, subp
12567         types.
12568         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
12569         Add node information for E_Return_Statement.
12570         (Elaborate_Body_Desirable): New flag
12571         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
12572         to be Is_Inherently_Limited_Type, because return-by-reference has
12573         no meaning in Ada 2005.
12574         (E_Return_Statement): New entity kind.
12575         (Return_Applies_To): Field of E_Return_Statement.
12576         (Is_Return_Object): New flag in object entities.
12577         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
12578         (Must_Have_Preelab_Init): New flag
12579         (Known_To_Have_Preelab_Init): New flag
12580         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
12581         (Is_Visible_Formal): New flag on entities in formal packages.
12582         (Low_Bound_Known): New flag
12583         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
12584         Incomplete_Kind.
12585         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
12586         output when Id is an incomplete subtype.
12587
12588 2006-10-31  Robert Dewar  <dewar@adacore.com>
12589
12590         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
12591         Avoid abbreviation Creat
12592         (Finalize): List all sources in extended mail source if -gnatl
12593         switch is active.
12594         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
12595         (Finalize): Implement new -gnatl=xxx switch to output listing to file
12596         (Set_Specific_Warning_On): New procedure
12597         (Set_Specific_Warning_Off): New procedure
12598         Add implementation of new insertion \\
12599         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
12600         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
12601         types.
12602         (Error_Msg_Internal): Make sure that we set Last_Killed to
12603         True when a message from another package is suppressed.
12604         Implement insertion character ~ (insert string)
12605         (First_Node): Minor adjustments to get better placement.
12606
12607         * frontend.adb: 
12608         Implement new -gnatl=xxx switch to output listing to file
12609
12610         * gnat1drv.adb: 
12611         Implement new -gnatl=xxx switch to output listing to file
12612
12613         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
12614         (Commands_To_Stdout): New flag
12615         Implement new -gnatl=xxx switch to output listing to file
12616         New switch Dump_Source_Text
12617         (Warn_On_Deleted_Code): New warning flag for -gnatwt
12618         Define Error_Msg_Line_Length
12619         (Warn_On_Assumed_Low_Bound): New switch
12620
12621         * osint.ads, osint.adb
12622         (Normalize_Directory_Name): Fix bug.
12623         Implement new -gnatl=xxx switch to output listing to file
12624         (Concat): Removed, replaced by real concatenation
12625         Make use of concatenation now allowed in compiler
12626         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
12627         we find the 'lib' or 'bin' directory even when the tool has been
12628         invoked with a relative path.
12629         (Executable_Name): New function taking string parameters.
12630
12631         * osint-c.ads, osint-c.adb: 
12632         Implement new -gnatl=xxx switch to output listing to file
12633
12634         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
12635
12636         * switch-c.adb: 
12637         Implement new -gnatl=xxx switch to output listing to file
12638         Recognize new -gnatL switch
12639         (no longer keep in old warning about old style usage)
12640         Use concatenation to simplify code
12641         Recognize -gnatjnn switch
12642         (Scan_Front_End_Switches): Clean up handling of -gnatW
12643         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
12644
12645 2006-10-31  Robert Dewar  <dewar@adacore.com>
12646
12647         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
12648         (Set_Specific_Warning_Off): New procedure
12649         (Warning_Specifically_Suppressed): New function
12650         (Validate_Specific_Warnings): New procedure
12651         (Output_Msg_Text): Complete rewrite to support -gnatjnn
12652
12653         * err_vars.ads: Implement insertion character ~ (insert string)
12654
12655 2006-10-31  Bob Duff  <duff@adacore.com>
12656             Ed Schonberg  <schonberg@adacore.com>
12657
12658         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
12659         the parent part is a build-in-place function call, generate assignments.
12660         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
12661         are build-in-place function calls.
12662         (Replace_Self_Reference): New subsidiary of
12663         Make_OK_Assignment_Statement, to replace an access attribute that is a
12664         self-reference into an access to the appropriate component of the
12665         target object. Generalizes previous mechanism to handle self-references
12666         nested at any level.
12667         (Is_Self_Referential_Init): Remove, not needed.
12668         (Is_Self_Referential_Init): New predicate to simplify handling of self
12669         referential components in record aggregates.
12670         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
12671         check for presence of entity before checking for self-reference.
12672         (Has_Default_Init_Comps): Return True if a component association is a
12673         self-reference to the enclosing type, which can only come from a
12674         default initialization.
12675         (Make_OK_Assignment_Statement): If the expression is of the form
12676         Typ'Acc, where Acc is an access attribute, the expression comes from a
12677         default initialized self-referential component.
12678         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
12679         that has been derived from several abstract interfaces we must also
12680         initialize the tags of the secondary dispatch tables.
12681
12682 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12683             Thomas Quinot  <quinot@adacore.com>
12684             Javier Miranda  <miranda@adacore.com>
12685             Robert Dewar  <dewar@adacore.com>
12686
12687         * exp_attr.adb: 
12688         (Expand_Access_To_Protected_Op): If the context indicates that an access
12689         to a local operation may be transfered outside of the object, create an
12690         access to the wrapper operation that must be used in an external call.
12691         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
12692         target, pass the Valid attribute applied to a floating-point prefix on
12693         to the back end without expansion.
12694         (Storage_Size): Use the new run-time function Storage_Size to retrieve
12695         the allocated storage when it is specified by a per-object expression.
12696         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
12697         Nothing to do here, the attribute has been rewritten during semantic
12698         analysis.
12699         (Expand_Attribute_Reference): Handle expansion of the new Priority
12700         attribute
12701         (Find_Fat_Info): Handle case of universal real
12702         (Expand_Access_To_Protected_Op): Fix use of access to protected
12703         subprogram from inside the body of a protected entry.
12704         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
12705         'Access and 'Unrestricted_Access, to transform the attribute reference
12706         into a fat pointer.
12707         (Is_Constrained_Aliased_View): New predicate to help determine whether a
12708         subcomponent's enclosing variable is aliased with a constrained subtype.
12709         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
12710         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
12711         an aliased prefix must be known to be constrained in order to use True
12712         for the attribute value, and now it's possible for some aliased views
12713         to be unconstrained.
12714
12715 2006-10-31  Robert Dewar  <dewar@adacore.com>
12716
12717         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
12718         (Expand_Entity_Reference): Correct error of not handling subprogram
12719         formals in current_value processing.
12720
12721 2006-10-31  Javier Miranda  <miranda@adacore.com>
12722             Robert Dewar  <dewar@adacore.com>
12723             Ed Schonberg  <schonberg@adacore.com>
12724             Gary Dismukes  <dismukes@adacore.com>
12725
12726         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
12727         register in the final list objects containing class-wide interfaces;
12728         otherwise we incorrectly register the tag of the interface in the final
12729         list.
12730         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
12731         generate the wrapper if the parent primitive is abstract. This is
12732         required to report the correct error message.
12733         (Expand_N_Subtype_Indication): Do validity checks on range
12734         (Clean_Task_Names): If an initialization procedure includes a call to
12735         initialize a task (sub)component, indicate that the procedure will use
12736         the secondary stack.
12737         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
12738         compatibility for interfacing with CPP by default.
12739         (Expand_N_Object_Declaration): Only build an Adjust call when the
12740         object's type is a nonlimited controlled type.
12741         * exp_ch3.adb: Add with and use of Exp_Ch6.
12742         (Expand_N_Object_Declaration): Check for object initialization that is a
12743         call to build-in-place function and apply Make_Build_In_Place_Call_In_
12744         Object_Declaration to the call.
12745         (Freeze_Type): When the designated type of an RACW was not frozen at the
12746         point where the RACW was declared, validate the primitive operations
12747         with respect to E.2.2(14) when it finally is frozen.
12748         (Build_Initialization_Call,Expand_Record_Controller): Rename
12749         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
12750         return-by-reference has no meaning in Ada 2005.
12751         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
12752         to register tag of the immediate ancestor interfaces in the
12753         run-time structure.
12754         (Init_Secondary_Tags): Moved to the specification to allow the
12755         initialization of extension aggregates with abstract interfaces.
12756         (Build_Master_Renaming): Make public, for use by function declarations
12757         whose return type is an anonymous access type.
12758         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
12759         Insert_List_Before_And_Analyze after the generation of the specs
12760         associated with null procedures.
12761         (Expand_Tagged_Root): Update documentation in its specification.
12762         (Init_Secondary_Tags): Update documentation.
12763         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
12764         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
12765         then generate code to inherit the contents of the dispatch table
12766         directly from the ancestor.
12767         (Expand_Record_Controller): Insert controller component after tags of
12768         implemented interfaces.
12769         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
12770         create null procedure overridings when null procedures are inherited
12771         from interfaces.
12772         (Make_Null_Procedure_Specs): New procedure to generate null procedure
12773         declarations for overriding null primitives inherited from interfaces.
12774         (Is_Null_Interface_Procedure): New function in
12775         Make_Null_Procedure_Specs.
12776         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
12777         immediate ancestor of a tagged type is an abstract interface type we
12778         must generate the specification of the predefined primitives associated
12779         with controlled types (because the dispatch table of the ancestor is
12780         null and hence these entries cannot be inherited). This is required to
12781         elaborate well the dispatch table.
12782
12783 2006-10-31  Javier Miranda  <miranda@adacore.com>
12784             Ed Schonberg  <schonberg@adacore.com>
12785             Bob Duff  <duff@adacore.com>
12786             Gary Dismukes  <dismukes@adacore.com>
12787             Robert Dewar  <dewar@adacore.com>
12788
12789         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
12790         conversion.
12791         (Expand_N_In): Do validity checks on range
12792         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
12793         (Expand_N_Allocator): For "new T", if the object is constrained by
12794         discriminant defaults, allocate the right amount of memory, rather than
12795         the maximum for type T.
12796         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
12797         when the allocator is initialized by a build-in-place call, since the
12798         allocator is already rewritten as a reference to the function result,
12799         and this prevents an unwanted duplication of the function call.
12800         Add with and use of Exp_Ch6.
12801         (Expand_Allocator_Expresssion): Check for an allocator whose expression
12802         is a call to build-in-place function and apply
12803         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
12804         untagged designated types).
12805         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
12806         optimization if source or target is biased.
12807         (Expand_N_Allocator): Add comments for case of an allocator within a
12808         function that returns an anonymous access type designating tasks.
12809         (Expand_N_Allocator): apply discriminant checks for access
12810         discriminants of anonymous access types (AI-402, AI-416)
12811
12812 2006-10-31  Bob Duff  <duff@adacore.com>
12813             Robert Dewar  <dewar@adacore.com>
12814             Gary Dismukes  <dismukes@adacore.com>
12815             Ed Schonberg  <schonberg@adacore.com>
12816
12817         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
12818
12819         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
12820         (Expand_N_Assignment_Statement): Call
12821         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
12822         build-in-place function call. Currently, this can happen only for
12823         assignments that come from aggregates.
12824         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
12825         in order to alleviate the upward compatibility introduced by AI-318.
12826         (Expand_N_Extended_Return_Statement): Add support for handling the
12827         return object as a build-in-place result.
12828         (Expand_Non_Function_Return): Implement simple return statements nested
12829         within an extended return.
12830         (Enable_New_Return_Processing): Turn on the new processing of return
12831         statements.
12832         (Expand_Non_Function_Return): For a return within an extended return,
12833         don't raise Program_Error, because Sem_Ch6 now gives a warning.
12834         (Expand_N_Extended_Return_Statement): Implement AI-318
12835         (Expand_Simple_Function_Return): Ditto.
12836         (Expand_N_If_Statement): Handle new -gnatwt warning
12837         (Expand_N_Case_Statement): Handle new -gnatwt warning
12838         (Expand_N_Assignment): Handle assignment to the Priority attribute of
12839         a protected object.
12840         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
12841         validity checking of assignments to elementary record components.
12842         (Expand_N_Return_Statement): return Class Wide types on the secondary
12843         stack independantly of their controlled status since with HIE runtimes,
12844         class wide types are not potentially controlled anymore.
12845
12846         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
12847         node kind.
12848
12849         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
12850         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
12851         it expects a block, procedure, or task. The return statement will get
12852         turned into a block, and Expand_Cleanup_Actions will happen then.
12853
12854 2006-10-31  Robert Dewar  <dewar@adacore.com>
12855             Ed Schonberg  <schonberg@adacore.com>
12856             Bob Duff  <duff@adacore.com>
12857             Gary Dismukes  <dismukes@adacore.com>
12858
12859         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
12860         capability.
12861         (Expand_Inlined_Call): Tagged types are by-reference types, and
12862         therefore should be replaced by a renaming declaration in the expanded
12863         body, as is done for limited types.
12864         (Expand_Call): If this is a call to a function with dispatching access
12865         result, propagate tag from context.
12866         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
12867         CPP by default.
12868         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
12869         build-in-place when the right-hand side of an assignment is a
12870         build-in-place function call.
12871         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
12872         of the explicit dereference of the allocator to the result subtype of
12873         the build-in-place function. This is needed to satisfy type checking
12874         in cases where the caller's return object is created by an allocator for
12875         a class-wide access type and the type named in the allocator is a
12876         specific type.
12877         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
12878         conversion of the reference to the declared object to the result subtype
12879         of the build-in-place function. This is needed to satisfy type checking
12880         in cases where the declared object has a class-wide type. Also, in the
12881         class-wide case, change the type of the object entity to the specific
12882         result subtype of the function, to avoid passing a class-wide object
12883         without explicit initialization to the back end.
12884         (Register_Interface_DT_Entry): Moved outside the body of
12885         Freeze_Subprogram because this routine is now public; it is called from
12886         Check_Dispatching_Overriding to handle late overriding of abstract
12887         interface primitives.
12888         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
12889         adding an implicit access actual on a call to a build-in-place function.
12890         (Expand_Actuals): Test for an actual parameter that is a call to a
12891         build-in-place function and apply
12892         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
12893         (Is_Build_In_Place_Function): New function to determine whether an
12894         entity is a function whose calls should be handled as build-in-place.
12895         (Is_Build_In_Place_Function_Call): New function to determine whether an
12896         expression is a function call that should handled as build-in-place.
12897         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
12898         calls to build-in-place functions as the initialization of an allocator.
12899         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
12900         handling calls to build-in-place functions in contexts that do not
12901         involve init of a separate object (for example, actuals of subprogram
12902         calls).
12903         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
12904         handling calls to build-in-place functions as the initialization of an
12905         object declaration.
12906         (Detect_Infinite_Recursion): Add explicit parameter Process to
12907         instantiation of Traverse_Body to avoid unreferenced warning.
12908         (Check_Overriding_Inherited_Interfaces): Removed.
12909         (Register_Interface_DT_Entry): Code cleanup.
12910         (Register_Predefined_DT_Entry): Code cleanup.
12911         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
12912         inlined statements if within a transient scope.
12913         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
12914         formal parameters with occurrences of actuals in inlined body, establish
12915         visibility on the proper view of the actual's subtype for the body's
12916         context.
12917         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
12918         compatibility mode and we have an imported CPP subprogram because
12919         for now we assume that imported CPP primitives correspond with
12920         objects whose constructor is in the CPP side (and therefore we
12921         don't need to generate code to register them in the dispatch table).
12922         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
12923         aligned selected component.
12924         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
12925         the actual of an in-mode parameter is a type conversion.
12926         (Expand_Actuals): If the call does not come from source and the actual
12927         is potentially misaligned, let gigi handle it rather than rejecting the
12928         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
12929         Class Wide types as returning by reference independantly of their
12930         controlled status since with HIE runtimes class wide types are not
12931         potentially controlled anymore.
12932
12933 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12934
12935         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
12936         references that are private components of the protected object.
12937         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
12938         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
12939         instantiation to deal with warnings.
12940         (Initialize_Protection): If expression for priority is non-static, use
12941         System_Priority as its expected type, in case the expression has not
12942         been analyzed yet.
12943
12944 2006-10-31  Robert Dewar  <dewar@adacore.com>
12945
12946         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
12947         initialization of Homonym_Len.
12948         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
12949         names from fully qualified name. Fixes problem of duplicate
12950         external names differing only in the presence of such a block name.
12951
12952 2006-10-31  Thomas Quinot  <quinot@adacore.com>
12953             Pablo Oliveira  <oliveira@adacore.com>
12954
12955         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
12956         subprogram Ids, even if they are not yet assigned.
12957         (Build_Subprogram_Id): It is now this function that will take care of
12958         calling Assign_Subprogram_Ids if necessary.
12959         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
12960         should be done only once they are assigned.
12961         (Build_From_Any_Function, case of tagged types): Add missing call to
12962         Allocate_Buffer.
12963         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
12964         type for an RACW type.
12965         (Add_RACW_Features): When processing an RACW declaration for which the
12966         designated type is already frozen, enforce E.2.2(14) rules immediately.
12967         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
12968         special reordering of controlling formals.
12969
12970         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
12971         associated stub type for an RACW type.
12972
12973 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12974
12975         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
12976         fixed-point operations in an integer context, i.e. as operands of a
12977         conversion to an integer type, indicate that result must be rounded.
12978
12979 2006-10-31  Robert Dewar  <dewar@adacore.com>
12980
12981         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
12982         cases, pass the encoding method, since it is now required by the run
12983         time.
12984
12985         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
12986         assumption that Str'First = 1.
12987         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
12988         it on to the Value_Wide_Wide_Character call.
12989         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
12990         properly handles a string of the form quote-encoded_wide_char-quote.
12991
12992         * s-wchcnv.adb: Minor reformatting
12993
12994 2006-10-31  Javier Miranda  <miranda@adacore.com>
12995
12996         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
12997         run-time membership test to ensure that the constructed object
12998         implements the target abstract interface.
12999
13000 2006-10-31  Robert Dewar  <dewar@adacore.com>
13001
13002         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
13003         Machine_Attribute pragma internally to implement the user pragma.
13004         Add processing for pragma Interface so that it is now completely
13005         equivalent to pragma Import.
13006
13007         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
13008         so that it can be applied to all entities, including record components
13009         and enumeration literals.
13010         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
13011         priority ranges are correct, verify compatibility against task
13012         dispatching and locking policies, and if everything is correct an entry
13013         is added to the table containing priority specific dispatching entries
13014         for this compilation unit.
13015         (Delay_Config_Pragma_Analyze): Delay processing
13016         Priority_Specific_Dispatching pragmas because when processing the
13017         pragma we need to access run-time data, such as the range of
13018         System.Any_Priority.
13019         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
13020         Allow pragma Unreferenced as a context item
13021         Add pragma Preelaborable_Initialization
13022         (Analyze_Pragma, case Interface): Interface is extended so that it is
13023         now syntactically and semantically equivalent to Import.
13024         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
13025         insertion characters.
13026         Add handling for Pragma_Wide_Character_Encoding
13027         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
13028         never supercedes a real restriction, and that a real restriction
13029         always supercedes a warning.
13030         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
13031         appropriate form.
13032
13033 2006-10-31  Bob Duff  <duff@adacore.com>
13034             Ed Schonberg  <schonberg@adacore.com>
13035             Robert Dewar  <dewar@adacore.com>
13036
13037         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
13038         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
13039         Is_Inherently_Limited_Type, because return-by-reference has no meaning
13040         in Ada 2005.
13041         (Find_Node_To_Be_Wrapped): Use new method of determining the result
13042         type of the function containing a return statement, because the
13043         Return_Type field was removed. We now use the Return_Applies_To field.
13044
13045         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
13046         (Build_Task_Image_Decl): If procedure is not called from an
13047         initialization procedure, indicate that function that builds task name
13048         uses the sec. stack. Otherwise the enclosing initialization procedure
13049         will carry the indication.
13050         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
13051         N_Object_Declaration instead.
13052         (Kill_Dead_Code): New interface to implement -gnatwt warning for
13053         conditional dead code killed, and change implementation accordingly.
13054         (Insert_Actions): Add N_Return_Object_Declaration case.
13055         Correct comment to mention N_Extension_Aggregate node.
13056         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
13057         attempts to save information for global variables which cannot be
13058         safely tracked.
13059         (Get_Current_Value_Condition): Handle conditions the other way round
13060         (constant on left). Also handle right operand of AND and AND THEN
13061         (Set_Current_Value_Condition): Corresponding changes
13062         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
13063         (Get_Current_Value_Condition): Handle simple boolean operands
13064         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
13065         (Get_Current_Value_Condition): If the variable reference is within an
13066         if-statement, does not appear in the list of then_statments, and does
13067         not come from source, treat it as being at unknown location.
13068         (Get_Current_Value_Condition): Enhance to allow while statements to be
13069         processed as well as if statements.
13070         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
13071         come from source.
13072         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
13073         of loop. This is safe now that we fixed Kill_Current_Values.
13074         (OK_To_Do_Constant_Replacement): Check whether current scope is
13075         Standard, before examining outer scopes.
13076
13077 2006-10-31  Vincent Celier  <celier@adacore.com>
13078
13079         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
13080         When True, apply VMS treatment to children of packages A, G, I and S.
13081         For F320-016
13082
13083         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
13084
13085 2006-10-31  Robert Dewar  <dewar@adacore.com>
13086             Ed Schonberg  <schonberg@adacore.com>
13087
13088         * freeze.adb: Add handling of Last_Assignment field
13089         (Warn_Overlay): Supply missing continuation marks in error msgs
13090         (Freeze_Entity): Add check for Preelaborable_Initialization
13091
13092         * g-comlin.adb: Add Warnings (Off) to prevent new warning
13093
13094         * g-expect.adb: Add Warnings (Off) to prevent new warning
13095
13096         * lib-xref.adb: Add handling of Last_Assignment field
13097         (Generate_Reference): Centralize handling of pragma Obsolescent here
13098         (Generate_Reference): Accept an implicit reference generated for a
13099         default in an instance.
13100         (Generate_Reference): Accept a reference for a node that is not in the
13101         main unit, if it is the generic body corresponding to an subprogram
13102         instantiation.
13103
13104         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
13105
13106         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
13107         -gnatwq/Q.
13108         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
13109         exception handler.
13110         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
13111         use clauses, to avoid messages on packages used to qualify, and also
13112         to avoid messages from obsolescent units.
13113         (Warn_On_Useless_Assignments): Don't generate messages for imported
13114         and exported variables.
13115         (Warn_On_Useless_Assignments): New procedure
13116         (Output_Obsolescent_Entity_Warnings): New procedure
13117         (Check_Code_Statement): New procedure
13118
13119         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
13120         Change name Is_Ada_2005 to Is_Ada_2005_Only
13121         (Last_Assignment): New field for useless assignment warning
13122
13123 2006-10-31  Olivier Hainque  <hainque@adacore.com>
13124
13125         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
13126         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
13127
13128 2006-10-31  Bob Duff  <duff@adacore.com>
13129             Robert Dewar  <dewar@adacore.com>
13130             Ed Schonberg  <schonberg@adacore.com>
13131
13132         * g-awk.adb (Default_Session, Current_Session): Compile this file in
13133         Ada 95 mode, because it violates the new rules for AI-318.
13134
13135         * g-awk.ads: Use overloaded subprograms in every case where we used to
13136         have a default of Current_Session. This makes the code closer to be
13137         correct for both Ada 95 and 2005.
13138
13139         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
13140         code, relying on the fact that the compiler generates a warning
13141         instead of an error in -gnatg mode.
13142
13143         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
13144         E_Return_Statement entity kind.
13145         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
13146
13147         * par.adb (P_Interface_Type_Definition): Addition of one formal to
13148         report an error if the reserved word abstract has been previously found.
13149         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
13150
13151         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
13152         parenthesized range attribute usage
13153         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
13154
13155         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
13156         in the syntax for extended_return_statement. This is not in the latest
13157         RM, but the ARG is expected to issue an AI allowing this.
13158         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
13159         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
13160         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
13161         P_Return_Statement): Parse the new syntax for extended_return_statement.
13162
13163         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
13164         Output_End_Missing): Add error-recovery code for the new
13165         extended_return_statement syntax; that is, the new E_Return entry on
13166         the scope stack.
13167
13168         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
13169         limited to nonlimited, because otherwise we violate the new Ada 2005
13170         rules about returning limited types in function Create_AST_Handler in
13171         s-asthan.adb.
13172
13173         * sem.adb (Analyze): Add cases for new node kinds
13174         N_Extended_Return_Statement and N_Return_Object_Declaration.
13175
13176         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
13177         type is in the same category as type of context before applying check,
13178         to prevent anomalies in instantiations.
13179         (Resolve_Aggregate): Remove test for limited components in aggregates.
13180         It's unnecessary in Ada 95, because if it has limited components, then
13181         it must be limited. It's wrong in Ada 2005, because limited aggregates
13182         are now allowed.
13183         (Resolve_Record_Aggregate): Move check for limited types later, because
13184         OK_For_Limited_Init requires its argument to have been resolved.
13185         (Get_Value): When copying the component default expression for a
13186         defaulted association in an aggregate, use the sloc of the aggregate
13187         and not that of the original expression, to prevent spurious
13188         elaboration errors, when the expression includes function calls.
13189         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
13190         were missing. We also didn't handle qualified expressions. Now also
13191         allow function calls. Use new common routine OK_For_Limited_Init.
13192         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
13193         with space can upper case letter).
13194
13195         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
13196         Has_Static_Discriminants flag
13197         (Record_Type_Declaration): Diagnose an attempt to declare an interface
13198         type with discriminants.
13199         (Process_Range_Expr_In_Decl): Do validity checks on range
13200         (Build_Discriminant_Constraints): Use updated form of
13201         Denotes_Discriminant.
13202         (Process_Subtype): If the subtype is a private subtype whose full view
13203         is a concurrent subtype, introduce an itype reference to prevent scope
13204         anomalies in gigi.
13205         (Build_Derived_Record_Type, Collect_Interface_Primitives,
13206         Record_Type_Declaration):  The functionality of the subprograms
13207         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
13208         is now performed by a single routine.
13209         (Build_Derived_Record_Type): If the type definition includes an explicit
13210         indication of limitedness, then the type must be marked as limited here
13211         to ensure that any access discriminants will not be treated as having
13212         a local anonymous access type.
13213         (Check_Abstract_Overriding): Issue a detailed error message when an
13214         abstract subprogram was not overridden due to incorrect mode of its
13215         first parameter.
13216         (Analyze_Private_Extension_Declaration): Add support for the analysis of
13217         synchronized private extension declarations. Verify that the ancestor is
13218         a limited or synchronized interface or in the generic case, the ancestor
13219         is a tagged limited type or synchronized interface and all progenitors
13220         are either limited or synchronized interfaces.
13221         Derived_Type_Declaration): Check for presence of private extension when
13222         dealing with synchronized formal derived types.
13223         Process_Full_View): Enchance the check done on the usage of "limited" by
13224         testing whether the private view is synchronized.
13225         Verify that a synchronized private view is completed by a protected or
13226         task type.
13227         (OK_For_Limited_Init_In_05): New function.
13228         (Analyze_Object_Declaration): Move check for limited types later,
13229         because OK_For_Limited_Init requires its argument to have been resolved.
13230         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13231         in order to alleviate the upward compatibility introduced by AI-318.
13232         (Constrain_Corresponding_Record): If the constraint is for a component
13233         subtype, mark the itype as frozen, to avoid out-of-scope references to
13234         discriminants in the back-end.
13235         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
13236         this subprogram against wrong sources.
13237         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
13238         discriminant of limited type completed with a protected type, when the
13239         discriminant is used to constrain a private component of the type, and
13240         expansion is disabled.
13241         (Find_Type_Of_Object): Do not treat a return subtype that is an
13242         anonymous subtype as a local_anonymous_type, because its accessibility
13243         level is the return type of the enclosing function.
13244         (Check_Initialization): In -gnatg mode, turn the error "cannot
13245         initialize entities of limited type" into a warning.
13246         (OK_For_Limited_Init): Return true for generated nodes, since it
13247         sometimes violates the legality rules.
13248         (Make_Incomplete_Declaration): If the type for which an incomplete
13249         declaration is created happens to be the currently visible entity,
13250         preserve the homonym chain when removing it from visibility.
13251         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
13252         inherited subprograms.
13253         (Access_Definition): If this is an access to function that is the return
13254         type of an access_to_function definition, context is a type declaration
13255         and the scope of the anonymous type is the current one.
13256         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
13257         incomplete subtype to the set of private dependents of the original
13258         incomplete type.
13259         (Constrain_Discriminated_Type): Emit an error message whenever an
13260         incomplete subtype is being constrained.
13261         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
13262         corresponding subtype of the full view of the original incomplete type.
13263         (Check_Incomplete): Properly detect invalid usage of incomplete types
13264         and subtypes.
13265
13266 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13267
13268         * g-catiio.ads, g-catiio.adb (Value): New function.
13269         Given an input String, try and parse a valid Time value.
13270
13271 2006-10-31  Vincent Celier  <celier@adacore.com>
13272
13273         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
13274         Integer_Address arithmetic, as in Set_Valid.
13275
13276 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13277             Robert Dewar  <dewar@adacore.com>
13278
13279         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
13280         handling executable extension manually and duplicating code.
13281
13282         * make.adb: Implement new -S switch
13283         (Gnatmake): Use new function Osint.Executable_Name instead
13284         of handling executable extension manually.
13285
13286         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
13287         is specified, the executable name ends with this suffix.
13288         Take advantage of Osint.Executable_Name instead of duplicating code.
13289
13290         * switch-m.adb: Recognize new gnatmake -S switch
13291
13292         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
13293         variable.
13294         (Get_Target_Parameters): Set Executable_Extension_On_Target if
13295         available.
13296
13297         * makeusg.adb: Add line for gnatmake -S switch
13298
13299 2006-10-31  Vincent Celier  <celier@adacore.com>
13300
13301         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
13302         call it with -static-libgcc, as there are some platforms, such as
13303         Darwin, where one of these two switches is compulsory to link.
13304
13305 2006-10-31  Vincent Celier  <celier@adacore.com>
13306
13307         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
13308         instead of ADA_PROJECT_PATH, for the project path.
13309         (Gnatls): When displaying the project path directories, use host dir
13310         specs.
13311
13312         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
13313         names in the project path, as absolute paths may correspond to
13314         multi-valued VMS logical names.
13315
13316 2006-10-31  Vincent Celier  <celier@adacore.com>
13317
13318         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
13319         absolute path name.
13320         (Locate_Regular_File): Ditto
13321         (Change_Dir): Remove, no longer used
13322         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
13323         on Windows. Get it calling Get_Current_Dir.
13324         (OpenVMS): Remove imported boolean, no longer needed.
13325         (Normalize_Pathname)[VMS]: Do not resolve directory names.
13326         (Pid_To_Integer): New function to convert a Process_Id to  Integer
13327
13328 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13329
13330         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
13331         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
13332         to No_Socket.
13333         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
13334         W_Sig_Socket.
13335
13336 2006-10-31  Robert Dewar  <dewar@adacore.com>
13337
13338         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
13339         initial letter o as a zero.
13340
13341 2006-10-31  Robert Dewar  <dewar@adacore.com>
13342
13343         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
13344
13345 2006-10-31  Robert Dewar  <dewar@adacore.com>
13346
13347         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
13348         variant records
13349         (Layout_Variant_Record): Retrieve the discriminants from the entity
13350         rather than from the type definition, because in the case of a full
13351         type for a private type we need to take the discriminants from the
13352         partial view.
13353         (Layout_Component_List): When applying the Max operator to variants with
13354         a nonstatic size, check whether either operand is static and scale that
13355         operand from bits to storage units before applying Max.
13356         (Layout_Type): In VMS, if a C-convention access type has no explicit
13357         size clause (and does not inherit one in the case of a derived type),
13358         then the size is reset to 32 from 64.
13359
13360 2006-10-31  Vincent Celier  <celier@adacore.com>
13361
13362         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
13363         its file has already been loaded, according to the unit being loaded,
13364         not to the current value of Multiple_Unit_Index.
13365
13366 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13367             Eric Botcazou  <ebotcazou@adacore.com>
13368             Arnaud Charlet  <charlet@adacore.com>
13369
13370         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
13371         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
13372         possible.
13373         (a-except.o): Pass it to the compiler.
13374         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
13375         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
13376         a-calend-mingw.adb version.
13377
13378         * Makefile.rtl: Added s-dsaser.
13379         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
13380         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
13381         Ada.Dispatching.Round_Robin.
13382         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
13383
13384         * Make-lang.in: Remove all references to gt-ada-decl.h.
13385         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
13386         sources.
13387         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
13388         Update dependencies.
13389
13390         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
13391
13392 2006-10-31  Vincent Celier  <celier@adacore.com>
13393
13394         * mlib-utl.adb (Initialized): Remove, no longer used
13395         (Initialize): Remove, no longer used
13396         (Ar): If Ar_Exec is null, get the location of the archive builder and,
13397         if there is one, the archive indexer. Fail if the archive builder cannot
13398         be found.
13399         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
13400         be found.
13401
13402 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13403
13404         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
13405         Process_Body_Clauses): If the context of a body includes a use clause
13406         for P.Q then a with_clause for P in the same body is not redundant,
13407         even if the spec also has a with_clause on P.
13408         Add missing continuation mark to error msg
13409         (Build_Limited_Views): A limited view of a type is tagged if its
13410         declaration includes a record extension.
13411         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
13412         node, even if the subunit has errors. This avoids malfunction by
13413         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
13414         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
13415         generation of obsolescent messages for with statements (cannot do
13416         this too early, or we cannot implement avoiding the messages in the
13417         case of obsolescent units withing obsolescent units).
13418         (Install_Siblings): If the with_clause is on a remote descendant of
13419         an ancestor of the current compilation unit, find whether there is
13420         a sibling child unit that is immediately visible.
13421         (Remove_Private_With_Clauses): New procedure, invoked after completing
13422         the analysis of the private part of a nested package, to remove from
13423         visibility the private with_clauses of the enclosing package
13424         declaration.
13425         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
13426         now centralized in Generate_Reference.
13427         (Install_Limited_Context_Clauses): Remove superfluous error
13428         message associated with unlimited view visible through use
13429         and renamings. In addition, at the point in which the error
13430         is reported, we add the backslash to the text of the error
13431         to ensure that it is reported as a single error message.
13432         Use new // insertion for some continuation messages
13433         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
13434         to create implicit with_clause for parent unit mentioned in original
13435         limited_with_clause.
13436         (Install_Limited_With_Unit): Set entity of parent identifiers if the
13437         unit is a child unit. For ASIS queries.
13438         (Analyze_Subunit): If the subunit appears within a child unit, make all
13439         ancestor child units directly visible again.
13440
13441 2006-10-31  Robert Dewar  <dewar@adacore.com>
13442
13443         * par-ch10.adb (P_Context_Clause): Minor error message fix
13444
13445 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13446             Javier Miranda  <miranda@adacore.com>
13447
13448         * par-ch12.adb: Grammar update and cleanup.
13449         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
13450         support for synchronized derived type definitions.
13451         Add the new actual Abstract_Present to every call to
13452         P_Interface_Type_Definition.
13453         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
13454         a formal object declaration with an access definition or a subtype mark
13455         with a null exclusion.
13456         (P_Generic_Association): Handle association with box, and others_choice
13457         with box, to support Ada 2005 partially parametrized formal packages.
13458
13459 2006-10-31  Robert Dewar  <dewar@adacore.com>
13460             Javier Miranda  <miranda@adacore.com>
13461
13462         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
13463         (P_Type_Declaration): Remove barrier against the reserved word "limited"
13464         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
13465         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
13466         private extensions.
13467         (P_Type_Declaration): Add the new actual Abstract_Present to every call
13468         to P_Interface_Type_Definition.
13469         (P_Interface_Type_Definition): Addition of one formal to report an error
13470         if the reserved word abstract has been previously found.
13471         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
13472         object renaming declaration with an access definition or subtype mark
13473         with a possible null exclusion.
13474
13475         * par-ch9.adb: Minor error msg fix
13476
13477         * par-load.adb: Add missing continuation mark to error msg
13478
13479         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
13480
13481 2006-10-31  Vincent Celier  <celier@adacore.com>
13482
13483         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
13484         unknown attribute in unknown package or in package that does not need
13485         to be checked.
13486         (Parse_Package_Declaration): Do not issue warning for unknown package in
13487         quiet output.
13488
13489 2006-10-31  Vincent Celier  <celier@adacore.com>
13490
13491         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
13492         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
13493         Packages_To_Check.
13494
13495 2006-10-31  Vincent Celier  <celier@adacore.com>
13496
13497         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
13498         on VMS, change "__" to '.' before checking the name.
13499         (Record_Ada_Source): Always add the source file name in the list of
13500         of sources, even if it is not the first time, as it is for another
13501         source index.
13502         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
13503         dot, instead of replacing only the first '_'.
13504
13505         * prj-part.adb (Parse): Convert project file path to canonical form
13506
13507         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
13508         extended, the project id of the project extending it is recorded in its
13509         data, even when it has already been processed as an imported project.
13510
13511 2006-10-31  Robert Dewar  <dewar@adacore.com>
13512
13513         * repinfo.adb (List_Entities): Don't list entities from renaming
13514         declarations.
13515
13516 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13517             Robert Dewar  <dewar@adacore.com>
13518
13519         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
13520         only a restriction warning is active for the given restriction. This is
13521         desirable because we do not want to modify code in the case where only
13522         a warning is set.
13523         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
13524         causes overriding of real restrictions.
13525         Take advantage of new No_Restrictions constant.
13526
13527         * raise.h: (__gnat_set_globals): Change profile.
13528
13529 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13530
13531         * rtsfind.adb: Remove s-polint from comment as it exists no more.
13532
13533         * rtsfind.ads: 
13534         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
13535         Move all the entities in obsolete package System.PolyORB_Interface to
13536         System.Partition_Interface.
13537         (RE_Storage_Size): New function in System.Tasking.
13538         (RE_Get_Ceiling): New entity.
13539         (RE_Set_Ceiling): New entity.
13540         (RO_PE_Get_Ceiling): New entity.
13541         (RO_RE_Set_Ceiling): New entity.
13542         (Inherit_CPP_DT): New entity
13543
13544 2006-10-31  Robert Dewar  <dewar@adacore.com>
13545
13546         * scng.adb (Scan, case of numeric literal): Better msg for identifier
13547         starting with a digit.
13548
13549 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13550             Thomas Quinot  <quinot@adacore.com>
13551             Javier Miranda  <miranda@adacore.com>
13552             Gary Dismukes  <dismukes@adacore.com>
13553
13554         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
13555         properly an attempt to apply Unchecked_Access to a protected operation.
13556         (OK_Self_Reference): New subprogram to check the legality of an access
13557         attribute whose prefix is the type of an enclosing aggregate.
13558         Generalizes previous mechanism to handle attribute references nested
13559         arbitrarily deep within the aggregate.
13560         (Analyze_Access_Attribute): An access attribute whose prefix is a type
13561         can appear in an aggregate if this is a default-initialized aggregate
13562         for a self-referential type.
13563         (Resolve_Attribute, case Access): Ditto.
13564         Add support for new implementation defined attribute Stub_Type.
13565         (Eval_Attribute, case Attribute_Stub_Type): New case.
13566         (Analyze_Attribute, case Attribute_Stub_Type): New case.
13567         (Stream_Attribute_Available): Implement using new subprogram from
13568         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
13569         Has_Specified_Stream_Attribute flag.
13570         Disallow Storage_Size and Storage_Pool for access to subprogram
13571         (Resolve_Attribute, case 'Access et al): Take into account anonymous
13572         access types of return subtypes in extended return statements. Remove
13573         accessibility checks on anonymous access types when Unchecked_Access is
13574         used.
13575         (Analyze_Attribute): Add support for the use of 'Class to convert
13576         a class-wide interface to a tagged type.
13577         Add support for the attribute Priority.
13578         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
13579         whether the designated type is discriminated with a constrained partial
13580         view and require static matching in that case.
13581         Add local variable Des_Btyp. The Designated_Type
13582         of an access to incomplete subtype is either its non-limited view if
13583         coming from a limited with or its etype if regular incomplete subtype.
13584
13585         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
13586         Fix predicate to identify and allow cases of (expander-generated)
13587         references to tag of designated object of a RACW.
13588         (Validate_Static_Object_Name): In Ada 2005, a formal object is
13589         non-static, and therefore cannot appear as a primary in a preelaborable
13590         package.
13591         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
13592         Has_Read_Write_Attributes.
13593         (Has_Read_Write_Attributes): Reimplement in termes of
13594         Has_Stream_Attribute_Definition.
13595         (Missing_Read_Write_Attributes): When checking component types in a
13596         record, unconditionally call Missing_Read_Write_Attributes recursively
13597         (remove guard checking for Is_Record_Type / Is_Access_Type).
13598
13599 2006-10-31  Robert Dewar  <dewar@adacore.com>
13600
13601         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
13602         useless assignments here and conditionalize it on absence of exception
13603         handlers.
13604         (Analyze_Exception_Handlers): Small code reorganization of error
13605         detection code, for new handling of formal packages.
13606
13607 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13608             Hristian Kirtchev  <kirtchev@adacore.com>
13609
13610         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
13611         that has been constant-folded, preserve information of original tree,
13612         for ASIS uses.
13613         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
13614         generated private extension declaration if the formal derived type is
13615         synchronized. Carry synchronized present over to the generated private
13616         extension.
13617         (Validate_Derived_Type_Instance): Ensure that the actual of a
13618         synchronized formal derived type is a synchronized tagged type.
13619         (Instantiate_Formal_Package): When creating the instantiation used to
13620         validate the actual package of a formal declared without a box, check
13621         whether the formal itself depends on a prior actual.
13622         (Instantiate_Formal_Subprogram): Create new entities for the defining
13623         identifiers of the formals in the renaming declaration, for ASIS use.
13624         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
13625         a renaming declaration or a subtype declaration for an actual in an
13626         instance, capture location information of declaration in generic, for
13627         ASIS use.
13628         (Instantiate_Formal_Package): Add comments on needed additional tests.
13629         AI-317 (partial parametrization) is fully implemented.
13630         (Validate_Private_Type_Instance): Add check for actual which
13631         must have preelaborable initialization
13632         Use new // insertion for some continuation messages
13633         (Analyze_Formal_Object_Declaration): Change usage of Expression to
13634         Default_Expression. Add type retrieval when the declaration has an
13635         access definition. Update premature usage of incomplete type check.
13636         (Check_Access_Definition): New subsidiary routine. Check whether the
13637         current compilation version is Ada 05 and the supplied node has an
13638         access definition.
13639         (Instantiate object): Alphabetize local variables. Handle the creation
13640         of new renaming declarations with respect to the kind of definition
13641         used - either an access definition or a subtype mark. Guard against
13642         unnecessary error message in the context of anonymous access types after
13643         they have been resolved. Add check for required null exclusion in a
13644         formal object declaration.
13645         (Switch_View): A private subtype of a non-private type needs to be
13646         switched (the base type can have been switched without its private
13647         dependents because of the last branch of Check_Private_View.
13648         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
13649         value from BT.
13650         (Instantiate_Type): Emit an error message whenever a class-wide type of
13651         a tagged incomplete type is used as a generic actual.
13652         (Find_Actual_Type): Extend routine to handle a component type in a child
13653         unit that is imported from a formal package in a parent.
13654         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
13655         agree on constrainedness, rather than checking against ultimate ancestor
13656         (Instantiate_Subprogram_Body): Create a cross-reference link to the
13657         generic body, for navigation purposes.
13658
13659 2006-10-31  Robert Dewar  <dewar@adacore.com>
13660             Thomas Quinot  <quinot@adacore.com>
13661
13662         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
13663         type.
13664         (New_Stream_Subprogram): When processing an attribute definition clause
13665         for a stream-oriented subprogram, record an entity node occurring at
13666         the point of clause to use for checking the visibility of the clause,
13667         as defined by 8.3(23) as amended by AI-195.
13668         (New_Stream_Subprogram): New procedure, factoring behaviour from both
13669          New_Stream_Function and New_Stream_Procedure.
13670         (New_Stream_Function, New_Stream_Procedure): Removed.
13671         (Analyze_Attribute_Definition_Clause, case Address): Check new
13672         Alignment_Check check
13673
13674 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13675             Javier Miranda  <miranda@adacore.com>
13676             Robert Dewar  <dewar@adacore.com>
13677
13678         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
13679         generate the same errors compiling under -gnatc.
13680         (Try_Object_Operation): If no candidate interpretation succeeds, but
13681         there is at least one primitive operation with the right name, report
13682         error in call rather than on a malformed selected component.
13683         (Analyze_Selected_Component): If the prefix is an incomplete type from
13684         a limited view, and the full view is available, use the full view to
13685         determine whether this is a prefixed call to a primitive operation.
13686         (Operator_Check): Verify that a candidate interpretation is a binary
13687         operation before checking the type of its second formal.
13688         (Analyze_Call): Add additional warnings for function call contexts not
13689         yet supported.
13690         (Analyze_Allocator): Move the check for "initialization not allowed for
13691         limited types" after analyzing the expression. This is necessary,
13692         because OK_For_Limited_Init looks at the structure of the expression.
13693         Before analysis, we don't necessarily know what sort of expression it
13694         is. For example, we don't know whether F(X) is a function call or an
13695         indexed component; the former is legal in Ada 2005; the latter is not.
13696         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
13697         were missing. We also didn't handle qualified expressions. Now also
13698         allow function calls. Use new common routine OK_For_Limited_Init.
13699         (Analyze_Type_Conversion): Do not perform some legality checks in an
13700         instance, because the error message will be redundant or spurious.
13701         (Analyze_Overloaded_Selected_Component): Do not do style check when
13702         setting an entity, since we do not know it is the right entity yet.
13703         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
13704         (Analyze_Overloaded_Selected_Component): Same change
13705         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
13706         since regular incomplete subtypes are transformed into corresponding
13707         subtypes of their full views.
13708         (Complete_Object_Operation): Treat name of transformed subprogram call
13709         as coming from source, for browsing purposes.
13710         (Try_Primitive_Operation): If formal is an access parameter, compare
13711         with base type of object to determine whether it is a primitive
13712         operation.
13713         (Operator_Check): If no interpretation of the operator matches, check
13714         whether a use clause on any candidate might make the operation legal.
13715         (Try_Class_Wide_Operation): Check whether the first parameter is an
13716         access type whose designated type is class-wide.
13717
13718 2006-10-31  Robert Dewar  <dewar@adacore.com>
13719             Ed Schonberg  <schonberg@adacore.com>
13720             Gary Dismukes  <dismukes@adacore.com>
13721
13722         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
13723         warn on infinite loops.
13724         Add \\ to some continuation messages
13725         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
13726         (Process_Bounds): If the bounds are integer literals that result from
13727         constant-folding, and they carry a user-defined type, preserve that type
13728         rather than treating this as an integer range.
13729         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
13730         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
13731         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
13732         left hand side of assignment.
13733         (Analyze_Assignment): Add suport to manage assigments to the attribute
13734         priority of a protected object.
13735         (Check_Possible_Current_Value_Condition): Allow fully qualified names
13736         not just identifiers.
13737         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
13738         or AND THEN for possible tracking.
13739         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
13740         case of while loops so we can track values in the loop body.
13741
13742 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13743             Hristian Kirtchev  <kirtchev@adacore.com>
13744             Bob Duff  <duff@adacore.com>
13745
13746         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
13747         procedure cannot be a protected operation (it is a basic_declaration,
13748         not a subprogram_declaration).
13749         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
13750         Subp. Add logic for entry processing.
13751         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
13752         Determine whether an entry or subprogram of a protected or task type
13753         override an inherited primitive of an implemented interface.
13754         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
13755         Update the actual used in calls to Check_Overriding_Indicator.
13756         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
13757         generate the proper reference to the parent unit, for cross-reference.
13758         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
13759         Is_Formal.
13760         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13761         (Add_Extra_Formal): Revise procedure to allow passing in associated
13762         entity, scope, and name suffix, and handle setting of the new
13763         Extra_Formals field.
13764         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
13765         pass new parameters. Add support for adding the new extra access formal
13766         for functions whose calls are treated as build-in-place.
13767         (Analyze_A_Return_Statement): Correct casing in error message.
13768         Move Pop_Scope to after Analyze_Function_Return, because an extended
13769         return statement really is a full-fledged scope. Otherwise, visibility
13770         doesn't work right. Correct use of "\" for continuation messages.
13771         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
13772         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
13773         the node doesn't get properly marked as analyzed.
13774         (Analyze_Subprogram_Body): If subprogram is a function that returns
13775         an anonymous access type that denotes a task, build a Master Entity
13776         for it.
13777         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
13778         proper usage of null exclusion in a result definition.
13779         (Process_Formals): Code cleanup and new error message.
13780         (Process_Formals): Detect incorrect application of null exclusion to
13781         non-access types.
13782         (Conforming_Types): Handle conformance between [sub]types and itypes
13783          generated for entities that have null exclusions applied to them.
13784         (Maybe_Primitive_Operation): Add an additional type retrieval when the
13785          base type is an access subtype. This case arrises with null exclusions.
13786         (New_Overloaded_Entity): Do not remove the overriden entity from the
13787         homonym chain if it corresponds with an abstract interface primitive.
13788         (Process_Formals): Replace membership test agains Incomplete_Kind with a
13789         call to the synthesized predicate Is_Incomplete_Type.
13790         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
13791         primitives.
13792         (Analyze_Subprogram_Declaration): Check that abstract interface
13793         primitives are abstract or null.
13794         (Analyze_Subprogram_Specification): Remove previous check for abstract
13795         interfaces because it was not complete.
13796         (Has_Interface_Formals): Removed.
13797
13798 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13799             Javier Miranda  <miranda@adacore.com>
13800
13801         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
13802         of Analyze_Package_Body, to create Itype references for anonymous
13803         access types created in the package declaration, whose designated types
13804         may have only a limited view.
13805         (Analyze_Package_Specification): For the private part of a nested
13806         package, install private_with_clauses of enclosing compilation unit if
13807         we are in its visible part.
13808         (Declare_Inherited_Private_Subprograms): Complete barrier
13809         to ensure that the primitive operation has an alias to some parent
13810         primitive. This is now required because, after the changes done for the
13811         implementation of abstract interfaces, the contents of the list of
13812         primitives has entities whose alias attribute references entities of
13813         such list of primitives.
13814         (Analyze_Package_Specification): Simplify code that handles parent units
13815         of instances and formal packages.
13816         (Uninstall_Declarations): Check the convention consistency among
13817         primitive overriding operations of a tagged record type.
13818
13819 2006-10-31  Robert Dewar  <dewar@adacore.com>
13820             Hristian Kirtchev  <kirtchev@adacore.com>
13821             Javier Miranda  <miranda@adacore.com>
13822             Ed Schonberg  <schonberg@adacore.com>
13823
13824         * sem_ch8.adb: Minor error msg rewording
13825         (Undefined): When checking for misspellings, invert arguments (to get
13826         expected and found set right)
13827         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
13828         (Analyze_Generic_Renaming): Same fix
13829         (Use_One_Package): Do not take into account the internal entities of
13830         abstract interfaces during the analysis of entities that are marked
13831         as potentially use-visible.
13832         (Find_Type): Handle the case of an attribute reference for
13833         implementation defined attribute Stub_Type (simply let the analysis of
13834         the attribute reference rewrite it).
13835         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
13836         type that appears in a Use_Type clause.
13837         (Analyze_Object_Renaming): Add support for renaming of the Priority
13838         attribute.
13839         (Find_Type): In Ada 2005, a task type can be used within its own body,
13840         when it appears in an access definition.
13841         (Analyze_Object_Renaming): Remove warning on null_exclusion.
13842         (Analyze_Object_Renaming): Introduce checks for required null exclusion
13843          in a formal object declaration or in a subtype declaration.
13844         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
13845         (Check_Null_Exclusion): New local routine to
13846         Analyze_Subprogram_Renaming. Check whether the formals and return
13847         profile of a renamed subprogram have required null exclusions when
13848         their counterparts of the renaming already impose them.
13849         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
13850         Determine whether an entity is inside a generic scope.
13851         (In_Open_Scope): First pass of documentation update.
13852         (Find_Expanded_Name): Add support for shadow entities associated with
13853         limited withed packages. This is required to handle nested packages.
13854         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
13855         that makes a renaming of a limited withed package illegal.
13856
13857 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13858             Ed Schonberg  <schonberg@adacore.com>
13859
13860         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
13861         Check_Overriding_Indicator.
13862         (Analyze_Task_Definition): Ditto.
13863         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
13864         (Check_Overriding_Indicator): To find overridden interface operation,
13865         examine only homonyms that have an explicit subprogram declaration, not
13866         inherited operations created by an unrelated type derivation.
13867         (Check_Overriding_Indicator): When checking for the presence of "null"
13868         in a procedure, ensure that the queried node is a procedure
13869         specification.
13870         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
13871         type when the formal is an access to variable.
13872         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
13873         (Analyze_Task_Type): Same addition
13874         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
13875         provide navigation capabilities for entries.
13876
13877 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13878             Ed Schonberg  <schonberg@adacore.com>
13879             Javier Miranda  <miranda@adacore.com>
13880             Gary Dismukes  <dismukes@adacore.com>
13881
13882         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
13883         inherited from an interface ancestor by another interface in the
13884         context of an instance as 'late'.
13885         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
13886         of a call to a function that dispatches on access result.
13887         (Check_Dispatching_Operation): In case of late overriding of a primitive
13888         that covers abstract interface subprograms we register it in all the
13889         secondary dispatch tables associated with abstract interfaces.
13890         (Check_Dispatching_Call): Add check that a dispatching call is not made
13891         to a function with a controlling result of a limited type. This is a
13892         current implementation restriction.
13893         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
13894         (Check_Dispatching_Operation): Do no emit a warning if the controlling
13895         argument is an interface type that is a generic formal.
13896         (Is_Interface_Subprogram): Removed.
13897         (Check_Dispatching_Operation): If the subprogram is not a dispatching
13898         operation, check the formals to handle the case in which it is
13899         associated with an abstract interface type.
13900
13901 2006-10-31  Robert Dewar  <dewar@adacore.com>
13902             Ed Schonberg  <schonberg@adacore.com>
13903
13904         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
13905         Add new calls to this procedure during traversal
13906         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
13907         another unit if expansion is disabled.
13908
13909 2006-10-31  Robert Dewar  <dewar@adacore.com>
13910
13911         * sem_eval.adb (Compile_Time_Compare): Make use of information from
13912         Current_Value in the conditional case, to evaluate additional
13913         comparisons at compile time.
13914
13915 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13916             Hristian Kirtchev  <kirtchev@adacore.com>
13917             Javier Miranda  <miranda@adacore.com>
13918
13919         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
13920         subprogram type to provide better diagnostics in case of ambiguity.
13921         (Covers): Handle coverage of formal and actual anonymous access types in
13922         the context of generic instantiation.
13923         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
13924         abstract interface types; this is required to handle concurrent types
13925         with discriminants and abstract interface types.
13926         (Covers): Include type coverage of both regular incomplete subtypes and
13927         incomplete subtypes of incomplete type visibles through a limited with
13928         clause.
13929
13930 2006-10-31  Robert Dewar  <dewar@adacore.com>
13931             Hristian Kirtchev  <kirtchev@adacore.com>
13932             Ed Schonberg  <schonberg@adacore.com>
13933
13934         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
13935         messages for entities in packages which are not used.
13936         (Collect_Synchronized_Interfaces): New procedure.
13937         (Overrides_Synchronized_Primitive): New function.
13938         (Denotes_Discriminant): Extend predicate to apply to task types.
13939         Add missing continuation marks in error msgs
13940         (Unqualify): New function for removing zero or more levels of
13941         qualification from an expression. There are numerous places where this
13942         ought to be used, but we currently only deal properly with zero or one
13943         level.
13944         (In_Instance); The analysis of the actuals in the instantiation of a
13945         child unit is not within an instantiation, even though the parent
13946         instance is on the scope stack.
13947         (Safe_To_Capture_Value): Exclude the case of variables that are
13948         renamings.
13949         (Check_Obsolescent): Removed
13950         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
13951         is an aliased view, even when rewritten as a reference to the target
13952         object in an assignment.
13953         (Get_Subprogram_Entity): New function
13954         (Known_To_Be_Assigned): New function
13955         (Type_Access_Level): Compute properly the access level of a return
13956         subtype that is an anonymous access type.
13957         (Explain_Limited_Type): Correct use of "\" for continuation messages.
13958         (Is_Transfer): The new extended_return_statement causes a transfer of
13959         control.
13960         (Has_Preelaborable_Initialization): New function
13961         (Has_Null_Exclusion): New function. Given a node N, determine whether it
13962         has a null exclusion depending on its Nkind.
13963         Change Is_Lvalue to May_Be_Lvalue
13964         (May_Be_Lvalue): Extensive additional code to deal with subprogram
13965         arguments (IN parameters are not Lvalues, IN OUT parameters are).
13966         (Safe_To_Capture_Value): Extend functionality so it can be used for
13967         the current value condition case.
13968         (Has_Compatible_Alignment): New function
13969         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
13970         objects to handle the Ada 2005 case, where aliasedness no longer implies
13971         that the object is constrained. In particular, for dereferenced names,
13972         the designated object must be assumed to be unconstrained.
13973         (Kill_Current_Values): Properly deal with the case where we encounter
13974         a loop in the scope chain.
13975         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
13976         a value.
13977         (Compile_Time_Constraint_Error): Improve error message in error case
13978
13979         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
13980         associated with entities of abstract interface primitives.
13981         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
13982
13983 2006-10-31  Robert Dewar  <dewar@adacore.com>
13984
13985         * s-osinte-tru64.adb: 
13986         Mark Asm statements Volatile to prevent warnings (seems a
13987         reasonable change anyway)
13988         Fixes new warnings
13989
13990         * s-mastop-irix.adb: Add Volatile to Asm statements
13991         Suppresses warning, and seems appropriate in any case
13992
13993         * s-osinte-vms.adb: Add Volatile to Asm statement
13994
13995         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
13996
13997         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
13998         returned.
13999         Add call to Check_Code_Statement
14000
14001 2006-10-31  Robert Dewar  <dewar@adacore.com>
14002             Ed Schonberg  <schonberg@adacore.com>
14003             Bob Duff  <duff@adacore.com>
14004
14005         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
14006         Synchronized_Present): Add Formal_Derived_Type_Definition and
14007         Private_Extension_Declaration to the list of assertions.
14008         (Is_Entry_Barrier_Function): New flag
14009         (Has_Self_Reference): New flag on aggregates, to indicate that they
14010         contain a reference to the enclosing type, inserted through a default
14011         initialization.
14012         (Next_Rep_Item): Move from Node4 to Node5.
14013         (Entity): Add this field for N_Attribute_Definition_Clause.
14014         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
14015         (N_Return_Object_Declaration): Remove this node kind. We now use
14016         N_Object_Declaration instead.
14017         (Actual_Designated_Subtype): Move to a different place to make room in
14018         N_Extended_Return_Statement.
14019         (Procedure_To_Call): Move to a different place to make room in
14020         N_Extended_Return_Statement.
14021         (Return_Type): Removed this field to make room in return statements
14022         (both kinds).
14023         (Return_Statement_Entity): New field in return statements, in part to
14024         replace Return_Type, and in part to support the fact that return
14025         statements are now pushed on the scope stack during semantic analysis.
14026         (Return_Object_Declarations): New field to support extended return
14027         statements.
14028         (N_Extended_Return_Statement): New node for extended_return_statement
14029         nonterminal.
14030         (N_Return_Object_Declaration): New node for part of
14031         extended_return_statement nonterminal. Needed because all the necessary
14032         fields won't fit in N_Extended_Return_Statement.
14033         Generic_associations now carry the Box_Present flag, to indicate a
14034         default for an actual in a partially parametrized formal package.
14035
14036         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
14037         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
14038         and for the new predefined dispatching policies: EDF_Across_Priorities,
14039         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
14040         Introduce new name Stub_Type for implementation defined attribute.
14041         Add pragma Preelaborable_Initialization
14042         Add entry for Priority attribute.
14043         Add Pragma_Wide_Character_Encoding
14044         (Get_Convention_Name): Given a convention id, this function returns the
14045         corresponding name id from the names table.
14046
14047 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14048             Robert Dewar  <dewar@adacore.com>
14049             Bob Duff  <duff@adacore.com>
14050
14051         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
14052         print null exclusion twice in the case of an access definition,
14053         Implement new -gnatL switch
14054         Remove N_Return_Object_Declaration. We now use
14055         N_Object_Declaration instead. Implement the case for
14056         N_Extended_Return_Statement. Alphabetize the cases.
14057         Add cases for new nodes N_Extended_Return_Statement and
14058         N_Return_Object_Declaration. The code is not yet written.
14059         Update the output for N_Formal_Object_Declaration
14060         and N_Object_Renaming_Declaration.
14061         (Write_Itype): Account for the case of a modular integer subtype whose
14062         base type is private.
14063
14064 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
14065
14066         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
14067         Remove elaboration code, now done in the binder.
14068
14069         * s-rident.ads: Make this unit Preelaborate.
14070         (No_Restrictions): New constant used to clean up code and follow
14071         preelaborate constraints.
14072
14073         * s-stalib.adb: 
14074         Add System.Restrictions dependence, referenced directly from the
14075         binder generated file.
14076
14077 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
14078
14079         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
14080         True when AAMP extended floating-point is in use (48-bit). Change type
14081         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
14082         the two byte array types on AFloat. Change type of IV_Ilf overlay
14083         variable from Byte8 to ByteLF. Add appropriate initializations of
14084         floating-point overlays for AAMP cases.
14085
14086 2006-10-31  Javier Miranda  <miranda@adacore.com>
14087
14088         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
14089         (Get_Ceiling): New subprogram that returns
14090         the ceiling priority of the protected object.
14091         (Set_Ceiling): New subprogram that sets the new ceiling priority of
14092         the protected object.
14093
14094         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
14095
14096         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
14097
14098 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14099
14100         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
14101         requeuing to the same protected object to give higher priority tasks
14102         the opportunity to execute.
14103
14104 2006-10-31  Robert Dewar  <dewar@adacore.com>
14105
14106         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
14107         add more precise check for the character sequence that follows '[' to
14108         avoid possible confusion in case if '[' is the last character of a
14109         string literals.
14110         (Scan_Wide): Always allow brackets encoding
14111
14112 2006-10-31  Olivier Hainque  <hainque@adacore.com>
14113
14114         * s-stchop.ads: make this unit preelaborate. This is desirable in
14115         general and made mandatory by the use of this unit by s-taprop which
14116         is itself preelaborate.
14117
14118         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
14119         Td_Events component.
14120
14121 2006-10-31  Vincent Celier  <celier@adacore.com>
14122
14123         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
14124         in file names.
14125
14126 2006-10-31  Vincent Celier  <celier@adacore.com>
14127
14128         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
14129
14130 2006-10-31  Vincent Celier  <celier@adacore.com>
14131
14132         * makegpr.adb (Check_Compilation_Needed): Take into account path names
14133         with spaces.
14134         (Check_Compilation_Needed): When checking a C or C++ source, do not
14135         resolve symbolic links.
14136         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
14137         When not in verbose mode and Ellipse is True, display "..." for the
14138         first argument with Display set to False.
14139         (Build_Global_Archive): Always set Display True for the first object
14140         file. Call Display_Command with Ellipse set to True.
14141
14142 2006-10-31  Matt Heaney  <heaney@adacore.com>
14143
14144         * a-crbtgo.ads: Commented each subprogram
14145
14146         * a-crbtgo.adb: Added reference to book from which algorithms were
14147         adapted.
14148
14149         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
14150         indicate which child.
14151         (Generic_Conditional_Insert): changed parameter name from "Success" to
14152         "Inserted".
14153         (Generic_Unconditional_Insert_With_Hint): improved algorithm
14154
14155         * a-coorse.adb (Replace_Element): changed parameter name in call to
14156         conditional insert operation.
14157
14158         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
14159
14160         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
14161         Generic_Iteration
14162
14163         * a-ciorse.adb (Replace_Element): changed parameter name in call to
14164         conditional insert operation.
14165
14166         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
14167         Generic_Iteration.
14168
14169         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
14170         instead of mode inout.
14171
14172         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
14173         draft
14174         (Generic_Read): preserve existing buckets array if possible
14175         (Generic_Write): don't send buckets array length anymore
14176
14177         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
14178         instead of mode inout.
14179
14180         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
14181         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14182
14183         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
14184         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14185         (Replace_Element): local operation is now an instantiation
14186
14187         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
14188         check current length.
14189         (Generic_Replace_Element): new operation
14190
14191 2006-10-31  Doug Rupp  <rupp@adacore.com>
14192
14193         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
14194         Call TBK$SYMBOLIZE without omitting parameters.
14195
14196 2006-10-31  Vincent Celier  <celier@adacore.com>
14197
14198         * symbols-processing-vms-ia64.adb,
14199         symbols-processing-vms-alpha.adb (Process): Do not include symbols
14200         that come from generic instantiations in bodies.
14201
14202 2006-10-31  Pat Rogers  <rogers@adacore.com>
14203
14204         * a-rttiev.ads, a-rttiev.adb: 
14205         This is a significant redesign primarily for the sake of automatic
14206         timer task termination but also to fix a design flaw.
14207         Therefore we are now using an RTS lock, instead of a protected
14208         object, to provide mutual exclusion to the queue of pending events
14209         and the type Timing_Event is no longer a protected type.
14210
14211 2006-10-31  Robert Dewar  <dewar@adacore.com>
14212             Cyrille Comar  <comar@adacore.com>
14213             Ben Brosgol  <brosgol@adacore.com>
14214
14215         * debug.adb:  Update flags documentation
14216
14217         * gnat_ugn.texi: Add documentation for new -gnatwq switch
14218         Clean up documentation for several other warning switches
14219         Clarify how task stack size can be specified with various
14220         versions of Windows.
14221         Add note that -gnatVo includes ranges including loops
14222         Add documentation for -gnatL switch
14223         Add note on elaboration warning for initializing variables
14224         Add documentation for new -gnatwt warning switch
14225         Document new form of pragma Warnings (On|Off, string)
14226         Add comment on use of pragma Warnings to control warnings
14227         Add documentation for -gnatjnn switch
14228         Modify section on interfacing with C for VMS 64-bit.
14229         Add doc for -gnatVe/E
14230         Add documentation of new warning flags -gnatww/-gnatwW
14231         Add warnings about address clause overlays to list of warnings
14232         (Exception Handling Control): Document that the option --RTS must be
14233         used consistently for gcc and gnatbind.
14234         Clarify that inlining is not always possible
14235         Update documentation on pragma Unchecked_Union.
14236
14237         * gnat_rm.texi: 
14238         Add documentation for new extended version of pragma Obsolescent
14239         Add documentation for implementation defined attribute 'Stub_Type.
14240         Add note on use of Volatile in asm statements
14241         Add documentation on use of pragma Unreferenced in context clause
14242         Document new form of pragma Warnings (On|Off, pattern)
14243         Document pragma Wide_Character_Encoding
14244         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
14245         enforced if code generation is active.
14246         Add section on pragma Suppress to document GNAT specific check
14247         Alignment_Check
14248         Clarify difference between No_Dispatching_Calls & No_Dispatch.
14249         Add documentation for pragma Restrictions (No_Elaboration_Code)
14250
14251         * gnat-style.texi: 
14252         Add comments on layout of subprogram local variables in the
14253         presence of nested subprograms.
14254
14255         * ug_words: Resync.
14256
14257         * elists.ads: Minor reformatting
14258         Node returns Node_Or_Entity_Id (doc change only)
14259
14260         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
14261
14262         * g-arrspl.ads (Create): Update comments.
14263
14264         * sem.ads: Add details on the handling of the scope stack.
14265
14266         * usage.adb: Update documentation.
14267
14268         * validsw.ads, validsw.adb: 
14269         Add definition of Validity_Check_Components and implement -gnatVe/E
14270
14271         * vms_data.ads: Add missing VMS qualifiers.
14272
14273         * s-addope.ads: Add documentation on overflow and divide by zero
14274
14275 2006-10-31  Robert Dewar  <dewar@adacore.com>
14276             Thomas Quinot  <quinot@adacore.com>
14277             Arnaud Charlet  <charlet@adacore.com>
14278
14279         * fmap.adb: Put routines in alpha order
14280
14281         * g-boumai.ads: Remove redundant 'in' keywords
14282
14283         * g-cgi.adb: Minor reformatting
14284
14285         * g-cgi.ads: Remove redundant 'in' keywords
14286
14287         * get_targ.adb: Put routines in alpha order
14288
14289         * prj-attr.ads: Minor reformatting
14290
14291         * s-atacco.ads: Minor reformatting
14292
14293         * scn.adb: Put routines in alpha order
14294
14295         * sinput-l.adb: Minor comment fix
14296
14297         * sinput-p.adb: Minor comment fix
14298
14299         * s-maccod.ads: Minor reformatting
14300
14301         * s-memory.adb: Minor reformatting
14302
14303         * s-htable.adb: Fix typo in comment.
14304
14305         * s-secsta.adb: Minor comment update.
14306
14307         * s-soflin.adb: Minor reformatting
14308
14309         * s-stoele.ads: 
14310         Add comment about odd qualification in Storage_Offset declaration
14311
14312         * s-strxdr.adb: 
14313         Remove unnecessary 'in' keywords for formal parameters.
14314
14315         * treeprs.adt: Minor reformatting
14316
14317         * urealp.adb: Put routines in alpha order
14318
14319         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
14320         taking string.
14321
14322         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14323
14324         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
14325
14326         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
14327         workaround as on other platforms.
14328
14329         * g-eacodu-vms.adb: Remove redundant 'in' keywords
14330         * g-expect-vms.adb: Remove redundant 'in' keywords
14331
14332         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
14333         clear error message if the list-of-files file cannot be opened.
14334
14335         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
14336         equality operator is always visible.
14337
14338         * lang.opt: Woverlength-strings: New option.
14339
14340         * nmake.adt: 
14341         Update copyright, since nmake.ads and nmake.adb have changed.
14342
14343         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
14344         (Binder_Output_Time_Stamps_Set): removed.
14345         (Old_Binder_Output_Time_Stamp): idem.
14346         (New_Binder_Output_Time_Stamp): idem.
14347         (Recording_Time_From_Last_Bind): idem.
14348         (Recording_Time_From_Last_Bind): Make constant.
14349
14350         * output.ads, output.adb (Write_Str): Allow LF characters
14351         (Write_Spaces): New procedure
14352
14353         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
14354
14355         * inline.adb: Minor reformatting
14356
14357         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14358
14359         * s-mastop-vms.adb: Remove redundant 'in' keywords
14360
14361         * s-osprim-vms.adb: Remove redundant 'in' keywords
14362
14363         * s-trafor-default.adb: Remove redundant 'in' keywords
14364
14365         * 9drpc.adb: Remove redundant 'in' keywords
14366
14367         * s-osinte-mingw.ads: Minor reformatting
14368
14369         * s-inmaop-posix.adb: Minor reformatting
14370
14371         * a-direio.ads: Remove quotes from Compile_Time_Warning message
14372
14373         * a-exexda.adb: Minor code reorganization
14374
14375         * a-filico.adb: Minor reformatting
14376
14377         * a-finali.adb: Minor reformatting
14378
14379         * a-nudira.ads: Remove quote from Compile_Time_Warning message
14380
14381         * a-numeri.ads: Minor reformatting
14382
14383         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
14384
14385         * exp_pakd.ads: Fix obsolete comment
14386
14387         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
14388         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
14389         Probably not a bug, but certainly neater and more efficient.
14390
14391         * a-tienio.adb: Minor reformatting
14392
14393         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
14394         Avoid assuming low bound of string is 1.
14395
14396         * gnatbind.adb: Change Bindusg to package and rename procedure as
14397         Display, which now ensures that it only outputs usage information once.
14398         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
14399
14400         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
14401         Table'First.
14402
14403         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
14404         warning.
14405         (Match): Add pragma Assert to ensure that Matches'First is zero
14406
14407         * g-regpat.ads (Match): Document that Matches lower bound must be zero
14408
14409         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
14410         documented preconditions (also kills warnings about bad indexes).
14411
14412         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
14413         is 1.
14414         (Build_Import_Library): Ditto;
14415
14416         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
14417
14418         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
14419
14420         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
14421         lower bound of choice table is 1.
14422
14423         * sem_case.ads (Analyze_Choices): Document that lower bound of
14424         Choice_Table is 1.
14425
14426         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
14427         string is 1.
14428
14429         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
14430         and add appropriate Assert pragma to suppress warnings.
14431
14432         * atree.h, atree.ads, atree.adb
14433         Change Elist24 to Elist25
14434         Add definitions of Field28 and Node28
14435         (Traverse_Field): Use new syntactic parent table in sinfo.
14436
14437         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14438
14439         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14440
14441         * exp_tss.adb: Put routines in alpha order
14442
14443         * fe.h: Remove redundant declarations.
14444
14445 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
14446
14447         * utils.c (builtin_function): Rename to gnat_builtin_function.
14448         Move common code to add_builtin_function.
14449         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
14450         gnat_builtin_function.
14451         * gigi.h (builtin_function): Rename to gnat_builtin_function.
14452         Change the signature.
14453
14454 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
14455
14456         * Makefile.in: Add TEXI2PDF definition.
14457         * Make-lang.in: Add "ada.pdf" target.
14458
14459 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
14460
14461         * decl.c, utils.c: Fix comment typos.
14462         * utils.c: Fix a typo.
14463
14464 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
14465
14466         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
14467         on "pure" Ada subprograms if SJLJ exceptions are used.
14468         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
14469         on the declaration node of JMPBUF_SAVE.
14470         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
14471         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
14472         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
14473
14474 2006-08-20  Laurent Guerby  <laurent@guerby.net>
14475
14476         PR ada/28716
14477         g-socket.adb (Bind_Socket): Call Set_Address.
14478
14479 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14480
14481         PR ada/15802
14482         * decl.c (same_discriminant_p): New static function.
14483         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
14484         subtype and we have discriminants, fix up the COMPONENT_REFs
14485         for the discriminants to make them reference the corresponding
14486         fields of the parent subtype after it has been built.
14487
14488 2006-09-15  Roger Sayle  <roger@eyesopen.com>
14489
14490         PR ada/18817
14491         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
14492         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
14493
14494 2006-09-13  Olivier Hainque  <hainque@adacore.com>
14495
14496         PR ada/29025
14497         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
14498         of a SAVE_EXPR, just make the operand addressable/not-readonly and
14499         let the common gimplifier code make and propagate a temporary copy.
14500         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
14501         out/in-out actuals and defer setting the addressable/readonly bits
14502         to the gimplifier.
14503
14504 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14505
14506         PR ada/28591
14507         * decl.c (components_to_record): Defer emitting debug info for the
14508         record type associated with the variant until after we are sure to
14509         actually use it.
14510
14511 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14512
14513         PR ada/21952
14514         * gigi.h (gnat_internal_attribute_table): Declare.
14515         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
14516         * utils.c (gnat_internal_attribute_table): New global variable.
14517         (builtin_function): Always call decl_attributes on the builtin.
14518         (handle_const_attribute): New static function.
14519         (handle_nothrow_attribute): Likewise.
14520
14521 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14522
14523         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
14524
14525 2006-06-23  Olivier Hainque  <hainque@adacore.com>
14526
14527         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14528         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
14529
14530 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
14531             Eric Botcazou  <ebotcazou@adacore.com>
14532
14533         PR ada/18692
14534         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
14535         check-gnat into check-acats.
14536
14537 2006-06-17  Karl Berry  <karl@gnu.org>
14538
14539         * gnat-style.texi (@dircategory): Use "Software development"
14540         instead of "Programming", following the Free Software Directory.
14541
14542 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14543
14544         PR ada/27944
14545         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
14546
14547 2006-06-06  Laurent Guerby  <laurent@guerby.net>
14548
14549         PR ada/27769
14550         mlib-utl.adb: Use Program_Name.
14551
14552 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
14553
14554         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
14555         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
14556         trans.c, utils.c: Fix comment typos.  Follow spelling
14557         conventions.
14558         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
14559         conventions.
14560
14561 2006-05-19  Nicolas Setton  <setton@adacore.com>
14562
14563         * misc.c (gnat_dwarf_name): New function.
14564         (LANG_HOOKS_DWARF_NAME): Define to it.
14565
14566 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14567
14568         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
14569         (ada/misc.o): Likewise.
14570         (ada/utils.o): Likewise.
14571
14572 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
14573
14574         * Makefile.in: Add Ada support for GNU/kFreeBSD.
14575         * s-osinte-kfreebsd-gnu.ads: New file.
14576
14577 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
14578
14579         * Make-lang.in: Rename docdir to gcc_docdir.
14580
14581 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
14582
14583         * gigi.h (get_ada_base_type): Delete.
14584         * utils2.c (get_ada_base_type): Likewise.
14585         * trans.c (convert_with_check): Operate in the real base type.
14586
14587 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14588
14589         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
14590
14591 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
14592
14593         * utils.c (create_var_decl): Use have_global_bss_p when deciding
14594         whether to make the decl common.
14595
14596 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14597
14598         * Make-lang.in (Ada): Remove.
14599         (.PHONY): Remove Ada
14600
14601 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14602
14603         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
14604         aggregate, check the interpretations of the other operand to find one
14605         that may be a boolean array.
14606
14607         (Analyze_Selected_Component): Fix flow-of-control typo in case where
14608         the prefix is a private extension.
14609
14610 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
14611
14612         PR ada/26315
14613         * utils2.c (find_common_type): If both input types are BLKmode and
14614         have the same constant size, keep using the first one.
14615
14616         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
14617
14618         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
14619
14620         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
14621
14622 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
14623
14624         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
14625         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
14626         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
14627         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
14628         Abort_Defer/Undefer pairs to avoid the possibility of a task being
14629         aborted while owning a lock.
14630
14631 2006-02-17  Javier Miranda  <miranda@adacore.com>
14632             Robert Dewar  <dewar@adacore.com>
14633
14634         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
14635         through an access to class-wide interface we force the displacement of
14636         the pointer to the allocated object to reference the corresponding
14637         secondary dispatch table.
14638         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
14639         if Long_Shifts are supported on the target, even if 64 bit divides
14640         are not supported (configurable run time mode).
14641         (Expand_N_Type_Conversion): Do validity check if validity checks on
14642         operands are enabled.
14643         (Expand_N_Qualified_Expression): Do validity check if validity checks
14644         on operands are enabled.
14645
14646 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14647
14648         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
14649         must be materialized when the renamed expression is an explicit
14650         dereference.
14651
14652 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14653
14654         * freeze.adb (Statically_Discriminated_Components): Return false if
14655         the bounds of the type of the discriminant are not static expressions.
14656
14657         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
14658         the bounds of the discriminant type are not static.
14659
14660 2006-02-17  Robert Dewar  <dewar@adacore.com>
14661
14662         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
14663         then we close To if it is valid.
14664
14665 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
14666
14667         * init.c (facility_resignal_table): new array
14668         (__gnat_default_resignal_p): enhance default predicate to resignal if
14669         VMS condition has one of the predefined facility codes.
14670
14671 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
14672
14673         * Makefile.in: Use VMS64 specialized versions of several units in
14674         Interfaces.C hierarchy to be compatible with HP C default size choices.
14675         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
14676
14677 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14678
14679         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
14680         instantiation, the corresponding entity is the related_instance of the
14681         wrapper package created for the instance.
14682
14683 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14684
14685         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
14686         the current instance is nested within another instance in a child unit.
14687
14688 2006-02-17  Javier Miranda  <miranda@adacore.com>
14689             Ed Schonberg  <schonberg@adacore.com>
14690
14691         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
14692         type we cannot inherit the primitive operations; we inherit the
14693         Corresponding_Record_Type (which has the list of primitive operations).
14694         (Check_Anonymous_Access_Types): When creating anonymous access types for
14695         access components, use Rewrite in order to preserve the tree structure,
14696         for ASIS use.
14697         (Analyze_Object_Declaration): For limited types with access
14698         discriminants with defaults initialized by an aggregate, obtain
14699         subtype from aggregate as for other mutable types.
14700         (Derived_Type_Declaration): If the derived type is a limited interface,
14701         set the corresponding flag (Is_Limited_Record is not sufficient).
14702
14703 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14704
14705         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
14706         to inline a function that returns an unconstrained type, the return
14707         expression must be the first variable declared in the body of the
14708         function.
14709
14710 2006-02-17  Javier Miranda  <miranda@adacore.com>
14711
14712         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
14713         abstract interface type, the static analysis is not enough to know if
14714         the interface is implemented or not by the source tagged type. Hence
14715         we must pass the work to the expander to generate the required code to
14716         evaluate the conversion at run-time.
14717         (Resolve_Equality_Op): Do not apply previous
14718         transformation if expansion is disasbled, to prevent anomalies when
14719         locating global references in a generic unit.
14720
14721 2006-02-17  Vincent Celier  <celier@adacore.com>
14722
14723         * snames.ads, snames.adb: New standard names for new project attributes:
14724         archive_builder, archive_indexer, compiler_pic_option,
14725         config_body_file_name, config_body_file_name_pattern,
14726         config_file_switches, config_file_unique, config_spec_file_name,
14727         config_spec_file_name_pattern, default_builder_switches,
14728         default_global_compiler_switches, default_language,
14729         dependency_file_kind, global_compiler_switches, include_path,
14730         include_path_file, language_kind, linker_executable_option,
14731         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
14732         roots, runtime_project.
14733
14734 2006-02-17  Matthew Heaney  <heaney@adacore.com>
14735
14736         * a-convec.ads, a-convec.adb: 
14737         (operator "&"): handle potential overflow for large index types
14738         (Insert): removed Contraint_Error when using large index types
14739         (Insert_Space): removed Constraint_Error for large index types
14740         (Length): moved constraint check from Length to Insert
14741
14742         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
14743         as not null access.
14744         Explicit raise statements now include an exception message.
14745         (operator "&"): handle potential overflow for large index types
14746         (Insert): removed Contraint_Error when using large index types
14747         (Insert_Space): removed Constraint_Error for large index types
14748         (Length): moved constraint check from Length to Insert
14749
14750 2006-02-17  Robert Dewar  <dewar@adacore.com>
14751
14752         * s-wchcnv.adb: Document handling of [ on output (we do not change
14753         this to ["5B"] and the new comments say why not.
14754
14755         * gnat_ugn.texi: 
14756         Add note for -gnatVo that this now includes the cases of type
14757         conversions and qualified expressions.
14758         Add comments on handling of brackets encoding for Text_IO
14759
14760 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
14761             Thomas Quinot  <quinot@adacore.com>
14762             Robert Dewar  <dewar@adacore.com>
14763             Javier Miranda  <miranda@adacore.com>
14764
14765         * expander.adb: Fix typo in comment
14766
14767         * exp_pakd.adb: Fix typo
14768         Minor comment reformatting.
14769
14770         * g-dyntab.adb: Minor reformatting
14771
14772         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
14773         aliased subprograms to look for the abstract interface subprogram.
14774
14775 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
14776
14777         * env.c (__gnat_setenv): Use size_t.
14778         (__gnat_unsetenv): Likewise.
14779         (__gnat_clearenv): Likewise.
14780
14781 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
14782
14783         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
14784
14785 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
14786
14787         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
14788         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
14789         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
14790         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
14791         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
14792         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
14793         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
14794         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
14795         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
14796         no longer used.
14797
14798 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
14799
14800         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
14801         protection against race conditions is not needed.
14802         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
14803         fallback handler.
14804         (Set_Specific_Handler): Add mutual exclusive access to the specific
14805         handler.
14806         (Specific_Handler): Add mutual exclusive access for retrieving the
14807         specific handler.
14808
14809         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
14810         back handler.
14811
14812         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
14813         Fall_Back_Handler and Specific_Handler.
14814
14815         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
14816         termination handlers.
14817         Set two different owerflow depending on the maximal stack size.
14818
14819         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
14820         protection against race conditions is not needed when executing the
14821         task termination handler.
14822
14823 2006-02-13  Robert Dewar  <dewar@adacore.com>
14824
14825         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
14826         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
14827         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14828         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
14829         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
14830         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
14831         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
14832         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
14833         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
14834         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
14835         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
14836         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
14837         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
14838         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
14839         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
14840         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
14841         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
14842         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
14843         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
14844         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
14845         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
14846         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
14847         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
14848         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
14849         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
14850         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
14851         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
14852         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
14853         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
14854         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
14855         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
14856         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
14857         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
14858         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
14859         reformatting.
14860
14861 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
14862
14863         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
14864         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
14865         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
14866         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
14867         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
14868         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
14869         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
14870         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
14871         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
14872
14873 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
14874
14875         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
14876         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
14877         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
14878         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
14879         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
14880         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
14881         replaced by anonymous access type.
14882         (pthread_sigmask): Now take an access sigset_t
14883
14884         * s-osinte-hpux.ads:  Ditto.
14885         (pthread_mutex_t, pthread_cond_t): Update definitions to support
14886         properly 32 and 64 bit ABIs.
14887
14888 2006-02-13  Pascal Obry  <obry@adacore.com>
14889
14890         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
14891         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
14892         s-taprop-linux.adb, s-taprop-solaris.adb,
14893         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
14894         adjustement is already done when calling this routine.
14895
14896 2006-02-13  Pascal Obry  <obry@adacore.com>
14897
14898         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
14899         table to take advantage of the 16 priority levels available on Windows
14900         2000 and XP. On NT4 there are only 7 priority levels, this is properly
14901         supported by this new mapping.
14902
14903 2006-02-13  Nicolas Setton  <setton@adacore.com>
14904
14905         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
14906         (get_encoding): New subprogram. Extracts the encodings from an encoded
14907         Ada name.
14908
14909 2006-02-13  Pascal Obry  <obry@adacore.com>
14910             Nicolas Roche  <roche@adacore.com>
14911             Arnaud Charlet  <charlet@adacore.com>
14912
14913         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
14914         support.
14915         (__gnat_try_lock): Add unicode support by using a specific section on
14916         Windows.
14917         (__gnat_get_current_dir): Idem.
14918         (__gnat_open_read): Idem.
14919         (__gnat_open_rw): Idem.
14920         (__gnat_open_create): Idem.
14921         (__gnat_create_output_file): Idem.
14922         (__gnat_open_append): Idem.
14923         (__gnat_open_new): Idem.
14924         (__gnat_file_time_name): Idem.
14925         (__gnat_set_file_time_name): Idem.
14926         (__gnat_stat): Idem.
14927         (win32_no_block_spawn): Idem.
14928         (__gnat_locate_exec_on_path): Idem.
14929         (__gnat_opendir): New routine.
14930         (__gnat_closedir): Idem.
14931         (__gnat_readdir): Add new parameter length (pointer to int). Update
14932         implementation to use it and add specific Win32 code for Unicode
14933         support.
14934         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
14935         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
14936         (convert_addresses): Do not define this dummy routine on VMS.
14937
14938         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
14939         runtime Unicode support will be activated.
14940         (S2WS): String to Wide-String conversion. This version just copy a
14941         string in non Unicode version.
14942         (WS2S): Wide-String to String conversion. This version just copy a
14943         string in non Unicode version.
14944
14945         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
14946         (Open): Now import __gnat_opendir from adaint.c.
14947         (Read): Change the implementation to support unicode characters. It is
14948         not possible to use strlen() on Windows as this version supports only
14949         standard ASCII characters. So the length of the directory entry is now
14950         returned from the imported __gnat_readdir routine.
14951         Update copyright notice.
14952
14953         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
14954         (opendir): Moved to adaint.c.
14955
14956         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
14957         (Get_Directory): Fix wrong indexing.
14958         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
14959         __gnat_getenv from env.c
14960         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
14961         from env.c
14962
14963         * env.h, env.c: New file.
14964
14965         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
14966         adaint.c by __gnat_getenv from env.c
14967
14968         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
14969         adaint.c by __gnat_getenv from env.c
14970
14971         * Make-lang.in: Add env.o in the list of C object needed by gnat1
14972         and gnatbind.
14973         Update dependencies.
14974
14975 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14976             Olivier Hainque  <hainque@adacore.com>
14977             Eric Botcazou  <ebotcazou@adacore.com>
14978
14979         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
14980         
14981         * gigi.h (value_factor_p): Add prototype and description, now public.
14982
14983         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
14984         promotion for field with rep clause if the associated size was proven
14985         to be in error.
14986         Expand comments describing attempts to use a packable type.
14987         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
14988         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
14989         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
14990         necessary since these are not different types and pointers may
14991         actually designate any subtype in this hierarchy.
14992         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
14993         discriminants but put them into record only if not Unchecked_Union;
14994         pass flag to components_to_record showing Unchecked_Union.
14995         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
14996         components before variants; don't set TYPE_UNCHECKED_UNION_P.
14997         (components_to_record): New argument UNCHECKED_UNION.
14998         Remove special case code for Unchecked_Union and instead use main code
14999         with small changes.
15000
15001         PR ada/26096
15002         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
15003         variable with the expression being built, only its inner field.
15004
15005         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
15006         emit_sequence_entry_statements.
15007         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
15008         (establish_gnat_vms_condition_handler): Move before
15009         Subprogram_Body_to_gnu.
15010         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
15011         for a subprogram if it has a foreign convention or is exported.
15012         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
15013         substituted for a CONST_DECL.
15014         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
15015         Etype to assoc_to_constructor.
15016         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
15017         discriminants of Unchecked_Union.
15018         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
15019         don't need cluttering preprocessor directives.
15020         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
15021         condition handler as current in the compiled function.
15022         (body_with_handlers_p): New function. Tell whether a given sequence of
15023         statements node is attached to a package or subprogram body and involves
15024         exception handlers possibly nested within inner block statements.
15025         (emit_sequence_entry_statements): New function, to emit special
15026         statements on entry of sequences when necessary. Establish GNAT
15027         condition handler in the proper cases for VMS.
15028         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
15029         emit_sequence_entry_statements.
15030
15031         * utils2.c (find_common_type): If both input types are BLKmode and
15032         have a constant size, use the smaller one.
15033         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
15034         the same.
15035
15036         * utils.c (value_factor_p): Make public, to allow uses from other gigi
15037         units.
15038         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
15039         (convert, case UNION_TYPE): Remove special treatment for unchecked
15040         unions.
15041
15042         PR ada/18659
15043         (update_pointer_to): Update variants of pointer types to unconstrained
15044         arrays by attaching the list of fields of the main variant.
15045
15046 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15047             Robert Dewar  <dewar@adacore.com>
15048
15049         * a-exexpr.adb, a-exexpr-gcc.adb
15050         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
15051         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
15052         Remove code unused for exception propagation for the compiler itself
15053         from a-except.adb and update to still share separate packages.
15054
15055         * a-except.ads, a-except.adb: Ditto.
15056         Add comments that this version is now used only by the compiler and
15057         other basic tools. The full version that includes the Ada 2005 stuff
15058         is in separate files a-except-2005.ads/adb. The reason is that we do
15059         not want to cause bootstrap problems with compilers not recognizing
15060         Wide_Wide_String.
15061         Add exception reason code PE_Implicit_Return
15062         Add new exception reason code (Null Exception_Id)
15063
15064         * a-except-2005.adb, a-except-2005.ads: New files.
15065
15066         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
15067
15068         * s-wchcon.adb: New file.
15069
15070         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
15071         (traceback.o deps): Likewise.
15072         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
15073         Activate build of GMEM instrumentation library on VMS targets.
15074         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
15075         Use a-except-2005.ads/adb for all run-time library builds unless
15076         specified otherwise.
15077         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
15078         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
15079         Use s-parame.adb on all native platforms.
15080         Use s-parame-vxworks.adb on all vxworks platforms.
15081         Add env.c env.h in LIBGNAT_SRCS
15082         Add env.o in LIBGNAT_OBJS
15083         (GNATMAKE_OBJS): Remove ctrl_c.o object.
15084         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
15085         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15086         supports VxWorks 6 RTPs.
15087         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
15088         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15089
15090         * types.h, types.ads (Terminate_Program): New exception
15091         Add comment on modifying multiple versions of a-except.adb when the
15092         table of exception reasons is modified.
15093         Add exception reason code PE_Implicit_Return
15094         Add new exception reason code (Null Exception_Id)
15095
15096         * clean.adb (Initialize): Get the target parameters before checking
15097         if target is OpenVMS. Move the OpenVMS specific code here from package
15098         body elaboration code.
15099
15100 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15101             Vincent Celier  <celier@adacore.com>
15102             Robert Dewar  <dewar@adacore.com>
15103
15104         * ali-util.adb (Get_File_Checksum): Update to account for change in
15105         profile of Initialize_Scanner.
15106
15107         * gprep.adb (Gnatprep): Update to account for change in profile of
15108         Initialize_Scanner.
15109         (Process_One_File): Same.
15110
15111         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
15112         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
15113         that behaviour using the new Unit information recorded in the source
15114         files table, rather than going through all units every time.
15115         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
15116         (Get_Source_Unit): Same.
15117
15118         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
15119         change in profile of Initialize_Scanner.
15120         (Prepare_To_Preprocess): Same.
15121
15122         * lib.ads: Fix typo in comment (templace -> template).
15123
15124         * prj-part.adb (Parse_Single_Project): Update to account for change in
15125         profile of Initialize_Scanner.
15126
15127         * scn.adb (Initialize_Scanner): Account for change in profile of
15128         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
15129         Also record the association of the given Source_File_Index to the
15130         corresponding Unit_Number_Type.
15131
15132         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
15133         procedure.
15134         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
15135         Remove Unit formal for generic scanner: this formal
15136         is only relevant to Scn (the scanner instance used to parse Ada source
15137         files), not to other instances. Update comment accordingly.
15138         (Scan): Use new function Snames.Is_Keyword_Name.
15139
15140         * sinfo-cn.adb: Fix typo in comment.
15141
15142         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
15143         Unit.
15144
15145         * sinput.ads (Source_File_Record): New component Unit, used to capture
15146         the unit identifier (if any) associated to a source file.
15147
15148         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
15149         Unit in Source_File_Record.
15150
15151         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
15152         in profile of Initialize_Scanner.
15153
15154         * scans.adb (Initialize_Ada_Keywords): New procedure
15155
15156         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
15157         Ada keywords in the Namet table, without the need to call
15158         Initialize_Scanner.
15159
15160         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
15161         (Is_Keyword_Name): New function
15162
15163         * snames.ads: Add subtype Configuration_Pragma_Names
15164         Add pragma Ada_2005 (synonym for Ada_05)
15165         (Is_Keyword_Name): New function
15166
15167         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
15168
15169 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15170
15171         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
15172         index.
15173
15174         * a-stwima.adb (To_Set): Add extra check when N = 0.
15175
15176         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
15177
15178 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15179
15180         * s-parame-mingw.adb, s-parame-linux.adb,
15181         s-parame-solaris.adb: Removed, replaced by s-parame.adb
15182
15183         * s-parame-vxworks.ads: Fix typo.
15184
15185         * s-parame-vxworks.adb: New file.
15186
15187         * s-parame.adb: Version now used by all native platforms.
15188         (Default_Stack_Size): Use 2 megs for default stack size and use
15189         __gl_default_stack_size when available.
15190         (Minimum_Stack_Size): Use 12K.
15191
15192         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
15193         (Create_Task): Refine implementation taking advantage of the XP stack
15194         size support. On XP, we now create the thread using the flag
15195         STACK_SIZE_PARAM_IS_A_RESERVATION.
15196
15197         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
15198
15199         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
15200         XP and 0 on older Windows versions.
15201
15202         * interfac-vms.ads: Removed, no longer used.
15203
15204 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15205
15206         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
15207         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
15208         a-cohase.adb: All explicit raise statements now include an exception
15209         message.
15210
15211         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
15212         (Update_Element_Preserving_Key): renamed op to just Update_Element.
15213         Explicit raise statements now include an exception message
15214
15215         * a-cihase.ads, a-cohase.ads: Removed comment.
15216
15217         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
15218         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
15219         a-szbzha.adb, a-szfzha.ads: New files.
15220
15221 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15222
15223         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
15224         quicksort.
15225
15226 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15227
15228         * lang.opt: Wvariadic-macros: New option.
15229         Wold-style-definition: Likewise.
15230         Wmissing-format-attribute: Likewise.
15231
15232         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
15233         -Wold-style-definition and -Wmissing-format-attribute.
15234
15235 2006-02-13  Robert Dewar  <dewar@adacore.com>
15236
15237         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
15238
15239         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
15240
15241 2006-02-13  Nicolas Roche  <roche@adacore.com>
15242
15243         * a-envvar.adb, a-envvar.ads: New files.
15244
15245 2006-02-13  Douglas Rupp  <rupp@adacore.com>
15246
15247         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
15248
15249         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
15250
15251 2006-02-13  Pat Rogers  <rogers@adacore.com>
15252
15253         * a-rttiev.adb, a-rttiev.ads: New files.
15254
15255 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
15256
15257         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
15258         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
15259
15260         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
15261
15262 2006-02-13  Robert Dewar  <dewar@adacore.com>
15263
15264         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
15265         sem_case.adb: Minor code reorganization (not Present should be No)
15266
15267 2006-02-13  Geert Bosch  <bosch@adacore.com>
15268             Gary Dismukes  <dismukes@adacore.com>
15269
15270         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
15271         0, since the lower bound of the actual string may be greater than one.
15272
15273         PR ada/20753
15274         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
15275         layout is requested.
15276
15277 2006-02-13  Vincent Celier  <celier@adacore.com>
15278
15279         * back_end.adb (Scan_Compiler_Arguments): Check if
15280         Search_Directory_Present is True and, if it is, add the argument in
15281         the source search directory path.
15282
15283         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
15284         Search_Directory_Present to True.
15285
15286 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
15287
15288         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
15289         volatile, to tell the compiler to preserve this variable at any level
15290         of optimization.
15291         (Gen_Versions_Ada): Temporarily work around codegen bug.
15292
15293 2006-02-13  Vincent Celier  <celier@adacore.com>
15294
15295         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
15296         gcc to link with option -shared-libgcc.
15297         (Gnatlink): Remove duplicate switches -shared-libgcc
15298
15299 2006-02-13  Robert Dewar  <dewar@adacore.com>
15300
15301         * gnatvsn.ads (Current_Year): New constant, used to easily update
15302         copyright on all GNAT tools.
15303
15304         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
15305         copyright notice.
15306
15307 2006-02-13  Robert Dewar  <dewar@adacore.com>
15308
15309         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
15310         after hyphen (small aesthetic change useful for a range of numbers
15311         using ^-^.
15312         Suppress range checks for a couple of assignments which otherwise
15313         cause validity checks with validity checking turned on.
15314
15315         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
15316         Improvement in error message for object.
15317         (Rep_Item_Too_Late): Remove '!' in warning message.
15318
15319 2006-02-13  Robert Dewar  <dewar@adacore.com>
15320             Eric Botcazou  <ebotcazou@adacore.com>
15321
15322         * err_vars.ads: Suppress range checks for a couple of assignments
15323         which otherwise cause validity checks with validity checking turned on.
15324         Update comments.
15325
15326         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
15327         Make message unconditional if it is a warning.
15328         (Error_Msg_NEL): Always output warning messages.
15329         Suppress range checks for a couple of assignments which otherwise
15330         cause validity checks with validity checking turned on.
15331
15332         * errout.ads (Message Insertion Characters): Document that '!' is
15333         implied by '?' in error messages.
15334
15335         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
15336         (Gnat1drv): Use a goto to end of main subprogram instead of
15337         Exit_Program (E_Success) so that finalization can occur normally.
15338
15339 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15340
15341         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
15342         wrapped around.
15343
15344 2006-02-13  Vincent Celier  <celier@adacore.com>
15345
15346         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
15347         Unchecked_Conversion functions.
15348         (Modification_Time): Use direct conversion of OS_Time to Calendar time
15349         when OpenVMS returns False.
15350
15351         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
15352         a-dirval.adb (OpenVMS): New Boolean function
15353
15354 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15355             Thomas Quinot  <quinot@adacore.com>
15356
15357         * checks.adb (Build_Discriminant_Checks): If the expression being
15358         checks is an aggregate retrieve the values of its discriminants to
15359         generate the check, rather than creating a temporary and a reference
15360         to it.
15361         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
15362         (Install_Null_Excluding_Check): Ditto
15363         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
15364         not for the renamed object, so that the actual itype is attached in the
15365         proper context.
15366
15367 2006-02-13  Robert Dewar  <dewar@adacore.com>
15368             Vincent Celier  <celier@adacore.com>
15369
15370         * debug.adb: Eliminate numeric switches for binder/gnatmake
15371
15372         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
15373         switches for the compiler.
15374         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
15375         (Scan_Make_Switches): When failing with an illegal switch, output an
15376         error message with the full switch.
15377         Eliminate numeric switches for binder/gnatmake
15378
15379         * switch.ads, switch.adb (Bad_Switch): New procedure
15380
15381         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
15382         Remove 0-9 as debug flag character possibilities
15383         -d is now controlling the primary stack size when its value is a
15384         positive. Also add checks against invalid values, and support for kb,
15385         mb. Ditto for -D switch.
15386
15387 2006-02-13  Robert Dewar  <dewar@adacore.com>
15388             Serguei Rybin  <rybin@adacore.com>
15389
15390         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
15391         save/restore routines.
15392         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15393         were not always properly handled previously.
15394         Since we are changing the tree format anyway, also get rid of the
15395         junk obsolete Immediate_Errors flag.
15396         (Tree_Read): Change the way of reading Tree_Version_String - now we
15397         read the version string from the tree even if its length is not the
15398         same as the length of the version string computed from Gnatvsn.
15399         (Search_Directory_Present): New Boolean flag for the compiler.
15400         Define Tree_Version_String as a dynamic string.
15401         (Default_Stack_Size): new variable, used to handle switch -d.
15402
15403         * par-prag.adb: 
15404         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
15405         only for main unit.
15406         Add pragma Ada_2005 (synonym for Ada_05)
15407         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15408         were not always properly handled previously.
15409
15410         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
15411         explicit Ada_95 to Ada_2005.
15412
15413 2006-02-13  Javier Miranda  <miranda@adacore.com>
15414             Robert Dewar  <dewar@adacore.com>
15415             Ed Schonberg  <schonberg@adacore.com>
15416
15417         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
15418         against errors in the source program: a private types for which the
15419         corresponding full type declaration is missing and pragma CPP_Virtual
15420         is used.
15421         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
15422         (Is_Known_Null): New flag
15423         (Has_Pragma_Pure): New flag
15424         (No_Return): Present in all entities, set only for procedures
15425         (Is_Limited_Type): A type whose ancestor is an interface is limited if
15426         explicitly declared limited.
15427         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
15428         entities. Only used for component marked Is_Tag. If present it stores
15429         the Offset_To_Top function used to provide this value in tagged types
15430         whose ancestor has discriminants.
15431
15432         * exp_ch2.adb: Update status of new Is_Known_Null flag
15433
15434         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
15435
15436         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
15437         the categorization sense if Is_Pure was set by pragma Pure_Function.
15438
15439 2006-02-13  Quentin Ochem  <ochem@adacore.com>
15440             Olivier Hainque  <hainque@adacore.com>
15441
15442         * bindusg.adb: Updated documentation for -d and -D switches.
15443
15444         * raise.h (__gnat_set_globals): added new parameter for
15445         Default_Stack_Size.
15446
15447         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
15448         (__gnat_handle_vms_condition): Adjust context before raise.
15449         (__gnat_install_handler): Restore the global vector setup for GCC
15450         versions before 3.4, as the frame based circtuitry is not available
15451         in this case.
15452         (__gnat_set_globals): added a parameter default_stack_size
15453         (__gl_default_stack_size): new variable.
15454
15455 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15456
15457         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
15458         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
15459         does not exist in the Ada RM.
15460         (Compatible_Int_Bounds): Determine whether two integer range bounds
15461         are of equal length and have the same start and end values.
15462         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
15463         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
15464         aggregate when it is part of an object declaration.
15465         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
15466         constrains discriminants of its parent, add explicitly the discriminant
15467         constraints of the ancestor by retrieving them from the
15468         stored_constraint of the parent.
15469
15470 2006-02-13  Robert Dewar  <dewar@adacore.com>
15471
15472         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
15473         attribute Mechanism_Code is applied to renamed subprogram, modify
15474         prefix to point to base subprogram.
15475         Max/Min attributes now violate Restriction No_Implicit_Conditionals
15476
15477         * sinfo.ads: Document that Mechanism_Code cannot be applied to
15478         renamed subprograms so that the front-end must replace the prefix
15479         appropriately.
15480
15481 2006-02-13  Javier Miranda  <miranda@adacore.com>
15482             Gary Dismukes  <dismukes@adacore.com>
15483
15484         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
15485         availability of RE_Interface_Tag.
15486         (Build_Initialization_Call): Fix wrong access to the discriminant value.
15487         (Freeze_Record_Type): Do not generate the tables associated with
15488         timed and conditional dispatching calls through synchronized
15489         interfaces if compiling under No_Dispatching_Calls restriction.
15490         When compiling for Ada 2005, for a nonabstract
15491         type with a null extension, call Make_Controlling_Function_Wrappers
15492         and insert the wrapper function declarations and bodies (the latter
15493         being appended as freeze actions).
15494         (Predefined_Primitive_Bodies): Do not generate the bodies of the
15495         predefined primitives associated with timed and conditional
15496         dispatching calls through synchronized interfaces if we are
15497         compiling under No_Dispatching_Calls.
15498         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
15499         service is available before generating a call.
15500         (Make_Controlling_Function_Wrappers): New procedure.
15501         (Expand_N_Full_Type_Declaration): Create a class-wide master for
15502         access-to-limited-interfaces because they can be used to reference
15503         tasks that implement such limited interface.
15504         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
15505         procedure spec and body of the Offset_To_Top function that is generated
15506         when the parent of a type with discriminants has secondary dispatch
15507         tables.
15508         (Init_Secondary_Tags): Handle the case in which the parent of the type
15509         containing secondary dispatch tables has discriminants to generate the
15510         correct arguments to call Set_Offset_To_Top.
15511         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
15512
15513         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
15514         Add Wide_[Wide_]Expanded_Name.
15515         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
15516         the same functionality of Get_Prim_Op_Address but applied to predefined
15517         primitive operations because the pointers to the predefined primitives
15518         are now saved in a separate table.
15519         (Parent_Size): Modified to get access to the separate table of primitive
15520         operations or the parent type.
15521         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
15522         functionality of Set_Prim_Op_Address but applied to predefined primitive
15523         operations.
15524         (Set_Signature): New subprogram used to store the signature of a DT.
15525         (Displace): If the Offset_To_Top value is not static then call the
15526         function generated by the expander to get such value; otherwise use
15527         the value stored in the table of interfaces.
15528         (Offset_To_Top): The type of the actual has been changed to Address to
15529         give the correct support to tagged types with discriminants. In this
15530         case this value is stored just immediately after the tag field.
15531         (Set_Offset_To_Top): Two new formals have been added to indicate if the
15532         offset_to_top value is static and hence pass this value to the run-time
15533         to store it in the table of interfaces, or else if this value is dynamic
15534         and then pass to the run-time the address of a function that is
15535         generated by the expander to provide this value for each object of the
15536         type.
15537
15538         * rtsfind.ads (Default_Prin_Op_Count): Removed.
15539         (Default_Prim_Op_Count): New entity
15540         (Get_Predefined_Prim_Op_Address): New entity
15541         (Set_Predefined_Prim_Op_Address): New entity
15542         (RE_Set_Signature): New entity
15543
15544 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15545             Ed Schonberg  <schonberg@adacore.com>
15546
15547         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
15548         Make_Adjust_Call done for a newly-allocated object.
15549
15550         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
15551         in a subprogram are wrapped in a cleanup block, indicate that the
15552         subprogram contains an inner block with an exception handler.
15553         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
15554         Adjust call is for a newly-allocated object. In that case we must not
15555         assume that the finalization list chain pointers are correct (since they
15556         come from a bit-for-bit copy of the original object's pointers) so if
15557         the attach level would otherwise be zero (no change), we set it to 4
15558         instead to cause the pointers to be reset to null.
15559
15560         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
15561         reset chain pointers to null.
15562
15563 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15564
15565         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
15566         string, and the context requires a loop for the assignment (e.g.
15567         because the left-hand side is packed), generate a unique name for the
15568         temporary that holds the string, to prevent spurious name clashes.
15569
15570 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15571             Javier Miranda  <miranda@adacore.com>
15572             Robert Dewar  <dewar@adacore.com>
15573             Gary Dismukes  <dismukes@adacore.com>
15574
15575         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
15576         return unconstrained arrays.
15577         Update comments.
15578         (Expand_Call):  An indirect call through an access parameter of a
15579         protected operation is not a protected call.
15580         Add circuit to raise CE in Ada 2005 mode following call
15581         to Raise_Exception.
15582         (Register_DT_Entry): Do nothing if
15583         the run-time does not give support to abstract interfaces.
15584         (Freeze_Subprogram): In case of dispatching operations, do not generate
15585         code to register the operation in the dispatch table if the source
15586         is compiled with No_Dispatching_Calls.
15587         (Register_Predefined_DT_Entry): Generate code that calls the new
15588         run-time subprogram Set_Predefined_Prim_Op_Address instead of
15589         Set_Prim_Op_Address.
15590
15591         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
15592         on array assignments if the right-hand side is a function call that has
15593         been inlined. Check is performed on the assignment in the block.
15594         (Process_Bounds): If bounds and range are overloaded, apply preference
15595         rule for root operations to disambiguate, and diagnose true ambiguity.
15596         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
15597         a tag-indeterminate right-hand side even when Expander_Active is True.
15598         Needed to ensure that dispatching calls to T'Input are allowed and
15599         get the tag of the target class-wide object.
15600
15601         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
15602         an inherited primitive operation that already overrides several
15603         abstract interface primitives. For transitivity, the new entity must
15604         also override all the abstract interface primitives covered by the
15605         inherited overriden primitive.
15606         Emit warning if new entity differs from homograph in same scope only in
15607         that one has an access parameter and the other one has a parameter of
15608         a general access type with the same designated type, at the same
15609         position in the signature.
15610         (Make_Inequality_Operator): Use source locations of parameters and
15611         subtype marks from corresponding equality operator when creating the
15612         tree structure for the implicit declaration of "/=". This does not
15613         change anything in behaviour except that the decoration of the
15614         components of the subtree created for "/=" allows ASIS to get the
15615         string images of the corresponding identifiers.
15616         (Analyze_Return_Statement): Remove '!' in warning message.
15617         (Check_Statement_Sequence): Likewise.
15618         (Analyze_Subprogram_Body): For an access parameter whose designated type
15619         is an incomplete type imported through a limited_with clause, use the
15620         type of the corresponding formal in the body.
15621         (Check_Returns): Implicit return in No_Return procedure now raises
15622         Program_Error with a compile time warning, instead of beging illegal.
15623         (Has_Single_Return):  Function returning unconstrained type cannot be
15624         inlined if expression in unique return statement is not an identifier.
15625         (Build_Body_To_Inline): It is possible to inline a function call that
15626         returns an unconstrained type if all return statements in the function
15627         return the same local variable. Subsidiary procedure Has_Single_Return
15628         verifies that the body conforms to this restriction.
15629
15630         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
15631         same type, and  one of them is of an anonymous access type, convert
15632         the other operand to it, so that this is a valid binary operation for
15633         gigi.
15634         (Resolve_Type_Conversion): Handle subtypes of protected types and
15635         task types when accessing to the corresponding record type.
15636         (Resolve_Allocator): Add '\' in 2-line warning message.
15637         Remove '!' in warning message.
15638         (Resolve_Call): Add '\' in 2-line warning message.
15639         (Valid_Conversion): Likewise.
15640         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
15641         resulting type may be an access type with an implicit dereference.
15642         Obtain the proper component from the designated type.
15643         (Make_Call_Into_Operator): Handle properly a call to predefined equality
15644         given by an expanded name with prefix Standard, when the operands are
15645         of an anonymous access type.
15646         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
15647         Explicit_Dereference and Resolve_Selected_Component, to verify that the
15648         prefix of the expression is not of an incomplete type. Allows full
15649         diagnoses of all semantic errors.
15650         (Resolve_Actuals): If the actual is an allocator whose directly
15651         designated type is a class-wide interface we build an anonymous
15652         access type to use it as the type of the allocator. Later, when
15653         the subprogram call is expanded, if the interface has a secondary
15654         dispatch table the expander will add a type conversion to force
15655         the displacement of the pointer.
15656         (Resolve_Call): If a function that returns an unconstrained type is
15657         marked Inlined_Always and inlined, the call will be inlined and does
15658         not require the creation of a transient scope.
15659         (Check_Direct_Boolean_Op): Removed
15660         (Resolve_Comparison_Op): Remove call to above
15661         (Resolve_Equality_Op): Remove call to above
15662         (Resolve_Logical_Op): Inline above, since this is only call.
15663         (Valid_Conversion): Handle properly conversions between arrays of
15664         convertible anonymous access types.
15665
15666         PR ada/25885
15667         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
15668         the literal in an unchecked conversion, because GCC 4.x needs a static
15669         value for a string bound.
15670
15671 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15672             Hristian Kirtchev  <kirtchev@adacore.com>
15673
15674         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
15675         components of the corresponding record, take into account component
15676         definitions that are access definitions.
15677         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
15678         procedure is not considered a dispatching call and will be expanded
15679         properly.
15680
15681 2006-02-13  Javier Miranda  <miranda@adacore.com>
15682
15683         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
15684         controlling argument of the dispatching call is an abstract interface
15685         class-wide type then we use it directly.
15686         Check No_Dispatching_Calls restriction.
15687         (Default_Prim_Op_Position): Remove the code that looks for the last
15688         entity in the list of aliased subprograms. This code was wrong in
15689         case of renamings.
15690         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
15691         when the source is compiled with the No_Dispatching_Calls restriction.
15692         (Init_Predefined_Interface_Primitives): No need to inherit primitives
15693         if we are compiling with restriction No_Dispatching_Calls.
15694         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
15695         subprograms if we are compiling under No_Dispatching_Calls restriction.
15696         (Make_DT): Generate a dispatch table with a single dummy entry if
15697         we are compiling with the No_Dispatching_Calls restriction. In
15698         addition, in this case we don't generate code that calls to the
15699         following run-time subprograms: Set_Type_Kind, Inherit_DT.
15700         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
15701         of this subprogram if compiling with the No_Dispatching_Calls
15702         restriction.
15703         (Expand_Type_Conversion): Instead of using the actual parameter,
15704         the argument passed as parameter to the conversion function was
15705         erroneously referenced by the expander.
15706         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
15707         Set_Predefined_Primitive_Op_Address and Set_Signature.
15708         (Expand_Dispatching_Call): Generate call to
15709         Get_Predefined_Prim_Op_Address for predefined primitives.
15710         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
15711         predefined primitives.
15712         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
15713         primitives we reserve one dummy entry to ensure that the tag does not
15714         point to some memory that is associated with some other object. In
15715         addition, remove all the old code that generated the assignments
15716         associated with the signature of the dispatch table and replace them
15717         by a call to the new subprogram Set_Signature.
15718         (Set_All_DT_Position): Change the algorithm because now we have a
15719         separate dispatch table associated with predefined primitive operations.
15720         (Expand_Interface_Conversion): In case of non-static offset_to_top
15721         add explicit dereference to get access to the object after the call
15722         to displace the pointer to the object.
15723         (Expand_Interface_Thunk): Modify the generation of the actual used
15724         in the calls to the run-time function Offset_To_Top to fulfil its
15725         new interface.
15726         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
15727
15728 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15729
15730         * exp_dist.adb (Copy_Specification): For access parameters, copy
15731         Null_Exclusion flag, which will have been set for stream subprograms
15732         in Ada2005 mode.
15733
15734 2006-02-13  Pascal Obry  <obry@adacore.com>
15735
15736         * expect.c (__gnat_expect_portable_execvp): New implementation. The
15737         previous implementation was using the C runtime spawnve routine but
15738         the corresponding wait was using directly the Win32 API. This was
15739         causing some times a lock when waiting for an event using
15740         WaitForSingleObject in __gnat_waitpid. This new implementation uses
15741         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
15742         API fixes this problem.
15743
15744 2006-02-13  Robert Dewar  <dewar@adacore.com>
15745
15746         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
15747         call.
15748
15749 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15750
15751         * exp_pakd.ads: Fix typos in comments.
15752
15753         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
15754         array reference that is an explicit dereference, mark the converted
15755         (packed) array reference as analyzed to prevent a forthcoming
15756         reanalysis from resetting its type to the original (non-packed) array
15757         type.
15758
15759 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15760             Javier Miranda  <miranda@adacore.com>
15761             Eric Botcazou  <ebotcazou@adacore.com>
15762
15763         * exp_util.ads, exp_util.adb (Find_Prim_Op,
15764         Is_Predefined_Primitive_Operation): When
15765         searching for the predefined equality operator, verify that operands
15766         have the same type.
15767         (Is_Predefined_Dispatching_Operation): Remove the code that looks
15768         for the last entity in the list of aliased subprograms. This code
15769         was wrong in case of renamings.
15770         (Set_Renamed_Subprogram): New procedure
15771         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
15772         Exp_Type constant computed when entering this subprogram.
15773         (Known_Null): New function
15774         (OK_To_Do_Constant_Replacement): New function
15775         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
15776         (Side_Effect_Free): An attribute reference 'Input is not free of
15777         side effect, unlike other attributes that are functions. (from code
15778         reading).
15779         (Remove_Side_Effects): Expressions that involve packed arrays or records
15780         are copied at the point of reference, and therefore must be marked as
15781         renamings of objects.
15782         (Is_Predefined_Dispatching_Operation): Return false if the operation is
15783         not a dispatching operation.
15784
15785         PR ada/18819
15786         (Remove_Side_Effects): Lift enclosing type conversion nodes for
15787         elementary types in all cases.
15788
15789 2006-02-13  Javier Miranda  <miranda@adacore.com>
15790
15791         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
15792         task types when accessing to the corresponding record type.
15793         Remove '!' in warning message.
15794
15795 2006-02-13  Olivier Hainque  <hainque@adacore.com>
15796
15797         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
15798         to avoid useless and space inefficient overalignments on targets where
15799         Max_Alignment is larger than 16.
15800
15801 2006-02-13  Pascal Obry  <obry@adacore.com>
15802
15803         * g-catiio.adb (Sec_Number): New type used to compute the number of
15804         seconds since 1-1-1970.
15805         (Image) [Natural]: The parameter was an Integer, as we can't deal with
15806         negative numbers (years, months...) it is better to have a Natural here.
15807         Code clean-up.
15808         (Image) [Number]: Change parameter from Long_Integer to Number.
15809         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
15810         overflow for dates past year 2038.
15811
15812 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15813
15814         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
15815         Constraint_Error.
15816
15817 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15818
15819         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
15820         native platforms.
15821         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
15822         finalization can occur normally.
15823
15824 2006-02-13  Vincent Celier  <celier@adacore.com>
15825
15826         * gnatcmd.adb (Rules_Switches): New table
15827         (Add_To_Rules_Switches): New procedure
15828         (GNATCmd): For command CHECK, put all options following "-rules" in the
15829         Rules_Switches table. Append these -rules switches after the -cargs
15830         switches.
15831
15832 2006-02-13  Robert Dewar  <dewar@adacore.com>
15833
15834         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
15835         These two cases were generating incorrect output, and if this unit
15836         was built with checks on, generated a discriminant mismatch constraint
15837         error.
15838
15839 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15840             Robert Dewar  <dewar@adacore.com>
15841
15842         * lib-xref.adb (Get_Type_Reference): For a private type whose full
15843         view is an array type, indicate the component type as well, for
15844         navigation purposes.
15845         (Generate_Reference): Don't consider array ref on LHS to be a case
15846         of violating pragma Unreferenced.
15847         Do not give Ada 2005 warning except on real reference.
15848
15849 2006-02-13  Vincent Celier  <celier@adacore.com>
15850
15851         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
15852         main source, add switch -mdebug-main=_ada_ so that the executable can
15853         be debugged by the standard VMS debugger.
15854         (Gnatmake): Set No_Main_Subprogram to True when there is no main
15855         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
15856         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
15857         of the last source, as the binding and linking phases are never
15858         performed.
15859         Set all executable obsolete when rebuilding a library.
15860
15861         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
15862         options.
15863
15864 2006-02-13  Javier Miranda  <miranda@adacore.com>
15865
15866         PR ada/23973
15867         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
15868         code to improve the error message reported when the program has
15869         declarations of abstract interface types and it is not compiled with
15870         the -gnat05 switch.
15871         (P_Access_Definition): Reorganize the code to improve the error
15872         message reported when the new Ada 2005 syntax for anonymous
15873         access types is used and the program is not compiled with the
15874         -gnat05 switch.
15875
15876 2006-02-13  Robert Dewar  <dewar@adacore.com>
15877
15878         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
15879         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
15880         (MODE_IN)
15881
15882 2006-02-13  Javier Miranda  <miranda@adacore.com>
15883
15884         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
15885         against source containing syntax errors.
15886
15887 2006-02-13  Vincent Celier  <celier@adacore.com>
15888
15889         * prj.adb (Reset): Initialize the first element of table Namings with
15890         the standard naming data.
15891
15892 2006-02-13  Vincent Celier  <celier@adacore.com>
15893
15894         * prj.ads (Error_Warning): New enumeration type
15895
15896         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
15897         unknown, use the location of the project to report the error.
15898         (When_No_Sources): New global variable
15899         (Report_No_Ada_Sources): New procedure
15900         (Check): New parameter When_No_Sources. Set value of global variable
15901         When_No_Sources,
15902         (Find_Sources): Call Report_No_Ada_Sources when appropriate
15903         (Get_Sources_From_File): Ditto
15904         (Warn_If_Not_Sources): Better warning messages indicating the unit name
15905         and the file name.
15906
15907         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
15908         Call Prj.Proc.Process with parameter When_No_Sources.
15909
15910         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
15911         Call Recursive_Check with parameter When_No_Sources.
15912         (Recursive_Check): New parameter When_No_Sources. Call itself and
15913         Prj.Nmsc.Check with parameter When_No_Sources.
15914         (Process): New parameter When_No_Sources. Call Check with parameter
15915         When_No_Sources.
15916         (Copy_Package_Declarations): New procedure to copy renamed parameters
15917         and setting the location of the declared attributes to the location
15918         of the renamed package.
15919         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
15920         packages.
15921
15922 2006-02-13  Vincent Celier  <celier@adacore.com>
15923
15924         * prj-makr.adb (Make): Preserve the comments from the original project
15925         file.
15926         When removing nodes (attributes Source_Dirs, Source_Files,
15927         Source_List_File and package Naming), save the comments and attach the
15928         saved comments to the newly created nodes.
15929         Do not add a with clause for the naming package if one already exists.
15930
15931 2006-02-13  Javier Miranda  <miranda@adacore.com>
15932             Gary Dismukes  <dismukes@adacore.com>
15933             Robert Dewar  <dewar@adacore.com>
15934
15935         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
15936
15937         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
15938         aliased entities to look for the overriden abstract interface
15939         subprogram.
15940         (Is_Interface_Subprogram): Complete documentation.
15941         (Check_Dispatching_Operation): Do not generate code to register the
15942         operation in the dispatch table if the source is compiled with
15943         restriction No_Dispatching_Calls.
15944         (Override_Dispatching_Operation): Check for illegal attempt to override
15945         No_Return procedure with procedure that is not No_Return
15946         (Check_Dispatching_Call): Suppress the check for an abstract operation
15947         when the original node of an actual is a tag-indeterminate attribute
15948         call, since the attribute, which must be 'Input, can never be abstract.
15949         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
15950         call to the Input attribute (even when rewritten).
15951         (Propagate_Tag): Augment comment to indicate the possibility of a call
15952         to an Input attribute.
15953
15954         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
15955         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
15956
15957         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
15958         No_Wide_Characters is no longer partition-wide
15959         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
15960         rather than GNAT
15961
15962 2006-02-13  Douglas Rupp  <rupp@adacore.com>
15963
15964         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
15965
15966 2006-02-13  Javier Miranda  <miranda@adacore.com>
15967
15968         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
15969         handles default-initialized components to keep separate the management
15970         of this feature but also avoid the unrequired resolution and
15971         expansion of components that do not have partially initialized
15972         values.
15973         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
15974         (Check_Bounds): Likewise.
15975         (Check_Length): Likewise.
15976
15977 2006-02-13  Javier Miranda  <miranda@adacore.com>
15978             Ed Schonberg  <schonberg@adacore.com>
15979
15980         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
15981         abstract interface type call analyze_and_resolve to expand the type
15982         conversion into the corresponding displacement of the
15983         reference to the base of the object.
15984         (Eval_Attribute, case Width): For systems where IEEE extended precision
15985         is supported, the maximum exponent occupies 4 decimal digits.
15986         (Accessibility_Message): Add '\' in 2-line warning message.
15987         (Resolve_Attribute): Likewise.
15988         (case Attribute_Access): Significantly revise checks
15989         for illegal access-to-subprogram Access attributes to properly enforce
15990         the rules of 3.10.2(32/2).
15991         Diagnose use of current instance with an illegal attribute.
15992
15993         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
15994         to a Node_Id.
15995         (Enclosing_Generic_Unit): New function to return a node's innermost
15996         enclosing generic declaration node.
15997         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
15998         (Type_Access_Level): The accessibility level of anonymous acccess types
15999         associated with discriminants is that of the current instance of the
16000         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
16001         (Compile_Time_Constraint_Error): Handle case of conditional expression.
16002         (Kill_Current_Values_For_Entity): New function
16003         (Enter_Name): Change formal type to Entity_Id
16004
16005 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
16006             Ed Schonberg  <schonberg@adacore.com>
16007             Gary Dismukes  <dismukes@adacore.com>
16008
16009         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
16010         Analyze_Compilation_Unit.
16011         Detect and warn on redundant with clauses detected in a package spec
16012         and/or body when -gnatwr is used.
16013         (Analyze_Context): Analyze config pragmas before other items
16014         (Install_Context_Items): Don't analyze config pragmas here
16015         (Install_Limited_Withed_Unit): Set limited entity of package in
16016         with_clause so that cross-reference information or warning messages on
16017         unused packages can be properly generated
16018         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
16019         has Error_Posted set. Prevent infinite loops in illegal programs.
16020         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
16021         to the point of the error test requiring the current unit to be private.
16022         This ensures that private with clauses are not exempted from the basic
16023         checking for being a descendant of the same library unit parent as a
16024         withed private descendant unit.
16025         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
16026         handle private with clauses properly, as well as to account for cases
16027         where the withed unit is a public descendant of a private ancestor
16028         (in which case the current unit must be a descendant of the private
16029         ancestor's parent). The spec comments were updated accordingly. Also,
16030         the old error message in this subprogram was replaced with error
16031         messages that mirror the errors tested and reported by
16032         Check_Private_Child_Unit.
16033         Parameter and variable names improved for readability.
16034         (Install_Limited_Context_Clauses): Remove test for a withed unit being
16035         private as the precondition for calling
16036         Check_Private_Limited_Withed_Unit since that subprogram has been
16037         revised to test public units as well as private units.
16038
16039 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16040             Robert Dewar  <dewar@adacore.com>
16041             Ed Schonberg  <schonberg@adacore.com>
16042             Javier Miranda  <miranda@adacore.com>
16043
16044         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
16045         that Scope_Stack.First = 1.
16046         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16047         were not always properly handled previously.
16048         (Formal_Entity): Complete rewrite, to handle properly some complex case
16049         with multiple levels of parametrization by formal packages.
16050         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
16051         to the corresponding derived type declaration for proper semantics.
16052
16053         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
16054         (Check_Component): Enforce restriction on components of
16055         unchecked_unions: a component in a variant cannot contain tasks or
16056         controlled types.
16057         (Unchecked_Union): Allow nested variants and multiple discriminants, to
16058         conform to AI-216.
16059         Add pragma Ada_2005 (synonym for Ada_05)
16060         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16061         were not always properly handled previously.
16062         Document that pragma Propagate_Exceptions has no effect
16063         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
16064         (Set_Convention_From_Pragma): Check that if a convention is
16065         specified for a dispatching operation, then it must be
16066         consistent with the existing convention for the operation.
16067         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
16068         longer required to specify an vtable-ptr component in the record. For
16069         compatibility reasons we leave the support for the previous definition.
16070         (Analyze_Pragma, case No_Return): Allow multiple arguments
16071
16072         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
16073         non-overrideen inherited operation with a controlling result as
16074         illegal only its implicit declaration comes from the derived type
16075         declaration of its result's type.
16076         (Check_Possible_Deferred_Completion): Relocate the object definition
16077         node of the subtype indication of a deferred constant completion rather
16078         than directly analyzing it. The analysis of the generated subtype will
16079         correctly decorate the GNAT tree.
16080         (Record_Type_Declaration): Check whether this is a declaration for a
16081         limited derived record before analyzing components.
16082         (Analyze_Component_Declaration): Diagnose record types  not explicitly
16083         declared limited when a component has a limited type.
16084         (Build_Derived_Record_Type): Code reorganization to check if some of
16085         the inherited subprograms of a tagged type cover interface primitives.
16086         This check was missing in case of a full-type associated with a private
16087         type declaration.
16088         (Constant_Redeclaration): Check that the subtypes of the partial and the
16089         full view of a constrained deferred constant statically match.
16090         (Mentions_T): A reference to the current type in an anonymous access
16091         component declaration  must be an entity name.
16092         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
16093         class_wide type to refer to full type, not to the incomplete one.
16094         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
16095         available. Required to give support to the certified run-time.
16096         (Analyze_Component_Declaration): In case of anonymous access components
16097         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
16098         (Process_Discriminants): For an access discriminant, use the
16099         discriminant specification as the associated_node_for_itype, to
16100         simplify accessibility checks.
16101
16102 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16103             Javier Miranda  <miranda@adacore.com>
16104
16105         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
16106         abstract interpretations on an operator, remove interpretations that
16107         yield Address or a type derived from it, if one of the operands is an
16108         integer literal.
16109         (Try_Object_Operation.Try_Primitive_Operation,
16110         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
16111         location when creating the new reference to a primitive or class-wide
16112         operation as a part of rewriting a subprogram call.
16113         (Try_Primitive_Operations): If context requires a function, collect all
16114         interpretations after the first match, because there may be primitive
16115         operations of the same type with the same profile and different return
16116         types. From code reading.
16117         (Try_Primitive_Operation): Use the node kind to choose the proper
16118         operation when a function and a procedure have the same parameter
16119         profile.
16120         (Complete_Object_Operation): If formal is an access parameter and prefix
16121         is an object, rewrite as an Access reference, to match signature of
16122         primitive operation.
16123         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
16124         by an expanded name with prefix Standard, when the operands are of an
16125         anonymous access type.
16126         (Remove_Abstract_Operations): If the operation is abstract because it is
16127         inherited by a user-defined type derived from Address, remove it as
16128         well from the set of candidate interpretations of an overloaded node.
16129         (Analyze_Membership_Op): Membership test not applicable to cpp-class
16130         types.
16131
16132 2006-02-13  Bob Duff  <duff@adacore.com>
16133
16134         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
16135         redundant use clauses.
16136         In particular, if the scope of two use clauses overlaps, but one is not
16137         entirely included in the other, we should not warn.  This can happen
16138         with nested packages.
16139         (Analyze_Subprogram_Renaming): Protect the compiler against previously
16140         reported errors. The bug was reported when the compiler was built
16141         with assertions enabled.
16142         (Find_Type): If the node is a 'Class reference and the prefix is a
16143         synchronized type without a corresponding record, return the type
16144         itself.
16145
16146 2006-02-13  Javier Miranda  <miranda@adacore.com>
16147
16148         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
16149         if this is the full-declaration associated with a private declaration
16150         that implement interfaces, then the private type declaration must be
16151         limited.
16152         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
16153         as aliased. The use of the 'access attribute is not available for such
16154         object (for this purpose the object should be explicitly marked as
16155         aliased, but being an anonymous type this is not possible).
16156
16157 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16158             Robert Dewar  <dewar@adacore.com>
16159
16160         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
16161         compilation unit is an elaboration scope.
16162         (Add_Task_Proc): Add '\' in 2-line warning message.
16163         (Activate_All_Desirable): Deal with case of unit with'ed by parent
16164
16165 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16166             Javier Miranda  <miranda@adacore.com>
16167
16168         * sem_type.adb (Write_Overloads): Improve display of candidate
16169         interpretations.
16170         (Add_One_Interp): Do not add to the list of interpretations aliased
16171         entities corresponding with an abstract interface type that is an
16172         immediate ancestor of a tagged type; otherwise we have a dummy
16173         conflict between this entity and the aliased entity.
16174         (Disambiguate): The predefined equality on universal_access is not
16175         usable if there is a user-defined equality with the proper signature,
16176         declared in the same declarative part as the designated type.
16177         (Find_Unique_Type): The universal_access equality operator defined under
16178         AI-230 does not cover pool specific access types.
16179         (Covers): If one of the types is a generic actual subtype, check whether
16180         it matches the partial view of the other type.
16181
16182 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16183
16184         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
16185         line. This is necessary to allow In_Extended_Main_Unit to provide
16186         correct results for itypes while writing out expanded source.
16187         (Close_File): No need to update the source_index_table here since it's
16188         now done for each line.
16189
16190 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16191             Robert Dewar  <dewar@adacore.com>
16192
16193         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
16194         preserve the source unit where the itype is declared, and prevent a
16195         backend abort.
16196         (Note_Implicit_Run_Time_Call): New procedure
16197         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
16198         E_Subprogram_Type)
16199
16200         * sprint.ads: Document use of $ for implicit run time routine call
16201
16202 2006-02-13  Quentin Ochem  <ochem@adacore.com>
16203
16204         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
16205         task name.
16206
16207 2006-02-13  Bob Duff  <duff@adacore.com>
16208
16209         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
16210         Scan_Unsigned, so we do not scan leading blanks and sign twice.
16211         Integer'Value("- 5") and Integer'Value("-+5") now correctly
16212         raise Constraint_Error.
16213
16214         * s-vallli.adb (Scan_Long_Long_Integer): Call
16215         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
16216         do not scan leading blanks and sign twice.
16217         Integer'Value("- 5") and Integer'Value("-+5") now correctly
16218         raise Constraint_Error.
16219
16220         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
16221         Scan_Long_Long_Unsigned): Split out most of the processing from
16222         Scan_Long_Long_Unsigned out into
16223         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
16224         This prevents scanning leading blanks and sign twice.
16225         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
16226         See RM-3.5(44).
16227
16228         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
16229         out most of the processing from Scan_Unsigned out into
16230         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
16231         This prevents scanning leading blanks and sign twice.
16232
16233         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
16234         use with Modular'Value attribute.
16235         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
16236         attribute.
16237
16238 2006-02-13  Robert Dewar  <dewar@adacore.com>
16239
16240         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
16241
16242 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
16243
16244         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
16245         (PPC VxWorks): Likewise.
16246         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
16247         (forced_callee): Make non-inlinable and non-pure.
16248         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
16249
16250 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16251             Ben Brosgol  <brosgol@adacore.com>
16252             Robert Dewar  <dewar@adacore.com>
16253
16254         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
16255         support.
16256         Document that gnatbind -M option is for cross environments only.
16257         Added description of using gnatmem to trace gnat rtl allocs and deallocs
16258         Add note on use of $ to label implicit run time calls
16259         Add documentation for -gnatyI (check mode IN)
16260         Updated chapter on compatibility with HP Ada
16261         VMS-oriented edits.
16262         Ran spell and corrected errors
16263         Add documentation for gnatbind -d and rework documentation of -D
16264         at the same time.
16265         Add subprogram/data elimination section.
16266         Minor editing of annex A.
16267         Add section for gnatcheck.
16268         Add documentation for restriction No_Dispatching_Calls
16269         Add documentation for pragma Ada_2005
16270         Remove mention of obsolete pragma Propagate_Exceptions
16271         Document that pragma Unreferenced can appear after DO in ACCEPT
16272         Clarify Pure_Function for library level units
16273         Mention Max/Min in connection with No_Implicit_Conditionals
16274         No_Wide_Characters restriction is no longer partition-wide
16275         Add a nice example for Universal_Literal_String attribute
16276         Document that pragma No_Return can take multiple arguments
16277
16278         * ug_words: Added entry for gnatcheck
16279
16280         * g-ctrl_c.ads (Install_Handler): Enhance comments
16281
16282         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
16283
16284         * g-trasym.ads: Add documentation on how to do off line symbolic
16285         traceback computation.
16286
16287         * s-fatgen.adb: Add comments for Unaligned_Valid
16288
16289         * stand.ads: Fix typo in comment
16290
16291 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16292
16293         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
16294
16295 2006-02-06  Roger Sayle  <roger@eyesopen.com>
16296
16297         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
16298
16299 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16300
16301         PR target/25926
16302         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
16303         implementation that calls __main.
16304
16305 2006-01-25  Peter O'Gorman  <peter@pogma.com>
16306
16307         PR bootstrap/25859
16308         * Makefile.in (GCC_LINK): Remove quotes.
16309         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
16310         or $(GCC_LINK).
16311
16312         (powerpc-darwin): Pass -shared-libgcc when building shared library.
16313
16314 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16315
16316         PR ada/24533
16317         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
16318
16319 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16320
16321         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
16322
16323 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16324
16325         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
16326         needed.
16327
16328 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16329
16330         * Make-lang.in: Update dependencies
16331
16332 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16333
16334         * Make-lang.in: Add rule for ada/exp_sel.o
16335
16336 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16337
16338         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
16339
16340 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
16341
16342         * gnatvsn.ads (Library_Version): Bump to version 4.2
16343         (ASIS_Version_Number): Bumped.
16344
16345 2005-12-09  Doug Rupp  <rupp@adacore.com>
16346
16347         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
16348         Ada bind file prefix on VMS from b$ to b__.
16349         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
16350         __init.
16351
16352         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
16353         Targparm.OpenVMS_On_Target.
16354         (Object_Suffix): Initialize with target object suffix.
16355         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
16356
16357         * butil.adb: Change some Hostparm.OpenVMS checks to
16358         Targparm.OpenVMS_On_Target.
16359
16360         * clean.adb: Change some Hostparm.OpenVMS checks to
16361         Targparm.OpenVMS_On_Target.
16362         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
16363         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
16364         Ada bind file prefix on VMS from b$ to b__.
16365
16366         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
16367         --GCC so that Get_Target_Parameters can find system.ads.
16368         (Gnatlink): Call Get_Target_Parameters in mainline.
16369         Initialize standard packages for Targparm.
16370         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16371         (Process_Args): Also Check for object files with target object
16372         extension.
16373         (Make_Binder_File_Names): Create with target object extension.
16374         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
16375         to b__.
16376
16377         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
16378         Targparm.OpenVMS_On_Target.
16379         ({declaration},Build_Library,Check_Library): Change Ada bind file
16380         prefix on VMS from b$ to b__.
16381
16382         * osint-b.adb: Change some Hostparm.OpenVMS checks to
16383         Targparm.OpenVMS_On_Target.
16384         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
16385         b__.
16386
16387         * targext.c: New file.
16388
16389         * Makefile.in: add support for vxworks653 builds
16390         (../../vxaddr2line): gnatlink with targext.o.
16391         (TOOLS_LIBS): Move targext.o to precede libgnat.
16392         (init.o, initialize.o): Minor clean up in dependencies.
16393         (GNATLINK_OBJS): Add targparm.o, snames.o
16394         Add rules fo building targext.o and linking it explicitly with all
16395         tools.
16396         Also add targext.o to gnatlib.
16397
16398         * Make-lang.in: Add rules for building targext.o and linking it in
16399         with gnat1 and gnatbind.
16400         Add entry for exp_sel.o.
16401
16402         * osint.adb Change some Hostparm.OpenVMS checks to
16403         Targparm.OpenVMS_On_Target.
16404         (Object_File_Name): Use target object suffix.
16405
16406         * osint.ads (Object_Suffix): Remove, no longer used.
16407         (Target_Object_Suffix): Initialize with target object suffix.
16408
16409         * rident.ads: Add special exception to license.
16410
16411         * targparm.adb (Get_Target_Parameters): Set the value of
16412         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
16413         value.
16414         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
16415         
16416         * targparm.ads: Add special exception to license.
16417
16418         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
16419         function.
16420         (Copy_File): Make sure from file is closed if error on to file
16421         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
16422
16423         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
16424         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
16425
16426         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
16427         target object suffix.
16428
16429 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
16430             Quentin Ochem  <ochem@adacore.com>
16431             Florian Villoing  <villoing@adacore.com>
16432
16433         * a-taster.ads, a-taster.adb: New files.
16434
16435         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
16436         link to the version that does nothing. This way the task termination
16437         routine is not executed twice for the environment task when finishing
16438         because of an unhandled exception.
16439
16440         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
16441         handler because of an unhandled exception.
16442
16443         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
16444         System.Tasking.Utilities instead of that in System.Tasking.Stages.
16445
16446         * s-finimp.adb (initialization code): Modify the soft link for the
16447         finalization of the global list instead of Adafinal.
16448
16449         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
16450         non-tasking version of the soft link for task termination. We do
16451         nothing since if we are using the non-tasking version it
16452         means that the task termination functionality is not used.
16453         (Null_Finalize_Global_List): Add this null version for the procedure
16454         in charge of finalizing the global list for controlled objects.
16455         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
16456         instead for handling run-time termination in a more flexible way.
16457         (Adafinal_NT): This new procedure will take care of finalizing the
16458         global list for controlled objects if needed, but no tasking
16459         finalization.
16460
16461         * s-tarest.adb (Task_Lock): Do not try to lock again the
16462         Global_Task_Lock if we already own it. Otherwise, we get blocked in
16463         some run-time operations.
16464         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
16465         until all nested locks have been released.
16466         (Task_Wrapper): Call the fall-back task termination handler. It
16467         applies to all tasks but the environment task.
16468         (Finalize_Global_Tasks): Add the call for the task termination
16469         procedure for the environment task.
16470         (Task_Wrapper): suppress warnings around declaration of
16471         Secondary_Stack_Address.
16472
16473         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
16474         moved to the Common_ATCB record.
16475         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
16476         Common_ATCB record.
16477         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
16478         Common_ATCB record.
16479
16480         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
16481         Fall_Back_Handler, and Specific_Handler.
16482
16483         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
16484         defined in Ada.Task_Termination, to avoid circular dependencies.
16485         (Termination_Handler): Redefine this type here, alredy defined in
16486         Ada.Task_Termination, for avoiding circular dependencies.
16487         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
16488         for storing task termination handlers. In addition,
16489         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
16490         Common_ATCB because it is used by both the regular and the restricted
16491         run times.
16492         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
16493         Common_ATCB because it is used by both the regular and the restricted
16494         run times.
16495         (Common_ATCB): Added a dynamic task analyzer field.
16496
16497         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
16498         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
16499         (Task_Wrapper): Call the task termination handler. It applies to all
16500         tasks but the environment task.
16501         (Finalize_Global_Tasks): Call the task termination procedure for the
16502         environment task. The call to Finalize_Global_List is now performed
16503         using the soft links mechanism.
16504         (Task_Wrapper): added dynamic stack analysis.
16505
16506         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
16507         potentially blocking operations has been moved from
16508         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
16509         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
16510         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
16511         this run-time check.
16512
16513         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
16514         of task termination procedure.
16515         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
16516         link for the task termination procedure.
16517
16518         * bindusg.adb: (Bindusg): Added documentation for -u option.
16519
16520         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
16521         (Get_Main_C): Add handling of dynamic stack analysis.
16522         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
16523
16524         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
16525         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
16526         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
16527
16528         * opt.ads: Added flags used by dynamic stack measurement.
16529         (Max_Line_Length): Remove (not used anymore)
16530
16531         * s-io.ads, s-io.adb (Standard_Error): new subprogram
16532         (Standart_Output): new subprogram
16533         (Set_Output): new subprogram
16534         (Put): now uses the value of Current_Out to know if the output has to be
16535         send to stderr or stdout.
16536         
16537         * s-stausa.ads: Complete implementation.
16538
16539         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
16540         
16541         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
16542         list of Ada 05 files.
16543         (GNAT Library Units): Add AltiVec files.
16544
16545         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
16546         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
16547         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
16548
16549 2005-12-09  Nicolas Setton  <setton@adacore.com>
16550
16551         * adaint.c (__gnat_locate_regular_file): Return immediately if
16552         file_name is empty.
16553
16554 2005-12-09  Javier Miranda  <miranda@adacore.com>
16555             Hristian Kirtchev  <kirtchev@adacore.com>
16556
16557         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
16558         to the specification because the frontend generates code that uses this
16559         subprogram.
16560         (Set_Interface_Table): Add missing assertion.
16561         Update documentation describing the run-time structure.
16562         (Displace): New subprogram that displaces the pointer to the object
16563         to reference one of its secondary dispatch tables.
16564         (IW_Membership): Modified to use the new table of interfaces.
16565         (Inherit_TSD): Modified to use the new table of interfaces.
16566         (Register_Interface_Tag): Use the additional formal to fill the
16567         contents of the new table of interfaces.
16568         (Set_Interface_Table): New subprogram that stores in the TSD the
16569         pointer to the table of interfaces.
16570         (Set_Offset_To_Top): Use the additional formal to save copy of
16571         the offset value in the table of interfaces.
16572         Update structure of GNAT Primary and Secondary dispatch table diagram.
16573         Add comment section on GNAT dispatch table prologue.
16574         (Offset_To_Signature): Update the constant value of the Signature field.
16575         (Dispatch_Table): Update comment on hidden fields in the prologue.
16576         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
16577         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
16578         the type of formal parameter T to Tag, introduce additional assertions.
16579         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
16580         conversion.
16581         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
16582
16583         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
16584         in all the calls to Expand_Interface_Thunk. Instead of referencing the
16585         record component containing the tag of the secondary dispatch table we
16586         have to use the Offset_To_Top run-time function to get this information;
16587         otherwise if the pointer to the base of the object has been displace
16588         we get a wrong value if we use the 'position attribute.
16589
16590         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
16591         all the calls to Expand_Interface_Thunk.
16592         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
16593         interfaces; hence the call to Set_Interface_Table was clearly wrong.
16594         (Collect_All_Interfaces): Modify the internal subprogram Collect to
16595         ensure that the interfaces implemented by the ancestors are placed
16596         at the header of the generated list.
16597         (Expand_Interface_Conversion): Handle the case in which the displacement
16598         associated with the interface conversion is not statically known. In
16599         this case we generate a call to the new run-time subprogram Displace.
16600         (Make_DT): Generate and fill the new table of interfaces.
16601         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
16602         Get_Tagged_Kind and Set_Tagged_Kind.
16603         (Tagged_Kind): New function that determines the tagged kind of a type
16604         with respect to limitedness and concurrency and returns a reference to
16605         RE_Tagged_Kind.
16606         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
16607         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
16608         primary dispatch table for a type.
16609         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
16610         secondary dispatch table respectively of a tagged type.
16611
16612         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
16613         (Expand_Interface_Conversion): New subprogram to indicate if the
16614         displacement of the type conversion is statically known.
16615         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
16616
16617         * rtsfind.ads (RE_Offset_To_Top): New entity
16618         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
16619         accessible to users.
16620         (Re_Displace): New entity
16621         (RE_Interface_Data): New entity
16622         (RE_Set_Interface_Data): New_Entity
16623         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
16624         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
16625         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
16626         RE_TK_Tagged, RE_TK_Task.
16627
16628         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
16629         Init_Secondary_Tags_Internal to allow its use with interface types and
16630         also to generate the code for the new additional actual required
16631         by Set_Offset_To_Top.
16632         (Build_Init_Statements): In case of components associated with abstract
16633         interface types there is no need to generate a call to its IP.
16634         (Freeze_Record_Type): Generate Select Specific Data tables only for
16635         concurrent types.
16636         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
16637         the bodies and specifications of the predefined primitive operations
16638         dealing with dispatching selects and abort, 'Callable, 'Terminated only
16639         for concurrent types.
16640
16641         * exp_sel.ads, exp_sel.adb: New files.
16642
16643         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
16644         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
16645         properly protected objects and attach handler in the case of the
16646         restricted profile.
16647         Move embeded package Select_Expansion_Utilities into a separate external
16648         package.
16649         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
16650         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
16651         (Build_K, Build_S_Assignment): New subprograms, part of the select
16652         expansion utilities.
16653         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
16654         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
16655         where the trigger is a dispatching procedure of a limited tagged type.
16656
16657 2005-12-09  Olivier Hainque  <hainque@adacore.com>
16658
16659         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
16660         pointer initialization values. Make a SAVE_EXPR instead. Add comments
16661         about the use and expansion of SAVE_EXPRs in the various possible
16662         renaming handling cases.
16663         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
16664         abusing DECL_FCONTEXT.
16665
16666 2005-12-09  Matthew Heaney  <heaney@adacore.com>
16667
16668         * a-convec.adb (Merge): Added assertions to check whether vector params
16669         are sorted.
16670
16671         * a-coinve.adb (Merge): Added assertions to check whether vector params
16672         are sorted.
16673
16674         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
16675         draft.
16676         (Cursor'Read): raises PE
16677
16678         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
16679         to its default value.
16680
16681         * a-cihama.adb: Manually check whether cursor's key and elem are
16682         non-null
16683
16684         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
16685         (Merge): Assert that target and source lists are in order
16686         (Swap): Declare non-const temporaries, to pass to Splice
16687
16688         * a-cdlili.ads: (Splice): Changed param name and param mode
16689
16690         * a-cdlili.adb: (Splice): Changed param name and param mode
16691         (Merge): Assert that target and source lists are in order
16692         (Swap): Declare non-const temporaries, to pass to Splice
16693
16694         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
16695         (Write): declare Stream param as not null
16696
16697         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
16698         an exception message.
16699
16700 2005-12-09  Thomas Quinot  <quinot@adacore.com>
16701             Robert Dewar  <dewar@adacore.com>
16702
16703         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
16704         which is the absolute maximum length we can support.
16705
16706         * frontend.adb: For the processing of configuration pragma files,
16707         remove references to Opt.Max_Line_Length, which is not checked anymore.
16708
16709         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
16710         length.
16711
16712         * scn.adb, scng.adb: 
16713         Always check line length against the absolute supported maximum,
16714         Hostparm.Max_Line_Length.
16715
16716         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
16717         value for the maximum line length is Max_Line_Length (not
16718         Column_Number'Last).
16719         Minor error msg update
16720         (Set_Style_Check_Options): New interface returning error msg
16721         Minor code reorganization (processing for 'M' was out of alpha order)
16722
16723         * switch-c.adb: New interface for Set_Style_Check_Options
16724
16725         * stylesw.ads (Set_Style_Check_Options): New interface returning error
16726         msg.
16727
16728 2005-12-09  Javier Miranda  <miranda@adacore.com>
16729
16730         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
16731         with IP subprogram were only supported if there were limited types.
16732
16733         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
16734         records with IP subprogram were only supported if there were limited
16735         types.
16736
16737 2005-12-09  Olivier Hainque  <hainque@adacore.com>
16738             Eric Botcazou  <ebotcazou@adacore.com>
16739
16740         * trans.c (tree_transform, emit_check): Adjust calls to
16741         build_call_raise, passing the now expected GNAT_NODE argument.
16742
16743         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
16744         source line information than what the current global locus indicates
16745         when appropriate.
16746
16747         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
16748         field has overflowed.
16749         (build_call_raise): Add a GNAT_NODE argument to convey better source
16750         line information than what the current global locus indicates when
16751         appropriate.
16752         (build_component_ref): Adjust call to build_call_raise.
16753
16754 2005-12-09  Pascal Obry  <obry@adacore.com>
16755
16756         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
16757         the iterator is quitting iteration on parent directory.
16758
16759 2005-12-09  Javier Miranda  <miranda@adacore.com>
16760
16761         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
16762         and the assignment to a class-wide object, before the assignment we
16763         generate a run-time check to ensure that the tag of the Target is
16764         covered by the tag of the source.
16765
16766 2005-12-09  Robert Dewar  <dewar@adacore.com>
16767
16768         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
16769         parameter in call to Image_Wide_Character.
16770
16771         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
16772         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
16773         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
16774         annoying FFFE/FFFF inconsistency.
16775
16776 2005-12-09  Robert Dewar  <dewar@adacore.com>
16777             Javier Miranda  <miranda@adacore.com>
16778             Ed Schonberg  <schonberg@adacore.com>
16779
16780         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
16781         of type conversion.
16782         (Find_Interface): New subprogram that given a tagged type and one of its
16783         component associated with the secondary table of an abstract interface
16784         type, return the entity associated with such abstract interface type.
16785         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
16786         base type to create anonymous subtype, because entity may be a locally
16787         declared subtype or generic actual.
16788         (Find_Interface): New subprogram that given a tagged type and one of its
16789         component associated with the secondary table of an abstract interface
16790         type, return the entity associated with such abstract interface type.
16791
16792         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
16793         conversion cannot be handled at compile time. In this case we pass this
16794         information to the expander to generate the appropriate code.
16795
16796 2005-12-09  Robert Dewar  <dewar@adacore.com>
16797             Ed Schonberg  <schonberg@adacore.com>
16798             Gary Dismukes  <dismukes@adacore.com>
16799             Javier Miranda  <miranda@adacore.com>
16800             Hristian Kirtchev  <kirtchev@adacore.com>
16801
16802         * einfo.adb (Itype_Printed): New flag
16803         (Is_Limited_Type): Derived types do not inherit limitedness from
16804         interface progenitors.
16805         (Is_Return_By_Reference_Type): Predicate does not apply to limited
16806         interfaces.
16807
16808         * einfo.ads (Itype_Printed): New flag
16809         Move Is_Wrapper_Package to proper section
16810         Add missing Inline for Is_Volatile
16811
16812         * output.ads, output.adb (Write_Erase_Char): New procedure
16813         (Save/Restore_Output_Buffer): New procedures
16814         (Save/Restore_Output_Buffer): New procedures
16815
16816         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
16817         Add missing support for anonymous access type
16818         (Write_Id): Insert calls to Write_Itype
16819         (Write_Itype): New procedure to output itypes
16820
16821         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
16822         use of "limited" in declaration.
16823
16824         * sinfo.ads, sinfo.adb: 
16825         Formal derived types can carry an explicit "limited" indication.
16826
16827         * sem_ch3.adb: Add with and use of Targparm.
16828         (Create_Component): If Frontend_Layout_On_Target is True and the
16829         copied component does not have a known static Esize, then reset
16830         the size and positional fields of the new component.
16831         (Analyze_Component_Declaration): A limited component is
16832         legal within a protected type that implements an interface.
16833         (Collect_Interfaces): Do not add to the list the interfaces that
16834         are implemented by the ancestors.
16835         (Derived_Type_Declaration): If the parent of the full-view is an
16836         interface perform a transformation of the tree to ensure that it has
16837         the same parent than the partial-view. This simplifies the job of the
16838         expander in order to generate the correct object layout, and it is
16839         needed because the list of interfaces of the full-view can be given in
16840         any order.
16841         (Process_Full_View): The parent of the full-view does not need to be
16842         a descendant of the parent of the partial view if both parents are
16843         interfaces.
16844         (Analyze_Private_Extension_Declaration): If declaration has an explicit
16845         "limited" the parent must be a limited type.
16846         (Build_Derived_Record_Type): A derived type that is explicitly limited
16847         must have limited ancestor and progenitors.
16848         (Build_Derived_Type): Ditto.
16849         (Process_Full_View): Verify that explicit uses of "limited" in partial
16850         and full declarations are consistent.
16851         (Find_Ancestor_Interface): Remove function.
16852         (Collect_Implemented_Interfaces): New procedure used to gather all
16853         implemented interfaces by a type.
16854         (Contain_Interface): New function used to check whether an interface is
16855         present in a list.
16856         (Find_Hidden_Interface): New function used to determine whether two
16857         lists of interfaces constitute a set equality. If not, the first
16858         differing interface is returned.
16859         (Process_Full_View): Improve the check for the "no hidden interface"
16860         rule as defined by AI-396.
16861
16862 2005-12-09  Robert Dewar  <dewar@adacore.com>
16863
16864         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
16865         types, not on record subtypes.
16866         (Freeze_Entity): Code cleanup. Add barrier to the loop
16867         that generates the references for primitive operations. This allows to
16868         remove an unnecessary exception handler.
16869         Code reformatting and comment clean ups.
16870
16871 2005-12-09  Vincent Celier  <celier@adacore.com>
16872
16873         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
16874         If GNAT CHECK is called with a project file, but with no
16875         source on the command line, call gnatcheck with all the compilable
16876         sources of the project.
16877         Take into account the new command Check, for gnatcheck. Treat as for
16878         other ASIS tools: take into account project, specific package Check and
16879         Compiler switches.
16880         For ASIS tools, add the switches in package Compiler for
16881         the invocation of the compiler.
16882
16883         * prj-attr.adb: Add package Check and its attributes
16884
16885         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
16886
16887         * vms_conv.adb (Initialize): Change Params of command Check to
16888         unlimited files.
16889         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16890         Add data for new command Check
16891
16892         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
16893         ELIM.
16894         Add qualifiers for Check command options
16895         (Command_Type): New command Check
16896
16897 2005-12-09  Thomas Quinot  <quinot@adacore.com>
16898
16899         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
16900         command line switch overruns the output buffer.
16901
16902 2005-12-09  Robert Dewar  <dewar@adacore.com>
16903
16904         * sem_prag.adb: Processing for new pragma Complete_Representation
16905         (Analyze_Pragma, case Debug): Implement two argument form.
16906
16907         * par-prag.adb: Entry for new pragma Complete_Representation
16908         (Prag, case Debug): Recognize two argument form of pragma Debug
16909         New interface for Set_Style_Check_Options.
16910
16911         * sem_ch13.adb: Implement new pragma Complete_Representation.
16912
16913         * snames.adb, snames.ads, snames.h: Entry for new pragma
16914         Complete_Representation.
16915
16916 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
16917
16918         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
16919         available user-specified stream attributes on limited parameters to
16920         also test the type directly rather than only its underlying type (for
16921         Ada 95) and, in the case of Ada 2005, to check that the user-specified
16922         attributes are visible at the point of the subprogram declaration.
16923         For Ada 2005, the error message is modified to indicate that the
16924         type's stream attributes must be visible (again, only for -gnat05).
16925
16926 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
16927
16928         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
16929         anonymous access types.
16930
16931         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
16932         matching of anonymous access types and anonymous access to subprogram
16933         types. 'R'M 4.9.1 (2/2).
16934
16935 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
16936
16937         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
16938         rule prematurely when operands are universal, remaining ambiguities
16939         will be removed during resolution.
16940         Code cleanup.
16941
16942         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
16943         that are Ada 2005 functions.
16944         (Has_Abstract_Interpretation): Subsidiary to
16945         Remove_Conversions, to remove ambiguities caused by abstract operations
16946         on numeric types when operands are universal.
16947
16948 2005-12-09  Robert Dewar  <dewar@adacore.com>
16949
16950         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
16951         for case where spec is categorized.
16952
16953 2005-12-09  Javier Miranda  <miranda@adacore.com>
16954
16955         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
16956         types use the corresponding record type. This was not needed before
16957         the implementation of Ada 2005 synchronized types because
16958         concurrent types were never tagged types in Ada 95.
16959
16960 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
16961
16962         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
16963         first subtype of the type of the expression to verify that it is a
16964         legal Time type.
16965
16966 2005-12-09  Robert Dewar  <dewar@adacore.com>
16967
16968         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
16969         decoded names.
16970
16971 2005-12-09  Quentin Ochem  <ochem@adacore.com>
16972             Robert Dewar  <dewar@adacore.com>
16973             Ed Falis  <falis@adacore.com>
16974             Florian Villoing  <villoing@adacore.com>
16975             Thomas Quinot  <quinot@adacore.com>
16976             Arnaud Charlet  <charlet@adacore.com>
16977
16978         * gnat_ugn.texi: Created section "Stack Related Tools"
16979         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
16980         "Stack Related Tools"
16981         Added subsection "Static Stack Usage Analysis"
16982         Added subsection "Dynamic Stack Usage Analysis"
16983         Include documentation of itypes in sprint listing (-gnatG)
16984         Documented gnatbind -D switch (default sec stack size for fixed sec
16985         stacks).
16986         Added Interrupt_State and Persistent_BSS to list of configuration
16987         pragmas.
16988         Add missing doc for maximum value of nnn in -gnatyMnnn
16989
16990         * gnat_rm.texi: Document the AltiVec binding.
16991         Add documentation for pragma Complete_Representation
16992         Shortened an overly long line (> 79 chars)
16993         Clarify documentation of unchecked conversion in implementation
16994         defined cases.
16995         Document two argument form of pragma Debug
16996
16997         * types.ads (Column_Number): Update documentation.
16998
16999         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
17000         library level Finalize_Storage_Only objects (these are not attached to
17001         any finalization list).
17002
17003         * system-mingw.ads: (Underlying_Priorities): Update comment.
17004
17005 2005-12-09  Robert Dewar  <dewar@adacore.com>
17006
17007         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
17008         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
17009         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
17010         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
17011         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
17012         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
17013         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
17014         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
17015         reformatting.
17016
17017 2005-12-09  Robert Dewar  <dewar@adacore.com>
17018
17019         * s-vaflop-vms-alpha.adb: (Ne_F): New function
17020         (Ne_G): New function
17021
17022         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
17023         for tag assignment.
17024         (Rewrite_Comparison): Handle case where operation is not a comparison
17025         and ignore, and also handle type conversion case.
17026
17027 2005-12-09  Thomas Quinot  <quinot@adacore.com>
17028
17029         * exp_aggr.ads: Fix typo in comment.
17030         ???-mark Convert_Aggr_In_Assignment as needing documentation.
17031
17032 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
17033
17034         * layout.adb: Replace various uses of byte by storage unit throughout.
17035         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
17036         static size, convert to storage units before returning, to conform to
17037         spec.
17038
17039 2005-12-09  Matthew Gingell  <gingell@adacore.com>
17040
17041         * g-exctra.ads: Fix typo in comment.
17042
17043 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17044
17045         * utils.c: Minor reformatting.
17046
17047 2005-12-09  Robert Dewar  <dewar@adacore.com>
17048
17049         * g-soccon.ads: 
17050         Further comment fixes to make the status of the default file clear
17051
17052         * s-bitops.adb: Clarify comment for Bits_Array
17053
17054 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17055
17056         * Make-lang.in (ada.install-normal): Remove.
17057
17058 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17059
17060         * Make-lang.in: Remove all dependencies on s-gtype.
17061
17062 2005-12-05  Richard Guenther  <rguenther@suse.de>
17063
17064         * utils.c (convert): Use fold_convert where appropriate.
17065
17066 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
17067
17068         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
17069         a period is meant.
17070
17071 2005-12-02  Richard Guenther  <rguenther@suse.de>
17072
17073         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
17074
17075 2005-12-01  Roger Sayle  <roger@eyesopen.com>
17076
17077         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
17078         nodes.
17079
17080 2005-11-23  Laurent Guerby  <laurent@guerby.net>
17081
17082         * mlib-prj.adb (Build_Library): Initialize Delete.
17083
17084 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
17085
17086         * socket.c: Add extern int h_errno for rtems since networking header
17087         files are not available at this point in a tool bootstrap. Newlib
17088         only has basic C library header files.
17089
17090 2005-11-19  Richard Guenther  <rguenther@suse.de>
17091         Roger Sayle  <roger@eyesopen.com>
17092
17093         PR ada/23717
17094         * misc.c (internal_error_function): Don't use vsprintf to format
17095         the error message text, instead use pp_format_text and the new
17096         pretty printer APIs.  This allows handling of %qs, %w, etc.
17097
17098 2005-11-18  Laurent Guerby  <laurent@guerby.net>
17099
17100         PR ada/24857
17101         * Makefile.in: Use s-auxdec-empty for RTEMS.
17102
17103 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17104
17105         PR ada/22333
17106         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
17107         a temporary if taking the address of something that is neither
17108         reference, declaration, or constant, since the gimplifier
17109         can't handle that case.
17110
17111 2005-11-17  Laurent Guerby  <laurent@guerby.net>
17112
17113         PR ada/24857
17114         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
17115
17116 2005-11-16  Richard Guenther  <rguenther@suse.de>
17117
17118         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
17119
17120 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
17121
17122         PR ada/24855
17123         * raise-gcc.c: Add missing stdarg.h include.
17124  
17125 2005-11-16  Richard Guenther  <rguenther@suse.de>
17126
17127         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
17128         (ada/misc.o): Likewise.
17129
17130 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17131
17132         * g-soccon.ads: Minor reformatting. Update comments.
17133
17134         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
17135         gain visibility on the declaration of struct timeval.
17136
17137         * g-soccon-freebsd.ads,
17138         g-soccon-darwin.ads,
17139         g-soccon-tru64.ads,
17140         g-soccon-aix.ads,
17141         g-soccon-irix.ads,
17142         g-soccon-hpux.ads,
17143         g-soccon-solaris.ads,
17144         g-soccon-vms.ads,
17145         g-soccon-mingw.ads,
17146         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
17147
17148         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
17149         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
17150         g-soccon-linux-x86.ads: New files.
17151
17152         * g-socthi-mingw.adb: 
17153         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
17154
17155         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
17156         (time_t, suseconds_t): New types constructed to match the tv_sec
17157         and tv_usec fields of C struct timeval.
17158         (Timeval): Construct structure in terms of the new types.
17159         (Host_Errno): New function (imported from socket.c), returns last hosts
17160         database error.
17161
17162         * g-socthi-vxworks.adb:  Add error handling circuitry.
17163
17164         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
17165         components of struct timeval.
17166         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
17167         (Check_Selector): In error conditions, clear internal socket sets to
17168         avoid a memory leak.
17169         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
17170         Send_Timeout, Receive_Timeout.
17171
17172         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
17173         the tv_sec and tv_usec fields of C struct timeval.
17174         (Timeval): Construct structure in terms of the new types.
17175         (Host_Errno): New function (imported from socket.c), returns last hosts
17176         database error.
17177
17178         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
17179         hosts database last error code.
17180
17181         * gen-soccon.c: Complete value expansion should not be performed on
17182         TARGET, as it has the form of a math expression, and some components
17183         may be platform-defined macros.
17184         For VxWorks, generate the OK and ERROR values.
17185         New constants giving the sizes of the components of C struct timeval.
17186
17187 2005-11-14  Robert Dewar  <dewar@adacore.com>
17188             Ed Schonberg  <schonberg@adacore.com>
17189
17190         PR ada/18434
17191         * types.ads: Include All_Checks in Suppress_Array
17192
17193         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
17194         not(a=b), since we no longer do this rewriting, and hence it is not
17195         needed.
17196         (Elaboration_Checks_Suppressed): Add special casing to
17197         deal with different cases of static and dynamic elaboration checks (all
17198         checks does not count in the first case, but does in the second).
17199         (Expr_Known_Valid): Do not assume that the result of any arbitrary
17200         function call is valid, since this is not the case.
17201         (Ensure_Valid): Do not apply validity check to a real literal
17202         in a universal or fixed context
17203
17204         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
17205         elementary types using the operator in standard. It is cleaner not to
17206         modify the programmers intent, especially in the case of floating-point.
17207         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
17208         it did not matter because we always rewrote a/=b to not(a=b).
17209         (Expand_Allocator_Expression): For an allocator expression whose nominal
17210         subtype is an unconstrained packed type, convert the expression to its
17211         actual constrained subtype.
17212         Implement warning for <= or >= where < or > not possible
17213         Fix to Vax_Float tests (too early in many routines, causing premature
17214         Vax_Float expansions.
17215
17216         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
17217         to be used with packages and generic packages as well as with
17218         subprograms.
17219         (Suppress): Set All_Checks, but not Elaboration_Check, for case
17220         of pragma Suppress (All_Checks)
17221         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
17222         a string literal for precise control over warnings.
17223         Avoid raise of pragma in case of unrecognized pragma and just return
17224         instead.
17225
17226         * sem_prag.ads: Minor reformatting
17227
17228         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
17229         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17230         Switch. Do not handle any exception.
17231         Include -gnatwx as part of -gnatg (warn on redundant parens)
17232         Allow optional = after -gnatm
17233         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
17234         longer sets Elaboration_Checks.
17235         Code to set warning mode moved to Sem_Warn
17236         so that it can be shared by pragma processing.
17237
17238         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
17239         statement.
17240
17241         * s-taprop-solaris.adb: 
17242         Change some <= to =, to avoid new warning
17243
17244         * a-exexda.adb, prj-proc.adb: 
17245         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
17246         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
17247
17248 2005-11-14  Robert Dewar  <dewar@adacore.com>
17249
17250         * exp_vfpt.adb: Handle /= case
17251         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
17252         so that we do not get duplicate scaling for fixed point conversions.
17253
17254         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
17255
17256 2005-11-14  Matthew Gingell  <gingell@adacore.com>
17257
17258         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
17259         Increase default priority on Lynx from 15 to 17, and meet the Ada
17260         requirement that Default_Priority be ((Priority'First +
17261         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
17262
17263 2005-11-14  Vincent Celier  <celier@adacore.com>
17264
17265         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17266         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
17267         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
17268         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
17269         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
17270         mlib-tgt-lynxos.adb (DLL_Prefix): New function
17271
17272 2005-11-14  Doug Rupp  <rupp@adacore.com>
17273
17274         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
17275         private part.
17276
17277 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17278
17279         * s-traces-default.adb, s-trafor-default.ads,
17280         s-tratas-default.adb: Fix compilation errors.
17281
17282 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
17283
17284         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
17285         raising the exception so the memory used is freed.
17286
17287 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17288
17289         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
17290         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
17291         (convert_address): Update comments and list of platforms using this.
17292
17293         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
17294         no longer used.
17295
17296 2005-11-14  Pascal Obry  <obry@adacore.com>
17297             Vincent Celier  <celier@adacore.com>
17298
17299         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
17300         GNAT.Command_Line.
17301
17302         * memroot.adb: Remove redundant with/use clause on
17303         System.Storage_Elements.
17304
17305 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17306
17307         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
17308         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
17309         related code to a-exexpr.adb
17310         (Save_Occurrence_And_Private): Move GCC EH related code to
17311         a-exexpr-gcc.adb
17312         (Raise_Current_Excep): Add new variable Id with pragma
17313         volatile, to ensure that the variable lives on stack.
17314
17315         * a-exexpr-gcc.adb, raise-gcc.c: New file.
17316
17317         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
17318         from a-except.adb.
17319         Move GCC EH related code to a-exexpr-gcc.adb
17320
17321         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
17322         64-bit Solaris
17323         Split the Linux version of g-soccon into separate variants for 32 and 64
17324         bit platforms.
17325         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
17326         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
17327         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
17328         of host variable $(RANLIB_FLAGS).
17329         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
17330         Code clean up: remove unused/obsolete targets.
17331         (EH_MECHANISM): New variable introduced to differenciate between the
17332         two EH mechanisms statically.
17333         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
17334         (LIBGNAT_OBJS): Add raise-gcc.o
17335         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
17336         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17337         supports VxWorks 6 RTPs.
17338         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
17339         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17340
17341         * raise.c: Move all GCC EH-related routines to raise-gcc.c
17342
17343 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
17344
17345         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
17346         deferral level, when abort is not allowed, to a later stage (the
17347         Task_Wrapper).
17348         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
17349         it will not get changed by the generated code. It was previously done
17350         in Create_Task.
17351
17352 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17353             Olivier Hainque  <hainque@adacore.com>
17354             Eric Botcazou  <ebotcazou@adacore.com>
17355
17356         * decl.c:
17357         Factor common code to build a storage type for an unconstrained object
17358         from a fat or thin pointer type and a constrained object type.
17359         (annotate_value): Handle BIT_AND_EXPR.
17360         (annotate_rep): Don't restrict the back annotation of inherited
17361         components to the type_annotate_only case.
17362         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
17363         we are not defining the type.
17364         <E_Record_Type>: Likewise.
17365         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
17366         to get advantage of the new maybe_stabilize_reference interface, to
17367         ensure that what we reference is indeed stabilized instead of relying
17368         on assumptions on what the stabilizer does.
17369         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
17370         type imported through a limited_with clause, use its non-limited view.
17371         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
17372         differentiation.
17373         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
17374         of #if sections + explicit comparisons of convention identifiers.
17375         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
17376         before early-returning for certain types when code generation is
17377         disabled.
17378         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
17379         nullification of gnu_expr we do for objects with address clause and
17380         that we are not defining.
17381         (elaborate_expression_1): Do not create constants when creating
17382         variables needed by the debug info: the dwarf2 writer considers that
17383         CONST_DECLs is used only to represent enumeration constants, and emits
17384         nothing for them.
17385         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
17386         object with an address clause into an indirect reference, drop the
17387         initializing expression.
17388         Include "expr.h".
17389         (STACK_CHECK_BUILTIN): Delete.
17390         (STACK_CHECK_PROBE_INTERVAL): Likewise.
17391         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
17392         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
17393         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
17394         corresponding to the renamed object as ignored for debugging purposes.
17395
17396         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
17397         related): For a prefix that is a dereference of a fat or thin pointer,
17398         if there is an actual subtype provided by the front-end, use that
17399         subtype to build an actual type with bounds template.
17400         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
17401         is provided by the front-end, use that subtype to compute the size of
17402         the deallocated object.
17403         (gnat_to_gnu): When adding a statement into an elaboration procedure,
17404         check for a potential violation of a No_Elaboration_Code restriction.
17405         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17406         with extra arguments to control whether to recurse through non-values
17407         and to let the caller know if the stabilization has succeeded.
17408         (gnat_stabilize_reference): Now a simple wrapper around
17409         maybe_stabilize, for common uses without restriction on lvalues and
17410         without need to check for the success indication.
17411         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
17412         pass false instead of 0 as the FORCE argument which is a bool.
17413         (Identifier_to_gnu): Remove checks ensuring that an renamed object
17414         attached to a renaming pointer has been properly stabilized, as no such
17415         object is attached otherwise.
17416         (call_to_gnu): Invoke create_var_decl to create the temporary when the
17417         function uses the "target pointer" return mechanism.
17418         Reinstate conversion of the actual to the type of the formal
17419         parameter before any other specific treatment based on the passing
17420         mechanism. This turns out to be necessary in order for PLACEHOLDER
17421         substitution to work properly when the latter type is unconstrained.
17422
17423         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
17424         common pattern.
17425         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17426         with extra arguments to control whether to recurse through non-values
17427         and to let the caller know if the stabilization has succeeded.
17428
17429         * utils2.c (gnat_build_constructor): Only sort the fields for possible
17430         static output of record constructor if all the components are constant.
17431         (gnat_build_constructor): For a record type, sort the list of field
17432         initializers in increasing bit position order.
17433         Factor common code to build a storage type for an unconstrained object
17434         from a fat or thin pointer type and a constrained object type.
17435         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
17436         types variants, and process special cases of VIEW_CONVERT expressions
17437         as their NOP_EXPR counterpart to ensure we get to the
17438         CORRESPONDING_VARs associated with CONST_DECls.
17439         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
17440         on the right-hand side.
17441
17442         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
17443         a common pattern.
17444         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
17445         are converting back to its original type.
17446         (convert) <JM input>: Fallthrough regular conversion code instead of
17447         extracting the object if converting to a type variant.
17448         (create_var_decl): When a variable has an initializer requiring code
17449         generation and we are at the top level, check for a potential violation
17450         of a No_Elaboration_Code restriction.
17451         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
17452         SIZE and SIZE_UNIT which we need for later back-annotations.
17453         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
17454         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
17455         is an unchecked union.
17456         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
17457         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
17458         main variant, just replace the VIEW_CONVERT_EXPR.
17459         <UNION_TYPE>: Revert 2005-03-02 change.
17460
17461         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
17462
17463         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
17464
17465 2005-11-14  Matthew Heaney  <heaney@adacore.com>
17466
17467         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
17468         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
17469         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
17470         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
17471         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
17472         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
17473         Compiles against the spec for ordered maps described in sections
17474         A.18.6 of the most recent (August 2005) AI-302 draft.
17475
17476 2005-11-14  Olivier Hainque  <hainque@adacore.com>
17477
17478         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
17479         to ensure bias adjustments take place when need be and to prevent
17480         occurrences of intermediate overflows.
17481
17482 2005-11-14  Matthew Gingell  <gingell@adacore.com>
17483             Olivier Hainque  <hainque@adacore.com>
17484
17485         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
17486         ia64 HP-UX.
17487
17488         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
17489         tracebacks on ia64 HP-UX and provide explanatory comment.
17490         Enable backtraces on ia64 GNU/Linux.
17491         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
17492         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
17493
17494 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
17495             Javier Miranda  <miranda@adacore.com>
17496
17497         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
17498         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
17499         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
17500         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
17501
17502         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
17503         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
17504         assertions).
17505
17506         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
17507         subprogram that generates the external name associated with a
17508         secondary dispatch table.
17509         (Get_Secondary_DT_External_Name): New subprogram that generates the
17510         external name associated with a secondary dispatch table.
17511
17512 2005-11-14  Emmanuel Briot  <briot@adacore.com>
17513
17514         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
17515         line in the ALI file to include both an instantiation reference, and a
17516         returned value.
17517
17518 2005-11-14  Vincent Celier  <celier@adacore.com>
17519
17520         * clean.adb (Check_Project): Look for Ada code in extending project,
17521         even if Ada is not specified as a language.
17522         Use new function DLL_Prefix for DLL_Name
17523         (Clean_Interface_Copy_Directory): New procedure
17524         (Clean_Library_Directory): New procedure
17525         (Clean_Directory): Remove procedure, no longer used
17526         (Clean_Project): Do not delete any file in an externally built project
17527
17528         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
17529         directory of an extending project, even when there are no Ada source
17530         present.
17531         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
17532         (Set_Ada_Paths.Add.Recursive_Add): Ditto
17533
17534         * mlib-prj.adb (Check_Library): For all library projects, get the
17535         library file timestamp.
17536         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
17537         (Build_Library): Use new function DLL_Prefix for the DLL_Name
17538         (Clean): Remove procedure, no longer used
17539         (Ultimate_Extension_Of): New function
17540         (Build_Library): When cleaning the library directory, only remove an
17541         existing library file and any ALI file of a source of the project.
17542         When cleaning the interface copy directory, remove any source that
17543         could be a source of the project.
17544
17545         * prj.ads, prj.adb (Project_Empty): Add values of new components
17546         Library_TS and All_Imported_Projects.
17547         (Project_Empty): Add values for new components of Project_Data:
17548         Library_ALI_Dir and Display_Library_ALI_Dir
17549
17550         * prj-attr.adb: New project level attribute name Library_ALI_Dir
17551
17552         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
17553         attribute Library_ALI_Dir.
17554         (Check_Library_Attributes): The library directory cannot be the same as
17555         any source directory of the project tree.
17556         (Check_Stand_Alone_Library): The interface copy directory cannot be
17557         the same as any source directory of the project tree.
17558
17559         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
17560         all temporary files.
17561
17562 2005-11-14  Robert Dewar  <dewar@adacore.com>
17563             Ed Schonberg  <schonberg@adacore.com>
17564
17565         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17566         (Check_Elab_Call): A call within a protected body is never an
17567         elaboration call, and does not require checking.
17568         (Same_Elaboration_Scope): Take into account protected types for both
17569         entities.
17570         (Activate_Elaborate_All_Desirable): New procedure
17571
17572         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
17573         desirable
17574
17575         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
17576         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
17577
17578         * lib-writ.ads, lib-writ.adb: 
17579         Implement new AD/ED for Elaborate_All/Elaborate desirable
17580         Use new Elaborate_All_Desirable flag in N_With_Clause node
17581
17582         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
17583         N_Free_Statement nodes.
17584         Define new class N_Subprogram_Instantiation
17585         Add Elaborate_Desirable flag to N_With_Clause node
17586         Add N_Delay_Statement (covering two kinds of delay)
17587
17588         * debug.adb: Introduce d.f flag for compiler
17589         Add -da switch for binder
17590
17591 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17592             Cyrille Comar  <comar@adacore.com>
17593
17594         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
17595         for task component, in the case of a limited aggregate. The enclosed
17596         object declaration will create it earlier. Otherwise, in the case of a
17597         nested aggregate, the object may appear in the wrong scope.
17598         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
17599         (Gen_Assign): If the component being assigned is an array type and the
17600         expression is itself an aggregate, wrap the assignment in a block to
17601         force finalization actions on the temporary created for each row of the
17602         enclosing object.
17603         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
17604         structures are initialized after all discriminants are set so that
17605         they can be accessed even when their offset is dynamic.
17606
17607 2005-11-14  Robert Dewar  <dewar@adacore.com>
17608             Hristian Kirtchev  <kirtchev@adacore.com>
17609
17610         * sem_attr.adb: Implement Machine_Rounding attribute
17611         (Analyze_Access_Attribute): The access attribute may appear within an
17612         aggregate that has been expanded into a loop.
17613         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
17614         'Terminated whenever the prefix is of a task interface class-wide type.
17615         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
17616         the prefix is of a task interface class-wide type.
17617
17618         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
17619         to avoid warnings.
17620
17621         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
17622         Remove pragma Inline for [Unaligned_]Valid.
17623         Add comments that Valid routines do not work for Vax_Float
17624
17625         * exp_attr.adb: Implement Machine_Rounding attribute
17626
17627         * snames.h: Add entry for Machine_Rounding attribute
17628
17629 2005-11-14  Javier Miranda  <miranda@adacore.com>
17630             Robert Dewar  <dewar@adacore.com>
17631             Hristian Kirtchev  <kirtchev@adacore.com>
17632
17633         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
17634         and related): For a prefix that is an explicit dereference of an
17635         access to unconstrained packed array type, annotate the dereference
17636         with an actual subtype so GIGI can make a correct size computation.
17637         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
17638         'Unrestricted_Access, if the designated type is an interface we
17639         add a type conversion to force the displacement of the pointer
17640         to the secondary dispatch table.
17641         Use Universal_Real instead of Long_Long_Float when we need a high
17642         precision float type for the generated code (prevents gratuitous
17643         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
17644         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
17645         'Terminated for task interface class-wide objects. Generate a call to
17646         the predefined dispatching routine used to retrieve the _task_id from
17647         a task corresponding record.
17648         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
17649
17650         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17651         (Check_Dispatching_Operation): Protect the frontend againts
17652         previously detected errors.
17653
17654         * Makefile.rtl: Add new instantiations of system.fat_gen
17655
17656         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
17657         Change name of instantiated package for better consistency
17658         with newly added system.fat_gen instantiations.
17659
17660         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
17661         s-fvagfl.ads: New files.
17662
17663 2005-11-14  Cyrille Comar  <comar@adacore.com>
17664             Thomas Quinot  <quinot@adacore.com>
17665
17666         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
17667         assignment of a value of a tagged type that has been rewritten to a
17668         block statement, it is known by construction that no checks are
17669         necessary for the statements within the block: analyze it with checks
17670         suppressed.
17671         (Expand_N_If_Statement): When killing a dead then-branch in an
17672         if-statement that has elsif_parts, recompute the Current_Value node
17673         for any entity whose value is known from the condition of the first
17674         elsif_part.
17675         (Expand_N_Return_Statement): When returning a mutable record, convert
17676         the return value into its actual subtype in order to help the backend
17677         to return the actual size instead of the maximum. This is another
17678         aftermath of not returning mutable records on the sec-stack anymore.
17679
17680         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
17681         handling of error msg for suspicious reverse range iteration.
17682         (Check_Possible_Current_Value_Condition): Move declaration from body to
17683         spec, to allow this subprogram to be called from exp_ch5.
17684
17685 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17686
17687         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
17688         generate a set of nested array aggregates instead of a single flat
17689         aggregate for multi-dimensional arrays.
17690
17691 2005-11-14  Pascal Obry  <obry@adacore.com>
17692
17693         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
17694         by spawnve is a process handle, no need to convert. Add a parameter
17695         close to control wether the process handle must be closed.
17696         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
17697         a process handle, not need to convert.
17698         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
17699
17700         * g-expect.adb: (Kill): Document the new close parameter.
17701         (Close): Do not release the process handle in the kill there as
17702         waitpid() is using it.
17703         (Send_Signal): Release the process handle.
17704
17705 2005-11-14  Robert Dewar  <dewar@adacore.com>
17706
17707         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
17708         need a high precision float type for the generated code (prevents
17709         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17710         used).
17711
17712         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
17713         need a high precision float type for the generated code (prevents
17714         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17715         used).
17716         (Expand_Width_Attribute): In configurable run-time, the attribute is not
17717         allowed on non-static enumeration subtypes. Force a load error to emit
17718         the correct diagnostic.
17719
17720 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17721             Robert Dewar  <dewar@adacore.com>
17722             Ed Schonberg  <schonberg@adacore.com>
17723
17724         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
17725         subtype to compute the size of the designated object at run-time,
17726         create such a subtype and store it in the Actual_Designated_Subtype
17727         attribute of the N_Free_Statement.
17728         Generate itype for classwide designated object in both cases of
17729         user-specified storage pool: specific and class-wide, not only in the
17730         specific case.
17731         Raise CE when trying to set a not null access type object to null.
17732         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
17733         an explicit loop, because freeze nodes make its position variable.
17734
17735         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
17736         null object.
17737
17738 2005-11-14  Javier Miranda  <miranda@adacore.com>
17739
17740         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
17741         Build_Stream_Procedure): Add the null-excluding attribute to the first
17742         formal.
17743         This has no semantic meaning under Ada95 mode but it is a
17744         requirement under Ada05 mode.
17745
17746         * par-ch3.adb (P_Access_Definition): Addition of warning message if
17747         the null exclusion is used under Ada95 mode
17748         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
17749         (P_Access_Definition): Remove assertion that forbids the use of
17750         the null-exclusion feature in Ada95.
17751
17752 2005-11-14  Robert Dewar  <dewar@adacore.com>
17753
17754         * impunit.adb: Exclude container helper units not intended for use by
17755         users.
17756
17757 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17758
17759         * freeze.adb (Freeze_Entity): For an access formal that is an access
17760         to subprogram, freeze the anonymous subprogram type at the same time,
17761         to prevent later freezing in the wrong scope, such as the enclosing
17762         subprogram body.
17763         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
17764         subprogram whenever available.
17765
17766 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17767
17768         PR ada/23732
17769         * gnatvsn.ads (Library_Version): Bump to 4.1
17770
17771 2005-11-14  Robert Dewar  <dewar@adacore.com>
17772
17773         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
17774         Storage_Offset to avoid wrap around causing invalid results.
17775
17776 2005-11-14  Pascal Obry  <obry@adacore.com>
17777
17778         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
17779         cross-compiler.
17780         (Scan_Bind_Arg): Fail with an error message if -M option is used
17781         on a native compiler.
17782
17783 2005-11-14  Robert Dewar  <dewar@adacore.com>
17784             Vincent Celier  <celier@adacore.com>
17785
17786         * gprep.adb: Implement -C switch to scan comments
17787
17788         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
17789
17790         * scans.ads: Comment updates (including new use of Tok_Comment in
17791         preprocessing)
17792
17793         * opt.ads: Add documentation for flags that are used by gprmake,
17794         currently and in the next version of gprmake.
17795         (Verbosity_Level): New variable
17796         Add Replace_In_Comments switch
17797
17798         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
17799         and -vm.
17800         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
17801
17802 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17803
17804         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
17805         message, friendlier.
17806
17807 2005-11-14  Robert Dewar  <dewar@adacore.com>
17808
17809         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
17810
17811 2005-11-14  Doug Rupp  <rupp@adacore.com>
17812
17813         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
17814
17815 2005-11-14  Robert Dewar  <dewar@adacore.com>
17816
17817         * interfac.ads: Change declarations of IEEE float types so that we no
17818         longer need a separate version of this package for VMS.
17819
17820 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17821
17822         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
17823         internal entity created for the declaration of a child subprogram body
17824         with no spec as coming from source, to generate proper cross-reference
17825         information.
17826
17827 2005-11-14  Vincent Celier  <celier@adacore.com>
17828
17829         * make.adb (Compile_Sources): Change verbose message to minimum
17830         verbosity level High for "is in an Ada library", "is a read-only
17831         library" and "is an internal library",
17832         (Create_Binder_Mapping_File): Path name of ALI file for library project
17833         must include the library directory, not the object directory.
17834         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
17835         for new switches -vl, -vm and -vh.
17836         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
17837         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
17838         (Compile_Sources): Do not attempt to compile if an ALI file is missing
17839         in a project that is externally built.
17840         (Compute_All_Imported_Projects): New procedure
17841         (Gnatmake): Check if importing libraries should be regenerated because
17842         at least an imported library is more recent.
17843         (Initialize): For each project compute the list of the projects it
17844         imports directly or indirectly.
17845         (Add_Library_Search_Dir): New procedure, used in place of
17846         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
17847         put in the search paths.
17848         (Add_Source_Search_Dir): New procedure, used in place of
17849         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
17850         put in the search paths.
17851         (Mark_Directory): Resolve the absolute path the directory before marking
17852         it.
17853
17854         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
17855         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17856         Switch. Do not handle any exception.
17857         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
17858         so that the switch is recognized as valid.
17859         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
17860
17861 2005-11-14  GNAT Script  <nobody@adacore.com>
17862
17863         * Make-lang.in: Makefile automatically updated
17864
17865 2005-11-14  Pascal Obry  <obry@adacore.com>
17866
17867         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
17868         used.
17869         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
17870         In both cases the last argument was dropped.
17871
17872 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
17873
17874         * namet.h: (Column_Numbe): New type.
17875         (Get_Column_Number): Define to sinput__get_column_number.
17876         (Instantiation): Define to sinput__instantiation.
17877         (Get_Column_Number): Declare.
17878         (Instantiation): Likewise.
17879
17880 2005-11-14  Robert Dewar  <dewar@adacore.com>
17881
17882         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
17883         syntax, which could cause compiler hangs.
17884
17885 2005-11-14  Vincent Celier  <celier@adacore.com>
17886
17887         * prj-ext.adb: Take into account new environment variable
17888         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
17889         are defined.
17890         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
17891         normalize its path name, making it absolute and resolving symbolic
17892         links, and replace the original if resolved path is different.
17893
17894 2005-11-14  Vincent Celier  <celier@adacore.com>
17895
17896         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
17897         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
17898
17899 2005-11-14  Emmanuel Briot  <briot@adacore.com>
17900
17901         * prj-pp.adb (Print): Do not output the with statement if the
17902         associated name is empty, which happens for virtual extending projects.
17903         (Print): Preserve the "extends all" attribute when printing the project.
17904
17905         * prj-tree.ads (String_Value_Of): Add comment about returned value for
17906         a virtual extending project.
17907
17908 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17909
17910         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
17911         rhs of an assignment even if the type is unconstrained, when the
17912         context is non-expanding.
17913         In an inlined body, if the context type is private,
17914         resolve with its full view, which must be a composite type.
17915
17916 2005-11-14  Robert Dewar  <dewar@adacore.com>
17917             Ed Schonberg  <schonberg@adacore.com>
17918
17919         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17920         Do not give obsolescent warning on with of subprogram (since we
17921         diagnose calls)
17922         (Analyze_With_Clause): Add test for obsolescent package
17923         (Install_Context_Clauses): If the unit is the body of a child unit, do
17924         not install twice the private declarations of the parents, to prevent
17925         circular lists of Use_Clauses in a parent.
17926         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
17927         compiling body of child unit.
17928         Use new class N_Subprogram_Instantiation
17929         (Expand_With_Clause): If this is a private with_clause for a child unit,
17930         appearing in the context of a package declaration, then the implicit
17931         with_clauses generated for parent units are private as well.
17932         (License_Check): Do not generate message if with'ed unit is internal
17933
17934 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
17935             Ed Schonberg  <schonberg@adacore.com>
17936             Thomas Quinot  <quinot@adacore.com>
17937
17938         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
17939         names are internal, because they will not have a corresponding partner
17940         in the actual package.
17941         (Analyze_Formal_Package): Move the setting of the formal package spec's
17942         Generic_Parent field so that it occurs prior to analyzing the package,
17943         to allow proper operation of Install_Parent_Private_Declarations.
17944         (Analyze_Package_Instantiation): Set the instantiated package entity's
17945         Package_Instantiation field.
17946         (Get_Package_Instantiation_Node): Move declaration to package spec.
17947         Retrieve the N_Package_Instantiation node when the Package_Instantiation
17948         field is present.
17949         (Check_Generic_Child_Unit): Within an inlined call, the only possible
17950         instantiation is Unchecked_Conversion, for which no parents are needed.
17951         (Inline_Instance_Body): Deinstall and record the use_clauses for all
17952         parent scopes of a scope being removed prior to inlining an instance
17953         body.
17954         (Analyze_Package_Instantiation): Do not perform front-end inlining when
17955         the current context is itself an instance within a non-instance child
17956         unit, to prevent scope stack errors.
17957         (Save_References): If the node is an aggregate that is an actual in a
17958         call, rewrite as a qualified expression to preserve some type
17959         information, to resolve possible ambiguities in the instance.
17960         (Instance_Parent_Unit): New global variable to record the ultimate
17961         parent unit associated with a generic child unit instance (associated
17962         with the existing Parent_Unit_Visible flag).
17963         (type Instance_Env): New component Instance_Parent_Unit for stacking
17964         parents recorded in the global Instance_Parent_Unit.
17965         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
17966         stack.
17967         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
17968         it's not a top-level unit, and only do this if Instance_Parent_Unit is
17969         not already set. Replace test of Is_Child_Unit with test of parent's
17970         scope against package Standard. Add comments and a ??? comment.
17971         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
17972         on a child instance parent to test that the parent equals
17973         Instance_Parent rather than simply checking that the unit is not a
17974         child unit.
17975         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
17976         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
17977         a formal interface are ancestors of the corresponding actual.
17978         (Validate_Formal_Interface_Type): Additional legality checks.
17979         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
17980         interface types with ancestors.
17981         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
17982         to diagnose attempts to use generic within its own declaration.
17983
17984 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17985             Javier Miranda  <miranda@adacore.com>
17986
17987         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
17988         discriminant.
17989         (Build_Private_Derived_Type): The entity of the created full view of the
17990         derived type does not come from source. If after installing the private
17991         declarations of the parent scope the parent is still private, use its
17992         full view to construct the full declaration of the derived type.
17993         (Build_Derived_Record_Type): Relax the condition that controls the
17994         execution of the check that verifies that the partial view and
17995         the full view agree in the set of implemented interfaces. In
17996         addition, this test now only takes into account the progenitors.
17997         (Derive_Interface_Subprograms): No need to derive subprograms
17998         of ancestors that are interfaces.
17999         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
18000         associated code.
18001         Change name Is_Package to Is_Package_Or_Generic_Package
18002         (Complete_Subprograms_Derivation): Handle the case in which the full
18003         view is a transitive derivation of the ancestor of the partial view.
18004         (Process_Full_View): Rename local subprogram Find_Interface_In_
18005         Descendant to Find_Ancestor_Interface to leave the code more clear.
18006         Remove wrong code that avoids the generation of an error message
18007         when the immediate ancestor of the partial view is an interface.
18008         In addition some minor reorganization of the code has been done to
18009         leave it more clear.
18010         (Analyze_Type_Declaration): If type has previous incomplete tagged
18011         partial view, inherit properly its primitive operations.
18012         (Collect_Interfaces): Make public, for analysis of formal
18013         interfaces.
18014         (Analyze_Interface_Declaration): New procedure for use for regular and
18015         formal interface declarations.
18016         (Build_Derived_Record_Type): Add support for private types to the code
18017         that checks if a tagged type implements abstract interfaces.
18018         (Check_Aliased_Component_Type): The test applies in the spec of an
18019         instance as well.
18020         (Access_Type_Declaration): Clean up declaration of malformed type
18021         declared as an access to its own classwide type, to prevent cascaded
18022         crash.
18023         (Collect_Interfaces): For private extensions and for derived task types
18024         and derived protected types, the parent may be an interface that must
18025         be included in the interface list.
18026         (Access_Definition): If the designated type is an interface that may
18027         contain tasks, create Master_Id for it before analyzing the expression
18028         of the declaration, which may be an allocator.
18029         (Record_Type_Declaration): Set properly the interface kind, for use
18030         in allocators, the creation of master id's for task interfaces, etc.
18031
18032 2005-11-14  Javier Miranda  <miranda@adacore.com>
18033             Ed Schonberg  <schonberg@adacore.com>
18034
18035         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
18036         omitted in case of stream attribute subprograms.
18037         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
18038         appear immediately after a subprogram body, when there is no previous
18039         subprogram declaration.
18040         Change name Is_Package to Is_Package_Or_Generic_Package
18041         (Process_Formals): A non null qualifier on a non null named access
18042         type is not an error, and is a warning only if Redundant_Constructs
18043         are flagged.
18044
18045 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
18046             Ed Schonberg  <schonberg@adacore.com>
18047
18048         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
18049         nested within Analyze_Package_Specification to install the private
18050         declarations and use clauses within each of the parent units of a
18051         package instance of a generic child package.
18052         (Analyze_Package_Specification): When entering a private part of a
18053         package associated with a generic instance or formal package, the
18054         private declarations of the parent must be installed (by calling new
18055         procedure Install_Parent_Private_Declarations).
18056         Change name Is_Package to Is_Package_Or_Generic_Package
18057         (Preserve_Full_Attributes): For a synchronized type, the corresponding
18058         record is absent in a generic context, which does not indicate a
18059         compiler error.
18060
18061 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18062
18063         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
18064         not try to rewrite a renamed stream attribute, because the operations
18065         on the type may not have been generated.
18066         Handle properly a renaming_as_body generated for a stream operation
18067         whose default is abstract because the object type itself is abstract.
18068         (Find_Type): If the type is incomplete and appears as the prefix of a
18069         'Class reference, it is tagged, and its list of primitive operations
18070         must be initialized properly.
18071         (Chain_Use_Clauses): When chaining the use clauses that appear in the
18072         private declaration of a parent unit, prior to compiling the private
18073         part of a child unit, find on the scope stack the proper parent entity
18074         on which to link the use clause.
18075         (Note_Redundant_Use): Emit a warning when a redundant use clause is
18076         detected.
18077         (Analyze_Object_Renaming): An attribute reference is not a legal object
18078         if it is not a function call.
18079
18080 2005-11-14  Robert Dewar  <dewar@adacore.com>
18081             Ed Schonberg  <schonberg@adacore.com>
18082
18083         * sem_eval.adb: Implement d.f flag
18084         (Subtype_Statically_Match): A generic actual type has unknown
18085         discriminants when the corresponding actual has a similar partial view.
18086         If the routine is called to validate the signature of an inherited
18087         operation in a child instance, the generic actual matches the full view,
18088
18089 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
18090             Ed Schonberg  <schonberg@adacore.com>
18091             Robert Dewar  <dewar@adacore.com>
18092             Thomas Quinot  <quinot@adacore.com>
18093
18094         * sem_res.adb (Resolve_Call): Provide a better error message whenever
18095         a procedure call is used as a select statement trigger and is not an
18096         entry renaming or a primitive of a limited interface.
18097         (Valid_Conversion): If the operand has a single interpretation do not
18098         remove address operations.
18099         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
18100         statement to inhibit warning.
18101         (Resolve_Unary_Op): Do not produce a warning when
18102         processing an expression of the form -(A mod B)
18103         Use Universal_Real instead of Long_Long_Float when we need a high
18104         precision float type for the generated code (prevents gratuitous
18105         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
18106         (Resolve_Concatenation_Arg): Improve error message when argument is an
18107         ambiguous call to a function that returns an array.
18108         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
18109         there is an implicit operator in the given scope if we are within an
18110         instance: legality check has been performed on the generic.
18111         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
18112         after resolving operand, to avoid false warnings on overloaded calls.
18113
18114 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18115             Javier Miranda  <miranda@adacore.com>
18116
18117         PR ada/15604
18118         * sem_type.adb (Covers): In an inlined body, a composite type matches
18119         a private type whose full view is a composite type.
18120         (Interface_Present_In_Ancestor): Protect the frontend against
18121         previously detected errors to ensure that its compilation
18122         with assertions enabled gives the same output that its
18123         compilation without assertions.
18124         (Interface_Present_In_Ancestor): Add support for private types.
18125         Change name In_Actual to In_Generic_Actual (clean up)
18126         (Disambiguate): New predicate In_Actual, to recognize expressions that
18127         appear in the renaming declaration generated for generic actuals, and
18128         which must be resolved in the outer context.
18129
18130 2005-11-14  Robert Dewar  <dewar@adacore.com>
18131             Thomas Quinot  <quinot@adacore.com>
18132             Hristian Kirtchev  <kirtchev@adacore.com>
18133             Ed Schonberg  <schonberg@adacore.com>
18134
18135         * sem_util.ads, sem_util.adb: Change name Is_Package to
18136         Is_Package_Or_Generic_Package.
18137         (Check_Obsolescent): New procedure.
18138         (Set_Is_Public): Remove obsolete junk test.
18139         (Set_Public_Status): Do not set Is_Public on an object whose declaration
18140         occurs within a handled_sequence_of_statemets.
18141         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
18142         for a parameterless procedure.
18143         (Enter_Name): Recognize renaming declarations created for private
18144         component of a protected type within protected operations, so that
18145         the source name of the component can be used in the debugger.
18146
18147 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18148             Robert Dewar  <dewar@adacore.com>
18149
18150         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
18151         of a generic subprogram are not visible outside the body.
18152         (Set_Warning_Switch): New procedure (code to set warning mode moved
18153         here from Switch.C so that it can be shared by pragma processing.
18154         (Check_References): Special case warning for non-modified non-imported
18155         volatile objects.
18156         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
18157         form with a string literal argument
18158
18159 2005-11-14  Javier Miranda  <miranda@adacore.com>
18160
18161         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
18162         anonymous access.
18163         (Write): Addition of "not null" to the anonymous access.
18164         (Read): Addition of "not null" to the anonymous access.
18165         (Write): Addition of "not null" to the anonymous access.
18166
18167         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
18168         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
18169         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
18170         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
18171         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
18172         "not null" to the anonymous access.
18173
18174 2005-11-14  Robert Dewar  <dewar@adacore.com>
18175
18176         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
18177         offset values
18178
18179 2005-11-14  Vincent Celier  <celier@adacore.com>
18180
18181         * switch.adb (Bad_Switch): New procedure
18182         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
18183         message when in error.
18184
18185         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
18186         Too_Many_Output_Files): Remove declarations, no longer used.
18187         (Scan_Nat): New parameter Switch
18188         (Scan_Pos): Ditto
18189         (Bad_Switch): New procedure
18190
18191         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
18192         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
18193         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
18194         to Osint.Fail. Do not handle any exception.
18195
18196 2005-11-14  Vincent Celier  <celier@adacore.com>
18197
18198         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
18199         designates a non existent directory.
18200
18201 2005-11-14  Robert Dewar  <dewar@adacore.com>
18202
18203         * xgnatugn.adb: Replace invalid membership test by 'Valid
18204
18205 2005-11-14  Vincent Celier  <celier@adacore.com>
18206
18207         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
18208         there is no object directory.
18209
18210 2005-11-14  Robert Dewar  <dewar@adacore.com>
18211
18212         * usage.adb: Minor adjustment to output format, use nn instead of nnn
18213         (so that -gnateInnn does not run into next column)
18214
18215 2005-11-14  Ed Falis  <falis@adacore.com>
18216
18217         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
18218         "constrained"
18219
18220 2005-11-14  Cyrille Comar  <comar@adacore.com>
18221
18222         * s-chepoo.ads: Add comments on Dereference.
18223         Remove unnecessary inherited abstract primitives.
18224         Cosmetic cleanup.
18225
18226 2005-11-14  Robert Dewar  <dewar@adacore.com>
18227
18228         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
18229         node parameter, not needed, since it is available as Declaration_Node.
18230
18231 2005-11-14  Geert Bosch  <bosch@adacore.com>
18232
18233         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
18234         grammatically correct.
18235
18236 2005-11-14  Vincent Celier  <celier@adacore.com>
18237
18238         * s-fileio.ads: Correct spelling error in comment
18239
18240 2005-11-14  Cyrille Comar  <comar@adacore.com>
18241             Robert Dewar  <dewar@adacore.com>
18242             Vincent Celier  <celier@adacore.com>
18243             Ben Brosgol  <brosgol@adacore.com>
18244             Jose Ruiz  <ruiz@adacore.com>
18245             Pascal Obry  <obry@adacore.com>
18246
18247         * gnat_ugn.texi: 
18248         Document that -fstack-check is needed for strict compliance with the
18249         Ada 95 Reference Manual.
18250         Correct reference to VAX systems to meet HP guidelines
18251         Add documentation for new gnatmake switches -vl, -vm and -vh
18252         Replace DEC Ada by HP Ada
18253         Replace DIGITAL by HP
18254         Remove empty section on tools in compatibility section
18255         Clarify the Windows convention semantics.
18256         Document the Win32 calling convention.
18257         The Stdcall, Win32 and DLL convention are synonyms.
18258         Add a note in -gnatR description about zero size record components
18259         Note on new >= and <= warnings for -gnatwc
18260         Document that equal sign after -gnatm is optional.
18261         Note that strip is working fine on DLL built with a Library
18262         Project. The restriction apply only to DLL built with gnatdll.
18263         Update section about the way to debug a DLL.
18264         Update information about the DLL convention.
18265         Document -C switch for gnatprep
18266         Document new attribute Library_ALI_Dir
18267         Update elaboration doc to include implicit Elaborate pragmas now
18268         generated for subprogram instantiations.
18269         Document limitation on executable names that include spaces for --GCC,
18270         --GNATBIND, and --GNATLINK switches.
18271         Document that -w causes -gnatws to be added at start of gcc switches
18272
18273         * gnat_rm.texi: Document that -mieee is needed for generating infinite
18274         and NaN values in case of overflow on machines that are not fully
18275         compliant with the IEEE floating-point standard.
18276         Create a section describing the set of compiler options needed for
18277         strict compliance with the Ada 95 Reference Manual.
18278         Add documentation for pragma Obsolescent applied to a package
18279         Clarify potential issues of mixed language programs related to the
18280         I/O buffering enabling in the elaboration of the GNAT runtime.
18281         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
18282         This documentation only patch adds extra documentsion for pragma
18283         Restrictions (No_Elaboration_Code), explaining why it is not possible
18284         to document this restriction in terms of allowed source constructs.
18285         Document string literal form of pragma Warnings
18286         Document new attribute Library_ALI_Dir
18287         Add documentation on stable attributes in project files that was missing
18288
18289         * gnat-style.texi: Indicate that paragraphs within a single comment
18290         should be separated by empty comment lines
18291
18292         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
18293         /05 respectively)
18294
18295         * bindusg.adb: Minor cleanup, put -m before -M for consistency
18296
18297 2005-11-14  Robert Dewar  <dewar@adacore.com>
18298
18299         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
18300         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
18301         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
18302         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
18303         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
18304         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
18305         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18306         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
18307         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
18308         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18309         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
18310         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
18311         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
18312         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
18313         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
18314         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
18315         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
18316         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
18317         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
18318         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
18319         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18320         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
18321         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
18322         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
18323         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
18324         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
18325         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
18326         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
18327         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
18328         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
18329         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
18330         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
18331         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
18332         system-interix.ads, system-solaris-sparc.ads,
18333         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
18334         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
18335         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
18336         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
18337         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
18338         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
18339         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
18340         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18341         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18342         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
18343         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
18344         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
18345         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
18346         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
18347         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
18348         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18349         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
18350         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
18351         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
18352         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
18353         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
18354         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
18355         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
18356         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
18357         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
18358         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18359         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18360         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
18361         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
18362         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
18363         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
18364         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
18365         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18366         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
18367         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
18368         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
18369         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18370         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
18371         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
18372         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
18373         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
18374         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
18375         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
18376         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
18377         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
18378         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
18379         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
18380         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
18381         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
18382         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
18383         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
18384         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
18385         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
18386         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
18387         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
18388         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
18389         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
18390         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
18391         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
18392         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
18393         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
18394         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
18395         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18396         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
18397         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
18398         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
18399         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
18400         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
18401         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
18402         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
18403         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18404         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
18405         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
18406         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
18407         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
18408         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18409         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
18410         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
18411         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
18412         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18413         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
18414         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
18415         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
18416         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18417         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
18418         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
18419         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
18420         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18421         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
18422         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
18423         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
18424         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18425         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
18426         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
18427         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
18428         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
18429         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
18430         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
18431         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
18432         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
18433         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
18434         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
18435         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
18436         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
18437         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
18438         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
18439         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
18440         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
18441         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
18442         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18443         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
18444         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
18445         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
18446         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
18447         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
18448         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
18449         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
18450         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
18451         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
18452         a-numaux-darwin.ads, a-numaux-darwin.adb,
18453         a-swuwha.ads, a-stunha.ads: Minor reformatting
18454
18455 2005-11-14  Robert Dewar  <dewar@adacore.com>
18456
18457         PR ada/18434
18458         * osint-m.adb: Add pragma Elaborate_All for Osint
18459
18460 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
18461
18462         PR ada/23995
18463         * trans.c (call_to_gnu): Restore statement lost in translation.
18464
18465 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
18466
18467         * init.c: Use the Linux-specific section for the IA-64/Linux target.
18468         (__gnat_adjust_context_for_raise): Add conditional code so that the
18469         IA-64 is also supported.
18470
18471 2005-11-03  James E Wilson  <wilson@specifix.com>
18472
18473         PR ada/23427
18474         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
18475         TREE_OVERFLOW check.
18476
18477 2005-09-21  Olivier Hainque  <hainque@adacore.com>
18478
18479         PR ada/22418
18480         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
18481         as we create them to store a size in bits.
18482
18483 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
18484
18485         PR ada/21937
18486         PR ada/22328
18487         PR ada/22381
18488         PR ada/22383
18489         PR ada/22419
18490         PR ada/22420
18491         * utils2.c (build_return_expr): New helper function.
18492         * gigi.h (build_return_expr): Declare it.
18493         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
18494         of manually building the RETURN_EXPR tree.
18495         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
18496         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
18497         build_binary_op for the "target pointer" case.  Use build_return_expr
18498         instead of manually building the RETURN_EXPR tree.
18499
18500 2005-09-16  Laurent Guerby  <laurent@guerby.net>
18501
18502         PR ada/23788
18503         * s-tpinop.ads: Make this unit Preelaborate.
18504
18505 2005-09-16  Andreas Jaeger  <aj@suse.de>
18506
18507         * socket.c: Add string.h for memcpy.
18508
18509 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
18510
18511         * dec-io.ads, dec-io.adb: Removed, no longer used.
18512
18513 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18514
18515         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
18516
18517         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18518         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
18519         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
18520         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
18521         dependent units are Preelaborate.
18522         (Initialize): Call Interrupt_Managemeent.Initialize and
18523         OS_Primitives.Initialize to ensure proper initialization of this unit.
18524         Remove use of System.Soft_Links
18525         Make this unit Preelaborate.
18526
18527         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18528         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
18529         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
18530         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
18531         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
18532         s-tratas.ads, s-tasinf.ads: Minor reformatting.
18533         Add pragma Preelaborate, since these packages are suitable for this
18534         categorization.
18535         Update comments.
18536
18537         * s-traent-vms.ads, s-intman-dummy.adb,
18538         s-taprop-dummy.adb: Make this unit Preelaborate.
18539
18540         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
18541         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
18542         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
18543         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
18544         s-intman-solaris.adb, s-intman-irix-athread.adb,
18545         s-intman-irix.adb: Mark this unit Preelaborate.
18546         (Initialize): New procedure.
18547         Update comments.
18548
18549         * s-taspri-linux.ads: Removed.
18550
18551         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
18552         as done by other implementations (e.g. posix).
18553
18554         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
18555         responsible for deferring abort.
18556         Mark this unit Preelaborate.
18557
18558         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
18559         proper initialization of the tasking run-time.
18560
18561         * s-tasdeb.ads: Mark this unit Preelaborate.
18562         (Known_Tasks): Add explicit default value to avoid elaboration code.
18563
18564         * s-inmaop-vms.adb (Elaboration code): Add call to
18565         Interrupt_Management.Initialize since the elaboration code depends on
18566         proper initialization of this package.
18567
18568         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
18569         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
18570         s-osprim-posix.adb: Make this unit Preelaborate.
18571
18572         * a-calend.adb: Add call to OS_Primitives.Initialize
18573
18574         * a-elchha.adb: Update use of Except.Id.Full_Name.
18575         Minor reformatting.
18576         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
18577
18578         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
18579         Move with clauses outside Warnings Off now that dependent units are
18580         Preelaborate.
18581         Use raise xxx with "..."; Ada 2005 form.
18582
18583         * a-taside.ads, a-taside.adb:
18584         Remove some dependencies, to make it easier to make this unit truly
18585         Preelaborate.
18586         Rewrite some code to be conformant with Preelaborate rules.
18587
18588         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
18589         marked Preelaborate in the future.
18590
18591         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
18592         these units Preelaborate.
18593
18594         * s-exctab.adb: Update use of Except.Id.Full_Name.
18595
18596         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
18597         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
18598         Set_Exc_Stack_Addr): Removed, no longer used.
18599         Remove reference to *Machine_State_Addr*, no longer needed.
18600
18601         * s-stalib.ads: Mark this unit as Preelaborate[_05].
18602         (Exception_Data): Full_Name is now a System.Address so that this unit
18603         can be made Preelaborate.
18604         Clean up/simplify code thanks to Full_Name being a System.Address.
18605         Remove obsolete pragma Suppress (All_Checks), no longer needed.
18606
18607         * s-taskin.ads, s-taskin.adb:
18608         Move with clauses outside Warnings Off now that dependent units are
18609         Preelaborate.
18610         Make this unit Preelaborate.
18611         (Initialize): New proceduure, replace elaboration code and makes the
18612         set up of the tasking run-time cleaner.
18613         (Detect_Blocking): Now a function instead of a deferred boolean, to
18614         obey Preelaborate rules.
18615
18616         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
18617         soft links, no longer used.
18618
18619         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
18620         packages are suitable for this categorization.
18621
18622         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
18623         since we compile run-time sources in Ada 2005 mode.
18624         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
18625         avoid having s-taprop*.adb depend on s-soflin and to avoid code
18626         duplication.
18627         Remove reference to *Machine_State_Addr*, no longer needed.
18628
18629 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18630
18631         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
18632         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18633         Remove reference to System.Exceptions.
18634
18635         * s-mastop-x86.adb: Removed, no longer used.
18636
18637         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
18638
18639         * a-excach.adb: Minor reformatting.
18640
18641         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
18642         instead fix new warnings that were hidden by this change.
18643         (AAA, ZZZ): Removed, replaced by...
18644         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
18645         are used instead of constants, to help make Ada.Exception truly
18646         preelaborate.
18647         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
18648         Raise_Storage_Error): File is now a System.Address, to simplify code.
18649         (Elab code): Removed, no longer used.
18650         (Null_Occurrence): Remove Warnings Off and make this construct
18651         preelaborate.
18652         Remove code related to front-end zero cost exception handling, since
18653         it is no longer used.
18654         Remove -gnatL/-gnatZ switches.
18655
18656         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
18657         Update use of Except.Msg.
18658
18659         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
18660         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
18661         to front-end zero cost exception handling, since it is no longer used.
18662         Remove -gnatL/-gnatZ switches.
18663
18664         * lib-writ.ads: Minor reformatting
18665         Remove doc of UX
18666
18667         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
18668
18669         * Make-lang.in: Remove references to s-except.ads
18670
18671         * s-except.ads: Removed, no longer used.
18672
18673         * s-mastop.ads, s-mastop.adb:
18674         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18675         Remove reference to System.Exceptions.
18676
18677         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
18678         switch-b.adb: Remove code related to front-end zero cost exception
18679         handling, since it is no longer used.
18680         Remove -gnatL/-gnatZ switches.
18681
18682 2005-09-01  Robert Dewar  <dewar@adacore.com>
18683             Gary Dismukes  <dismukes@adacore.com>
18684             Javier Miranda  <miranda@adacore.com>
18685
18686         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
18687         type by valid test and generate warning.
18688         (Tagged_Membership): Generate call to the run-time
18689         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
18690         Change formal name Subtype_Mark to Result_Definition in several calls to
18691         Make_Function_Specification.
18692         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
18693         check for proper accessibility of the operand of a class-wide allocator.
18694         The check can be left out if checks are suppressed or if the expression
18695         has a specific tagged type whose level is known to be safe.
18696
18697         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
18698         generates the run-time check associated with null-excluding entities.
18699         (Expand_N_Return_Statement): Add tests to determine if the accessibility
18700         check on the level of the return expression of a class-wide function
18701         can be elided. The check usually isn't needed if the expression has a
18702         specific type (unless it's a conversion or a formal parameter). Also
18703         add a test for whether accessibility checks are suppressed. Augment
18704         the comments to describe the conditions for performing the check.
18705
18706 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
18707             Javier Miranda  <miranda@adacore.com>
18708             Gary Dismukes  <dismukes@adacore.com>
18709             Ed Schonberg  <schonberg@adacore.com>
18710
18711         * a-tags.adb (IW_Membership): Give support to
18712         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
18713         subprogram has been extended to look for the tag in the ancestors tag
18714         table.
18715         Update the structure of the GNAT Dispatch Table to reflect the
18716         additional two tables used in dispatching selects.
18717         Introduce appropriate array types and record components in
18718         Type_Specific_Data to reflect the two tables.
18719         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
18720         the TSD of a tag, indexed by position.
18721         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
18722         operation kind in the TSD of a tag, indexed by position.
18723
18724         * a-tags.ads: Introduce an enumeration type to capture different
18725         primitive operation kinds. Define a constant reflecting the number of
18726         predefined primitive operations.
18727         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
18728         of an entry wrapper.
18729         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
18730         callable entity of a primitive operation.
18731
18732         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
18733         primitive operations used in dispatching selects for limited
18734         interfaces, limited tagged, task and protected types what implement a
18735         limited interface.
18736         (Freeze_Type): Generate the bodies of the primitive operations used in
18737         dispatching selects for limited tagged, task and protected types that
18738         implement a limited interface. Generate statements to populate the two
18739         auxiliary tables used for dispatching in select statements.
18740         (Freeze_Record_Type): Add call to initialize the dispatch table entries
18741         associated with predefined interface primitive operations.
18742         (Build_Dcheck_Function): Change Set_Subtype_Mark to
18743         Set_Result_Definition.
18744         (Build_Variant_Record_Equality): Change Subtype_Mark to
18745         Result_Definition.
18746         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
18747         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
18748         (Build_Assignment): Simplify the code that adds the run-time-check.
18749         (Expand_N_Object_Declaration): Code cleanup.
18750
18751         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
18752         entries when there is a protected type that implements a limited
18753         interface.
18754
18755         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
18756         common routines used in expansion of dispatching selects.
18757         (Add_Private_Declarations): Select the appropriate protection type when
18758         there is a protected type that implements a limited interface.
18759         (Build_Parameter_Block): Generate a wrapped parameter block.
18760         (Build_Protected_Subprogram_Body): Select the appropriate type for
18761         locking entries when there is a protected type that implements a
18762         limited interface.
18763         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
18764         classified as entry wrappers.
18765         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
18766         asynchronous selects.
18767         (Expand_N_Conditional_Entry_Call): Add support for expansion of
18768         dispatching conditional selects.
18769         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
18770         protection when there is a protected type that implements limited
18771         interfaces.
18772         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
18773         timed selects.
18774         (Extract_Dispatching_Call): Extract the entity of the name of a
18775         dispatching call, the object parameter, actual parameters and
18776         corresponding formals.
18777         (Make_Initialize_Protection): Correct logic of protection initialization
18778         when there is a protected type that implements a limited interface.
18779         (Parameter_Block_Pack): Populate a wrapped parameter block with the
18780         values of actual parameters.
18781         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
18782         block and assign them to the original actual parameters.
18783
18784         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
18785         (Build_Protected_Sub_Specification): Change the type and name of the
18786         last formal to account for the increased variety of protection modes.
18787
18788         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
18789         entities. Used to save the value of the Is_Hidden attribute when the
18790         limited-view is installed.
18791         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
18792         the attribute of procedures classified as entry wrappers.
18793         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
18794         entity of a primitive wrapper.
18795         (Write_Entity_Flags): Output the name and value of the
18796         Is_Primitive_Wrapper attribute.
18797         (Write_Field27_Name): Output the name and entity of the field Wrapped_
18798         Entity.
18799         (Underlying_Type): If we have an incomplete entity that comes from
18800         the limited view then we return the Underlying_Type of its non-limited
18801         view if it is already available.
18802         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
18803         including operators.
18804         (Write_Field26_Name): Add entry for Overridden_Operation
18805         (Overridden_Operation): New attribute of functions and procedures.
18806
18807         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
18808         predefined position in the dispatch table for the primitive operations
18809         used in dispatching selects.
18810         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
18811         predefined primitive operations and replace it with
18812         Default_Prim_Op_Count.
18813         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
18814         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
18815         the names of the generated primitive operations used in dispatching
18816         selects.
18817         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
18818         case of abstract interface types. They will be inherit by the objects
18819         implementing the interface.
18820         (Make_DT): There is no need to inherit the dispatch table of the
18821         ancestor interface for the elaboration of abstract interface types.
18822         The dispatch table will be inherited by the object implementing the
18823         interface.
18824         (Copy_Secondary_DTs): Add documentation.
18825         (Validate_Position): Improve this static check in case of
18826         aliased subprograms because aliased subprograms must have
18827         the same position.
18828         (Init_Predefined_Interface_Primitives): New subprogram that initializes
18829         the entries associated with predefined primitives of all the secondary
18830         dispatch tables.
18831         (Build_Anonymous_Access_Type): Removed.
18832         (Expand_Interface_Actuals): With the previous cleanup there is no need
18833         to build an anonymous access type. This allows further cleanup in the
18834         code generated by the expander.
18835         (Expand_Interface_Conversion): If the actual is an access type then
18836         build an internal function to handle the displacement. If the actual
18837         is null this function returns null because no displacement is
18838         required; otherwise performs a type conversion that will be
18839         expanded in the code that returns the value of the displaced actual.
18840         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
18841         conversions that have no effect in the generated code because no
18842         displacement is required. Code cleanup; use local variables to
18843         avoid repeated calls to the subprogram directly_designated_type().
18844
18845         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
18846         Classify the primitive operations used in dispatching selects as
18847         predefined.
18848         (Implements_Limited_Interface): Determine whether some type either
18849         directly implements a limited interface or extends a type that
18850         implements a limited interface.
18851         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
18852         (Expand_Subtype_From_Expr): Do not build actual subtype if the
18853         expression is limited.
18854         (Find_Interface_Tag): Add code to handle class-wide types and
18855         entities from the limited-view.
18856
18857         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
18858         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
18859         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
18860         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
18861         Set_Prim_Op_Kind.
18862
18863         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
18864         of procedure name or prefix that appears as a trigger in a triggering
18865         alternative.
18866
18867         * uintp.ads: Introduce constants Uint_11 and Uint_13.
18868
18869 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18870
18871         * s-tataat.adb, a-tasatt.adb:
18872         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
18873
18874         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
18875         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
18876         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
18877         longer used.
18878
18879 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18880             Jose Ruiz  <ruiz@adacore.com>
18881
18882         * s-taprop-vxworks.adb:
18883         Move with clauses outside Warnings Off now that dependent units are
18884         Preelaborate.
18885         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
18886         initialization of this unit.
18887         (Specific): Add new procedures Initialize and Delete so that this
18888         package can be used for VxWorks 5.x and 6.x
18889         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
18890         differences between VxWorks 5.x and 6.x
18891         Minor reformatting.
18892         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
18893         caller.
18894         Use only Preelaborate-compatible constructs.
18895
18896         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
18897         Primitives.Operations.
18898         (Delete, Initialize): New procedures.
18899
18900         * s-osinte-vxworks.adb: Body used to handle differences between
18901         VxWorks 5.x and 6.x
18902         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
18903
18904         * s-osinte-vxworks.ads: Minor reformatting.
18905         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
18906         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
18907         and 6.
18908         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
18909         between Vxworks 5 and 6.
18910         (taskLock, taskUnlock): Removeed, no longer used.
18911
18912         * adaint.c: The wait.h header is not located in the sys directory on
18913         VxWorks when using RTPs.
18914         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
18915         using RTPs.
18916         (__gnat_dup): dup is available on Vxworks when using RTPs.
18917         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
18918
18919         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
18920
18921         * expect.c: The wait.h header is not located in the sys directory on
18922         VxWorks when using RTPs.
18923
18924 2005-09-01  Thomas Quinot  <quinot@adacore.com>
18925
18926         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
18927
18928         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
18929
18930         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
18931         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18932         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
18933         g-soccon-freebsd.ads: Add new constants:
18934          IP_MULTICAST_IF
18935          SO_RCVTIMEO/SO_SNDTIMEO
18936          IOV_MAX
18937
18938         * gen-soccon.c:
18939         Move all target-specific file inclusions and macro definitions to
18940         gsocket.h, in order to ensure that any C code in socket.c will see a
18941         set of constants that is consistent with the contents of g-soccon.ads.
18942
18943         * gsocket.h: Code imported from gen-soccon.c:
18944         Move all target-specific file inclusions and macro definitions to
18945         gsocket.h, in order to ensure that any C code in socket.c will see a set
18946         of constants that is consistent with the contents of g-soccon.ads.
18947         This change also makes gen-soccon self-contained (removing dependencies
18948         upon GCC internal headers).
18949
18950         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
18951         iovecs at a time.
18952         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
18953
18954         * socket.c: Minor reformatting.
18955
18956 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
18957             Thomas Quinot  <quinot@adacore.com>
18958
18959         * fname-sf.adb, mlib-tgt.ads,
18960         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
18961         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
18962         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
18963         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
18964         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
18965         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
18966         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
18967         makegpr.adb: Remove redundant use_clauses.
18968
18969 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18970
18971         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
18972         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
18973         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
18974         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
18975         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
18976         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
18977         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
18978         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
18979         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
18980         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
18981         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
18982         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
18983         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
18984         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
18985         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
18986         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
18987         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18988         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
18989         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
18990         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
18991         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
18992         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
18993         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
18994         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
18995         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
18996         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
18997         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
18998         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
18999         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
19000         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
19001         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
19002         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
19003         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
19004         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
19005         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
19006         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
19007         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
19008         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
19009         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
19010         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
19011         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
19012         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
19013         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
19014         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
19015         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
19016         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
19017         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
19018         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
19019         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
19020         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
19021         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
19022         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
19023         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
19024         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
19025         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
19026         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
19027         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
19028         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
19029         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
19030         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
19031         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
19032         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
19033         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
19034         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
19035         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
19036         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
19037         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
19038         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
19039         and always use the no parameter form for consistency.
19040
19041         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
19042
19043 2005-09-01  Robert Dewar  <dewar@adacore.com>
19044
19045         * binde.adb: Minor reformatting
19046         (Find_Elab_Order): Output warning if -p used with static elab order
19047
19048 2005-09-01  Robert Dewar  <dewar@adacore.com>
19049
19050         * checks.adb (Check_Needed): New procedure, deals with removing checks
19051         based on analysis of short-circuited forms. Also generates warnings for
19052         improper use of non-short-circuited forms.
19053         Code clean ups.
19054
19055 2005-09-01  Robert Dewar  <dewar@adacore.com>
19056
19057         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
19058         with 'Valid tests.
19059
19060 2005-09-01  Robert Dewar  <dewar@adacore.com>
19061
19062         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
19063         spec.
19064         Implement new insertion char < (conditional warning)
19065         * errutil.adb, erroutc.adb: Implement new insertion char <
19066         (conditional warning).
19067         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
19068         (Error_Msg_Warn): New variable for < insertion char.
19069         * prj-nmsc.adb: Implement new errout insertion char < (conditional
19070         warning).
19071         (Check_For_Source): Change value of Source_Id only after the current
19072         source has been dealt with.
19073
19074 2005-09-01  Robert Dewar  <dewar@adacore.com>
19075             Doug Rupp  <rupp@adacore.com>
19076
19077         * exp_attr.adb: Handle vax fpt for 'Valid attribute
19078         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
19079         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
19080         (Valid_D, Valid_F, Valid_G): New functions
19081
19082 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19083             Hristian Kirtchev  <kirtchev@adacore.com>
19084             Javier Miranda  <miranda@adacore.com>
19085
19086         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
19087         from object notation, the original node is unanalyzed and carries no
19088         semantic information, so that accessiblity checks must be performed on
19089         the type of the actual itself.
19090         (Expand_N_Subprogram_Declaration): Change last actual parameter for
19091         compatibility with Build_Protected_Sub_Specification.
19092         (Check_Overriding_Inherited_Interfaces): Add suport to handle
19093         overloaded primitives.
19094         (Register_Interface_DT_Entry): Use the new name of the formal
19095         the the calls to Expand_Interface_Thunk
19096
19097         * exp_dbug.ads: Augment comments on encoding of protected types to
19098         include the generation of dispatching subprograms when the type
19099         implements at least one interface.
19100
19101         * lib.ads: Extend information in Load_Stack to include whether a given
19102         load comes from a Limited_With_Clause.
19103
19104         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
19105         whether a potential circularity is harmless, because it includes units
19106         loaded through a limited_with clause. Extends previous treatment which
19107         did not handle properly arbitrary combinations of limited and
19108         non-limited clauses.
19109
19110 2005-09-01  Nicolas Setton  <setton@adacore.com>
19111
19112         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
19113         to be encoded as typ___XBLU_lowerbound__upperbound instead of
19114         typ___XB_lowerbound__upperbound.
19115
19116 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19117
19118         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
19119         dummy access formal for RACW/RAS TypeCode TSS.
19120         (Build_TypeCode_Call): Do not generate dummy null access actual for
19121         calls to the TypeCode TSS.
19122
19123 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19124
19125         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
19126         fully qualified name, to distinguish instances with the same local name.
19127
19128         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
19129         fully qualified.
19130
19131 2005-09-01  Robert Dewar  <dewar@adacore.com>
19132
19133         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
19134         packed arrays.
19135
19136 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
19137
19138         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
19139         (Free): New deallocation procedure for filter elements
19140         (Close): Deallocate any existing filter for the concerned connection
19141
19142 2005-09-01  Laurent Pautet  <pautet@adacore.com>
19143
19144         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
19145         position set is provided, we compute one in order to reduce the maximum
19146         length of the keys.  This computation first selects a character
19147         position between 1 and the minimum length of the keys in order to
19148         avoid reducing one of the keys to an empty string.
19149         (Initialize, Compute): When the ratio V to K is too low, the algorithm
19150         does not converge. The initialization procedure now comes with a
19151         maximum number of iterations such that when exceeded, an exception is
19152         raised in Compute. The user can initialize this ratio to another value
19153         and try again
19154         Reformating and updated headers.
19155
19156 2005-09-01  Javier Miranda  <miranda@adacore.com>
19157
19158         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
19159         that given an entity T creates and returns an Itype that duplicates the
19160         contents of T. The returned Itype has the null-exclusion
19161         attribute set to True, and its Etype attribute references T
19162         to keep the association between the two entities.
19163         Update copyright notice
19164
19165         * sem_aggr.adb (Check_Can_Never_Be_Null,
19166         Aggregate_Constraint_Checks, Resolve_Aggregate,
19167         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
19168
19169         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
19170
19171 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
19172             Robert Dewar  <dewar@adacore.com>
19173             Hristian Kirtchev  <kirtchev@adacore.com>
19174
19175         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
19176         Result_Definition.
19177
19178         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
19179         function specs.
19180         Call Set_Result_Definition instead of Set_Subtype_Mark.
19181         (P_Subprogram_Specification): Add parsing of anonymous access result
19182         plus null exclusions. Call Set_Result_Definition instead of
19183         Set_Subtype_Mark.
19184
19185         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19186         (P_Access_Type_Definition): Add parsing for an anonymous access result
19187         subtype, plus parsing for null exclusions. Call Set_Result_Definition
19188         instead of Set_Subtype_Mark.
19189
19190         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19191         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
19192         (Result_Definition): New function for N_Function_Specifications.
19193         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
19194         N_Function_Specification.
19195         (Set_Null_Exclusion_Present): Allow this flag for
19196         N_Function_Specification.
19197         (Set_Result_Definition): New procedure for N_Function_Specifications.
19198         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
19199         and N_Function_Specification.
19200
19201         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
19202         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
19203         Add support for LIMITED NEW for Ada 2005 AI-419
19204         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
19205         syntax for anonymous access results.
19206         Replace Subtype_Mark field by Result_Definition in
19207         N_Function_Specification and N_Access_Definition specs.
19208         Add Null_Exclusion_Present to spec of N_Function_Specification.
19209         (Result_Definition): New function for N_Function_Specification and
19210         N_Access_Function_Definition.
19211         (Set_Result_Definition): New procedure for N_Function_Specification and
19212         N_Access_Function_Definition.
19213
19214         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
19215         Result_Definition for cases of N_Access_Function_Definition and
19216         N_Function_Specification.
19217         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
19218
19219 2005-09-01  Vincent Celier  <celier@adacore.com>
19220
19221         * lib-writ.adb: Update Copyright notice
19222         (Write_With_Lines): On platforms where file names are case-insensitive,
19223         record the file names in lower case.
19224         (Write_ALI): For D lines, on platforms where file names are
19225         case-insensitive, record the file names in lower case.
19226
19227 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19228             Emmanuel Briot  <briot@adacore.com>
19229
19230         * lib-xref.adb (Output_Overridden_Op): Display information on
19231         overridden operation.
19232
19233         * lib-xref.ads: Add documentation on overridden operations.
19234
19235         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
19236         information.
19237
19238         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
19239         overriding entity information.
19240
19241 2005-09-01  Vincent Celier  <celier@adacore.com>
19242
19243         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
19244         including those that are inherited.
19245
19246 2005-09-01  Robert Dewar  <dewar@adacore.com>
19247
19248         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
19249
19250         * par-prag.adb: Implement new pragma Debug_Policy
19251
19252         * sem_prag.adb Implement new pragma Debug_Policy
19253         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
19254         Component_Size attribute specification. Give warning for ignored pragma
19255         Pack.
19256
19257         * snames.h, snames.ads, snames.adb: Introduce entries in
19258         Preset_Names for Name_Disp_Asynchronous_Select,
19259         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
19260         Name_Disp_Timed_Select.
19261         New pragma Debug_Policy
19262
19263         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
19264         explicitly.
19265         Switch -gnata also sets Debug_Pragmas_Enabled
19266
19267         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
19268         handle an explicit -gnata when compiling predefined files.
19269
19270 2005-09-01  Vincent Celier  <celier@adacore.com>
19271
19272         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
19273         directories of projects that have no Ada sources.
19274
19275 2005-09-01  Robert Dewar  <dewar@adacore.com>
19276
19277         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
19278         (makes a difference for wide characters)
19279
19280         * widechar.adb, widechar.ads:
19281         Add Wide_Char_Byte_Count feature to count chars vs bytes
19282
19283 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19284             Ed Schonberg  <schonberg@adacore.com>
19285             Robert Dewar  <dewar@adacore.com>
19286
19287         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
19288         'Address attribute reference with an overloaded prefix, use the
19289         location of the prefix (not the location of the attribute reference) as
19290         the error location.
19291         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
19292         a function renaming thereof, is a valid prefix for 'Size (where it is
19293         intepreted as a function call).
19294         (Statically_Denotes_Entity): New predicate to determine whether the
19295         prefix of an array attribute can be considered static.
19296
19297         PR ada/9087
19298         (Eval_Attr): Fix failure to evaluate Component_Size for
19299         unconstrained arrays (resulted in wrong value in packed case, since
19300         back end cannot handle this case)
19301
19302 2005-09-01  Robert Dewar  <dewar@adacore.com>
19303
19304         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
19305         error msgs for most common cases.
19306         Use new errout insertion char < (conditional warning)
19307
19308 2005-09-01  Javier Miranda  <miranda@adacore.com>
19309             Ed Schonberg  <schonberg@adacore.com>
19310
19311         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
19312         become local to the whole package.
19313         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
19314         the package was already analyzed the new algorithm "replaces" the
19315         real entities by the shadow ones. This is required to ensure that
19316         the order of these entities in the homonym chains does not change;
19317         otherwise we can have undefined references at linking time because
19318         in case of conflicts the external name of the entities will have
19319         a suffix that depends on the order of the entities in the chain.
19320         (Remove_Limited_With_Clause): Complementary code that completes the
19321         new algorithm and replaces the shadow entities by the real ones.
19322         (Install_Limited_Withed_Unit): When unchaining entities before the
19323         installation of the shadow entities, only regular entities of the
19324         public part must be taken into account. This is required to
19325         keep this routine in synch with the work done by Remove_Limited_
19326         With_Clause
19327         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
19328         even if unit is analyzed, because the analysis of the unit is
19329         idempotent in any case, and the limited view of the unit may have to
19330         be installed for proper visibility.
19331         (Expand_Limited_With_Clause): Even if the unit in the implicit
19332         with_clause has been analyzed already, a limited view of the package
19333         must be built for the current context, if it does not exist yet.
19334
19335 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19336             Javier Miranda  <miranda@adacore.com>
19337             Gary Dismukes  <dismukes@adacore.com>
19338
19339         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
19340         defining entity for the instance body, make a new defining identifier
19341         rather than copying the entity of the spec, to prevent accidental
19342         sharing of the entity list.
19343         (Check_Private_View): When exchanging views of private types, build the
19344         list of exchanged views as a stack, to ensure that on exit the exchanges
19345         are undone in the proper order.
19346         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
19347         Restore the compilation environment in case of instantiation_error.
19348         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
19349         for an anonymous access result.
19350         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
19351         (Formal_Entity): Handle properly the case of a formal package that
19352         denotes a generic package renaming.
19353
19354 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19355
19356         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
19357         clause if the array aggregate is surrounded by parentheses.
19358
19359 2005-09-01  Cyrille Comar  <comar@adacore.com>
19360             Gary Dismukes  <dismukes@adacore.com>
19361             Ed Schonberg  <schonberg@adacore.com>
19362             Javier Miranda  <miranda@adacore.com>
19363
19364         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
19365         underlying type
19366         to check if a type is Constrained in cases related to code generation
19367         (rather than semantic checking) since otherwise we do not generate
19368         similar code for mutable private types depending if their
19369         discriminants are visible or not.
19370         (Check_Abstract_Overriding): Do not complain about failure to override
19371         the primitive operations used in dispatching selects since they will
19372         always be overriden at the freeze point of the type.
19373         (Access_Definition): Separate out handling for resetting the scope
19374         of an anonymous access function result type. Retrieve the scope
19375         of the associated function rather than using Current_Scope, which
19376         does not have a consistent value (depends on whether we're in the
19377         middle of analyzing formal parameters). Add ??? comment about
19378         finding a cleaner way to handle the special cases of scope setting.
19379         (Process_Incomplete_Dependents): A protected operation is never a
19380         dispatching operation (only its wrapper may be).
19381         (Build_Derived_Record_Type): In case of tagged private types that
19382         implement interfaces add derivation of predefined primitive
19383         operations.
19384         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
19385         by two parameters that are used in case of derivation from abstract
19386         interface types: No_Predefined_Prims is used to avoid the derivation
19387         of predefined primitives from the interface, and Predefined
19388         Prims_Only is used to complete the derivation predefined primitives
19389         in case of private tagged types implementing interfaces.
19390         Fix typo in comments
19391         (Find_Interface_In_Descendant): Protect the frontend against
19392         wrong code with large circularity chains.
19393         (Is_Private_Overriding): Add support for entities overriding interface
19394         subprograms. The test failed because Entities associated with overriden
19395         interface subprograms are always marked as hidden (and used to build
19396         the secondary dispatch table); in this case the overriden entity is
19397         available through the field abstract_interface_alias (cf. override_
19398         dispatching_operation)
19399         (Access_Definition): Set the scope of the type to Current_Scope for the
19400         case of a function with an anonymous access result type.
19401         (Access_Subprogram_Declaration): Handle creation of the type entity for
19402         an access-to-function type with an anonymous access result.
19403         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
19404         in handling for N_Access_Function_Definition.
19405         (Analyze_Subtype_Declaration): Modify the text of error message.
19406         (Derived_Type_Declaration): Modify the text of error message.
19407         (Process_Subtype): Modify the text of error message plus cleanup
19408         of one redundant error message.
19409         (Analyze_Component_Declaration): Code cleanup.
19410         (Analyze_Object_Declaration): Code cleanup.
19411         (Analyze_Subtype_Declaration): Propagate the null-exclusion
19412         attribute in case of access types. Code cleanup.
19413         (Array_Type_Declaration): Code cleanup.
19414         (Process_Discriminants): Create the new null-excluding itype
19415         if required. Code cleanup.
19416         (Process_Subtype): Create the new null-excluding itype if
19417         required. Code cleanup.
19418         (Build_Derived_Record_Type): Code cleanup to avoid calling
19419         twice the subprogram derive_subprograms in case of private
19420         types that implement interfaces. In this particular case the
19421         subprogram Complete_Subprograms_Derivation already does the
19422         job associated with the second call.
19423
19424         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
19425         conversion to the full view when generating an operation for a
19426         discriminant whose type may currently be private.
19427
19428 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19429             Javier Miranda  <miranda@adacore.com>
19430
19431         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
19432         V (Obj.F), the rewriting does not involve the indexed component, but
19433         only the selected component itself.
19434         Do not apply the transformation if the analyzed node is an actual of a
19435         call to another subprogram.
19436         (Complete_Object_Operation): Retain the entity of the
19437         dispatching operation in the selector of the rewritten node. The
19438         entity will be used in the expansion of dispatching selects.
19439         (Analyze_One_Call): Improve location of the error message associated
19440         with interface.
19441         (Analyze_Selected_Component): No need to resolve prefix when it is a
19442         function call, resolution is done when parent node is resolved, as
19443         usual.
19444         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
19445         when attempting to resolve a call transformed from its object notation.
19446         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
19447         of the argument list for each interpretation of the operation.
19448         (Try_Object_Operation): The designated type of an access parameter may
19449         be an incomplete type obtained through a limited_with clause, in which
19450         case the primitive operations of the type are retrieved from its full
19451         view.
19452         (Analyze_Call): If this is an indirect call, and the return type of the
19453         access_to_subprogram is incomplete, use its full view if available.
19454
19455 2005-09-01  Javier Miranda  <miranda@adacore.com>
19456             Gary Dismukes  <dismukes@adacore.com>
19457
19458         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
19459         access types the null-exclusion and access-to-constant attributes must
19460         also match.
19461         (Analyze_Return_Statement): When the result type is an anonymous access
19462         type, apply a conversion of the return expression to the access type
19463         to ensure that appropriate accessibility checks are performed.
19464         (Analyze_Return_Type): For the case of an anonymous access result type,
19465         generate the Itype and set Is_Local_Anonymous_Access on the type.
19466         Add ??? placeholder for check to disallow returning a limited object
19467         in Ada 2005 unless it's an aggregate or a result of a function call.
19468         Change calls from Subtype_Mark to Result_Definition.
19469         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
19470         Result_Definition in call to Make_Function_Specification.
19471         (Build_Body_To_Inline): Change Set_Subtype_Mark to
19472         Set_Result_Definition.
19473         (Make_Inequality_Operator): Change formal Subtype_Mark to
19474         Result_Definition in call to Make_Function_Specification.
19475         (Process_Formals): Create the new null-excluding itype if required.
19476         (New_Overloaded_Entity): For an entity overriding an interface primitive
19477         check if the entity also covers other abstract subprograms in the same
19478         scope. This is required to handle the general case, that is, overriding
19479         other interface primitives and overriding abstract subprograms inherited
19480         from some abstract ancestor type.
19481         (New_Overloaded_Entity): For an overriding entity that comes from
19482         source, note the operation that it overrides.
19483         (Check_Conformance, Type_Conformant): Addition of one new formal
19484         to skip controlling formals in the analysis. This is used to
19485         handle overloading of abstract interfaces.
19486         (Base_Types_Match): Add missing case for types imported from
19487         limited-with clauses
19488         (New_Overloaded_Entity): Add barrier to protect the use of
19489         the "alias" attribute.
19490
19491 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19492
19493         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
19494         verify that the procedure and the entry are mode conformant.
19495         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
19496         as a different operator, which is often a cut-and-paste error.
19497
19498 2005-09-01  Javier Miranda  <miranda@adacore.com>
19499             Ed Schonberg  <schonberg@adacore.com>
19500
19501         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
19502         used in controlling parameters exclude null because it is necessary to
19503         read the tag to dispatch, and null has no tag.
19504         (Override_Dispatching_Operation): If the previous operation is inherited
19505         from an interface, it becomes hidden  and does not participate in later
19506         name resolution.
19507
19508 2005-09-01  Javier Miranda  <miranda@adacore.com>
19509             Ed Schonberg  <schonberg@adacore.com>
19510             Gary Dismukes  <dismukes@adacore.com>
19511
19512         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
19513         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
19514         the expander will generate the corresponding run-time check to evaluate
19515         the expression.
19516         (Resolve_Call): Check for legal type of procedure name or prefix that
19517         appears as a trigger in a triggering alternative.
19518         (Valid_Conversion): If expression is ambiguous and the context involves
19519         an extension of System, remove System.Address interpretations.
19520         (Resolve_Qualified_Expression): Reject the case of a specific-type
19521         qualification applied to a class-wide argument. Enhance comment
19522         to explain checking of Original_Node.
19523         (Resolve_Type_Conversion): The location of the error message was not
19524         general enough to handle the general case and hence it has been removed.
19525         In addition, this patch improves the text of the message.
19526         (Resolve_Type_Conversion): Add missing support for access to interface
19527         types.
19528         (Resolve_Type_Conversion): If the target is a class-wide interface type,
19529         do not expand if the expression is the actual in a call, because proper
19530         expansion will take place when the call itself is expanded.
19531         (Resolve_Allocator): If the context is an unchecked conversion, the
19532         allocator inherits its storage pool, if any, from the target type of
19533         the conversion.
19534
19535 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19536             Javier Miranda  <miranda@adacore.com>
19537
19538         * sem_type.adb (Add_One_Interp): If a candidate operation is an
19539         inherited interface operation that has an implementation, use the
19540         implementation to avoid spurious ambiguities.
19541         (Interface_Present_In_Ancestor): In case of concurrent types we can't
19542         use the Corresponding_Record_Typ attribute to look for the interface
19543         because it is set by the expander (and hence it is not always
19544         available). For this reason we traverse the list of interfaces
19545         (available in the parent of the concurrent type).
19546         (Interface_Present_In_Ancestor): Handle entities from the limited view
19547
19548 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19549
19550         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
19551         from the list of required components.
19552         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
19553         primitive procedure of a limited interface with a controlling first
19554         parameter.
19555         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
19556         of an entry.
19557         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
19558         capture if it is generated in the second operand of a short-circuit
19559         operation.
19560         Do not capture values for variables with address clauses.
19561         (Is_Object_Reference): Treat a function call as an object reference only
19562         if its type is not Standard_Void_Type.
19563
19564 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19565
19566         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
19567         to a variable that is statically known to be constant.
19568
19569 2005-09-01  Geert Bosch  <bosch@adacore.com>
19570             Robert Dewar  <dewar@adacore.com>
19571
19572         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
19573         (VAXGF_Safe_First): Idem.
19574
19575 2005-09-01  Robert Dewar  <dewar@adacore.com>
19576             Arnaud Charlet  <charlet@adacore.com>
19577
19578         * g-dirope.ads: Minor reformatting
19579         Document that bounds of result of Base_Name match the input index
19580         positions.
19581         Add documentation on environment variable syntax for Expand_Path
19582
19583         * gnat_ugn.texi: Update documentation to include mention of -m switches
19584         Document new treatment of wide characters in max line length
19585         style check.
19586         Remove -gnatL/-gnatZ switches, no longer used.
19587         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
19588         of -gnata switch.
19589
19590         * gnat_rm.texi: Add doc for two argument form of pragma
19591         Float_Representation.
19592         Add documentation for pragma No_Strict_Aliasing
19593         Add note that explicit component clause overrides pragma Pack.
19594         Add documentation of pragma Debug_Policy
19595
19596 2005-09-01  Matthew Heaney  <heaney@adacore.com>
19597
19598         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
19599         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
19600         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
19601         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
19602         draft (Draft 13, August 2005) of Ada Amendment 1.
19603
19604 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19605
19606         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
19607         Note that the platform-specific version of g-soccon.ads for VMS is now
19608         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
19609         really is a package spec).
19610         Replace s-taspri-linux.ads by s-taspri-posix.ads
19611         Remove references to s-mastop-x86.adb
19612
19613         * system-vxworks-xscale.ads: Removed, no longer used.
19614         * s-vxwork-xscale.ads: Removed, no longer used.
19615
19616 2005-09-01  Robert Dewar  <dewar@adacore.com>
19617
19618         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
19619         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
19620         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
19621         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
19622         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
19623         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
19624         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19625         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
19626         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
19627         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
19628         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
19629         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
19630         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
19631         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
19632         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
19633         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
19634         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
19635         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
19636         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
19637         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
19638         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
19639
19640 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19641
19642         PR ada/23187
19643         * adaint.c
19644         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
19645
19646 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19647             Doug Rupp  <rupp@adacore.com>
19648
19649         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
19650         when needed.
19651         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
19652         this code in the GNAT run-time.
19653
19654         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
19655
19656         PR ada/21053
19657         * init.c (__gnat_error_handler [many]): Mark "msg" as const
19658         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
19659
19660         (__gnat_inside_elab_final_code): Moved here from
19661         Standard_Library and only defined for the compiler.
19662         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
19663         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
19664         using RTPs because directly vectored Interrupt routines are not
19665         supported on this configuration.
19666         (getpid): Do not redefine this function on VxWorks when using RTPs
19667         because this primitive is well supported by the RTP libraries.
19668         (copy_msg): Correct the code that checks for buffer overflow.
19669         Discovered during code reading.
19670
19671 2005-08-29  Olivier Hainque  <hainque@adacore.com>
19672
19673         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
19674         a library level mutable variable with an initializer, tell
19675         build_allocator to ignore the initializer's size. It may not be large
19676         enough for all the values that might be assigned to the variable later
19677         on.
19678
19679 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19680             Eric Botcazou  <ebotcazou@adacore.com>
19681
19682         * trans.c: Protect < in error msg with quote
19683         Replace GCC_ZCX by Back_End_Exceptions.
19684         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
19685         has been sufficiently aligned in the record.
19686
19687 2005-08-15  James E. Wilson  <wilson@specifix.com>
19688
19689         * system-linux-alpha.ads: Change ia64 to alpha.
19690
19691 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
19692
19693         * decl.c, utils.c: Fix comment typos.
19694
19695 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
19696
19697         * decl.c, init.c, initialize.c: Fix comment typos.
19698
19699 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
19700
19701         Make CONSTRUCTOR use VEC to store initializers.
19702         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
19703         CONSTRUCTOR_ELTS.
19704         * trans.c (extract_values): Likewise.
19705         * utils.c (convert, remove_conversions): Likewise.
19706         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
19707         gnat_build_constructor): Likewise.
19708
19709 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
19710
19711         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
19712         DECL_SECTION_NAME.
19713         (compare_field_bitpos): Likewise.
19714
19715 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
19716
19717         * utils.c (create_var_decl): Only set DECL_COMMON on
19718         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
19719         VAR_OR_FUNCTION_DECL_P.
19720
19721 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
19722
19723         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
19724         removed.
19725
19726 2005-07-07  Pascal Obry  <obry@adacore.com>
19727
19728         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
19729         returned type on Windows.
19730
19731         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
19732         routine.
19733
19734         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
19735         exception in this case.
19736         Simplify the code as "Image (Image'Range)" = "Image".
19737
19738 2005-07-07  Vincent Celier  <celier@adacore.com>
19739
19740         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
19741         the destructor/constructor attributes for <lib>final/<lib>init.
19742
19743         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
19744
19745 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
19746
19747         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
19748         type if the parameter is not passed by copy but reference by default.
19749
19750 2005-07-07  Javier Miranda  <miranda@adacore.com>
19751
19752         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
19753         Reimplementation of the support for abstract interface types in order
19754         to leave the code more clear and easy to maintain.
19755
19756         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
19757         abstract interface types in order to leave the code clearer and easier
19758         to maintain.
19759
19760         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
19761         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
19762         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
19763         appropriate entry of the secondary dispatch table.
19764         (Make_DT): Add code to inherit the secondary dispatch tables of
19765         the ancestors.
19766
19767         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
19768         implementing both functionalities by means of a common routine, each
19769         routine has its own code.
19770
19771 2005-07-07  Javier Miranda  <miranda@adacore.com>
19772
19773         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
19774
19775         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
19776         types:
19777         --
19778           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19779         --
19780
19781         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
19782         use of tag incomplete types.
19783
19784         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
19785         give support to tagged incomplete types.
19786
19787         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
19788         expression is a discriminant reference and its type is private, as can
19789         happen within a stream operation for a mutable record, use the full
19790         view of the type to resolve the case alternatives.
19791         (Analyze_Assignment): Check wrong dereference of incomplete types.
19792
19793         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
19794         types.
19795
19796         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
19797         incomplete types.
19798
19799         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
19800         N_Incomplete_Type_Declaration nodes.
19801
19802         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
19803         Tag_Present to give support to tagged incomplete types:
19804         --
19805           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19806         --
19807
19808 2005-07-07  Olivier Hainque  <hainque@adacore.com>
19809
19810         PR ada/22301
19811         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
19812         definitions for the Unwind wrappers in the compiler case.
19813
19814 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
19815             Javier Miranda  <miranda@adacore.com>
19816
19817         * par-load.adb (Load): If a child unit is loaded through a limited_with
19818         clause, each parent must be loaded as a limited unit as well.
19819
19820         * sem_ch10.adb (Previous_Withed_Unit): Better name for
19821         Check_Withed_Unit. Return true if there is a previous with_clause for
19822         this unit, whether limited or not.
19823         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
19824         the current unit.
19825         (Is_Visible_Through_Renamings): New local subprogram of install_limited
19826         _withed_unit that checks if some package installed through normal with
19827         clauses has a renaming declaration of package whose limited-view is
19828         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
19829         of the current Draft document for Ada 2005.
19830         (Analyze_Context): Complete the list of compilation units that
19831         are allowed to contain limited-with clauses. It also contains
19832         checks that were previously done by Install_Limited_Context_Clauses.
19833         This makes the code more clear and easy to maintain.
19834         (Expand_Limited_With_Clause) It is now a local subprogram of
19835         Install_Limited_Context_Clauses, and contains the code that adds
19836         the implicit limited-with clauses for parents of child units.
19837         This functionality was prevously done by Analyze_Context.
19838
19839         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
19840         incomplete type.
19841
19842         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
19843         been erroneously named in a limited-with clause of its own context.
19844         In this case the error has been previously notified by Analyze_Context.
19845
19846 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
19847
19848         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
19849         generic package that contains local declarations with the same name.
19850         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
19851
19852 2005-07-07  Bernard Banner  <banner@adacore.com>
19853
19854         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
19855         ia64 platform only on platforms that you the GCC unwind library
19856         rather than the system unwind library.
19857
19858 2005-07-07  Thomas Quinot  <quinot@adacore.com>
19859
19860         * expect.c: Minor reformatting
19861
19862 2005-07-07  Sergey Rybin  <rybin@adacore.com>
19863
19864         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
19865         --no-separate-is
19866
19867         * gnat_ugn.texi: Add description for new gnatpp option
19868         (--no-separate-is)
19869
19870 2005-07-04  Thomas Quinot  <quinot@adacore.com>
19871
19872         * g-expect-vms.adb, g-expect.ads, g-expect.adb
19873         (Get_Command_Output): New subprogram to launch a process and get its
19874         standard output as a string.
19875
19876 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
19877             Olivier Hainque  <hainque@adacore.com>
19878
19879         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
19880         fetch a code-range descriptor associated with the machine state. On
19881         failure set the machine state's PC to 0; on success, pass the
19882         descriptor to exc_virtual_unwind.
19883
19884         * init.c (Tru64 section): New function __gnat_set_code_loc.
19885
19886 2005-07-04  Vincent Celier  <celier@adacore.com>
19887
19888         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19889         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19890         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
19891         Remove all auto-initialization code, as this is now done through the
19892         constructor mechanism.
19893
19894         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
19895         __gnat_sals_init_using_constructors): New functions.
19896
19897         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
19898         Linker_Constructor and Linker_Destructor when switch -a is used.
19899
19900         * bindusg.adb: Add line for new switch -a
19901
19902         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
19903         (Gnatbind): When switch -a is used, check if it is allowed
19904
19905         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
19906
19907 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
19908
19909         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
19910         This prevents us from hitting a limitation during the debug info
19911         generation when using stabs.
19912         (Prims_Ptr): Likewise.
19913
19914 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
19915             Ed Schonberg  <schonberg@adacore.com>
19916             Javier Miranda  <miranda@adacore.com>
19917
19918         * checks.adb (Null_Exclusion_Static_Checks): In the case of
19919         N_Object_Declaration, only perform the checks if the Object_Definition
19920         is not an Access_Definition.
19921
19922         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
19923         where the parent of an the access definition is an N_Object_Declaration
19924         when determining the Associated_Node_For_Itype and scope of an
19925         anonymous access-to-subprogram type.
19926
19927         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
19928         Corresponding_Spec on the body created for a null procedure. Add ???
19929         comment. Remove New_Copy_Tree call on body argument to
19930         Set_Body_To_Inline.
19931
19932         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
19933         discriminants, use the type of the actual as well, because the
19934         discriminants may be read by the called subprogram.
19935
19936         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
19937         access type we do not need to handle non-limited views.
19938         (Build_Derived_Record_Type): Additional check to check that in case of
19939         private types, interfaces are only allowed in private extensions.
19940
19941 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
19942
19943         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
19944         <Pragma_Linker_Destructor>: Likewise.
19945
19946         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
19947         Pragma_Linker_Destructor.
19948
19949         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
19950         ATTR_LINK_DESTRUCTOR.
19951         (static_ctors, static_dtors): New variables.
19952
19953         * misc.c (gnat_expand_body): Output current function as constructor
19954         and destructor if requested.
19955
19956         * par-prag.adb: Add processing for pragma Linker_Constructor and
19957         Linker_Destructor.
19958
19959         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
19960         extracted from Check_Interrupt_Or_Attach_Handler.
19961         (Check_Interrupt_Or_Attach_Handler): Invoke it.
19962         Implement pragma Linker_Constructor and Linker_Destructor with the
19963         help of Find_Unique_Parameterless_Procedure.
19964         Replace Name_Alias with Name_Target for pragma Linker_Alias.
19965
19966         * snames.h, snames.ads, snames.adb:
19967         Add Name_Linker_Constructor and Name_Linker_Destructor.
19968         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
19969         * snames.adb: Remove Name_Alias.
19970
19971         * trans.c: Include cgraph.h.
19972         (build_global_cdtor): New function.
19973         (Compilation_Unit_to_gnu): Build global constructor and destructor if
19974         needed.
19975         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
19976         of objects too.
19977         (addressable_p) <COMPONENT_REF>: Unconditionally test
19978         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
19979
19980         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
19981         variable if it is external.
19982
19983         (static_ctors, static_dtors): New global variables.
19984         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
19985         <ATTR_LINK_DESTRUCTOR>: Likewise.
19986         (end_subprog_body): Chain function as constructor and destructor
19987         if requested.
19988
19989         * exp_util.adb (Force_Evaluation): Unconditionally invoke
19990         Remove_Side_Effects with Variable_Ref set to true.
19991         (Remove_Side_Effects): Handle scalar types first. Use a renaming
19992         for non-scalar types even if Variable_Ref is true and for class-wide
19993         expressions.
19994
19995 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
19996
19997         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
19998         to prevent spurious warnings.
19999
20000 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20001
20002         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
20003         Itypes. Itypes are really unexpected there.
20004         (Build_TypeCode_Function): Generalise special processing for Itypes to
20005         handle the case of numeric implicit base types as well as enumerated
20006         ones.
20007
20008 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20009
20010         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
20011         controlled, indicate the expected type of the dereference that is
20012         created for the call to Deep_Finalize, to prevent spurious errors when
20013         the designated type is private and completed with a derivation from
20014         another private type.
20015
20016 2005-07-04  Vincent Celier  <celier@adacore.com>
20017
20018         * make.adb (Change_To_Object_Directory): When unable to change the
20019         current dir to the object directory, output the full path of the
20020         directory.
20021
20022 2005-07-04  Matthew Gingell  <gingell@adacore.com>
20023
20024         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
20025
20026         * indepsw-linux.adb: Replace by...
20027
20028         * indepsw-gnu.adb: ...this new file
20029
20030 2005-07-04  Vincent Celier  <celier@adacore.com>
20031
20032         * mlib-prj.adb (Auto_Initialize): New constant String
20033         (SALs_Use_Constructors): New Boolean function
20034         (Build_Library): Call gnatbind with Auto_Initialize switch when
20035         SALs_Use_Constructors returns True.
20036
20037         * mlib-tgt.ads: Minor reformatting
20038
20039         * mlib-utl.ads: Minor reformatting
20040
20041         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
20042
20043 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20044
20045         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
20046         single protected declarations can have an interface list.
20047         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
20048         with seriously malformed entry declarations, and lead to compilation
20049         abandoned messages.
20050
20051 2005-07-04  Javier Miranda  <miranda@adacore.com>
20052
20053         * par-load.adb: Load the context items in two rounds.
20054
20055 2005-07-04  Robert Dewar  <dewar@adacore.com>
20056
20057         * scng.adb: Do not consider Mod used as an attribute to be a keyword
20058
20059 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20060             Javier Miranda  <miranda@adacore.com>
20061
20062         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
20063         type extension needs a limited view.
20064         Remove previous restriction on private types available through the
20065         limited-view (only tagged private types were previously allowed).
20066         (Install_Withed_Unit): In the code that implements the
20067         legality rule given in AI-377, exclude a child unit with the name
20068         Standard, because it is a homonym of the Standard environment package.
20069
20070 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20071
20072         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
20073         overloaded function call, carry interpretations from the original tree
20074         to the copy.
20075
20076 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20077
20078         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
20079         types check whether some designated type is a limited view, and use
20080         the non-limited view if available.
20081
20082 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
20083
20084         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
20085         constraint of full view of a private view T1 if present, when T2 is a
20086         discriminated full view.
20087
20088 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20089
20090         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
20091         actual that is a view conversion of a bit packed array reference.
20092
20093 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20094
20095         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
20096         present before checking whether an interface type covers a synchronized
20097         type.
20098
20099 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20100
20101         * sem_util.adb (Is_Object_Reference): An indexed or selected component
20102         whose prefix is an implicit dereference is an object reference. Removes
20103         spurious errors when compiling with -gnatc.
20104
20105 2005-07-04  Robert Dewar  <dewar@adacore.com>
20106
20107         PR ada/22039
20108         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
20109
20110 2005-07-04  Matthew Gingell  <gingell@adacore.com>
20111
20112         * tracebak.c: Enable tracebacks on ia64 platforms
20113
20114 2005-07-04  Vincent Celier  <celier@adacore.com>
20115
20116         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
20117         the GNAT BIND command, as gnatbind accepts multiples ALI files with
20118         the -L or -n switches.
20119
20120 2005-07-04  Vincent Celier  <celier@adacore.com>
20121
20122         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
20123         correctly computed and the main project data is not modified while
20124         doing so.
20125         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
20126         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
20127         c++linker as this does not work on some platforms.
20128
20129 2005-07-04  Matthew Heaney  <heaney@adacore.com>
20130
20131         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
20132         was changed.
20133         * a-coinve.adb: Perform constraint checks explicitly.
20134
20135 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20136             Thomas Quinot  <quinot@adacore.com>
20137
20138         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
20139         new target gen-soccon.
20140
20141 2005-07-04  Robert Dewar  <dewar@adacore.com>
20142
20143         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
20144
20145 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20146
20147         * g-socket.ads (Check_Selector): Minor rewording of comment.
20148
20149 2005-07-04  Vincent Celier  <celier@adacore.com>
20150
20151         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
20152
20153 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20154
20155         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
20156
20157 2005-07-04  Sergey Rybin  <rybin@adacore.com>
20158
20159         * gnat_ugn.texi: Add description of --eol gnatpp option
20160
20161 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20162             Thomas Quinot  <quinot@adacore.com>
20163
20164         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
20165         if the user wants all calls of a subprogram to be flagged,
20166         independently of whether they are made from within the same unit or
20167         another unit.
20168         Mention restriction for pragma Linker_Alias on some platforms.
20169         Document pragma Linker_Constructor and Linker_Destructor.
20170         Rewrite documentation of Weak_External, Linker_Section and
20171         Linker_Alias pragmas.
20172
20173 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
20174
20175         * s-stausa.ads, s-stausa.adb: New files.
20176
20177 2005-06-30  Kelley Cook
20178
20179         * all files:  Update FSF address in copyright headers.
20180         * gen-soccon.co (main): Output new FSF address in generated files.
20181
20182 2005-06-28  Paul Brook  <paul@codesourcery.com>
20183
20184         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
20185
20186 2005-06-14  Olivier Hainque  <hainque@adacore.com>
20187             Eric Botcazou  <ebotcazou@adacore.com>
20188
20189         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
20190         exc_unwind, now that we are generating proper .debug_frame output for
20191         that target.
20192
20193         * tracebak.c: Remove the mips-irix section, as we are now using the
20194         s-mastop based unwinder again.
20195         Under SPARC/Solaris, take into account the stack bias to compute the
20196         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
20197         ABI.
20198
20199 2005-06-14  Doug Rupp  <rupp@adacore.com>
20200
20201         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
20202
20203         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
20204
20205 2005-06-14  Pascal Obry  <obry@adacore.com>
20206
20207         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
20208         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
20209         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
20210         package name).
20211
20212         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
20213         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
20214         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
20215         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20216         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
20217         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
20218         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
20219         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
20220         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
20221         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
20222         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
20223         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
20224         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
20225         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
20226         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
20227         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
20228         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
20229         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
20230         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
20231         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
20232         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
20233         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
20234         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
20235         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
20236         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
20237         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
20238         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
20239         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
20240         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
20241         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
20242         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20243         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
20244         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
20245         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
20246         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
20247         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
20248         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20249         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
20250         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
20251         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20252         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
20253         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
20254         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
20255         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
20256         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
20257         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
20258         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20259         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
20260         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
20261         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
20262         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20263         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
20264         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
20265         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20266         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
20267         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20268         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
20269         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
20270         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20271         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
20272         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
20273         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20274         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
20275         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
20276         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
20277         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
20278         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
20279         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
20280         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
20281         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20282         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
20283         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
20284         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
20285         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20286         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
20287         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
20288         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
20289         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
20290         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
20291         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20292         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
20293         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
20294         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
20295         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20296         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
20297         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
20298         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
20299         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20300         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
20301         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
20302         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
20303         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20304         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
20305         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
20306         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
20307         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20308         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
20309         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
20310         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
20311         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20312         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
20313         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
20314         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
20315         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20316         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
20317         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
20318         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
20319         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
20320         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20321         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
20322         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20323         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
20324         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20325         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
20326         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
20327         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
20328         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
20329         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20330         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
20331         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
20332         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
20333         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
20334         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
20335         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
20336         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
20337         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
20338         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
20339         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
20340         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
20341         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
20342         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
20343         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
20344         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
20345
20346 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
20347             Arnaud Charlet  <charlet@adacore.com>
20348
20349         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
20350         longer protected objects. They have been replaced by lower-level
20351         suspension objects made up by a mutex and a condition variable (or
20352         their equivalent given a particular OS) plus some internal data to
20353         reflect the state of the suspension object.
20354         (Initialize, Finalize): Add this initialization procedure for
20355         Suspension_Object, which is a controlled type.
20356         (Finalize): Add the finalization procedure for Suspension_Object,
20357         which is a controlled type.
20358
20359         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
20360         Ada.Synchronous_Task_Control because there is no longer a need for a
20361         VxWorks specific version of this package. Target dependencies
20362         has been moved to System.Task_Primitives.Operations.
20363
20364         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
20365         longer needed.
20366         (InitializeCriticalSection, EnterCriticalSection,
20367         LeaveCriticalSection, DeleteCriticalSection): Replace the type
20368         pCriticalSection by an anonymous access type so that we avoid problems
20369         of accessibility to local objects.
20370
20371         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
20372         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20373         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
20374         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
20375         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
20376         set the environment task mask here.
20377         (Current_State): Add this function that returns the state of the
20378         suspension object.
20379         (Set_False): Add this procedure that sets the state of the suspension
20380         object to False.
20381         (Set_True): Add this procedure that sets the state of the suspension
20382         object to True, releasing the task that was suspended, if any.
20383         (Suspend_Until_True): Add this procedure that blocks the calling task
20384         until the state of the object is True. Program_Error is raised if
20385         another task is already waiting on that suspension object.
20386         (Initialize): Add this procedure for initializing the suspension
20387         object. It initializes the mutex and the condition variable which are
20388         used for synchronization and queuing, and it sets the internal state
20389         to False.
20390         (Finalize): Add this procedure for finalizing the suspension object,
20391         destroying the mutex and the condition variable.
20392
20393         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20394         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
20395         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
20396         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
20397         which provides a low-level abstraction (using operating system
20398         primitives) for Ada.Synchronous_Task_Control.
20399         This object is made up by a mutex (for ensuring mutual exclusion), a
20400         condition variable (for queuing threads until the condition is
20401         signaled), a Boolean (State) indicating whether the object is open,
20402         and a Boolean (Waiting) reflecting whether there is a task already
20403         suspended on this object.
20404
20405         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
20406         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
20407         s-intman-vms.ads, s-intman-mingw.adb,
20408         (Initialize_Interrupts): Removed, no longer used.
20409
20410         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
20411         (Setup_Interrupt_Mask): New procedure.
20412
20413         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
20414
20415         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
20416
20417         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
20418         this is no longer done in the body of s-taprop
20419         (Server_Task): Explicitely test for Pending_Action in case
20420         System.Parameters.No_Abort is True.
20421
20422         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
20423         is no longer done in the body of s-taprop
20424
20425 2005-06-14  Robert Dewar  <dewar@adacore.com>
20426
20427         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20428         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20429         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20430         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20431         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20432         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
20433         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
20434         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20435         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
20436         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
20437         system-linux-hppa.ads, system-vms_64.ads,
20438         system-vxworks-alpha.ads: Minor comment update for
20439         AI-362 (unit is Pure).
20440
20441         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
20442         Add pragma Pure_05 for AI-362
20443         Make remaining conversion functions obsolescent in Ada 95
20444
20445         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20446         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
20447         Add entries for a-wichun and a-zchuni
20448         Add a-widcha a-zchara for AI-395
20449         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
20450
20451         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20452         Add entries for a-wichun.o and a-zchuni.o
20453         Entries for a-widcha.o and a-zchara.o
20454         Add entry for a-chacon.o
20455
20456         * a-ztenau.adb: Add with of Ada.Characters.Conversions
20457
20458         * a-chacon.ads, a-chacon.adb: New files.
20459
20460         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
20461         categorization violations.
20462
20463         * a-strmap.ads: Add pragma Pure_05 for AI-362
20464         * a-strmap.ads: Add note on implicit categorization for AI-362
20465
20466         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
20467
20468         * par-prag.adb: Dummy entry for pragma Persistent_BSS
20469         Set Ada_Version_Explicit, for implementation of AI-362
20470         Add processing for pragma Pure_05 and Preelaborate_05
20471         Add entry for Assertion_Policy pragma
20472
20473         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
20474         when needed for proper processing of categorization stuff
20475
20476         * sem_cat.adb:
20477         For several cases, make errors in preealborate units warnings,
20478         instead of errors, if GNAT_Mode is set. For AI-362.
20479
20480         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
20481         preelaborate unit is now warning if in GNAT mode
20482
20483         * s-stoele.ads: Document AI-362 for pragma preelaborate
20484
20485 2005-06-14  Doug Rupp  <rupp@adacore.com>
20486
20487         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
20488         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
20489         Default_Exception_Msg_Max_Length: new parameter.
20490
20491         * a-except.ads: (Exception_Msg_Max_Length): Set to
20492         System.Parameters.Default_Exception_Msg_Max_Length
20493         Add pragma Preelaborate_05 for AI-362
20494         Add warnings off to allow categorization violations for AI-362
20495
20496 2005-06-14  Vincent Celier  <celier@adacore.com>
20497
20498         * gnatsym.adb: Adapt to modification of package Symbols: procedure
20499         Process is now in package Processing.
20500
20501         * symbols.ads, symbols.adb:
20502         (Processing): New package, containing procedure Process
20503
20504         * symbols-vms-alpha.adb:
20505         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
20506
20507         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
20508         symbols-processing-vms-ia64.adb: New files.
20509
20510 2005-06-14  Pascal Obry  <obry@adacore.com>
20511
20512         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
20513         implementation. This new version generates the proper DllMain routine
20514         to initialize the SAL. The DllMain is generated in Ada and compiled
20515         before being added as option to the library build command.
20516
20517 2005-06-14  Doug Rupp  <rupp@adacore.com>
20518             Pascal Obry  <obry@adacore.com>
20519
20520         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
20521         call to decc$translate_vms.
20522         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
20523         need to remove those quotes before catenating the filename.
20524         (__gnat_locate_exec_on_path): improvements to the Win32 section:
20525         * avoid allocating the memory twice for better efficiency;
20526         * allocate 32K buffer for environment expansion as suggested by MSDN;
20527         * prepend ".;" to the path so that current directory is searched too.
20528
20529 2005-06-14  Robert Dewar  <dewar@adacore.com>
20530
20531         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
20532         instead of raising CE (AI-241)
20533         Add warnings off to allow categorization violations for AI-362
20534
20535 2005-06-14  Robert Dewar  <dewar@adacore.com>
20536
20537         * ali-util.adb, gnatbind.adb: Remove references to
20538         Force_RM_Elaboration_Order.
20539
20540         * switch-b.adb: Remove recognition of -f switch
20541
20542 2005-06-14  Pascal Obry  <obry@adacore.com>
20543
20544         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
20545         implementation which is slightly more efficient.
20546
20547 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
20548             Javier Miranda  <miranda@adacore.com>
20549             Ed Schonberg  <schonberg@adacore.com>
20550             Hristian Kirtchev  <kirtchev@adacore.com>
20551
20552         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
20553         allocator's designated type is a class-wide type, and compiling for
20554         Ada 2005, emit a run-time check that the accessibility level of the
20555         type given in the allocator's expression is not deeper than the level
20556         of the allocator's access type.
20557
20558         (Tagged_Membership): Modified to gives support to abstract interface
20559         types.
20560
20561         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
20562         Access_Level.
20563         (Descendant_Tag): New predefined function
20564         (Is_Descendant_At_Same_Level): New predefined function
20565         (Get_Access_Level): New private function
20566         (Set_Access_Level): New private procedure
20567         (IW_Membership): New function. Given the tag of an object and the tag
20568         associated with an interface, evaluate if the object implements the
20569         interface.
20570         (Register_Interface_Tag): New procedure used to initialize the table of
20571         interfaces used by the IW_Membership function.
20572         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
20573         of the dispatch table.
20574         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
20575         table of interfaces of the parent.
20576         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
20577         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
20578         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
20579         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
20580         Ada 2005 semantics for the new predefined function.
20581
20582         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
20583         call to Descendant_Tag rather than Internal_Tag.
20584         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
20585         the accessibility level of the attribute's Item parameter is not deeper
20586         than the level of the attribute's prefix type. Tag_Error is raised if
20587         the check fails. The check is only emitted for Ada_05.
20588         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
20589         requested stream attribute, use it.
20590         (Expand_N_Attribute_Reference): If the designated type is an interface
20591         then rewrite the referenced object as a conversion to force the
20592         displacement of the pointer to the secondary dispatch table.
20593         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
20594         is a dereference of an object with a constrained partial view.
20595
20596         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
20597         type is a class-wide type, emit a run-time check that the accessibility
20598         level of the returned object is not deeper than the level of the
20599         function's master (only when compiling for Ada 2005).
20600
20601         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
20602         Action_Nb_Arg): Add entries for new Get_Access_Level and
20603         Set_Access_Level routines in these tables.
20604         (Make_DT): Generate a call to set the accessibility level of the
20605         tagged type in its TSD.
20606         (Make_DT): Code cleanup. The functionality of generating all the
20607         secondary dispatch tables has been moved to freeze_record_type.
20608         (Make_Abstract_Interface_DT): Minor code cleanup.
20609         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
20610         this subprogram implements a new algorithm that provides the
20611         same functionality and it is more clear in case of primitives
20612         associated with abstract interfaces.
20613         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
20614         clean up, the functionality of this subprogram is now provided
20615         by Set_All_DT_Position.
20616         (Write_DT): New subprogram: a debugging procedure designed to be called
20617         within gdb to display the dispatch tables associated with a tagged
20618         type.
20619         (Collect_All_Interfaces): New subprogram that collects the whole list
20620         of interfaces that are directly or indirectly implemented by a tagged
20621         type.
20622         (Default_Prim_Op_Position): New subprogram that returns the fixed
20623         position in the dispatch table of the default primitive operations.
20624         (Expand_Interface_Actuals): New subprogram to generate code that
20625         displaces all the actuals corresponding to class-wide interfaces to
20626         reference the interface tag of the actual object.
20627         (Expand_Interface_Conversion): New subprogram. Reference the base of
20628         the object to give access to the interface tag associated with the
20629         secondary dispatch table.
20630         (Expand_Interface_Thunk): New subprogram that generates the code of the
20631         thunk. This is required for compatibility with the C+ ABI.
20632         (Make_Abstract_Interface_DT): New subprogram that generate the
20633         declarations for the secondary dispatch tables associated with an
20634         abstract interface.
20635         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
20636         attribute for each primitive operation covering interface subprograms
20637         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
20638         These subprograms were upgraded to give support to abstract interfaces
20639
20640         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
20641         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
20642         RE_Set_Access_Level.
20643         (RE_Unit_Table): Add entries for new Ada.Tags operations.
20644         Add support to call the followig new run-time subprograms:
20645         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
20646
20647         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
20648         match its full declaration when both have an access definition with
20649         statically matching designated subtypes.
20650         (Analyze_Component_Declaration): Delete commented out code that was
20651         incorrectly setting the scope of an anonymous access component's type.
20652         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
20653         an access discriminant when the containing type is nonlimited.
20654         (Make_Incomplete_Type_Declaration): Create an incomplete type
20655         declaration for a record type that includes self-referential access
20656         components.
20657         (Check_Anonymous_Access_Types): Before full analysis of a record type
20658         declaration, create anonymous access types for each self-referential
20659         access component.
20660         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
20661         an access component in this context is a Local_Anonymous_Access, for
20662         proper accessibility checks.
20663         (Access_Definition): Set properly the scope of the anonymous access type
20664         created for a stand-alone access object.
20665         (Find_Type_Of_Object): An object declaration may be given with an access
20666         definition.
20667         (Complete_Subprograms_Derivation): New subprogram used to complete
20668         type derivation of private tagged types implementing interfaces.
20669         In this case some interface primitives may have been overriden
20670         with the partial-view and, instead of re-calculating them, they
20671         are included in the list of primitive operations of the full-view.
20672         (Build_Derived_Record_Type): Modified to give support to private
20673         types implemening interfaces.
20674         (Access_Definition): Reject ALL on anonymous access types.
20675         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
20676         type derivation to occur at a deeper accessibility level than the
20677         parent type.
20678         For the case of derivation within a generic body however, disallow the
20679         derivation if the derived type has an ancestor that is a formal type
20680         declared in the formal part of an enclosing generic.
20681         (Analyze_Object_Declaration): For protected objects, remove the check
20682         that they cannot contain interrupt handlers if not declared at library
20683         level.
20684         (Add_Interface_Tag_Components): New subprogram to add the tag components
20685         corresponding to all the abstract interface types implemented by a
20686         record type or a derived record type.
20687         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20688         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20689         Process_Full_View, Record_Type_Declaration): Modified to give
20690         support to abstract interface types
20691         (Collect_Interfaces): New subprogram that collects the list of
20692         interfaces that are not already implemented by the ancestors
20693         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
20694         when partial view has no discriminants and full view has defaults.
20695         (Constrain_Access): Reject a constraint on a general access type
20696         if the discriminants of the designated type have defaults.
20697         (Access_Subprogram_Declaration): Associate the Itype node with the inner
20698         full-type declaration or subprogram spec. This is required to handle
20699         nested anonymous declarations.
20700         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20701         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20702         Process_Full_View, Record_Type_Declaration): Modified to give
20703         support to abstract interface types
20704         (Derive_Subprograms): Addition of a new formal to indicate if
20705         we are in the case of an abstact-interface derivation
20706         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
20707         to the specification because it is requied to analyze all the
20708         identifiers found in a list of interfaces
20709
20710         * debug.adb: Complete documentation of flag "-gnatdZ"
20711
20712         * exp_ch3.adb: Implement config version of persistent_bss pragma
20713         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
20714         testing for TSS presence to properly enforce visibility rules.
20715         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
20716         Make_Abstract_Interfaces_DT to generate the secondary tables
20717         associated with abstract interfaces.
20718         (Build_Init_Procedure): Modified to initialize all the tags
20719         corresponding.
20720         (Component_Needs_Simple_Initialization): Similar to other tags,
20721         interface tags do not need initialization.
20722         (Freeze_Record_Type): Modified to give support to abstract interface
20723         types.
20724         (Expand_N_Object_Declaration): Do not generate an initialization for
20725         a scalar temporary marked as internal.
20726
20727         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
20728         in-out parameter that is a component in an initialization procedure,
20729         whose constraint might depend on discriminants, and that may be
20730         misaligned because of packing or representation clauses.
20731         (Is_Legal_Copy): New predicate to determine whether a possibly
20732         misaligned in-out actual can actually be passed by copy/return. This
20733         is an error in case the type is by_reference, and a warning if this is
20734         the consequence of a DEC import pragma on the subprogram.
20735         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
20736         interface types
20737         (Expand_Inlined_Call): Mark temporary generated for the return value as
20738         internal, so that no useless scalar normalization is generated for it.
20739         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
20740         null procedure can always be inlined.
20741         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
20742         procedure, generate an explicit empty body for it.
20743
20744         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
20745         Given a type implementing an interface, returns the corresponding
20746         access_disp_table value.
20747         (Find_Interface_Tag): New subprogram. Given a type implementing an
20748         interface, returns the record component containing the tag of the
20749         interface.
20750         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
20751         previous ones that return the corresponding tag and access_disp_table
20752         entities.
20753         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
20754         is a predefined primitive operation.
20755         (Expand_Subtype_From_Expr): If the expression is a selected component
20756         within an initialization procedure, compute its actual subtype, because
20757         the component may depend on the discriminants of the enclosing record.
20758
20759         * i-cpp.ads, i-cpp.adb:
20760         This package has been left available for compatibility with previous
20761         versions of the frontend. As part of the new layout this is now a
20762         dummy package that uses declarations available at a-tags.ads
20763
20764         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
20765         "constant access" and "aliased [constant] access" when not compiling
20766         with -gnat05.
20767         Suppress Ada 2005 keyword warning if -gnatwY used
20768         (P_Identifier_Declarations): Add support for object declarations with
20769         access definitions.
20770         (Private_Extension_Declaration): Complete the documentation
20771         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
20772         attribute in case of private extension declaration
20773         (P_Type_Declaration): Mark as "abstract" the type declarations
20774         corresponding with protected, synchronized and task interfaces
20775         (P_Declarative_Items): "not" and "overriding" are overriding indicators
20776         for a subprogram or instance declaration.
20777
20778         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
20779         instantiation that is a dispatching operation has controlling access
20780         parameters that are null excluding.
20781         Save and restore Ada_Version_Explicit, for implementation of AI-362
20782         (Validate_Derived_Type_Instance): Add check for abstract interface
20783         types.
20784         (Analyze_Formal_Package): Establish Instantiation source for the copy of
20785         the generic that is created to represent the formal package.
20786         (Analyze_Package_Instantiation): Instantiate body immediately if the
20787         package is a predefined unit that contains inlined subprograms, and
20788         we are compiling for a Configurable_Run_Time.
20789         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
20790         If the program has a null default, generate an empty body for it.
20791
20792         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
20793         error message condition, null procedures are correctly detected now.
20794         (New_Overloaded_Entity): Bypass trivial overriding indicator check
20795         for subprograms in the context of protected types. Instead, the
20796         indicator is examined in Sem_Ch9 while analysing the subprogram
20797         declaration.
20798         (Check_Overriding_Indicator): Check consistency of overriding indicator
20799         on subprogram stubs as well.
20800         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
20801         the library level.
20802         (Analize_Subprogram_Specification): When analyzing a subprogram in which
20803         the type of the first formal is a concurrent type, replace this type
20804         by the corresponding record type.
20805         (Analyze_Subprogram_Body): Undo the previous work.
20806         (Analyze_Procedure_Call): If the call has the form Object.Op, the
20807         analysis of the prefix ends up analyzing the call itself, after which
20808         we are done.
20809         (Has_Interface_Formals): New subprogram subsidiary to analyze
20810         subprogram_specification that returns true if some non
20811         class-wide interface subprogram is found
20812         (New_Overloaded_Entity): Modified to give support to abstract
20813         interface types
20814         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
20815         access to subprograms must be recursive.
20816         (Is_Unchecked_Conversion): Improve the test that recognizes
20817         instantiations of Unchecked_Conversion, and allows them in bodies that
20818         are to be inlined by the front-end. When the body comes from an
20819         instantiation, a reference to Unchecked_Conversion will be an
20820         Expanded_Name, even though the body has not been analyzed yet.
20821         Replace Is_Overriding and Not_Overriding in subprogram_indication with
20822         Must_Override and Must_Not_Override, to better express intent of AI.
20823         (Analyze_Subprogram_Body): If an overriding indicator is given, check
20824         that it is consistent with the overrinding status of the subprogram
20825         at this point.
20826         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
20827         always inlined.
20828         If the subprogram is a null procedure, indicate that it does not need
20829         a completion.
20830
20831         * sem_disp.adb (Check_Controlling_Type): Give support to entities
20832         available through limited-with clauses.
20833         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
20834         allowed as the last primitive of a tagged type if it has no previous
20835         spec.
20836         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
20837         to give support to abstract interface types
20838
20839         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
20840         in the case where the target type is an anonymous access type of an
20841         object or component (that is, when Is_Local_Anonymous_Access is true).
20842         Prevent the special checks for conversions of access discriminants in
20843         the case where the discriminant belongs to a nonlimited type, since
20844         such discriminants have their accessibility level defined in the same
20845         way as a normal component of an anonymous access type.
20846         (Resolve_Allocator): When an allocator's designated type is a class-wide
20847         type, check that the accessibility level of type given in the
20848         allocator's expression or subtype indication is not statically deeper
20849         than the level of the allocator's access type.
20850         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
20851         name in a discriminant constraint of a record component.
20852         (Resolve_Explicit_Dereference): Do not check whether the type is
20853         incomplete when the dereference is a use of an access discriminant in
20854         an initialization procedure.
20855         (Resolve_Type_Conversion): Handle conversions to abstract interface
20856         types.
20857         (Valid_Tagged_Conversion): The conversion of a tagged type to an
20858         abstract interface type is always valid.
20859         (Valid_Conversion): Modified to give support to abstract interface types
20860         (Resolve_Actuals): Enable full error reporting on view conversions
20861         between unrelated by_reference array types.
20862         The rule for view conversions of arrays with aliased components is
20863         weakened in Ada 2005.
20864         Call to obsolescent subprogram is now considered to be a violation of
20865         pragma Restrictions (No_Obsolescent_Features).
20866         (Check_Direct_Boolean_Operator): If the boolean operation has been
20867         constant-folded, there is nothing to check.
20868         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
20869         check on possible violation of restriction No_Direct_Boolean_Operators
20870         until after expansion of operands, to prevent spurious errors when
20871         operation is constant-folded.
20872
20873         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
20874         Has_Compatible_Type): Modified to give support to abstract interface
20875         types.
20876         (Interface_Present_In_Ancestor): New function to theck if some ancestor
20877         of a given type implements a given interface
20878
20879         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
20880         prefix is a parameterless function that returns an access_to_procedure.
20881         (Transform_Object_Operation): Handle properly function calls of the
20882         form Obj.Op (X), which prior to analysis appear as indexed components.
20883         (Analyze_One_Call): Complete the error notification to help new Ada
20884         2005 users.
20885         (Analyze_Allocator): For an allocator without an initial value, where
20886         the designated type has a constrained partial view, a discriminant
20887         constraint is illegal.
20888
20889 2005-06-14  Robert Dewar  <dewar@adacore.com>
20890
20891         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
20892         do with treatment of Set_Col when positioned at end of line character.
20893
20894 2005-06-14  Robert Dewar  <dewar@adacore.com>
20895
20896         * atree.adb: (Elist*): Protect against uninitialized field
20897
20898 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
20899
20900         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
20901         for an attribute reference that returns an access type.
20902         (Apply_Discriminant_Check): No need for check if (designated) type has
20903         constrained partial view.
20904
20905         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
20906         both bound checks, rather than a conjunction.
20907         (Insert_Valid_Check): If the expression is an actual that is an indexed
20908         component of a bit-packed array, force expansion of the packed element
20909         reference, because it is specifically inhibited elsewhere.
20910
20911 2005-06-14  Vincent Celier  <celier@adacore.com>
20912
20913         * clean.adb (Clean_Project): Correctly delete executable specified as
20914         absolute path names.
20915
20916         * make.adb (Gnatmake): Allow relative executable path names with
20917         directory information even when project files are used.
20918         (Change_To_Object_Directory): Fail gracefully when unable to change
20919         current working directory to object directory of a project.
20920         (Gnatmake): Remove exception handler that could no longer be exercized
20921         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
20922         may be deallocated by Normalize_Arguments.
20923         (Collect_Arguments): Eliminate empty arguments
20924
20925         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
20926         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
20927         (Check_Project): Return False when Project is No_Project. Return True
20928         when All_Projects is True.
20929         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
20930         All_Projects to True.
20931         Minor reformatting
20932
20933 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
20934             Javier Miranda  <miranda@adacore.com>
20935             Thomas Quinot  <quinot@adacore.com>
20936             Robert Dewar  <dewar@adacore.com>
20937             Hristian Kirtchev  <kirtchev@adacore.com>
20938             Gary Dismukes  <dismukes@adacore.com>
20939
20940         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
20941         anonymous access types, to indicate that the accessibility level of
20942         the type is determined by that of the enclosing declaration.
20943         (Has_Persistent_BSS): New flag
20944         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
20945         of this attribute with functions.
20946         (Is_Primitive_Wrapper): Remove the barrier.
20947         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
20948         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
20949         New subprograms.
20950         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
20951         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
20952         New subprograms.
20953         (Is_Pure_Unit_Access_Type): New flag
20954         (Abstract_Interfaces): Complete the assertion to cover all usages.
20955         (Set_Is_Interface): Complete the assertion to cover all usages.
20956         (Is_Primitive_Wrapper): New attribute.
20957         (Is_Obsolescent): Now applies to all entities (though it is only set
20958         for subprograms currently)
20959         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
20960         which solves various problems concerning access subtypes.
20961         (Has_Persistent_BSS): New flag
20962         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
20963         Remove these subprograms because this attribute is currently
20964         not used.
20965         New entity flags:
20966         Has_Specified_Stream_Input (Flag190)
20967         Has_Specified_Stream_Output (Flag191)
20968         Has_Specified_Stream_Read (Flag192)
20969         Has_Specified_Stream_Write (Flag193)
20970         Present in all type and subtype entities. Set for a given view if the
20971         corresponding stream-oriented attribute has been defined by an
20972         attribute definition clause. When such a clause occurs, a TSS is set
20973         on the underlying full view; the flags are used to track visibility of
20974         the attribute definition clause for partial or incomplete views.
20975         (Is_Pure_Unit_Access_Type): New flag
20976         Clarify use of Is_Internal.
20977         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
20978         internally generated to wrap the invocation of tasks and protected
20979         types that implement interfaces.
20980         (Implementation_Base_Type): Documentation correction
20981         (Is_Obsolescent): Now applies to all entities (though it is only set
20982         for subprograms currently)
20983         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
20984         which solves various problems concerning access subtypes.
20985
20986         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
20987         for examined parameters. Identify unequal parameter list lengths as
20988         non-conformant parameters.
20989         (Overriding_Possible): Do not check for "All" qualifier in declaration
20990         of controlling access parameter, following prescription of AI-404.
20991         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
20992         that build the procedure body that wraps an entry invocation
20993         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
20994         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
20995         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
20996         give support to abstract interface types
20997
20998         * freeze.adb (Freeze_Entity): Issue error message if
20999         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
21000         type has no storage pool (Ada 2005) AI-366.
21001         Also modified to give support to abstract interface types
21002         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
21003         Inline_Always pragma.
21004
21005         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
21006         now begin an entry declaration.
21007         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
21008         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
21009         a subprogram declaration preceded by an overriding indicator.
21010         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
21011         declarations or subprogram declarations preceded by reserved words
21012         "not" or "overriding".
21013         (P_Entry_Declaration): Update comment. Parse and check overriding
21014         indicator, set semantic flags of entry declarations.
21015         (P_Task): New error message in case of private applied
21016         to a task type declaration.
21017         (P_Protected): New error message in case of private applied
21018         to a task type declaration.
21019
21020         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
21021         in which the full view of a type implementing an interface is a
21022         concurrent type.
21023         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
21024         Declare_Inherited_Private_Subprograms): If an explicit operation
21025         overrides an operation that is inherited in the private part, mark the
21026         explicit one as overriding, to enable overriding indicator checks.
21027         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
21028         full view to partial view, to simplify handling in back-end.
21029
21030         * sprint.adb: Print interface lists where needed: derived types,
21031         protected types, task types.
21032         output "is null" for null procedures. Part of implementation of
21033
21034         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
21035         relaxation of rules for access types in pure, shared passive partitions.
21036
21037         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
21038         first read discriminants into temporary objects, performing checks on
21039         the read values, then possibly performing discriminant checks on the
21040         actual (if it is constrained), and only finally reading the components
21041         into a constrained temporary object.
21042         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
21043         case of reading discriminants of a mutable record type to recognize
21044         the new form of the code generated by
21045         Build_Mutable_Record_Read_Procedure.
21046
21047         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
21048         of a simple call to Make_TSS_Name.
21049         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
21050         buffer, in order for Is_TSS to work correctly on local TSS names.
21051
21052         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
21053         Is_Local_Anonymous_Access to check legaliy of attributes in the
21054         context of  access components and stand-alone access objects.
21055         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
21056         treated as available for a limited private type if there is an
21057         attribute_definition_clause that applies to its full view, but not in
21058         other cases where the attribute is available for the full view
21059         (specifically, the sole fact that the full view is non-limited does not
21060         make the attribute available for the partial view).
21061         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
21062         non-overloaded intrinsic subprogram.
21063         (Check_Stream_Attribute): Reject an attribute reference for an
21064         unavailable stream attribute even if the prefix is not a limited type
21065         (case of a 'Input attribute reference for an abstract, non-classwide
21066         type)
21067         (Stream_Attribute_Available): New function to determine whether a stream
21068         attribute is available at a place.
21069         (Check_Attribute): Use Stream_Attribute_Available instead of just
21070         testing for TSS presence on the implementation base type.
21071         (Analyze_Attribute): Modified to give support to task interfaces.
21072         (Analyze_Access_Attribute): Add error check for use of an Access (or
21073         Unrestricted_Access) attribute with a subprogram marked as
21074         Inline_Always.
21075         (Analyze_Attribute, case Attribute_Address): Add error check for use of
21076         an Address attribute with a subprogram marked as Inline_Always.
21077         Update Eval_Attribute to handle new value of Width from AI-395
21078
21079         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
21080         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
21081         Factor common code across the stream-oriented attribute circcuits into
21082         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
21083         processing is functionally identical to the previous duplicated one,
21084         except that an expression that denotes an abstract subprogram will now
21085         be rejected, as mandated by AI-195 item 5.
21086
21087         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
21088         Is_Local_Anonymous_Access to apply accessibility checks to access
21089         components and stand-alone access objects.
21090         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
21091         elsewhere.
21092         (Is_Potentially_Persistent_Type): New function
21093         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
21094         a heap-object whose type has a constrained partial view, the object is
21095         unconstrained and the component may depend on a discriminant, making its
21096         renaming illegal.
21097
21098         * sinfo.ads, sinfo.adb
21099         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
21100         (Must_Override): Flag applicable to N_Entry_Declaration.
21101         Indicate that interface_list can appear in single task and single
21102         protected declarations.
21103         Replace Is_Overriding and Not_Overriding with Must_Override and
21104         Must_Not_Override, to better express intent of AI.
21105         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
21106         of an overriding indicator in a subprogram or instance.
21107         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
21108         Add the overriding indicator [[not] overriding] construct to the
21109         following grammar productions:
21110          ENTRY_DECLARATION
21111          GENERIC_INSTANTIATION
21112          SUBPROGRAM_SPECIFICATION
21113
21114         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
21115         can start with an overriding indicator.
21116
21117         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
21118         flags accordingly on subrogram specifications or instances.
21119
21120         * sem_ch8.adb:
21121         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
21122         overriding_indicator, if present, is consistent with status of spec.
21123         Improve error message for null-excluding checks on controlling access
21124         parameters.
21125         (Check_In_Previous_With_Clause): Protect the frontend against
21126         previously reported critical errors in the context clauses.
21127         Save and restore Ada_Version_Explicit, for implementation of AI-362
21128         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
21129         operation verify that controlling formals of the renamed entity that
21130         are access parameters are explicitly non-null.
21131         (Find_Expanded_Name): Improve error message when prefix is an illegal
21132         reference to a private child unit.
21133
21134         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
21135         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
21136         Rewrite to correspond to new wide character names in AI-395
21137
21138         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
21139         default procedures.
21140
21141 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21142             Robert Dewar  <dewar@adacore.com>
21143
21144         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
21145         code, not on the bodies of predefined operations, to cut down on
21146         spurious noise.
21147
21148 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21149
21150         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
21151         be expanded in place. The size computation does not require a
21152         subtraction, which would raise an exception on a compiler built with
21153         assertions when the upper bound is Integer'first.
21154         (Flatten): For an array of composite components, take into account the
21155         size of the components to determine whether it is safe to expand the
21156         array into a purely positional representation.
21157
21158 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21159
21160         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
21161         denoting a formal parameter into account.
21162
21163 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21164
21165         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
21166         the entry_call alternative of a conditional entry call, wrap the
21167         conditional entry call itself.
21168
21169 2005-06-14  Nicolas Setton  <setton@adacore.com>
21170             Ed Schonberg  <schonberg@adacore.com>
21171
21172         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
21173         the "simple_choice" member in a variant record, in accordance with the
21174         description in the package spec: the information output for a constant
21175         should be "S number", not "SS number".
21176         (Get_Encoded_Name): Return at once if not generating code. Avoids name
21177         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
21178
21179 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21180
21181         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
21182         RACW without any primitives, do not generate the if statement for
21183         dispatching by name in the PolyORB/DSA case, as it would be malformed
21184         (it would have an Elsif_Parts list that is not No_List, but with a
21185         length of 0).
21186
21187 2005-06-14  Robert Dewar  <dewar@adacore.com>
21188
21189         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
21190
21191 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
21192
21193         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
21194         can determine whether pragma Suppress_Exception_Locations is in effect.
21195
21196         * utils2.c (build_call_raise): Do not pass the file name to the
21197         exception handler if pragma Suppress_Exception_Locations is in effect.
21198         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
21199
21200 2005-06-14  Emmanuel Briot  <briot@adacore.com>
21201
21202         * g-debpoo.adb (Deallocate, Dereference): Improve output.
21203
21204 2005-06-14  Nicolas Roche  <roche@adacore.com>
21205
21206         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
21207         to ""
21208         (Next_Level): Fix minor bug in handling of ../dir case
21209         (Read): Add dir separator to Directory name so that "" is understood as
21210          "/"
21211
21212 2005-06-14  Pascal Obry  <obry@adacore.com>
21213
21214         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
21215         releasing the items.
21216
21217 2005-06-14  Vincent Celier  <celier@adacore.com>
21218             Cyrille Comar  <comar@adacore.com>
21219
21220         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
21221         with output file descriptor and with output file name.
21222         (Dup, Dup2): Now global procedures as they are used by two subprograms
21223         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
21224
21225 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21226
21227         PR ada/6717
21228         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
21229         broadcast address.
21230         (Create_Selector): Bind listening socket used to create the signalling
21231         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
21232         Set listen backlog to 1 to ensure that we detect socket theft by a
21233         failure of our own connect(2) call.
21234         (Check_Selector): Improve documentation of the selector mechanism.
21235         (Broadcast_Inet_Addr): New constant.
21236
21237 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21238
21239         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
21240         type which turns out to be an incomplete and incorrect fix.
21241         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
21242         of the type is declared in a record (for determination of insertion
21243         type).
21244         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
21245         a private type and ensure that the primary entity is used for the type
21246         of the newly created function's V formal by taking the Etype of the
21247         view.
21248
21249 2005-06-14  Javier Miranda  <miranda@adacore.com>
21250             Jose Ruiz  <ruiz@adacore.com>
21251             Robert Dewar  <dewar@adacore.com>
21252             Ed Schonberg  <schonberg@adacore.com>
21253
21254         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
21255         that indicates if we are parsing a compilation unit found in a
21256         limited-with clause.
21257         It is use to avoid the circularity check.
21258
21259         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
21260         we are parsing a compilation unit found in a limited-with clause. This
21261         is use to avoid the circularity check.
21262
21263         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
21264         unit as a consequence of parsing a limited-with clause. This is used
21265         to avoid the circularity check.
21266
21267         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
21268         (Analyze_Context): Limited-with clauses are now allowed
21269         in more compilation units.
21270         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
21271         againts previously reported critical errors in context clauses
21272         (Install_Limited_Withed_Unit): Code cleanup plus static detection
21273         of two further errors: renamed subprograms and renamed packages
21274         are not allowed in limited with clauses.
21275         (Install_Siblings): Do not install private_with_clauses on the package
21276         declaration for a non-private child unit.
21277         (Re_Install_Parents): When a parent of the subunit is reinstalled,
21278         reset visibility of child units properly.
21279         (Install_Withed_Unit): When a child unit appears in a with_clause of its
21280         parent, it is immediately visible.
21281
21282 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21283             Emmanuel Briot  <briot@adacore.com>
21284
21285         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
21286         declared within an inlined body as referenced, to prevent spurious
21287         warnings.
21288         (Output_One_Ref): If an entity renames an array component, indicate in
21289         the ALI file that this aliases (renames) the array. Capture as well
21290         function renamings that rename predefined operations.
21291         Add information about generic parent for package and subprogram
21292         instances.
21293         (Get_Type_Reference): For a subtype that is the renaming of an actual in
21294         an instantiation, use the first_subtype to ensure that we don't generate
21295         cross-reference information for internal types.
21296         For objects and parameters of a generic private type, retain the '*'
21297         indicator to distinguish such an entity from its type.
21298
21299         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
21300         to store information about instantiated entities.
21301
21302         * ali.adb (Scan_ALI): Add support for parsing the reference to the
21303         generic parent
21304
21305         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
21306         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
21307         information.
21308
21309 2005-06-10  Doug Rupp  <rupp@adacore.com>
21310             Arnaud Charlet  <charlet@adacore.com>
21311             Olivier Hainque  <hainque@adacore.com>
21312             Jose Ruiz  <ruiz@adacore.com>
21313
21314         * Make-lang.in: Add initialize.o when needed.
21315         Remove obsolete references to RT_FLAGS.
21316         Add missing dependencies for sdefault.o
21317
21318         * initialize.c: New file.
21319
21320         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
21321         [VMS] cond_signal_table: Fix problem in declaration.
21322         [VMS] __gnat_error_handler: rewrite.
21323         Move all __gnat_initialize() routines to initialize.c
21324         Specialize the former "hpux" section to "hppa hpux", as this is what the
21325         section really is here for and we now have other hpux ports that need
21326         different contents.
21327         (__gnat_adjust_context_for_raise) i386-linux: First version of this
21328         function for this target. Adjust PC by one in the machine context. This
21329         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
21330         it is more reliable to do that in the signal handler itself.
21331         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
21332         flags, so that the handler is passed the context structure to adjust
21333         prior to the raise.
21334         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
21335         SA_SIGINFO sigaction should look like. Call
21336         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
21337         Machine_State_Operations stuff.
21338         Add conditional code so that the x86_64 is also supported.
21339
21340 2005-06-14  Pascal Obry  <obry@adacore.com>
21341
21342         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
21343         the library name.
21344
21345 2005-06-14  Robert Dewar  <dewar@adacore.com>
21346
21347         * opt.ads, opt.adb: New flags for persistent_bss mode
21348         Add Ada_Version_Explicit, for implementation of AI-362
21349         Add Assertions_Enabled_Config and associated handling
21350         Needed since setting can be changed with Assertion_Policy pragma
21351         Add new flag Warn_On_Ada_2005_Compatibility
21352
21353         * switch-c.adb: Recognize -gnatwy/Y
21354         Set Ada_Version_Explicit, for implementation of AI-362
21355         The -gnatg switch now includes -gnatyu
21356
21357         * usage.adb: Add -gnatwy/Y
21358         Remove wrong asterisk on -gnatwX line
21359         Add line for -gnatyu switch
21360
21361 2005-06-14  Vincent Celier  <celier@adacore.com>
21362
21363         * osint.adb (Add_Default_Search_Dirs): Put source and object
21364         directories of project files before directories coming from
21365         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
21366
21367 2005-06-14  Robert Dewar  <dewar@adacore.com>
21368
21369         PR ada/15613
21370         * par-ch2.adb (Scan_Pragma_Argument): New procedure
21371         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
21372
21373 2005-06-14  Vincent Celier  <celier@adacore.com>
21374
21375         * prep.adb (Preprocess): Ignore error when scanning the first token of
21376         a line.
21377
21378 2005-06-14  Vincent Celier  <celier@adacore.com>
21379
21380         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
21381         (Check_Stand_Alone_Library): If the specified reference symbol file does
21382         not exist, only issue a warning when the symbol policy is not
21383         Controlled. And, when symbol policy is Compliant, set the symbol
21384         policy to Autonomous.
21385
21386 2005-06-14  Vincent Celier  <celier@adacore.com>
21387
21388         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
21389         when the project file in a with clause is not the last one, that is the
21390         project file name is followed by a comma.
21391         * prj-pp.adb: (First_With_In_List): New Boolean global variable
21392         (Print): Issue list of project files separated by commas in with clauses
21393         according to the values returned by Is_Not_Last_In_List.
21394         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
21395         (Set_Is_Not_Last_In_List): New procedure
21396
21397 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
21398
21399         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
21400
21401 2005-06-14  Robert Dewar  <dewar@adacore.com>
21402
21403         * scng.adb: Add call to new Check_EOF routine
21404         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
21405         Add some comments regarding wide character handling
21406
21407         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
21408
21409         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
21410
21411         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
21412         characters are now considered graphic characters and hence yield false
21413         in this call.
21414
21415         * nmake.adt: Modify header so that xnmake does not generate output
21416         files with multiple blank lines.
21417
21418         * treeprs.adt: Remove a blank line so that output from xtreeprs does
21419         not have an extra blank line
21420
21421 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21422
21423         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
21424         expression when the component type is an anonymous access type to
21425         ensure that appropriate accessibility checks are done.
21426
21427         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
21428         expression of an assignment when the target object is of an anonymous
21429         access type. This ensures that required accessibility checks are done.
21430         (One_Bound): Move the check for type Universal_Integer to
21431         Process_Bounds.
21432         (Process_Bounds): Check whether the type of the preanalyzed range is
21433         Universal_Integer, and in that case set Typ to Integer_Type prior
21434         to setting the type of the original range and the calls to One_Bound.
21435
21436 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21437
21438         * sem_case.adb (Expand_Others_Choice): Improve warning.
21439
21440 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21441
21442         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
21443         constraint of full view if present, when other type is discriminated.
21444         (Eval_Relational_Op): Recognize tests of pointer values against Null,
21445         when the pointer is known to be non-null, and emit appropriate warning.
21446
21447 2005-06-14  Robert Dewar  <dewar@adacore.com>
21448             Ed Schonberg  <schonberg@adacore.com>
21449
21450         PR ada/10671
21451         * sem_prag.adb: Implement pragma Persistent_BSS
21452         Remove obsolete pragma Persistent_Data, Persistent_Object
21453         Set Ada_Version_Explicit, for implementation of AI-362
21454         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
21455         Add processing for pragma Pure_05 and Preelaborate_05
21456         Add processing for Assertion_Policy pragma
21457         Add pragma identifiers for Assert
21458         (Analyze_Pragma, case Assert): Check number of arguments
21459         (Process_Inline): Additional guard against an illegal program, where the
21460         argument of the pragma is undefined, and warnings on redundant
21461         constructs are enabled.
21462         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
21463         Ada_05 to this pragma, specifying that the pragma is only active in
21464         Ada_05 mode.
21465         (Check_Arg_Order): New procedure
21466         Add appropriate calls to this procedure throughout
21467         Also throughout, check entity name before doing any other checks
21468
21469         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
21470         Remove obsolete pragma Persistent_Data, Persistent_Object
21471         Add entries for pragma Pure_05 and Preelaborate_05
21472         Add entries for Assertion_Policy pragma and associated names
21473         Add some names for pragma argument processing
21474
21475         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
21476
21477 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21478
21479         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
21480         appears within a negation (either from source or as a rewriting of
21481         inequality) adjust text of warning accordingly.
21482
21483 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21484
21485         * s-strxdr.adb: Follow AI95-00132
21486
21487 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
21488
21489         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
21490
21491 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
21492             Jose Ruiz  <ruiz@adacore.com>
21493
21494         * s-tposen.adb, s-tpobop.adb
21495         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
21496         the exception id.
21497         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
21498         there is no violation of the Max_Entry_Queue_Length restriction (if it
21499         has been set); Program_Error is raised otherwise.
21500         (Requeue_Call): Before requeuing the task on the target entry queue we
21501         check that there is no violation of the Max_Entry_Queue_Length
21502         restriction (if it has been set); Program_Error is raised otherwise.
21503
21504 2005-06-14  Robert Dewar  <dewar@adacore.com>
21505
21506         * styleg.adb: Fix several remaining problems in -gnatyu switch
21507         Blank line count not reset at start
21508         Scanning outside source buffer in some cases
21509         Confusing message for blanks at end of file
21510         Non-empty blank lines not recognized
21511
21512         * nmake.adt: Modify header so that xnmake does not generate output
21513         files with multiple blank lines.
21514
21515         * treeprs.adt: Remove a blank line so that output from xtreeprs does
21516         not have an extra blank line
21517
21518 2005-06-14  Sergey Rybin  <rybin@adacore.com>
21519
21520         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
21521
21522 2005-06-14  Doug Rupp  <rupp@adacore.com>
21523             Vincent Celier  <celier@adacore.com>
21524
21525         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
21526         Update copyright.
21527
21528         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21529         Remove "Library" command.
21530         Change keyword for style check -gnatyd from NOCRLF to
21531         DOS_LINE_ENDINGS.
21532         Remove useless second style check keyword NONE
21533         Remove help documentation for inexistent style check keyword
21534         RM_COLUMN_LAYOUT.
21535         Add help documentation for style check keywords DOS_LINE_ENDINGS,
21536         UNNECESSARY_BLANK_LINES and XTRA_PARENS
21537         Add UNNECESSARY_BLANK_LINES for -gnatyu
21538         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
21539
21540         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21541
21542 2005-06-14  Vincent Celier  <celier@adacore.com>
21543
21544         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
21545         gprmake was invoked with -d.
21546         (Compile_Sources): If -d was used, output the "completed ..." message
21547         for each compilation.
21548         (Scan_Arg): Recognize new switch -d
21549         When -c and at least one main is specified, set
21550         Unique_Compile to True to guarantee that no other sources will be
21551         compiled.
21552
21553 2005-06-14  Matthew Heaney  <heaney@adacore.com>
21554
21555         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
21556         * a-swuwha.ads, a-swuwha.adb: New files
21557
21558         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
21559         * a-szuzha.ads, a-szuzha.adb: New files.
21560
21561         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21562         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
21563         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
21564         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
21565         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
21566         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
21567         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
21568         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
21569         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
21570         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
21571         Ada 2005 RM.
21572
21573 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
21574             Olivier Hainque  <hainque@adacore.com>
21575             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21576             Pascal Obry  <obry@adacore.com>
21577
21578         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
21579
21580         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
21581         making a temporary around a procedure call because of non-addressable
21582         actual parameter.
21583         (process_freeze_entity): If entity is a private type, capture size
21584         information that may have been computed for the full view.
21585         (tree_transform, case N_Allocator): If have initializing expression,
21586         check type for Has_Constrained_Partial_View and pass that to
21587         build_allocator.
21588         (tree_transform, case N_Return_Statement): Pass extra arg to
21589         build_allocator.
21590
21591         * decl.c (annotate_value): Remove early return if -gnatR is not
21592         specified.
21593         (gnat_to_gnu_field): Don't make a packable type for a component clause
21594         if the position is byte aligned, the field is aliased, and the clause
21595         size isn't a multiple of the packable alignment. It serves no useful
21596         purpose packing-wise and would be rejected later on.
21597         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
21598
21599         PR ada/20515
21600         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
21601         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
21602         instead.
21603         (create_concat_name): Idem.
21604
21605 2005-06-10  Robert Dewar  <dewar@adacore.com>
21606             Eric Botcazou  <ebotcazou@adacore.com>
21607             Ben Brosgol  <brosgol@adacore.com>
21608             Cyrille Comar  <comar@adacore.com>
21609             Sergey Rybin  <rybin@adacore.com>
21610             Pascal Obry  <obry@adacore.com>
21611
21612         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
21613         Document second argument (Ada_05) of pragma Obsolescent
21614         Add note that call to subprogram marked with pragma Obsolescent
21615         is now considered to be a violation of program Restrictions
21616         (No_Obsolescent_Features).
21617         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
21618         that only machine-dependent attributes are supported.
21619
21620         * gnat_ugn.texi:
21621         Commented out menu lines and empty section for gnatclean examples
21622         Document -gnatwy/Y
21623         Fix some over long lines
21624         Clarify and enhance documentation of ADA_PROJECT_PATH.
21625         Rework section 2.11.2(3) about linking with a non-GNU compiler.
21626         Mention new switch -fcallgraph-info.
21627         Mention new switch -fstack-usage.
21628         For gnatpp, replace '-notab' with '-N' and add this option to Index
21629         Corrected VMS example.
21630         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
21631         Minor reformatting
21632         Add documentation for -gnatyu switch (unnecessary blank lines)
21633         Document new switch -U for GNAT PRETTY and GNAT METRIC
21634         Add note about Stdcall being handled as C convention on non Windows OS.
21635         Remove some junk typo in description of gnatbind -S switch
21636         Remove reference to Extensions_Allowed pragma
21637         Document the new order of the directories to be searched (source and
21638         object directories of project files before directories in ADA_*_PATH
21639         environment variables.
21640
21641         * g-trasym.ads: Document that IRIX is supported
21642
21643 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
21644
21645         * Makefile.in: Add initialize.o when needed.
21646         Adapt to new VMS package body Symbols and subunits
21647         No specialized version of a-sytaco is needed for VxWorks.
21648
21649         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
21650         * a-zchara.ads, a-widcha.ads: New files.
21651
21652         * system-hpux-ia64.ads: New file.
21653
21654         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
21655         is imported from the VxWorks kernel.
21656
21657 2005-06-14  Robert Dewar  <dewar@adacore.com>
21658
21659         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
21660         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
21661         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
21662         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
21663         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
21664         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
21665         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
21666         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
21667         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
21668         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
21669         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
21670         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
21671
21672 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21673
21674         * xeinfo.adb: Fix typo in comment
21675
21676 2005-06-14  Javier Miranda  <miranda@adacore.com>
21677
21678         * repinfo.ads: Fix typo in comment
21679
21680 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21681
21682         * s-finimp.adb (Parent_Tag): Delete this imported function (function
21683         Parent_Tag is now in the visible part of Ada.Tags).
21684         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
21685         using imported function.
21686
21687 2005-06-14  Bernard Banner  <banner@adacore.com>
21688
21689         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
21690         also apply for handling support for VxSim 653.
21691
21692 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
21693
21694         * xsnames.adb: Add automatic generation of snames.h.
21695
21696 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21697
21698         * gen-soccon.c: Add IP_MULTICAST_IF constant
21699         Minor reformatting and adjustments to prevent warnings.
21700
21701 2005-06-14  Pascal Obry  <obry@adacore.com>
21702
21703         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
21704
21705 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
21706
21707         * trans.c (gnat_gimplify_expr): Call
21708         recompute_tree_invarant_for_addr_expr when we change
21709         the operand of the ADDR_EXPR.
21710
21711 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21712
21713         * misc.c: Don't include errors.h.
21714
21715 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21716
21717         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
21718
21719 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
21720
21721         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
21722         comment typos.
21723         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
21724
21725 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
21726
21727         PR ada/20270
21728         * Makefile.in: Make TGT_LIB behave correctly.
21729
21730 2005-04-23  DJ Delorie  <dj@redhat.com>
21731
21732         * misc.c: Adjust warning() callers.
21733
21734 2005-04-16  Laurent Guerby  <laurent@guerby.net>
21735
21736         PR ada/18847
21737         * a-nudira.adb (Value): Check for valid string.
21738         * a-nuflra.adb (Value): Likewise.
21739
21740 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
21741
21742         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
21743
21744 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
21745
21746         * adaint.c, init.c, tracebak.c: Fix comment typos.
21747         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
21748
21749 2005-04-07  Laurent Guerby  <laurent@guerby.net>
21750             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21751
21752         * Makefile.in: Add make ifeq define for hppa linux tasking support.
21753         * system-hpux.ads: Define Signed_Zeros to be True.
21754         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
21755
21756 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
21757
21758         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
21759         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
21760         typos.
21761
21762 2005-03-30  Tom Tromey  <tromey@redhat.com>
21763
21764         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
21765
21766 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
21767
21768         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
21769
21770 2005-03-29  Robert Dewar  <dewar@adacore.com>
21771
21772         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
21773         fixed-point expression has value that is not a multiple of the Small
21774         value.
21775
21776         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
21777
21778         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
21779         nanoseconds.
21780
21781         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
21782
21783 2005-03-29  Vincent Celier  <celier@adacore.com>
21784
21785         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
21786         (Build_Dynamic_Library.Version_String): Return the empty string when
21787         Lib_Version is empty or when the symbol policy is not Autonomous.
21788
21789         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
21790         a symbol is not in the reference symbol file, increase the Major ID
21791         and set the Minor ID to 0.
21792         Use gsmatch=lequal instead of gsmatch=equal
21793
21794 2005-03-29  Doug Rupp  <rupp@adacore.com>
21795
21796         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
21797         name and translate.
21798
21799 2005-03-29  Javier Miranda  <miranda@adacore.com>
21800
21801         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
21802         (Inherit_DT): The first formal has been redefined as a Tag.
21803         This allows us the removal of the subprogram Get_TSD.
21804         (TSD): Replace the call to Get_TSD by the actual code.
21805
21806         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
21807         (Make_DT): Upgrade the call to Inherit_TSD according to the
21808         new interface: the first formal is now a Tag.
21809
21810         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
21811         redefined as a Tag.
21812         This change allows us to remove the subprogram Get_TSD.
21813         (CPP_Get_TSD): Subprogram removed.
21814         (TSD): Replace the call to CPP_Get_TSD by the actual code.
21815
21816         * rtsfind.ads: Remove support to call the run-time
21817         subprogram Get_TSD
21818
21819 2005-03-29  Robert Dewar  <dewar@adacore.com>
21820
21821         * errutil.adb, errout.adb:
21822         Minor comment updates on Line_Terminator references
21823
21824         * par-ch10.adb: Add ??? comment about line terminator
21825
21826         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
21827         (check dos line terminator).
21828         (Check_Line_Max_Length): New procedure, split off from the existing
21829         Check_Line_Terminator routine. Separating this out allows -gnatyf to
21830         be properly recognized.
21831
21832         * styleg.adb: Add ??? comment for line terminator reference
21833
21834         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
21835         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
21836
21837         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
21838         (check dos line terminator).
21839         (Check_Line_Max_Length): New procedure, split off from the existing
21840         Check_Line_Terminator routine. Separating this out allows -gnatyf to
21841         be properly recognized.
21842
21843         * stylesw.ads, stylesw.adb:
21844         Add handling for new -gnatyd switch (check dos line terminator)
21845
21846         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
21847         Recognize -gnatwb/-gnatwB switches
21848         Include Warn_On_Bad_Fixed_Value for -gnatg
21849
21850         * usage.adb:
21851         Add line for new -gnatyd switch (check dos line terminator)
21852
21853         * usage.adb: Add lines for -gnatwb/-gnatwB
21854
21855         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
21856
21857         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
21858
21859         * gnat_ugn.texi: Fix overlong lines
21860         Document new -gnatyd switch
21861         Document new -gnatwb/-gnatwB switches
21862
21863 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
21864
21865         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
21866         order to retrieve the component list of the type, before examining
21867         individual components.
21868
21869         * sem_type.adb (Covers): Types are compatible if one is the base type
21870         of the other, even though their base types might differ when private
21871         views are involved.
21872
21873 2005-03-29  Thomas Quinot  <quinot@adacore.com>
21874
21875         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
21876         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
21877         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
21878         analyzed if expansion is disabled (which could otherwise cause spurious
21879         error messages if expansion has been disabled due to previous
21880         (unrelated) errors).
21881
21882         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
21883         is disabled, the entity denoted by the argument is the access type
21884         itself, not an underlying record type, so there is no need to go back
21885         to the Corresponding_Remote_Type.
21886
21887 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
21888             Robert Dewar  <dewar@adacore.com>
21889
21890         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
21891         expand a call to an instance of
21892         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
21893         Constructor actual of the instance. A class-wide membership
21894         check is also generated, to ensure that the tag passed to the instance
21895         denotes a type in the class.
21896         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
21897         of Name_Generic_Dispatching_Constructor.
21898
21899         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
21900         05 unit for AI-260-02).
21901
21902         * a-tgdico.ads: New file.
21903
21904         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
21905         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
21906
21907         * snames.ads, snames.adb (Preset_Names): Add entry for
21908         Generic_Dispatching_Constructor.
21909
21910         PR ada/20300
21911         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
21912         character type cases.
21913         (Analyze_Subprogram_Renaming): Add special handling for
21914         the case of renaming of stream attributes when the renaming denotes a
21915         generic formal subprogram association for an abstract formal subprogram.
21916         Check that the attribute is a primitive stream attribute (and not
21917         a class-wide stream attribute) and then rewrite the attribute name
21918         as the name of the appropriate compiler-generated stream primitive.
21919
21920 2005-03-29  Robert Dewar  <dewar@adacore.com>
21921
21922         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
21923         recursive calls.
21924         (Is_Possibly_Unaligned_Object): Correct typo that
21925         resulted in inaccurate result for unaligned scalars within records.
21926
21927 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
21928
21929         * freeze.adb (Freeze_Record_Type): If the type of the component is an
21930         itype whose parent is controlled and not yet frozen, do not create a
21931         freeze node for the itype if expansion is disabled.
21932
21933 2005-03-29  Vincent Celier  <celier@adacore.com>
21934
21935         * make.adb (Gnatmake): Don't fail if the main project file is declared
21936         as having no Ada sources. Do not display message "no sources to
21937         compile" in quiet output.
21938
21939 2005-03-29  Doug Rupp  <rupp@adacore.com>
21940
21941         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
21942         extra tools.
21943
21944 2005-03-29  Robert Dewar  <dewar@adacore.com>
21945
21946         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
21947         child.
21948
21949 2005-03-29  Robert Dewar  <dewar@adacore.com>
21950
21951         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
21952         missing TYPE Improve the error message generated when compiling a
21953         limited interface in Ada83 or Ada95 mode.
21954
21955 2005-03-29  Robert Dewar  <dewar@adacore.com>
21956
21957         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
21958         rather than proceed ahead using a junk attribute name.
21959
21960 2005-03-29  Vincent Celier  <celier@adacore.com>
21961
21962         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
21963
21964         * prj-part.adb (Parse_Single_Project): Set the location of a project
21965         on its defining identifier, rather than on the reserved word "project".
21966
21967         * prj-proc.adb (Expression): Adapt to the fact that default of external
21968         references may be string expressions, not always literal strings.
21969         (Recursive_Process): Set Display_Name equal to Name
21970         when Location is No_Location, that is when there is no actual file.
21971         Get the Display_Name of the project from the source, when it is not a
21972         virtual project.
21973         (Process): Use the Display_Name in error messages
21974
21975         * prj-strt.adb (External_Reference): Allow default to be string
21976         expressions, not only literal strings.
21977
21978 2005-03-29  Vincent Celier  <celier@adacore.com>
21979
21980         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
21981         file and the reference symbol file to be the same file.
21982
21983 2005-03-29  Thomas Quinot  <quinot@adacore.com>
21984
21985         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
21986         forbid conversion of a local access-to-subprogram type to a remote one.
21987
21988         * sem_util.adb (Wrong_Type): For a record type that is the expanded
21989         equivalent type for a remote access-to-subprogram type, go back to the
21990         original RAS entity when displaying an error message, so the casing is
21991         the original source casing.
21992
21993 2005-03-29  Robert Dewar  <dewar@adacore.com>
21994
21995         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
21996         on param update.
21997
21998 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
21999
22000         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
22001         subtype if code is being pre-analyzed, to prevent un-expanded
22002         references to protected formals, among others.
22003         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
22004         interpretation that can be a call, include the result of the call as a
22005         possible interpretation of the dereference.
22006
22007         * sem_ch5.adb (Process_Bounds): Determine type of range by
22008         pre-analyzing a copy of the original range, and then analyze the range
22009         with the expected type.
22010
22011         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
22012         with an overloaded prefix where not all interpretations yield an
22013         access to subprogram, do not rewrite node as a call.
22014         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
22015         the node as a call once the context identifies the interpretation of
22016         the prefix whose call yields the context type.
22017         (Valid_Conversion): For the case of a conversion between
22018         local access-to-subprogram types, check subtype conformance using
22019         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
22020         detailed error message.
22021
22022 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22023
22024         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
22025         indicator, indicate that the formal can never be null.
22026         (Process_Formals): If a formal has a non_null indicator, insert the
22027         resulting subtype immediately before the enclosing subprogram decl,
22028         and not at the beginning of the corresponding declarative part, to
22029         prevent access before elaboration (Ada2005).
22030
22031 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22032
22033         PR ada/19956
22034         * utils.c (finish_record_type): Use variable_size when setting sizes.
22035
22036 2005-03-29  Robert Dewar  <dewar@adacore.com>
22037
22038         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
22039         guarantee Unix style line terminators for the output files, even when
22040         running on windows.
22041
22042 2005-03-29  Robert Dewar  <dewar@adacore.com>
22043
22044         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
22045         buffer if an exception is raised.
22046
22047 2005-03-29  Ed Falis  <falis@adacore.com>
22048
22049         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
22050         VxWorks 653 1.4
22051
22052 2005-03-29  Robert Dewar  <dewar@adacore.com>
22053
22054         * sem_util.ads: Minor reformatting
22055         * gnat_rm.texi: Minor editing.
22056
22057 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
22058
22059         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
22060         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
22061
22062 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
22063
22064         * adaint.c (__gnat_portable_spawn): Adjust cast.
22065
22066 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
22067
22068         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
22069
22070 2005-03-17  Pascal Obry  <obry@adacore.com>
22071
22072         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
22073         used.
22074
22075         * expect.c (__gnat_waitpid): Moved here from adaint.c.
22076         Reimplement under Win32 using Win32 API.
22077
22078         (__gnat_kill) [Win32]: Properly close the process handle before leaving
22079         this routine.
22080
22081 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
22082
22083         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
22084         (DECL_RENAMED_OBJECT): New accessor macro.
22085         (SET_DECL_RENAMED_OBJECT): New setter macro.
22086
22087         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
22088         object in all cases.  Attach the renamed object to the VAR_DECL.
22089         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
22090         field is not prescribed.
22091
22092         * misc.c (gnat_handle_option): Handle -gnatO separately.
22093         (gnat_print_decl) <VAR_DECL>: New case.
22094         Print the DECL_RENAMED_OBJECT node.
22095
22096         * lang.opt:  Declare separate -gnatO option.
22097
22098         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
22099         pointer, replace it with the renamed object.
22100         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
22101         pointer type if the source is not a fat pointer type whose underlying
22102         array has the same non-zero alias set as that of the destination array.
22103
22104 2005-03-17  Javier Miranda  <miranda@adacore.com>
22105
22106         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
22107         (Get_Inheritance_Depth): Removed.
22108         (Set_Inheritance_Depth): Removed.
22109
22110         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
22111         subprogram Get_Expanded_Name because it is not referenced by the
22112         frontend.
22113
22114         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
22115         (CPP_Get_Inheritance_Depth): Removed.
22116         (CPP_Set_Inheritance_Depth): Removed.
22117
22118         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
22119
22120 2005-03-17  Robert Dewar  <dewar@adacore.com>
22121
22122         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
22123         3, since we now expect GCC 3 to do all the work.
22124
22125 2005-03-17  Javier Miranda  <miranda@adacore.com>
22126
22127         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
22128         of one barrier to avoid wrong usage of this attribute.
22129
22130         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
22131         First_Private_Entity.
22132
22133         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
22134         the subprogram against wrong usage.
22135         Adapt the code to traverse the entities in the
22136         scope of a record_type because in addition to its usage regarding
22137         packages, this subprogram is also called by Expand_N_Freeze_Entity
22138         to install the visible declarations of the enclosing scope of a
22139         record_type_with_private to establish the proper visibility before
22140         freezing the entity and related subprograms.
22141
22142 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
22143
22144         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
22145         entry formals.
22146
22147 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22148
22149         * exp_ch3.adb (Check_Attr): New subprogram.
22150         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
22151         into a new Check_Attr subprogram, in order to provide a more
22152         explanatory error message (including the name of the missing attribute).
22153         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
22154         subprogram determines whether a default implementation exists for a
22155         given stream attribute.
22156         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
22157         Determine whether to generate a default implementation for each stream
22158         attribute separately, as this depends on the specific attribute.
22159
22160         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
22161         limited extension where a stream attribute is missing for a limited
22162         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
22163         generate a bogus reference to the missing attribute to prevent
22164         cascaded errors. Instead, generate a null statement.
22165
22166         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
22167         available for a limited type if it has been specified for an ancestor
22168         of the type.
22169
22170 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
22171
22172         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
22173         entity is an operator.
22174
22175 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22176
22177         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22178         spec, to make this predicate available to other units.
22179
22180         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
22181         reimplementing it.
22182
22183         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
22184         when no distribution runtime library is available.
22185
22186         * sem_res.adb, sem_dist.adb: Disable expansion of remote
22187         access-to-subprogram types when no distribution runtime library is
22188         available.
22189         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
22190         predicate available to other units.
22191
22192         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22193         spec, to make this predicate available to other units.
22194
22195 2005-03-17  Vincent Celier  <celier@adacore.com>
22196
22197         * make.adb (Insert_Project_Sources): Make sure the Q is always
22198         initialized.
22199
22200         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
22201         the default for the tree, not the global default naming.
22202
22203         * prj-proc.adb (Recursive_Process): No need to put the default naming
22204         in the project data, it's already there.
22205
22206 2005-03-17  Doug Rupp  <rupp@adacore.com>
22207
22208         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
22209
22210         * 5xcrtl.ads: Renamed to...
22211         * s-crtl-vms64.ads: ...this new file
22212
22213 2005-03-17  Robert Dewar  <dewar@adacore.com>
22214
22215         PR ada/19519
22216         * namet.adb (Copy_One_Character): Set proper wide character encoding
22217         for upper half character if we have upper half encoding.
22218
22219 2005-03-17  Robert Dewar  <dewar@adacore.com>
22220
22221         * par.adb (Par): Improved msg for attempt to recompile predefined unit
22222
22223 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22224
22225         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
22226         tagged limited type, the TSS is a newly built renaming declaration:
22227         insert it using Set_TSS, not Copy_TSS.
22228
22229 2005-03-17  Javier Miranda  <miranda@adacore.com>
22230
22231         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
22232         Try_Object_Operation): Analyze the object that is accessible
22233         through the prefix of the subprogram call before we apply
22234         the transformation of the object-operation notation.
22235
22236 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
22237
22238         * s-taprob.adb (Initialize_Protection): Initialize the protected
22239         object's owner to Null_Task.
22240         (Lock): If pragma Detect_Blocking is in effect and the caller of this
22241         procedure is already the protected object's owner then Program_Error
22242         is raised. In addition the protected object's owner is updated.
22243         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
22244         of this procedure is already the protected object's owner then
22245         Program_Error is raised.
22246         In addition the protected object's owner is updated.
22247         (Unlock): Remove the ownership of the protected object.
22248
22249         * s-taprob.ads (Protection): Add the field Owner, used to store the
22250         protected object's owner.
22251         This component is needed for detecting one type of potentially blocking
22252         operations (external calls on a protected subprogram with the same
22253         target object as that of the protected action). Document the rest of
22254         the components.
22255
22256         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
22257         Initialize the protected object's owner to Null_Task.
22258         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
22259         caller of this procedure is already the protected object's owner then
22260         Program_Error is raised.
22261         Do not raise Program_Error when this procedure is called from a
22262         protected action.
22263         (Unlock_Entries): Remove the ownership of the protected object.
22264         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
22265         of this procedure is already the protected object's owner then
22266         Program_Error is raised.
22267         Do not raise Program_Error when this procedure is called from
22268         a protected action.
22269
22270         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
22271         used to store the protected object's owner.
22272
22273         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
22274         effect and this procedure (a potentially blocking operation) is called
22275         from whithin a protected action, Program_Error is raised.
22276         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
22277         and this procedure (a potentially blocking operation) is called from
22278         whithin a protected action, Program_Error is raised.
22279
22280 2005-03-17  Vincent Celier  <celier@adacore.com>
22281             Nicolas Setton  <setton@adacore.com>
22282
22283         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
22284         switch, not supported by the linker on Darwin. Add '_' before
22285         <library>init, as this character is added unconditionally by the
22286         compiler.
22287         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
22288         correct one ".dylib". This fixes detection of the archive files when
22289         building library projects.
22290
22291 2005-03-17  Vincent Celier  <celier@adacore.com>
22292
22293         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
22294         -gnat83, -gnat95 and -gnat05.
22295
22296 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
22297
22298         * gnat_ugn.texi: Document gnatmem restriction
22299
22300 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22301
22302         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
22303         cleanup
22304
22305 2005-03-17  Robert Dewar  <dewar@adacore.com>
22306
22307         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
22308         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
22309         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
22310
22311         * casing.adb: Comment improvements
22312
22313 2005-03-17  Pascal Obry  <obry@adacore.com>
22314
22315         * g-expect.adb: Minor reformatting.
22316
22317 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
22318
22319         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
22320         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
22321         to dependencies.
22322
22323 2005-03-15  Vincent Celier  <celier@adacore.com>
22324
22325         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
22326         Add new parameter In_Tree to specify the project tree: needed
22327         by the project manager. Adapt to changes in project manager
22328         using new parameter In_Tree.
22329
22330 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
22331
22332         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
22333         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
22334         ada/bldtools to avoid make -jN failures.
22335
22336 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22337
22338         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
22339         to NULL_TREE on entry.
22340
22341 2005-03-15  Robert Dewar  <dewar@adacore.com>
22342
22343         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22344         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22345         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22346         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22347         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22348         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
22349         system-interix.ads, system-solaris-sparc.ads,
22350         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22351         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
22352         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22353         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
22354         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
22355         Compiler_System_Version to be False.
22356
22357         * opt.ads: Add new flag Opt.Address_Is_Private
22358
22359         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
22360         Add new parameter Compiler_System_Version to avoid checking for
22361         completeness of parameters when compiler is compiling itself.
22362         Allows old versions of GNAT to be compiled with new compiler.
22363
22364 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22365
22366         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
22367         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
22368         calling thread.
22369         (Stack_Base_Available): New flag.
22370         (Get_Page_Size): New overloaded functions imported from C.
22371         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
22372         PROT_ON, PROT_OFF): New constants.
22373         (mprotect): New function imported from C.
22374         (pthread_teb_t): New record type.
22375
22376         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
22377         (Create_Task): Account for the Yellow Zone and the guard page.
22378
22379 2005-03-15  Vincent Celier  <celier@adacore.com>
22380
22381         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22382         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22383         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22384         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
22385         Library_File_Name_For): Add new parameter In_Tree
22386         to specify the project tree: needed by the project manager.
22387         Adapt to changes in project manager using new parameter In_Tree.
22388         Remove local imports, use functions in System.CRTL.
22389
22390         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
22391         to use the project manager.
22392
22393         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
22394         In_Tree to designate the project tree. Adapt to changes in the project
22395         manager, using In_Tree.
22396
22397         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
22398         Copy_Interface_Sources): Add new parameter In_Tree to specify the
22399         project tree: needed by the project manager.
22400         (Build_Library): Check that Arg'Length >= 6 before checking if it
22401         contains "--RTS=...".
22402
22403         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
22404         Library_File_Name_For): Add new parameter In_Tree to specify the
22405         project tree: needed by the project manager.
22406
22407         * prj.ads, prj.adb: Major modifications to allow several project trees
22408         in memory at the same time.
22409         Change tables to dynamic tables and hash tables to dynamic hash
22410         tables. Move tables and hash tables from Prj.Com (in the visible part)
22411         and Prj.Env (in the private part). Move some constants from the visible
22412         part to the private part. Make other constants deferred.
22413         (Project_Empty): Make it a variable, not a function
22414         (Empty_Project): Add parameter Tree. Returns the data with the default
22415         naming data of the project tree Tree.
22416         (Initialize): After updating Std_Naming_Data, copy its value to the
22417         component Naming of Project Empty.
22418         (Register_Default_Naming_Scheme): Use and update the default naming
22419         component of the project tree, instead of the global variable
22420         Std_Naming_Data.
22421         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
22422         Tree is not defaulted, return the default naming data of the Tree.
22423         (Initial_Buffer_Size): Constant moved from private part
22424         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
22425         variables initialized in procedure Initialize.
22426         (Add_To_Buffer): Add two in out parameters to replace global variables
22427         Buffer and Buffer_Last.
22428         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
22429         functions.
22430         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
22431         hash tables.
22432         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22433         for the project tree.
22434         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
22435         constant at the beginning of the package spec, so that they cane be used
22436         in subprograms before their full declarations.
22437         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
22438         (Empty_Project): Add parameter of type Project_Node_Ref
22439         (Private_Project_Tree_Data): Add component Default_Naming of type
22440         Naming_Data.
22441         (Buffer, Buffer_Last): remove global variables
22442         (Add_To_Buffer): Add two in out parameters to replace global variables
22443         Buffer and Buffer_Last.
22444         (Current_Packages_To_Check): Remove global variable
22445         (Empty_Name): Move to private part
22446         (No-Symbols): Make it a constant
22447         (Private_Project_Tree_Data): New type for the private part of the
22448         project tree data.
22449         (Project_Tree_Data): New type for the data of a project tree
22450         (Project_Tree_Ref): New type to designate a project tree
22451         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22452         for the project tree.
22453
22454         * prj-attr.ads: Add with Table; needed, as package Prj no longer
22455         imports package Table.
22456
22457         * prj-com.adb: Remove empty, no longer needed body
22458
22459         * prj-com.ads: Move most of the content of this package to package Prj.
22460
22461         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
22462         designate the project node tree and Packages_To_Check to replace
22463         global variable Current_Packages_To_Check.
22464         Add new parameters In_Tree and Packages_To_Check to local subprograms,
22465         when needed. Adapt to changes in project manager with project node tree
22466         In_Tree.
22467
22468         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
22469         project tree to most subprograms. Move tables and hash tables to
22470         private part of package Prj.
22471         Adapt to changes in project manager using project tree In_Tree.
22472
22473         * prj-makr.adb (Tree): New constant to designate the project node tree
22474         Adapt to change in project manager using project node tree Tree
22475
22476         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
22477         display the Library_Src_Dir and the Library_Dir.
22478         Add new parameter In_Tree to designate the project node tree to most
22479         subprograms. Adapt to changes in the project manager, using project tree
22480         In_Tree.
22481         (Check_Naming_Scheme): Do not alter the casing on platforms where
22482         the casing of file names is not significant.
22483         (Check): Add new parameter In_Tree to designate the
22484
22485         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
22486         designate the project tree.
22487         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
22488
22489         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
22490         to replace those that were in the private part of package Prj.
22491         Add new parameter In__Tree to designate the project node tree to most
22492         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22493         (Post_Parse_Context_Clause): When specifying the project node of a with
22494         clause, indicate that it is a limited with only if there is "limited"
22495         in the with clause, not necessarily when In_Limited is True.
22496         (Parse): Add new parameter In_Tree to designate the project node tree
22497
22498         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
22499         designate the project node tree. Adapt to change in Prj.Tree with
22500         project node tree In_Tree.
22501
22502         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
22503         tree In_Tree in the call to function Empty_Process to give its initial
22504         value to the project data Processed_Data.
22505         Add new parameters In_Tree to designate the project tree and
22506         From_Project_Node_Tree to designate the project node tree to several
22507         subprograms. Adapt to change in project manager with project tree
22508         In_Tree and project node tree From_Project_Node_Tree.
22509
22510         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
22511         to replace those that were in the private part of package Prj.
22512         Add new parameter In_Tree to designate the project node tree to most
22513         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22514
22515         * prj-tree.ads, prj-tree.adb: Add new parameter of type
22516         Project_Node_Tree_Ref to most subprograms.
22517         Use this new parameter to store project nodes in the designated project
22518         node tree.
22519         (Project_Node_Tree_Ref): New type to designate a project node tree
22520         (Tree_Private_Part): Change table to dynamic table and hash tables to
22521         dynamic hash tables.
22522
22523         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
22524         the project tree to most subprograms. Adapt to changes in project
22525         manager using project tree In_Tree.
22526
22527         * makegpr.adb (Project_Tree): New constant needed to use project
22528         manager.
22529
22530 2005-03-15  Olivier Hainque  <hainque@adacore.com>
22531
22532         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
22533         for sigactions with SA_SIGINFO set. Call
22534         __gnat_adjust_context_for_raise before raising, to perform the
22535         potentially required adjustments to the machine context for the GCC
22536         unwinder.
22537
22538         * raise.h (__gnat_adjust_context_for_raise): New prototype.
22539
22540         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
22541         Adjust PC by one in the provided machine context.
22542         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
22543         so that the handler is passed the context structure to adjust prior to
22544         the raise.
22545         (__gnat_error_handler) HPUX: Adjust the signature to match what an
22546         SA_SIGINFO sigaction should look like. Call
22547         __gnat_adjust_context_for_raise before actually raising.
22548         (__gnat_adjust_context_for_raise): Default noop to help PC
22549         adjustments before raise from signal handlers.
22550         (__gnat_error_handler): Indirectly call a predicate function to
22551         determine if a condition should be resignaled or not.
22552         (__gnat_set_resignal_predicate): User interface to modify the predicate.
22553         (__gnat_default_resignal_p): Default GNAT predicate.
22554
22555 2005-03-15  Doug Rupp  <rupp@adacore.com>
22556
22557         * adaint.c: Prefix #include of VMS system header files with vms/
22558         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
22559         Do not define a dummy function "convert_addresses" under Darwin,
22560         not needed.
22561
22562         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
22563         with vms/
22564
22565 2005-03-15  Nicolas Setton  <setton@adacore.com>
22566
22567         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
22568         PPC/AIX.
22569
22570 2005-03-15  Robert Dewar  <dewar@adacore.com>
22571
22572         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
22573         AI-386.
22574
22575         * a-retide.ads: Minor comment changes
22576
22577 2005-03-15  Robert Dewar  <dewar@adacore.com>
22578
22579         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
22580         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
22581         Realloc_For_Chunk to private part of package.
22582         New subprograms for AI-301
22583
22584         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
22585         Get_Line procedure.
22586         Avoid unnecessary use of Get/Set_Wide_String
22587
22588 2005-03-15  Robert Dewar  <dewar@adacore.com>
22589
22590         PR ada/13470
22591         * a-stunau.ads, a-stunau.adb:
22592         Change interface to allow efficient (and correct) implementation
22593         The previous changes to allow extra space in unbounded strings had
22594         left this interface a bit broken.
22595
22596         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
22597
22598         * g-spipat.ads, g-spipat.adb: New interface for Get_String
22599         Minor reformatting (function specs)
22600
22601         * g-spitbo.adb: New interface for Get_String
22602
22603         * g-spitbo.ads: Minor reformatting
22604
22605         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
22606
22607         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
22608
22609 2005-03-15  Javier Miranda  <miranda@adacore.com>
22610             Robert Dewar  <dewar@adacore.com>
22611             Thomas Quinot  <quinot@adacore.com>
22612             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22613
22614         * atree.ads, atree.adb: Add support for Elist24 field
22615
22616         * atree.h: Fix wrong definition of Field27
22617         Add support for Elist16 field
22618         Add support for Elist24 field
22619
22620         * einfo.ads, einfo.adb (Abstract_Interfaces,
22621         Set_Abstract_Interfaces): New subprograms.
22622         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
22623         subprograms.
22624         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
22625         entities rather than a single node.
22626         (Is_Interface, Set_Is_Interface): New subprogram
22627         (First_Tag_Component): New syntesized attribute
22628         (Next_Tag_Component): New synthesized attribute
22629         (Write_Entity_Flags): Upgraded to write Is_Interface
22630         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
22631         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
22632         (Task_Body_Procedure): New subprogram to read this attribute.
22633         (Set_Task_Body_Procedure): New subprogram to set this attribute.
22634         (Has_Controlled_Component): Now applies to all entities.
22635         This is only a documentation change, since it always worked to apply
22636         this to other than composite types (yielding false), but now this is
22637         official.
22638         Update documentation on Must_Be_Byte_Aligned for new spec
22639
22640         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
22641         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
22642         uses of the Access_Disp_Table attribute to reference the first dispatch
22643         table associated with a tagged type. As
22644         part of the implementation of abstract interface types,
22645         Access_Disp_Table has been redefined to contain a list of dispatch
22646         tables (rather than a single dispatch table).
22647         Similarly, upgrade all the references to Tag_Component by the
22648         new attribute First_Tag_Component.
22649         (Find_Inherited_TSS): Moved to exp_tss.
22650         Clean up test in Expand_N_Object_Declaration for cases
22651         where we need to do a separate assignment of the initial value.
22652         (Expand_N_Object_Declaration): If the expression in the
22653         declaration of a tagged type is an aggregate, no need to generate an
22654         additional tag assignment.
22655         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
22656         is to be deleted.
22657         Bit packed array ops are only called if operands are known to be
22658         aligned.
22659         (Component_Equality): When returning an N_Raise_Program_Error statement,
22660         ensure that its Etype is set to Empty to avoid confusing GIGI (which
22661         expects that only expressions have a bona fide type).
22662         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
22663         determine the amount of data to be copied.
22664
22665         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
22666         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
22667             INTERFACE_TYPE_DEFINITION ::=
22668               [limited | task | protected | synchronized] interface
22669                 [AND interface_list]
22670
22671         * par-ch3.adb (P_Type_Declaration): Modified to give support to
22672         interfaces.
22673         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
22674         interfaces.
22675         (P_Interface_Type_Definition): New subprogram that parses the new
22676         syntax rule of Ada 2005 interfaces
22677         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
22678         messages by the correct RENAMES (quotes removed).
22679
22680         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
22681         attribute First_Tag_Component.
22682
22683         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
22684         (Interface_List, Set_Interface_List): New subprograms.
22685         (Interface_Present, Set_Interface_Present): New subprograms.
22686         (Limited_Present, Set_Limited_Present): Available also in derived
22687         type definition nodes.
22688         (Protected_Present, Set_Protected_Present): Available also in
22689         record type definition and
22690         derived type definition nodes.
22691         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
22692         (Task_Present, Set_Task_Present): New subprogram.
22693         (Task_Body_Procedure): Removed.
22694         (Set_Task_Body_Procedure): Removed.
22695         These subprogram have been removed because the attribute
22696         Task_Body_Procedure has been moved to the corresponding task type
22697         or task subtype entity to leave a field free to store the list
22698         of interfaces implemented by a task (for AI-345)
22699         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
22700         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
22701         expression flag Do_Range_Check
22702         (Exception_Junk): Change to Flag7 to accomodate above change
22703         (Box_Present, Default_Name, Specification, Set_Box_Present,
22704         Set_Default_Name, Set_Specification): Expand the expression
22705         "X in N_Formal_Subprogram_Declaration" into the corresponding
22706         two comparisons. Required to use the csinfo tool.
22707
22708         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
22709         "with string" given.
22710
22711         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
22712         expression given.
22713
22714         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
22715         in 2005 mode
22716
22717         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
22718         attribute Task_Body_Procedure rather than the old semantic field that
22719         was available in the task_type_declaration node.
22720
22721         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
22722         interface type definitions.
22723         (P_Formal_Derived_Type_Definition): Modified to handle the list of
22724         interfaces.
22725
22726         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
22727         task type declaration.
22728         (P_Protected): Modified to handle the list of interfaces in a
22729         protected type declaration.
22730
22731 2005-03-15  Doug Rupp  <rupp@adacore.com>
22732             Vincent Celier  <celier@adacore.com>
22733
22734         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
22735         (Gen_Output_File_C): Likewise.
22736         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
22737
22738 2005-03-15  Thomas Quinot  <quinot@adacore.com>
22739
22740         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
22741         is an N_Raise_Constraint_Error node, create a new copy of it without
22742         going through a call to Duplicate_Subexpr.
22743
22744 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22745             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22746             Nicolas Setton  <setton@adacore.com>
22747             Ed Schonberg  <schonberg@adacore.com>
22748
22749         PR ada/19900
22750         PR ada/19408
22751         PR ada/19140
22752         PR ada/20255
22753         * decl.c (gnat_to_gnu_field): Reject aliased components with a
22754         representation clause that prescribes a size not equal to the rounded
22755         size of their types.
22756         (gnat_to_gnu_entity, case E_Component): Always look at
22757         Original_Record_Component if Present and not the entity.
22758         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
22759         of tagged extension types by not making field for components that are
22760         inside the parent.
22761         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
22762         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
22763         expression to the type of the object when the object is constant.
22764         Reverse defer_debug_incomplete_list before traversing it, so that trees
22765         are processed in the order at which they were added to the list. This
22766         order is important when using the stabs debug format.
22767         If we are deferring the output of debug information, also defer this
22768         output for a function return type.
22769         When adding fields to a record, prevent emitting debug information
22770         for incomplete records, emit the information only when the record is
22771         complete.
22772         (components_to_record): New parameter defer_debug.
22773         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
22774         (gnat_to_gnu_field_decl): New function.
22775         (substitution_list, annotate_rep): Call it.
22776         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
22777         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
22778         No longer update discriminants to not be a COMPONENT_REF.
22779         (copy_alias_set): Strip padding from input type; also handle
22780         unconstrained arrays properly.
22781
22782         * gigi.h (write_record_type_debug_info): New function.
22783         Convert to use ANSI-style prototypes. Remove unused
22784         declarations for emit_stack_check, elab_all_gnat and
22785         set_second_error_entity.
22786         (gnat_to_gnu_field_decl): New decl.
22787
22788         * utils.c (write_record_type_debug_info): New function.
22789         (finish_record_type): Delegate generation of debug information to
22790         write_record_type_debug_info.
22791         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
22792         (update_pointer_to): Fix pasto.
22793         (convert) <UNION_TYPE>: Accept slight type variations when
22794         converting to an unchecked union type.
22795
22796         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
22797         replace the N_Freeze_Entity with a null statement.
22798
22799         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
22800         within a constrained subcomponent of an enclosing record, place the
22801         freeze nodes in the scope stack entry for the enclosing record.
22802         (Undelay_Type): New Subprogram.
22803         (Set_Small_Size): Pass T, the type to modify; all callers changed.
22804         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
22805         within records; allow them to have freeze nodes if their base types
22806         aren't frozen yet.
22807
22808         * exp_util.adb (Remove_Side_Effects): Properly test for
22809         Expansion_Delayed and handle case when it's inside an
22810         N_Qualified_Expression.
22811
22812         * sem_ch3.adb (Derived_Type_Declaration): New predicate
22813         Comes_From_Generic, to recognize accurately that the parent type in a
22814         derived type declaration can be traced back to a formal type, because
22815         it is one or is derived from one, or because its completion is derived
22816         from one.
22817         (Constrain_Component_Type): If component comes from source and has no
22818         explicit constraint, no need to constrain in in a subtype of the
22819         enclosing record.
22820         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
22821         Minor change to propagate Is_Ada_2005 flag
22822
22823         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
22824         Expansion_Delayed is False.
22825         (assoc_to_constructor): Ignore fields that have a
22826         Corresponding_Discriminant.
22827         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
22828         function returns "by target", dereference the target pointer using the
22829         type of the actual return value.
22830         <all>: Be prepared for a null gnu_result.
22831         (processed_inline_subprograms): Check flag_really_no_inline
22832         instead of flag_no_inline.
22833         (set_second_error_entity): Remove unused function.
22834         (gnat_to_gnu, case N_Selected_Component): Call
22835         gnat_to_gnu_field_decl.
22836         (assoc_to_constructor): Likewise.
22837
22838 2005-03-15  Robert Dewar  <dewar@adacore.com>
22839             Ed Schonberg  <schonberg@adacore.com>
22840             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22841
22842         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
22843         Must_Be_Byte_Aligned for cases where we do not need to use a
22844         System.Pack_nn unit.
22845
22846         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
22847         as procedures.
22848         Needed now that we do some processing for IN parameters as well. This
22849         may well fix some unrelated errors.
22850         (Expand_Call): Handle case of unaligned objects (in particular those
22851         that come from packed arrays).
22852         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
22853         renamed entity is an inherited operation, re-expand the call using the
22854         original operation, which is the one to call.
22855         Detect attempt to inline parameterless recursive subprogram.
22856         (Represented_As_Scalar): Fix to work properly with private types
22857         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
22858         accurate estimate. Yields True in far fewer cases than before,
22859         improving the quality of code that depends on this test.
22860
22861         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
22862         over both visible and private declarations to remove them from tree,
22863         and mark subprograms declared in package as eliminated, to prevent
22864         spurious use in subsequent compilation of generic units in the context.
22865
22866         * exp_util.ads: Minor cleanup in variable names
22867
22868         * sem_eval.ads, sem_eval.adb: Minor reformatting
22869         (Compile_Time_Known_Bounds): New function
22870
22871 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
22872
22873         * exp_ch7.adb (Convert_View): Use base types of underlying types when
22874         determining whether an unchecked conversion is needed for the argument
22875         of an initialization call.
22876
22877 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
22878
22879         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
22880         that appears in the instantiation rather than the internal subtype
22881         generated in the wrapper package, to avoid anomalies in gigi when the
22882         target is derived from a private type whose full view is an access type.
22883
22884 2005-03-15  Robert Dewar  <dewar@adacore.com>
22885
22886         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
22887         not needed.
22888         Add documentation to replace the use of this flag
22889         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
22890         the x86_64.
22891
22892 2005-03-15  Thomas Quinot  <quinot@adacore.com>
22893
22894         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
22895         here from exp_attr so it can be shared between exp_attr and exp_dist.
22896         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
22897         all TSS names, not a subset thereof, and the previous name introduced
22898         an unnecessarily confusion that a distinction might exist between
22899         "OK" TSS names and some "not OK" TSS names.
22900
22901 2005-03-15  Doug Rupp  <rupp@adacore.com>
22902
22903         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
22904         Command_Name.
22905
22906 2005-03-15  Pascal Obry  <obry@adacore.com>
22907             Eric Botcazou  <ebotcazou@adacore.com>
22908
22909         PR ada/20226
22910         PR ada/20344
22911         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
22912         when IN_RTS. This is to work around a bootstrap path problem.
22913
22914         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
22915         table and pass it to __gnat_install_SEH_handler().
22916         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
22917
22918         * lang.opt: Fix specification of -fRTS=.
22919
22920 2005-03-15  Doug Rupp  <rupp@adacore.com>
22921             Bernard Banner  <banner@adacore.com>
22922             Vincent Celier  <celier@adacore.com>
22923             Arnaud Charlet  <charlet@adacore.com>
22924
22925         PR ada/6852
22926         This change works fine when gnatlib is built from the gcc directory,
22927         but does not work when using the libada Makefile, since GCC_FOR_TARGET
22928         is not passed to ada/Makefile.in, so more work is needed by a
22929         Makefile/configure expert.
22930
22931         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
22932         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
22933         Setup gnatlink switch -M for x86_64 linux, as it is already setup
22934         for Linux x86.
22935         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
22936         Run ranlib on libgccprefix.a
22937         Define PREFIX_OBJS for Darwin, to build libgccprefix.
22938         (ADA_INCLUDE_SRCS): Split Ada packages.
22939
22940 2005-03-15  Robert Dewar  <dewar@adacore.com>
22941
22942         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
22943
22944         * impunit.adb: Add GNAT.UTF_32
22945
22946         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
22947
22948         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
22949         now uses GNAT.UTF_32).
22950
22951         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
22952         capabilities for categorizing characters using Unicode categories
22953
22954 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
22955
22956         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
22957         instantiation that has been rewritten as a package body, retrieve spec
22958         to generate proper name for implicit_with_clause.
22959         (Install_Parents): Recognize a parent that is an instantiation but has
22960         been rewritten as a package declaration during analysis.
22961
22962 2005-03-15  Javier Miranda  <miranda@adacore.com>
22963             Ed Schonberg  <schonberg@adacore.com>
22964
22965         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
22966         parameter reported some error we immediately return. This improves the
22967         behaviour of the frontend in case of errors.
22968         (Install_Parent, Remove_Parent): Introduce new flag
22969         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
22970         ancestor of a generic child unit, when the child is being instantiated.
22971         (Inline_Instance_Body): If we are compiling the private
22972         part or the body of a child unit, restore the proper visibility of the
22973         parents after compiling the instance body.
22974
22975 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
22976             Javier Miranda  <miranda@adacore.com>
22977
22978         PR ada/15608
22979         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
22980         of a private type, in which case it is underlying_type that denotes
22981         the proper task. Also modified to use the new entity attribute
22982         that is directly available in the task type and task subtype entities
22983         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
22984         arrays when other dimensions than the first are constrained by
22985         discriminants of an enclosing record.
22986         (Insert_Explicit_Dereference): If the prefix is an indexed component or
22987         a combination of indexed and selected components, find ultimate entity
22988         and generate the appropriate reference for it, to suppress spurious
22989         warnings.
22990         (Note_Possible_Modification): If an entity name has no entity, return.
22991         (Is_Variable): A function call never denotes a variable.
22992         (Requires_Transient_Scope): For record types, recurse only on
22993         components, not on internal subtypes that may have been generated for
22994         constrained components.
22995
22996 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
22997
22998         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
22999         Eliminated as candidates for resolution. Both efficient, and avoids
23000         anomalies with operators declared in deleted code.
23001         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
23002         expansion is disabled (as when compiling a generic) to prevent spurious
23003         warnings on prefixes of selected components.
23004
23005 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23006
23007         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
23008         attached to a list before checking whether it appears in the private
23009         declarations of the current package.
23010         (Make_Inequality_Operator): Insert declaration in proper declarative
23011         list rather than just setting the Parent field, so that
23012         Is_Private_Declaration can handle it properly.
23013
23014 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23015
23016         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
23017         a renaming a body, check that the renamed subprogram in not intrinsic.
23018         (Find_Direct_Name): If several use_visible entities hide
23019         each other, and the context is a predefined file compiled through
23020         rtsfind, keep only the entity that comes from a predefined file.
23021
23022 2005-03-15  Geert Bosch  <bosch@adacore.com>
23023
23024         * s-fatgen.adb (Valid): Extend special exceptions to account for long
23025         long float padding to also cover AMD64 and IA64.
23026
23027 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
23028
23029         * s-imgwch.adb: Add with and use of Interfaces.
23030         (Img_Wide_Character): Change type of Val to Unsigned_16.
23031         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
23032
23033 2005-03-15  Matthew Gingell  <gingell@adacore.com>
23034
23035         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
23036
23037 2005-03-15  Robert Dewar  <dewar@adacore.com>
23038
23039         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
23040
23041         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
23042
23043         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
23044
23045 2005-03-15  Robert Dewar  <dewar@adacore.com>
23046
23047         * s-bitops.adb, s-bitops.ads,
23048         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
23049         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
23050         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
23051         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
23052         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
23053         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
23054         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
23055         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
23056         reformatting.
23057
23058 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23059
23060         * utils2.c (build_binary_op): Fix typo.
23061
23062 2005-03-15  Doug Rupp  <rupp@adacore.com>
23063
23064         * s-crtl.ads (popen,pclose): New imports.
23065
23066 2005-03-15  Cyrille Comar  <comar@adacore.com>
23067
23068         * comperr.adb (Compiler_Abort): remove references to obsolete
23069         procedures in the bug boxes for various GNAT builds.
23070
23071 2005-03-15  Vincent Celier  <celier@adacore.com>
23072
23073         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
23074
23075 2005-03-15  Geert Bosch  <bosch@adacore.com>
23076             Arnaud Charlet  <charlet@adacore.com>
23077             Robert Dewar  <dewar@adacore.com>
23078             Cyrille Comar  <comar@adacore.com>
23079             Sergey Rybin  <rybin@adacore.com>
23080
23081         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
23082         too specific and long-winded to be appropriate for the GNAT User's
23083         Guide.
23084         Warn about use of GCC switches not documented in the GNAT User's Guide,
23085         as these may cause generated code to not conform to Ada semantics.
23086         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
23087         Add documentation for -gnat95 and -gnat05 switches
23088         Remove paragraph documenting obsolete way to refer to third party
23089         libraries.
23090         Add a few references to Ada_05 that were missing.
23091         Update documentation on -gnatZ/-gnatL.
23092         Document limitation when using -m64 under Solaris.
23093         Change the "Name Casing" subsection of the pretty-printer section
23094         according to the changes in the dictionary processing.
23095
23096         * gnat_rm.texi: Document the Ada_05 pragma.
23097         Section on record representation clauses describes the new more
23098         relaxed rules about placement of large packed bit array components.
23099         Add documentation of GNAT.UTF_32
23100
23101 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
23102
23103         * misc.c (gnat_post_options): Turn off structural
23104         aliasing for now.
23105
23106 2005-03-08  Laurent Guerby  <laurent@guerby.net>
23107
23108         * system-linux-sparc.ads: Fix typo in previous commit.
23109
23110 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
23111             Laurent Guerby  <laurent@guerby.net>
23112
23113         PR ada/20035
23114         * system-linux-sparc.ads: New.
23115         * Makefile.in: Add sparc linux entry.
23116
23117 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
23118
23119         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
23120         parameters as unused.
23121
23122 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
23123         Partial merge from libada-gnattools-branch:
23124
23125         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
23126         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
23127         into code in gnattools/Makefile.in.  Remove direct dependencies on
23128         stamp-tools by tools clauses.
23129         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
23130         * config-lang.in: Add gnattools to $lang_dirs.
23131
23132 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
23133
23134         PR ada/19942
23135         * utils.c (gnat_type_for_mode): Return null instead of ICE because
23136         we asked for an unknown mode.
23137
23138 2005-02-12  Richard Henderson  <rth@redhat.com>
23139
23140         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
23141         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
23142
23143 2005-02-10  Andreas Jaeger  <aj@suse.de>
23144
23145         * init.c (__gnat_initialize): Mark parameter as unused.
23146
23147 2005-02-09  Doug Rupp  <rupp@adacore.com>
23148
23149         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
23150         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
23151
23152 2005-02-09  Doug Rupp  <rupp@adacore.com>
23153
23154         * gnatchop.adb (dup, dup2),
23155         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
23156
23157         * gnatlbr.adb (mkdir),
23158         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
23159
23160         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
23161
23162 2005-02-09  Doug Rupp  <rupp@adacore.com>
23163
23164         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
23165
23166 2005-02-09  Robert Dewar  <dewar@adacore.com>
23167             Thomas Quinot  <quinot@adacore.com>
23168             Javier Miranda  <miranda@adacore.com>
23169             Pascal Obry  <obry@adacore.com>
23170             Ed Schonberg  <schonberg@adacore.com>
23171             Doug Rupp  <rupp@adacore.com>
23172             Gary Dismukes  <dismukes@adacore.com>
23173             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23174
23175         * g-zstspl.ads: New file.
23176
23177         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
23178
23179         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
23180         Ada 95 mode
23181         Add definition of Wide_Wide_Space for AI-285
23182
23183         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
23184         interface (to support Ada 95 and Ada 2005 units).
23185         Add Unbounded_IO files
23186         Add entries for Wide_Wide packages for AI-285
23187         Add list of containers packages to Ada 2005 unit list
23188
23189         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
23190         support new Unbounded_IO package cleanly.
23191
23192         * g-utf_32.ads, g-utf_32.adb: New files.
23193
23194         * Makefile.rtl: Add entry for g-utf_32
23195         Add new files for Unbounded_IO
23196         Adjust make file for new AI-285 wide wide packages
23197         Add AI-302 containers to the run time.
23198
23199         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
23200         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
23201         subprograms for AI-301.
23202
23203         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
23204
23205         * a-stunau.ads: Minor comment correction
23206
23207         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
23208         etc.
23209         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
23210         (Check_RPC): Update to match changes in expanded code.
23211         Clean up unused entity.
23212
23213         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
23214         was not taken into account.
23215         This includes proper initialization with Normalize_Scalars.
23216         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
23217         normalize scalars cases (particularly the latter) to do a better job
23218         of finding invalid representations.
23219
23220         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
23221
23222         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
23223         used
23224
23225         * exp_dist.adb: Add support for wide wide character type
23226         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
23227         private part, generate stub bodies at the end of the private part,
23228         not the visible part.
23229         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
23230         PolyORB support.
23231         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
23232         generic wrapper to execute final processing after completing the
23233         expansion of the RPC receiver for an RACW.
23234
23235         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
23236         packages and attributes.
23237         (Preset_Names): Addition of the new reserved words of Ada 2005,
23238         that is interface, overriding and synchronized.
23239         (Get_Pragma_Id): Give support to the use of the new reserved word
23240         "interface" as a pragma name.
23241         (Is_Pragma_Name): Give support to the use of the new reserved word
23242         "interface" as a pragma name.
23243         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
23244         attribute implementation.
23245
23246         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
23247         checks to entities that are output parameters of Asm operations.
23248         Handle the Stream_Size attribute.
23249         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
23250
23251         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
23252
23253         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
23254         for second parameter being 0.0.
23255         Add support for wide wide character type.
23256         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
23257
23258         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
23259         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
23260         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
23261         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
23262         for wide wide character cases.
23263
23264         * cstand.adb: Create entities for Wide_Wide_Character and
23265         Wide_Wide_String.
23266
23267         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
23268         accordance with AI-258.
23269         Add new declarations for 16/32 bit C character types (Part of AI285)
23270
23271         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
23272         (Obsolescent_Warning): New field
23273         (Rep_Clause): New local subprogram used to share code. Returns the rep
23274         clause for which the name is given in parameter.
23275         (Has_Stream_Size_Clause): New routine.
23276         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
23277         (Address_Clause): Implementation is now using Rep_Clause.
23278         (Alignment_Clause): Idem.
23279         (Size_Clause): Idem.
23280
23281         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
23282         entity in non-Ada 2005 mode and generate warning.
23283
23284         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
23285         (Prag): Code cleanup. Remove old gnat pragma "overriding"
23286
23287         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
23288         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
23289         on the named unit if the pragma is not in the current compilation unit,
23290         so that elaboration calls in the current unit can set up an elaboration
23291         dependency on the named unit, as needed.
23292         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
23293         subprogram as well as for subprograms declared within a package.
23294         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
23295         pragma overriding.
23296
23297         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
23298         to z) to avoid some instances of duplication for Wide_Wide packages.
23299
23300         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
23301         characters.
23302
23303         * scn.adb: Char_Literal_Value field is now a Uint
23304
23305         * scng.adb: Significant rewrite to handle new Ada 2005 features
23306         allowing wide and wide wide characters in program text, e.g. for
23307         identifiers, as described in AI-285.
23308         (Set_Reserved): New procedure, makes setting up keywords cleaner.
23309         (Initialize_Scanner): Register the new reserved words of Ada 2005.
23310         (Scan): Give support to the new reserved words.
23311
23312         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
23313         warning notifying that interface, overriding, and synchronized are
23314         new reserved words.
23315         (P_Pragma): Allow the use of the new reserved word "interface" as
23316         a pragma name.
23317
23318         * gnatls.adb, gnatbind.adb,
23319         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
23320         identifiers named "interface" to "SAL_Interface".
23321
23322         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
23323         (Structured Exception handling).
23324         (Gen_Main_C): Idem.
23325
23326         * bindgen.adb:
23327         (Gen_Main_Ada): Set the default exit code if specified.
23328         (Gen_Main_C): Likewise.
23329         Part of *DC20-006.
23330         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
23331         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
23332
23333         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
23334         new -Xnnn switch.
23335
23336         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
23337         has a collision with the new Ada 2005 "interface" reserved word.
23338
23339         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
23340         generate a warning notifying that interface, overriding, and
23341         synchronized are new reserved words.
23342
23343         * scans.ads (Token_Type): Addition of the tokens corresponding to the
23344         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
23345         and Tok_Synchronized.
23346
23347         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
23348         "dispatching" rather than "primitive" operations, since dispatching
23349         calls are now allowed to abstract formal subprograms (which are not
23350         primitive).
23351         Char_Literal_Value field is now a Uint
23352         (Resolve_Slice): If the prefix is an access to an unconstrained array,
23353         compute the actual subtype of the designated object to impose the proper
23354         index constraints.
23355         (Resolve_Selected_Component): Do not insert an access check if the
23356         prefix is an access type: such a node is expanded into an explicit
23357         dereference, on which the access check is performed anyway. Removes
23358         expensive duplicate checks.
23359         (Resolve_Call): Use new flag Is_Obsolescent and field
23360         Obsolescent_Warning so that pragma Obsolescent works on library
23361         subprograms.
23362         Add support for wide wide character type
23363         (Resolve_Allocator): Replace the error message on wrong null-exclusion
23364         value by a warning message.
23365         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
23366         as fixed-point, and one of the operands is non-static and universal, it
23367         can only be an illegal exponentiation operation, in which case there is
23368         no real value to retrieve.
23369
23370         * exp_strm.adb: Add support for wide wide character type
23371         (Build_Elementary_Input_Call): Compute the size of the stream element by
23372         querying the rep chain to find the Stream_Attribute attribute value.
23373         (Build_Elementary_Write_Call): Ditto.
23374
23375         * sem_aggr.adb: Char_Literal_Value field is now a Uint
23376         Add support for wide wide character type
23377         Replace the error messages on wrong null-exclusion value by warnings
23378         as described in Ada 2005.
23379         (Resolve_Extension_Aggregate): Document the fact that the error
23380         message on class-wide expressions in extensions aggregates.
23381
23382         * sem_case.adb: Add support for wide wide character type
23383
23384         * sem_ch13.adb: Add support for wide wide character type
23385         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
23386
23387         * sem_ch3.adb: Add support for wide wide character type
23388         (Process_Subtype): If constraint is illegal for the type, set Ekind of
23389         now-useless Itype, to prevent cascaded errors on a compiler built
23390         without -gnatp.
23391
23392         * sem_ch8.adb: Add with and use of Sem_Disp.
23393         (Analyze_Subprogram_Renaming): Replace unclean uses of
23394         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
23395         of Corresponding_Spec to Empty).
23396         (Attribute_Renaming): Replace use of Corresponding_Spec with
23397         Corresponding_ Formal_Spec and simplify condition.
23398         (Use_One_Package): Check that scope of homonym of identifier is defined,
23399         before checking whether it is a wrapper package.
23400         Add support for wide wide character type
23401
23402         * sem_eval.adb: Add support for wide wide character type.
23403         (Eval_Arithmetic_Op): Check for compile time known signed integer
23404         overflow in the non-static case.
23405         (Subtypes_Statically_Match): A formal scalar type and its base type do
23406         not statically match.
23407
23408         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
23409         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
23410         subtype).
23411         (Unit_Declaration_Node): Ditto.
23412         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
23413         has a packed array type, the prefix has been rewritten into a type
23414         conversion. Determine variable-ness from the converted expression.
23415         Handle wide wide character cases.
23416
23417         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
23418
23419         * stringt.ads, stringt.adb: Handle full UTF-32 range.
23420         Remove ["0A"] from comment, since it can look like a line terminator.
23421         Currently we don't permit this, but this is under discussion by the
23422         ARG, and it is easy enough to use a different example.
23423
23424         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
23425         handling UTF-32 encoding for wide wide character.
23426         Implement new brackets coding ["hhhhhhhh"]
23427         Add UTF-8 encodings for full UTF-32 range
23428
23429         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
23430
23431         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
23432         bit range Add full UTF-32 support.
23433         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
23434         notify that constraint error will be raised at run-time
23435         because a null value is assigned to a null-excluding object.
23436         Remove some obsolete declarations and make Char_Code
23437         unsigned.
23438
23439         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
23440         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
23441         Rcheck subprograms.
23442
23443         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
23444         wrong null-exclusion value by a warning message.
23445         (Enable_Range_Check): Do range check if the prefix is an
23446         explicit dereference whose designated object is an unconstrained array.
23447         Current algorithm for removing duplicate checks is over-eager in this
23448         case.
23449
23450         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
23451         null-exclusion value by a warning message
23452
23453         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
23454         completely. Add support for Uint2 field
23455
23456         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
23457         exp_prag.adb: Char_Literal_Value field is now a Uint.
23458
23459         * exp_util.adb (Insert_Actions): Replace
23460         N_Formal_Subprogram_Declaration by
23461         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
23462         Char_Literal_Value field is now a Uint.
23463
23464         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
23465         defined for subprogram renaming declarations. When set, the field
23466         indicates the defining entity of a corresponding formal subprogram
23467         when the renaming corresponds to a formal subprogram association in an
23468         instantiation.
23469         (Set_Corresponding_Formal_Spec): New procedure to return
23470         Corresponding_Formal_Spec field.
23471         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
23472         (which is now a subtype).
23473         Char_Literal_Value field is now a Uint
23474
23475         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
23476         pointer to the base of the dispatch table.
23477         Minor changes to comments.
23478         (Controlling_Type): New function for determining the tagged type
23479         associated with a tagged primitive subprogram.
23480         (Expand_Dispatching_Call): Add support for a controlling actual that is
23481         directly a value of type Ada.Tag rather than a tagged object.
23482
23483         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
23484         describing the new layout.
23485         (Dispatch_Table): The expander computes the actual array size, allocates
23486         the Dispatch_Table record accordingly, and generates code that displaces
23487         the base of the record after the Typeinfo_Ptr component. The access to
23488         these components is done by means of local functions.
23489         (Offset_To_Top): New function.
23490         (Typeinfo_Ptr): New function.
23491         (Get_TSD): Modified to access the new position of the TSD.
23492         (Set_TSD): Modified to save the TSD in its new position.
23493
23494         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
23495         case of formal abstract subprograms. Add check and message for -gnat05.
23496         Update comments.
23497
23498         * sem_ch12.adb: Add with and use for Sem_Disp.
23499         (Analyze_Associations): Minor change from "=" to "in" for use of
23500         N_Formal_Subtype_Declaration (which is now a subtype).
23501         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
23502         N_Formal_Subtype_Declaration (which is now a subtype).
23503         (Analyze_Formal_Subprogram): Add handling for
23504         N_Formal_Abstract_Subprogram, marking the formal as abstract and
23505         dispatching, setting the controlling status of the formal parameters
23506         and result, and issuing an error if there is no controlling type for
23507         the formal subprogram.
23508         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
23509         which is an unclean use of that field, we set the new field
23510         Corresponding_Formal_Spec to make the formal subprogram available to
23511         processing in Analyze_Subprogram_Declaration.
23512         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
23513         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
23514         Constrained, so that it is is does not statically match its anonymous
23515         base type.
23516
23517         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
23518         abstract formal subprograms in error check for functions returning
23519         abstract types. Set scope of new designator for
23520         a parameterless subprogram, so that it is available when checking the
23521         body for nested subprograms, before full analysis of said body.
23522         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
23523         subprogram only if inner one comes from source.
23524         (Analyze_Function_Call): If the call is given in object notation, the
23525         analysis of the name rewrites the node and analyzes it with the proper
23526         argument list. After analyzing the name, if the call has been rewritten
23527         and the result type is set, no further analysis is needed.
23528         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
23529         mark in function specification, in a context where the formals are
23530         visible and hide outer homographs.
23531
23532         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
23533         as the tagged type for the cases of abstract formal subprograms and
23534         renamings of those.  Clean up spec comments.
23535         (Check_Dispatching_Context): Add error message to indicate "abstract
23536         procedure", covering the case of a call to a formal abstract procedure
23537         that has statically tagged operands.
23538         (Check_Dispatching_Call): Check for the case of an actual given by
23539         a tag-indeterminate function call whose type is an ancestor of the
23540         containing call's associated tagged type. This situation can occur
23541         for inherited primitives with function defaults. In this case we
23542         use the tagged type's tag directly as the controlling argument for
23543         the calls.
23544         (Expand_Call): Name change on call to Expand_Dispatch_Call.
23545
23546         * sprint.adb (Sprint_Node_Actual): Split
23547         N_Formal_Subprogram_Declaration into two alternatives for the new
23548         cases N_Formal_Abstract_Subprogram_Declaration and
23549         N_Formal_Concrete_Subprogram_Declaration.
23550         Char_Literal_Value field is now a Uint.
23551
23552         * trans.c: Get rid of junk Uint2 reference.
23553         Char_Literal_Value field is now a Uint.
23554         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
23555         (gigi): Correct third arg to gimplify_body.
23556
23557         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
23558         (TYPE_LANG_FLAG_0): Check for record or union.
23559
23560         * treepr.adb: Char_Literal_Value field is now a Uint
23561
23562         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
23563         UI_From_CC.
23564
23565         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
23566         Add full UTF-32 support
23567         Char_Code is now 32 bits
23568
23569         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
23570         wide character UTF_32 line terminators.
23571         Initialize Main_Source_File to avoid error when no main
23572         source is loaded.
23573
23574         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
23575         (Main_Source_File) when no main source has been loaded, to avoid
23576         potential crash.
23577
23578 2005-02-09  Robert Dewar  <dewar@adacore.com>
23579
23580         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
23581         Fix name of Set routine
23582
23583         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
23584         fixed packages.
23585
23586         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
23587         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
23588         fixed packages
23589
23590         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
23591         forms of Get_Line subprograms for AI-301.
23592
23593         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23594         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
23595         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
23596         a-stwima.ads: Minor reformatting.
23597
23598 2005-02-09  Doug Rupp  <rupp@adacore.com>
23599             Thomas Quinot  <quinot@adacore.com>
23600
23601         * adaint.c, adaint.h
23602         [VMS] (to_ptr32): New function.
23603         (MAYBE_TO_PTR32): New macro.
23604         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
23605         for pointer size.
23606         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
23607         [VMS] (#define fork()): Remove since unneccessary.
23608         (__gnat_set_close_on_exec): New routine to support
23609         GNAT.OS_Lib.Set_Close_On_Exec.
23610
23611         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
23612         the parent side as close-on-exec so that they are not inherited by the
23613         child.
23614
23615         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
23616         set or clear the FD_CLOEXEC flag on a file descriptor.
23617
23618 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
23619             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23620
23621         PR ada/19386
23622         * decl.c:
23623         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
23624         on the field if Pragma Component_Alignment (Storage_Unit).
23625         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
23626         side-effects as if it were a constant; also make SAVE_EXPR to protect
23627         side-effects.
23628         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
23629         UNION_TYPE.
23630         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
23631         (components_to_record): Test it.
23632         Fix improper usage of REFERENCE_CLASS_P.
23633
23634         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
23635         RECORD_TYPE.
23636
23637         * utils2.c: Minor reformatting.
23638
23639         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
23640         handle other cases like RECORD_TYPE.
23641
23642         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
23643
23644 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23645
23646         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
23647         component of an array of arrays in an assignment context, and the
23648         aggregate has component associations that require sliding on
23649         assignment, force reanalysis of the aggregate to generate a temporary
23650         before the assignment.
23651         (Must_Slide): Make global to the package, for use in Gen_Assign.
23652
23653 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23654
23655         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
23656         unchecked union with no inferable discriminants, return a
23657         Raise_Program_Error node, rather than inserting it at the point the
23658         type is frozen.
23659         (Expand_Record_Equality, Component_Equality): Handle properly the case
23660         where some subcomponent is an unchecked union whose generated equality
23661         code raises program error.
23662
23663 2005-02-09  Doug Rupp  <rupp@adacore.com>
23664
23665         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
23666         [VMS] (#define exit hack): Remove.
23667
23668 2005-02-09  Pascal Obry  <obry@adacore.com>
23669             Arnaud Charlet  <charlet@adacore.com>
23670
23671         * init.c (__gnat_initialize): Add a new parameter eh which contains the
23672         address of the exception registration. The Win32 version of this
23673         routine calls __gnat_install_SEH_handler() to initialize the SEH
23674         (Structured Exception Handling) handler.
23675         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
23676         SEH (Structured Exception Handling) now.
23677         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
23678         (__gnat_initialize for ppc-vxworks): Adjust comments and the
23679         preprocessor condition protecting the call to the extra eh setup
23680         subprogram, which is only available for the ppc target.
23681         (__gnat_clear_exception_count): replaced reference to
23682         variable taskIdCurrent by call to taskIdSelf(), cleaner.
23683
23684         * seh_init.c: New file.
23685
23686         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
23687         (GNATBIND_OBJS): Idem.
23688
23689         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
23690         routine takes a new parameter (a pointer to the exception registration
23691         for the SEH (Structured Exception Handling) support.
23692
23693         * raise.h: (__gnat_install_SEH_handler): New prototype.
23694         Update copyright notice.
23695
23696         * s-tassta.adb (Task_Wrapper): Declare the exception registration
23697         record and initialize it by calling __gnat_install_SEH_handler.
23698
23699 2005-02-09  Vincent Celier  <celier@adacore.com>
23700
23701         * make.adb (Gnatmake): Do not fail when the main project has no object
23702         directory.
23703
23704 2005-02-09  Doug Rupp  <rupp@adacore.com>
23705
23706         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
23707         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
23708         [VMS]: Add translations for g-enblsp.adb.
23709
23710         * s-asthan-vms.adb: Removed.
23711         * s-asthan-vms-alpha.adb: Added.
23712
23713 2005-02-09  Pascal Obry  <obry@adacore.com>
23714
23715         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
23716         (LIBGNAT_OBJS): Add seh_init.o.
23717
23718 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23719
23720         PR ada/16592
23721         * Makefile.in: Link all gnat tools with -static-libgcc, since
23722         -shared-libgcc is now used by default on some systems (e.g. linux with
23723         recent binutils).
23724         Remove references to Makefile.prolog/generic, no longer used.
23725
23726 2005-02-09  Vincent Celier  <celier@adacore.com>
23727
23728         * prj-makr.adb (Process_Directory): Put file name in canonical case
23729         before matching against the patterns.
23730         If gnatname has been invoked as <prefix>-gnatname
23731         then invoke the compiler as <prefix>-gcc, not just "gcc".
23732
23733 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23734
23735         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
23736         with expansion disabled. The actual subtype is needed among other
23737         places when the selected component appears in the context of a loop
23738         bound, and denotes a packed array.
23739         (Operator_Check): Always use the first subtype in the
23740         error message, to avoid the appearance of internal base types.
23741         (Transform_Object_Operation): Copy each actual in full
23742         to the parameter associations of the constructed call, rather than
23743         using the shallow copy mechanism of New_Copy_List. This ensures that
23744         the chaining of named associations is done properly.
23745         (Complete_Object_Operation): Rewrite node, rather than
23746         replacing it, so that we can trace back to the original selected
23747         component.
23748
23749         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
23750         and calls that use object notation, if the called function is not
23751         declared  in a withed unit, place the elaboration constraint on the
23752         unit in the context that makes the function accessible.
23753         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
23754         imposes an elaboration constraint between two packages.
23755
23756 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23757
23758         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
23759         views of a private type after handling its private dependents, to
23760         maintain proper stack discipline between entry and exit from the
23761         package.
23762
23763 2005-02-09  Cyrille Comar  <comar@adacore.com>
23764
23765         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
23766         Minor reformatting.
23767
23768 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23769
23770         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
23771         fields for foreign threads.
23772
23773 2005-02-09  Doug Rupp  <rupp@adacore.com>
23774
23775         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
23776         recursion warnings when compiled with -gnatdm.
23777
23778 2005-02-09  Robert Dewar  <dewar@adacore.com>
23779
23780         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
23781         Slight fix to documentation of -gnaty with no parameters
23782
23783         * xr_tabls.ads: Add ??? comment for missing overall comment
23784
23785         * xsinfo.adb: Make default file name be sinfo.h, since this is what
23786         we now use by default.
23787
23788         * xsnames.adb: Adjust end of file test to look for five space followed
23789         by '#' instead of six spaces. The format of xsnames.adb was modified
23790         in the last update.
23791
23792         * a-numeri.ads: Add reference to AI-388 for greek letter pi
23793         identifier.
23794
23795         * clean.adb: Minor reformatting.
23796
23797         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
23798         gnatname.adb: Minor reformatting
23799         Add 2005 to copyright output when utility is run
23800
23801         * csets.adb: Eliminate obsolete comment
23802
23803         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
23804         Update comments.
23805
23806         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
23807
23808 2005-02-09  Sergey Rybin  <rybin@adacore.com>
23809
23810         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
23811         the difference between compact and incompact layout and add the record
23812         representation clause to the example illustrating different layouts.
23813         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
23814         component clauses").
23815
23816 2005-02-09  Florian Villoing  <villoing@adacore.com>
23817
23818         * gnat_ugn.texi: Fix typos.
23819         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
23820         @file.
23821         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
23822         in the generated documentation.
23823
23824 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23825
23826         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
23827         longer supported.
23828         Update linker wrapper when linking with non GNU C++.
23829
23830 2005-02-09  Pascal Obry  <obry@adacore.com>
23831
23832         * gnat_ugn.texi:
23833         Document the procedure to debug the DllMain routine on Windows.
23834         Add note about -funwind-tables and mixed Ada and C/C++ programming in
23835         ZCX mode.
23836         Document new BIND qualifer /RETURN_CODES=VMS.
23837
23838 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
23839
23840         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23841         Edited gnatmetric chapter
23842
23843 2005-02-09  Robert Dewar  <dewar@adacore.com>
23844
23845         * gnat_rm.texi:
23846         Changes to document new wide wide character support
23847         For AI-285
23848         Update documentation on Normalize_Scalars and Initialize_Scalars
23849
23850 2005-02-09  Pascal Obry  <obry@adacore.com>
23851
23852         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
23853
23854 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
23855
23856         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
23857         from the VxWorks kernel) that is needed for getting the active
23858         priority of the different tasks.
23859
23860         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
23861         Use a pragma Elaborate_Body in the spec file instead.
23862         Noticed by code reading.
23863
23864 2005-02-09  Thomas Quinot  <quinot@adacore.com>
23865
23866         * exp_util.ads: Minor correction in comment.
23867
23868 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23869
23870         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
23871         since this procedure is now too complex to be worth inlining.
23872
23873 2005-02-09  Richard Henderson  <rth@redhat.com>
23874
23875         * utils.c (gnat_define_builtin): Remove.
23876         (gnat_install_builtins): Use build_common_builtin_nodes.
23877
23878 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23879
23880         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23881         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
23882         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
23883         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
23884         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
23885         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
23886         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
23887         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
23888         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
23889         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
23890         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
23891         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
23892         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
23893         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
23894         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
23895         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
23896         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
23897         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
23898         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
23899         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
23900         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
23901         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
23902         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
23903         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
23904         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
23905         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
23906         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23907         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
23908         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
23909         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
23910         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23911         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
23912         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
23913         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
23914         library.
23915
23916 2005-01-27  Laurent Guerby  <laurent@guerby.net>
23917
23918         * Makefile.in: Fix a-intnam.ads from previous commit,
23919         add 2005 to copyright.
23920         * a-intman-rtems.ads: Renamed to...
23921         * a-intnam-rtems.ads:
23922
23923 2005-01-27  Laurent Guerby  <laurent@guerby.net>
23924
23925         * Makefile.in: Rename GNAT RTEMS specific files.
23926         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
23927         5rosinte.ads, 5rparame.adb: Replaced by files below.
23928         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
23929         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
23930
23931 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
23932             Laurent Guerby  <laurent@guerby.net>
23933
23934         PR ada/19488
23935         * 5rosinte.ads: Add No_Key constant.
23936         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
23937         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
23938
23939 2005-01-26  Laurent Guerby  <laurent@guerby.net>
23940
23941         PR ada/19414
23942         * i-cobol.adb (Valid_Numeric): Handle zero length case.
23943
23944 2005-01-20  Richard Henderson  <rth@redhat.com>
23945
23946         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
23947         a-intnam-linux.ads and system-linux-alpha.ads.
23948         * a-intnam-linux-alpha.ads: Remove file.
23949         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
23950         * system-linux-alpha.ads: New file.
23951
23952 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
23953
23954         PR ada/13470
23955         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
23956         set to the new string.
23957
23958 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
23959
23960         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
23961         to True.
23962
23963 2005-01-18  Richard Henderson  <rth@redhat.com>
23964
23965         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
23966         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
23967         for alpha-linux.
23968         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
23969
23970 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
23971
23972         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
23973         (GCC_ZCX_Support): Likewise.
23974
23975 2005-01-11  Bastian Blank  <waldi@debian.org>
23976
23977         * system-linux-s390.ads: Define Preallocated_Stacks.
23978         * system-linux-s390x.ads: Likewise.
23979
23980 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
23981
23982         * gnat_ugn.texi: Fix texi errors with null variables.
23983
23984 2005-01-03  Thomas Quinot  <quinot@adacore.com>
23985
23986         * gen-soccon.c: New utility program to generate g-soccon.ads
23987         automatically.
23988
23989         * socket.c, gsocket.h: Split inclusion of system header files into a
23990         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
23991
23992         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
23993         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23994         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
23995         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
23996         should not be edited by hand anymore, but should be regenerated using
23997         gen-soccon.
23998
23999 2005-01-03  Robert Dewar  <dewar@adacore.com>
24000             Ed Schonberg  <schonberg@adacore.com>
24001             Vincent Celier  <celier@adacore.com>
24002
24003         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
24004         on/off, since this is an obsolescent feature, for which we now generate
24005         a warning.
24006
24007         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
24008         warning mode is set and obsolescent usage of this attribute occurs.
24009         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
24010         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
24011         predates, and partly motivates, the adoption of the AI.
24012         Implement new Ada 2005 attribute Mod
24013
24014         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
24015         attribute Mod.
24016
24017         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
24018
24019         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
24020         pragma restrictions.
24021         New entry for Ada 2005 attribute Mod.
24022
24023         * par-prag.adb:
24024         Add recognition of new pragma Restrictions No_Dependence
24025         Recognize restriction No_Obsolescent_Features at parse time
24026
24027         * bcheck.adb: Add circuitry for checking for consistency of
24028         No_Dependence restrictions.
24029
24030         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
24031         restrictions.
24032
24033         * restrict.ads, restrict.adb: Add subprograms to deal with
24034         No_Dependence restrictions.
24035
24036         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
24037         restrictions.
24038
24039         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
24040         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
24041
24042         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
24043         dummy parameter to scng instantiation.
24044         Needed for new restriction No_Obsolescent_Features
24045
24046         * scn.adb: (Obsolescent_Check): New procedure
24047         Needed for new restriction No_Obsolescent_Features
24048
24049         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
24050         specified by AI-285, needed for implementation of AI-388 (adding greek
24051         pi to Ada.Numerics).
24052         Add new generic formal to scng, needed for new restriction
24053         No_Obsolescent_Features.
24054
24055         * s-rident.ads: Add new restriction No_Obsolescent_Features.
24056
24057         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
24058         restrictions lines.
24059         (Scan_ALI): When finding an unexpected character on an R line, raise
24060         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
24061         Ignore_Errors is True, default restrictions are set and scanning of the
24062         ALI file continues with the next line. Also, when Bad_R_Line is raised
24063         and Ignore_Errors is True, skip to the end of le line.
24064
24065         * sem_ch10.adb: Check that explicit with's do not violate
24066         No_Dependence restrictions.
24067         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
24068         illegal context clauses containing child units of instance.
24069
24070         * sem_prag.adb: Processing and checking for new No_Dependence
24071         restrictions.
24072         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
24073         analyze and check the External argument.
24074
24075         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
24076
24077 2005-01-03  Robert Dewar  <dewar@adacore.com>
24078
24079         * atree.adb: Add a fifth component to entities
24080         This allows us to add 32 flags and four new fields
24081
24082         * atree.ads: Add a fifth component to entities
24083         This allows us to add 32 flags and four new fields
24084
24085         * einfo.ads, einfo.adb: Document new fields and new flags now available
24086         Add routines for printing new fields
24087
24088         * treepr.adb: Call routines to print out additional fields if present
24089
24090 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24091
24092         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
24093         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
24094
24095         * Makefile.in: Add support to build shared Ada libraries on solaris x86
24096         Remove gpr2make, replaced by gprmake.
24097         Remove references to gnatmem and libaddr2line.
24098         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
24099         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
24100         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
24101         a-numaux-darwin.ads and a-numaux-darwin.adb
24102         Enable mlib-tgt-lynxos.adb on lynxos.
24103
24104         * Make-lang.in: Remove rules for gpr2make.
24105         When generating sdefault.adb, do not call Relocate_Path
24106         on S3 for function Target_Name, as it is not a path.
24107         Remove references to gnatmem and libaddr2line.
24108
24109         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
24110         files.
24111
24112 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
24113
24114         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
24115         address is incompatible with its base type alignment constraints when
24116         this can be decided statically.
24117
24118 2005-01-03  Olivier Hainque  <hainque@adacore.com>
24119
24120         * decl.c (compatible_signatures_p): New function. The intended purpose
24121         is to check if two function signatures for a call-site and a callee are
24122         compatible enough for the call to be valid. The underlying purpose is
24123         to check if a call to a mapped builtin is using the right interface.
24124         The current code actually does not check antyhing - this a placeholder
24125         for future refinements.
24126         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
24127         builtin calls for convention Intrinsic.
24128
24129         * gigi.h (builtin_decl_for): Declare (new function).
24130
24131         * utils.c (gnat_install_builtins): Install the target specific builtins.
24132         (builtin_decl_for): New function, provide a dummy body for now.
24133
24134 2005-01-03  Geert Bosch  <bosch@adacore.com>
24135
24136         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
24137         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
24138         (Pred): Implement in terms of Succ.
24139
24140         * trans.c (convert_with_check): Reimplement conversion of float to
24141         integer.
24142
24143 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24144             Vincent Celier  <celier@adacore.com>
24145
24146         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
24147         bounds can be negative, and must be declared Int, not Nat.
24148
24149         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
24150         array is checked after using the index in the array.
24151
24152         * makegpr.adb (Add_Switches): Check if there is a package for the
24153         processor. If there is no package, do not look for switches.
24154
24155 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24156
24157         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
24158         generation of predefined stream operations (specs and bodies) should
24159         proceed. Under various restrictions these subprograms must not be
24160         generated.
24161
24162 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24163
24164         * exp_dist.adb:
24165         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
24166         amount of PCS-specific code in RACW stubs generation.
24167         (Copy_Specification): Set Etype on copied formal parameter entities, as
24168         this information is needed for PolyORB stubs generation.
24169         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
24170         variable Dynamic_Async.
24171         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
24172         (Build_RPC_Receiver_Specification): Make generic again, as recent
24173         changes have allowed RPC receivers to have the same profile for both
24174         variants of the PCS.
24175         Reorganise RPC receiver generation to reduce differences between the
24176         structure of GARLIC and PolyORB RPC receivers.
24177         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
24178         PCS-specific.
24179         Simplify elaboration code for RCI packages.
24180
24181         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
24182         generation to reduce differences between the structure of GARLIC and
24183         PolyORB RPC receivers.
24184
24185         * s-stratt.adb: Fix typo in comment.
24186
24187 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24188
24189         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
24190         copied from Make_Init_Call).
24191
24192         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
24193         reads and assignments on a temporary variable declared with appropriate
24194         discriminants.
24195
24196 2005-01-03  Robert Dewar  <dewar@adacore.com>
24197
24198         * i-c.adb (To_C): Raise CE if string is null and Append_Null
24199
24200 2005-01-03  Robert Dewar  <dewar@adacore.com>
24201
24202         * i-cstrin.adb (Update): Do not append a null in form called with a
24203         String. This avoids unintended behavior.
24204
24205 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24206
24207         PR ada/17527
24208         * init.c: Fix warnings on Free BSD section.
24209
24210 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24211
24212         PR ada/16949
24213         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
24214         xsinfo.adb).
24215
24216 2005-01-03  Vincent Celier  <celier@adacore.com>
24217
24218         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
24219         libraries when Unique_Compile is True (-u switch).
24220         (Gnatmake): ditto.
24221
24222 2005-01-03  Robert Dewar  <dewar@adacore.com>
24223
24224         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
24225         upper case letter or underscore after W, as allowed by spec.
24226
24227 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24228
24229         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
24230         darwin port by using proper type definitions from header files.
24231         Use SIGTERM instead of SIGABRT for SIGADAABORT.
24232
24233 2005-01-03  Robert Dewar  <dewar@adacore.com>
24234
24235         * par.adb: Enhance error message handling for configuration file
24236         pragmas.
24237
24238 2005-01-03  Robert Dewar  <dewar@adacore.com>
24239
24240         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
24241         removed during the previous update (test properly for case of dividing
24242         largest negative number by -1, which generates overflow).
24243
24244 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24245             Sergey Rybin  <rybin@adacore.com>
24246
24247         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
24248         to use as the defining identifier for a formal package.
24249         (Remove_Parent): If the instance takes place within (an instance of)
24250         a sibling, preserve private declarations of common parent.
24251
24252 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24253
24254         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
24255         to determine whether one of the operands is a fixed-point type for
24256         which a user-defined multiplication or division operation might be
24257         defined.
24258
24259         * sem_res.adb (Valid_Conversion): The legality rules for conversions
24260         of access types are symmetric in Ada 2005: either designated type can
24261         be unconstrained.
24262
24263 2005-01-03  Vincent Celier  <celier@adacore.com>
24264
24265         * s-fileio.adb (Temp_File_Record): Change length of string component
24266         Name from L_tmpnam + 1 to max_path_len + 1.
24267
24268 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24269
24270         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
24271         Self_Id.Deferral_Level = 0.
24272         (Do_Pending_Action): Move this function to the spec.
24273
24274         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
24275         Do_Pending_Action explicitely when needed, in case we're using
24276         No_Abort restrictions.
24277
24278         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
24279         deferral level since it will not get changed by the generated code.
24280         Keeping a default value of 1 would prevent some operations (e.g.
24281         select or delay) to proceed successfully.
24282
24283 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
24284             Robert Dewar  <dewar@adacore.com>
24285             Cyrille Comar  <comar@adacore.com>
24286
24287         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
24288         porting guide chapter (vms version).
24289         Revised doc title (removed "for native platforms") and subtitle.
24290         Add discussion on warning flag for obsolescent features. First we
24291         note that it applies to obsolete GNAT features, which was previously
24292         omitted. Second we contrast the behavior with that of the new
24293         Ada 2005 AI-368 restriction No_Obsolescent_Features.
24294         Preliminary rewriting of GNAT & libraries chapter in order to take
24295         into account default project locations & new project manager
24296         capabilities.
24297
24298 2005-01-03  Robert Dewar  <dewar@adacore.com>
24299
24300         * cstand.adb (Create_Operators): Clean up format and documentation of
24301         unary and binary operator result tables. No change in code, just
24302         reformatting and addition of comments.
24303
24304         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
24305         sem_ch2.adb: Minor reformatting
24306
24307         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
24308         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
24309         comments for Tree_Read and Tree_Write.
24310
24311 2005-01-03  Pascal Obry  <obry@adacore.com>
24312
24313         * exp_attr.ads: Minor reformatting.
24314
24315 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
24316
24317         * comperr.adb (Compiler_Abort): Add specialized message for GAP
24318         versions.
24319
24320 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24321
24322         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
24323         whether the ancestor type is private, as may be the case with nested
24324         instantiations.
24325
24326 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
24327
24328         PR ada/19128
24329         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
24330
24331 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
24332
24333         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
24334         * utils2.c (build_unary_op): Likewise.
24335
24336 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24337
24338         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
24339
24340 2004-12-19  Richard Henderson  <rth@redhat.com>
24341
24342         * trans.c (gigi): Update gimplify_body call.
24343
24344 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
24345
24346         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
24347
24348 2004-12-07  Ed Falis  <falis@adacore.com>
24349
24350         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
24351         current task being suspended.
24352
24353         * init.c (__gnat_clear_exception): added to reset VxWorks exception
24354         count.
24355         (__gnat_map_signal): removed test for current task being suspended.
24356
24357 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24358
24359         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
24360         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
24361         targets (such as AAMP).
24362
24363 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24364
24365         * atree.adb (Visit_Itype): Create a new name for the generated itype,
24366         because the back-end may otherwise treat it as a redefinition of the
24367         old symbol.
24368
24369 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
24370
24371         * back_end.adb (Scan_Back_End_Switches): Accept --param.
24372
24373         * lang-specs.h: Accept --param.
24374
24375 2004-12-07  Vincent Celier  <celier@adacore.com>
24376
24377         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
24378         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
24379         Current_Body_Suffix => Ada_Body_Suffix).
24380         Take into account Externally_Built attribute.
24381
24382         * clean.adb (In_Extension_Chain): Always return False when one of the
24383         parameter is No_Project.
24384         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
24385         Ada_Language_Index).
24386         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
24387         Process_Languages for procedure Parse).
24388
24389         * gnatcmd.adb (Carg_Switches): New table.
24390         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
24391         Adapt to name changes in package Prj (Current_Spec_Suffix =>
24392         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
24393
24394         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
24395         Header_Num and function Hash are now declared in package Prj,
24396         not Prj.Com.
24397
24398         * prj.adb (Suffix_Of): New function.
24399         (Set (Suffix)): New procedure.
24400         (Hash): One function moved from Prj.Com
24401         (Is_Present, Language_Processing_Data_Of): New functions
24402         (Set): Two new procedures
24403         (Add_Language_Name, Display_Language_Name): New procedures
24404
24405         * prj.ads: (Suffix_Of): New function
24406         (Set (Suffix)): New procedure
24407         Add several types and tables for multi-language support.
24408         (Header_Num): Type moved from Prj.Com
24409         (Hash): Two functions moved from Prj.Com
24410         (Is_Present, Language_Processing_Data_Of): New functions
24411         (Set): Two new procedures
24412         (Add_Language_Name, Display_Language_Name): New procedures
24413         (Naming): Component name changes:
24414         Current_Spec_Suffix => Ada_Spec_Suffix,
24415         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
24416         Impl_Suffixes, Supp_Suffixes.
24417         (Project_Data): New components: Externally_Built, Supp_Languages,
24418         First_Language_Processing, Supp_Language_Processing, Default_Linker,
24419         Default_Linker_Path.
24420
24421         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
24422         new package Language_Processing with its attributes (Compiler_Driver,
24423         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
24424         Binder_Driver, Default_Linker).
24425
24426         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
24427         (Header_Num): Type moved to package Prj
24428
24429         * prj-env.adb: Adapt to name changes in package Prj
24430         (Current_Spec_Suffix => Ada_Spec_Suffix,
24431         Current_Body_Suffix => Ada_Body_Suffix).
24432
24433         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
24434         default to the project path, except the "-" is one of the directories
24435         in env var ADA_PROJECT_PATH.
24436         (Current_Project_Path): Global variable, replacing Project_Path
24437         that was in the body of Prj.Part.
24438         (Project_Path): New function
24439         (Set_Project_Path): New procedure
24440         Initialize Current_Project_Path during elaboration of the package
24441         Remove dependency on Prj.Com, no longer needed
24442
24443         * prj-ext.ads (Project_Path): New function
24444         (Set_Project_Path): New procedure
24445
24446         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
24447         suffix is defined for language <lang>.
24448         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
24449         accessing directly the components of Naming.
24450         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
24451         Reorganise of this package.
24452         Break procedure Check in several procedures.
24453
24454         * prj-nmsc.ads: Replace all procedures (Ada_Check,
24455         Other_Languages_Check and Language_Independent_Check) with a single
24456         procedure Check.
24457
24458         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
24459         Process_Languages, no longer needed.
24460
24461         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
24462         Current_Project_Path.
24463         Remove elaboration code, moved to the body of Prj.Ext
24464         Use new function Prj.Ext.Project_Path instead of old variable
24465         Project_Path.
24466         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
24467         When comparing with project paths on the stack, first put the resolved
24468         path in canonical case.
24469         (Parse_Single_Project): Set the path name of the project file in the
24470         tree to the normalized path.
24471
24472         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
24473         parameter Process_Languages, no longer needed.
24474         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
24475         Other_Languages_Check.
24476
24477         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
24478         to store the resolved canonical path of the project file.
24479         Remove dependency to Prj.Com, no longer needed
24480
24481         * prj-util.adb: Adapt to name changes in package Prj
24482         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
24483         Ada_Body_Suffix).
24484
24485         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
24486         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
24487         Externally_Built, Include_Option, Language_Processing.
24488
24489         * makegpr.adb: Numerous changes due to changes in packages
24490         Prj and Prj.Nmsc.
24491
24492         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
24493         default to the project path, except whe "-" is one of the directories
24494         in env var ADA_PROJECT_PATH.
24495         (Gnatls): In verbose mode, add the new section "Project Search Path:"
24496
24497 2004-12-07  Robert Dewar  <dewar@adacore.com>
24498
24499         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
24500
24501         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
24502         set -gnatR3m mode.
24503
24504         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
24505         flag. No longer needed now that we handle this in gnat1drv.adb.
24506
24507         * repinfo.ads: Minor reformatting
24508
24509 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24510             Olivier Hainque  <hainque@adacore.com>
24511             Eric Botcazou  <ebotcazou@adacore.com>
24512
24513         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
24514         TYPE_SIZE_UNIT of result type if SIZE is not specified.
24515         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
24516         of a bitfield, which we know is useless and causes trouble because of
24517         alignment implications.
24518
24519         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
24520         BSS sections.
24521         (process_attributes): Clear DECL_COMMON again when a section attribute
24522         is present.
24523         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
24524         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
24525         (create_field_decl): Special case ADDRESSABLE negative to mean
24526         "no bitfield creation", to be used by make_aligning_type. Don't
24527         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
24528         fields claimed addressable still have to be bitfields. Use
24529         value_factor_p instead of a raw binop construction to check for the
24530         position's alignment.
24531
24532 2004-12-07  Geert Bosch  <bosch@adacore.com>
24533
24534         * eval_fat.adb: Revert previous change.
24535
24536 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24537             Ed Schonberg  <schonberg@adacore.com>
24538
24539         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
24540         with an implicit dereference as its prefix, use
24541         Insert_Explicit_Dereference instead of merely rewriting the prefix into
24542         an explicit dereference. This ensures that a reference to the original
24543         prefix is generated, if appropriate.
24544
24545         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
24546         dereference is rewritten to an explicit one, generate a reference to
24547         the entity denoted by its prefix using the original prefix node, so
24548         the dereference can be properly recorded as a read of the denoted
24549         access value, if appropriate.
24550
24551         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
24552         emitting 'assigned but never read' warning on a variable on the basis
24553         that it has an access type.
24554         (Check_References): Emit unreferenced warning when the scope is a
24555         subprogram body.
24556
24557 2004-12-07  Robert Dewar  <dewar@adacore.com>
24558             Ed Schonberg  <schonberg@adacore.com>
24559
24560         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
24561         intrinsic
24562
24563         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
24564         leaving call unchanged.
24565         This deals with the case where the pragma Import specified
24566         an external name, to be handled by the back end.
24567
24568         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
24569         subprogram which is Imported with convention Intrinsic if an
24570         External_Name argument is specified.
24571         (Process_Import_Or_Interface): Properly diagnose link name argument.
24572         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
24573         with Sem_Ch6.Cannot_Inline.
24574         (Process_Inline): Provide separate warning for inapplicable inline
24575         pragma.
24576         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
24577         treatment is uniform on different targets.
24578
24579 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24580
24581         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
24582         construct is rewritten, preserve end label to permit source navigation.
24583
24584 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24585
24586         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
24587         Specific_Build_Stub_Target): New subprograms.
24588         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
24589         the PCS implementation used, using the above PCS-customized subprograms.
24590         Minor reformatting.
24591         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
24592         for generation of DSA code targeted to the PolyORB PCS.
24593         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
24594         implementation of the partition communication subsystem in ancillary
24595         subprograms.
24596         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
24597         PolyORB_Support.Build_Stub_Type): New subrograms containing the
24598         PCS-specific part of Add_Stub_Type.
24599         (Insert_Partition_Check): Use runtime library function to perform
24600         E.4(19) check.
24601
24602         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
24603         (RE_Same_Partition): New entity, from s-parint.
24604
24605         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
24606
24607 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24608
24609         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
24610         Output the copyright message on a separate line from the version
24611         message.
24612
24613 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
24614
24615         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
24616         compile-time warning.
24617
24618 2004-12-07  Robert Dewar  <dewar@adacore.com>
24619
24620         * g-regpat.adb: (Match): Change a misuse of or to or else
24621
24622 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24623
24624         * lib-xref.adb:
24625         (Generate_Reference): Handle properly a reference to an entry formal,
24626          when an accept statement has a pragma Unreferenced for it.
24627
24628         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
24629         and the Has_Pragma_Unreferenced flag for each formal before analyzing
24630         the body, to ensure that warnings are properly emitted for each accept
24631         statement of a given task entry.
24632
24633 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
24634
24635         * Makefile.in: Add support for foreign threads on VMS.
24636
24637 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24638
24639         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
24640         Remove.
24641         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
24642
24643         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
24644
24645         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
24646         exception.
24647         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
24648
24649 2004-12-07  Robert Dewar  <dewar@adacore.com>
24650
24651         * nlists.adb (Prepend_Debug): Remove parameters and nest within
24652         Prepend.
24653         (Remove_Next_Debug): Same fix
24654
24655         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
24656         maintain back pointers now, though we did not used to, and comments
24657         were out of date).
24658         (Prepend): Remove pragma Inline.
24659         (Remove_Next): Same cleanup
24660
24661 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24662
24663         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
24664         used to record an implicit dereference as a read operation on its
24665         prefix when operating under -gnatc. Necessary to avoid spurious
24666         'variable assigned but never read' warnings in that mode.
24667         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
24668         is a non-overloaded implicit dereference, call the above subprogram to
24669         ensure proper recording of references.
24670
24671 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24672
24673         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
24674         to be resolved later as part of Analyze_Iteration_Scheme's call to
24675         Make_Index.
24676
24677 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24678
24679         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
24680         prefix is not a scalar type, place error message on prefix, not on
24681         type entity.
24682
24683 2004-12-07  Bernard Banner  <banner@adacore.com>
24684
24685         * vxaddr2line.adb: Add support for x86 vxworks
24686
24687 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24688
24689         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
24690         documentation of the behaviour of these functions when passed an IP
24691         address that has no record in the system hosts database and no reverse
24692         record in the DNS.
24693
24694         * cstand.adb, a-tags.ads: Fix typos in comment.
24695
24696 2004-12-07  Robert Dewar  <dewar@adacore.com>
24697
24698         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
24699         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
24700         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
24701         s-poosiz.ads: Minor reformatting
24702
24703         * make.adb: Minor reformatting
24704         Add some ??? comments asking for more comments
24705
24706         * s-poosiz.adb: Minor reformatting
24707         Add comments on alignment requirement
24708
24709         * sinfo.ads: Remove obsolete comment and fix typo.
24710
24711 2004-12-07  Vincent Celier  <celier@adacore.com>
24712             Sergey Rybin  <rybin@adacore.com>
24713
24714         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
24715         Files" with the new tool and package names.
24716         Reformatting to suppress most of the warnings for line too long
24717         Document the new section "Project Search Path:" in the output of
24718         gnatls -v.
24719         Add gnatmetric section
24720
24721 2004-12-07  Vincent Celier  <celier@adacore.com>
24722
24723         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
24724         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
24725         and -eit to -ept. Added qualifier
24726         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
24727
24728 2004-11-27  Andreas Schwab  <schwab@suse.de>
24729
24730         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
24731
24732 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
24733
24734         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
24735         internal implementation unit GNAT.Sockets.Thin,
24736         as their usage for sockets is non-portable (using the read and write
24737         functions from the system runtime library is fine on UNIX but won't
24738         work under Windows).
24739
24740         * mingw32.h: Update copyright notice.
24741
24742 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
24743
24744         * ada-tree.h: Minor reformatting of previous change to avoid lines
24745         longer than 79 characters.
24746
24747 2004-11-25  Olivier Hainque  <hainque@adacore.com>
24748
24749         * tb-gcc.c: GCC infrastructure based implementation of
24750         __gnat_backtrace.
24751
24752 2004-11-24  Steven Bosscher  <stevenb@suse.de>
24753
24754         * misc.c (gnat_post_options): Don't clear
24755         flag_inline_functions.
24756
24757 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
24758
24759         PR ada/17986
24760         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
24761         tree.
24762
24763 2004-11-21  Andreas Jaeger  <aj@suse.de>
24764
24765         * stylesw.adb: Change Style_Check_Subprogram_Order to
24766         Style_Check_Order_Subprograms.
24767
24768 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
24769
24770         * adaint.h, adaint.c
24771         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
24772         to avoid warnings.
24773         Add also a cast to kill another warning.
24774         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
24775         parameter with the priority class of the parent process instead of
24776         always using the NORMAL_PRIORITY_CLASS.
24777         (__gnat_dup): New function.
24778         (__gnat_dup2): New function.
24779         (__gnat_is_symbolic_link): Enable the effective body of this
24780         function when __APPLE__ is defined.
24781
24782         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
24783         Update comments.
24784
24785 2004-11-18  Olivier Hainque  <hainque@adacore.com>
24786
24787         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
24788         address of which may be used to represent "others" and "all others"
24789         choices in exception tables, instead of the current harcoded
24790         (void *)0 and (void *)1.
24791         (Setup_Exception): Do nothing in the GNAT SJLJ case.
24792
24793         * gigi.h (others_decl, all_others_decl): New decls representing the
24794         new Others_Value and All_Others_Value objects.
24795         (struct attrib): Rename "arg" component as "args", since GCC expects a
24796         list of arguments in there.
24797
24798         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
24799         corresponding objects exported by a-exexpr, instead of hardcoded dummy
24800         addresses.
24801
24802         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
24803         others_decl and all_others_decl instead of hardcoded dummy addresses
24804         to represent "others" and "all others" choices, which is cleaner and
24805         more flexible with respect to the possible eh pointer encoding policies.
24806
24807         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
24808         (process_attributes): Account for the naming change of the "args"
24809         attribute list entry component.
24810
24811         * decl.c (build_attr_list): Rename into prepend_attributes to allow
24812         cumulating attributes for different entities into a single list.
24813         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
24814         attributes for the current entity and propagate first subtype
24815         attributes to other subtypes.
24816         <E_Procedure>: Attribute arguments are attr->args and not
24817         attr->arg any more.
24818         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
24819         argument provided, as this is what GCC expects. Use NULL_TREE instead
24820         of 0 for trees.
24821
24822 2004-11-18  Robert Dewar  <dewar@adacore.com>
24823
24824         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
24825         Minor reformatting througout (including new function specs)
24826         Add ??? comments asking for clarification.
24827
24828 2004-11-18  Thomas Quinot  <quinot@adacore.com>
24829
24830         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
24831         incomplete duplicate implementation of this subprogram from butil.
24832
24833 2004-11-18  Thomas Quinot  <quinot@adacore.com>
24834
24835         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
24836         procedures factors the common processing for building an RPC receiver
24837         for an RCI package or an RACW type.
24838         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
24839         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
24840         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
24841         in use.
24842         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
24843         Add_RACW_Features.
24844         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
24845         Add_RAST_Features.
24846         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
24847         distribution subprogram identifiers that are either subprogram numbers
24848         or strings.
24849         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
24850         string distribution identifiers assigned to a given subprogram.
24851         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
24852         (Add_RAS_Dereference_TSS): Add comments.
24853         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
24854         is not referenced yet because it will be used by the PolyORB DSA
24855         implementation.
24856         (Insert_Partition_Check): Remove fossile code.
24857         (First_RCI_Subprogram_Id): Document this constant.
24858         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
24859         RAS_Access TSS.
24860         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
24861         replaced with calls to Get_Library_Unit_Name_String. Previously there
24862         were several instances of the same code in different locations in the
24863         compiler; this checkin completes the replacement of all of these
24864         instances with calls to a common subprogram.
24865         Minor reformatting.
24866
24867         * sem_dist.adb: Remove comment noting that RPC receiver generation
24868         should be disabled for RACWs that implement RASs.
24869         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
24870
24871         * sem_util.ads, sem_util.adb (Has_Stream): New function
24872         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
24873         qualified name of a library unit into the name buffer.
24874         (Note_Possible_Modification): Generate a reference only
24875         if the context comes from source.
24876
24877         * snames.ads (PCS_Names): New subtype corresponding to names of
24878         supported implementations of the Partition Communication Subsystem
24879         (PCS) (i.e. the runtime library support modules for the distributed
24880         systems annex).
24881
24882 2004-11-18  Robert Dewar  <dewar@adacore.com>
24883             Ed Schonberg  <schonberg@adacore.com>
24884
24885         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
24886         (Has_Rep_Pragma): New function
24887         (Has_Attribute_Definition_Clause): New function
24888         (Record_Rep_Pragma): Moved here from sem_ch13.adb
24889         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
24890
24891         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
24892
24893         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
24894         (Expand_Pragma_Psect_Object): New procedure
24895         These procedures contain the revised and cleaned up processing for
24896         these two pragmas. This processing was formerly in Sem_Prag, but
24897         is more appropriately moved here. The cleanup involves making sure
24898         that the pragmas are properly attached to the tree, and that no
24899         nodes are improperly shared.
24900
24901         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
24902         pragmas to Exp_Prag, which is more appropriate.
24903         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
24904         check for duplicates Remove use of Is_Psected flag, no longer needed.
24905         Use new Make_String_Literal function with string.
24906
24907         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
24908         that are functions return universal values, that have to be converted
24909         to the context type.
24910         Use new Make_String_Literal function with string.
24911         (Get_Stream_Convert_Pragma): New function, replaces the use of
24912         Get_Rep_Pragma, which had to be kludged to work in this case.
24913
24914         * freeze.adb: Use new Has_Rep_Pragma function
24915
24916         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
24917         function with string.
24918         Use new Has_Rep_Pragma function.
24919
24920         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
24921         string argument.
24922
24923 2004-11-18  Robert Dewar  <dewar@adacore.com>
24924
24925         * errout.ads, errout.adb: (First_Sloc): New function
24926
24927         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
24928         check (-gnatyx) instead of being included as a redundant construct
24929         warning.
24930
24931         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
24932         Style_Check_Order_Subprograms.
24933
24934         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
24935         stylesw.adb: Add Style_Check_Xtra_Parens
24936
24937         * usage.adb: Add line for -gnatyx (check extra parens)
24938
24939         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
24940
24941 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
24942             Robert Dewar  <dewar@adacore.com>
24943
24944         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
24945         discriminant of a constrained subtype, analyze the copy of the
24946         corresponding constraint, because in some cases it may be only
24947         partially analyzed.
24948         Removes long-lived ??? comments.
24949
24950         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
24951         handled controlled or secondary-stack expressions within the
24952         iteration_scheme of a loop.
24953
24954         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
24955         bounds that may contain functions calls, to prevent memory leaks when
24956         the bound contains a call to a function that uses the secondary stack.
24957         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
24958         generate temporaries for loop bounds that might contain function calls
24959         that require secondary stack and/or finalization actions.
24960
24961         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
24962         selected component and the selector is overloadable (not just a
24963         function) treat as function call, Analyze_Call will disambiguate if
24964         necessary.
24965         (Analyze_Selected_Component): Do not generate an actual subtype for the
24966         selected component if expansion is disabled. The actual subtype is only
24967         needed for constraint checks.
24968         (Analyze_Allocator): If restriction No_Streams is set, then do
24969         not permit objects to be declared of a stream type, or of a
24970         composite type containing a stream.
24971
24972         * restrict.ads: Remove the a-stream entry from Unit_Array, since
24973         No_Streams no longer prohibits with'ing this package.
24974
24975         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
24976         discriminants, but the parent base has unknown discriminants, there is
24977         no discriminant constraint to inherit. Such a discrepancy can arise
24978         when the actual for a formal type with unknown discriminants is a
24979         similar private type whose full view has discriminants.
24980         (Analyze_Object_Declaration): If restriction No_Streams is set, then
24981         do not permit objects to be declared of a stream type, or of a
24982         composite type containing a stream.
24983
24984 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
24985
24986         * exp_dbug.ads: Update documentation to reflect simpler encoding for
24987         protected operations.
24988
24989         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
24990         generated name, it complicates decoding in gdb and hinders debugging
24991         of protected operations.
24992         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
24993         flag for the protected entry barrier function.
24994         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
24995         flag for the protected entry function.
24996
24997 2004-11-18  Nicolas Setton  <setton@adacore.com>
24998
24999         * expect.c: Define __unix__ when __APPLE__ is defined.
25000
25001         * Makefile.in: Inform the value of the variable GMEM_LIB in the
25002         Darwin-specific section.
25003
25004         * lang-specs.h: Change the placement of the %1 marker.
25005         Works around the fact that gcc adds -fPIC by default under Darwin.
25006
25007 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25008
25009         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
25010         type of the object with the packed array type, set the Analyzed flag
25011         on the object if it is an entity or simple indexed component, to avoid
25012         spurious type errors.
25013
25014 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
25015
25016         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
25017         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
25018         separate line from the version message.
25019
25020 2004-11-18  Ed Falis  <falis@adacore.com>
25021
25022         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
25023         vthreads.
25024         (init_float): Eliminate initialization of floating point status for
25025         AE653. The instructions have no effect for vThreads.
25026
25027 2004-11-18  Vincent Celier  <celier@adacore.com>
25028
25029         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
25030         gnatbind is invoked with -shared.
25031
25032 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
25033
25034         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
25035         for Detect_Blocking which is redundant with the check done within the
25036         procedure Protected_Single_Entry_Call.
25037         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
25038         Detect_Blocking which is redundant with the check done within the
25039         procedure Protected_Single_Entry_Call.
25040
25041 2004-11-18  Vincent Celier  <celier@adacore.com>
25042
25043         * makegpr.adb (Compile): Put the compiling switches (in package
25044         Compiler and on the command line) immediately after "-c", instead of
25045         at the end of the command line invocation of the compiler, when
25046         compiling a non-Ada file.
25047         (Build_Global_Archive): When there is no need to rebuild the archive,
25048         set Global_Archive_Exists, so that the archive is passed to the linker
25049         if one is needed.
25050
25051 2004-11-18  Robert Dewar  <dewar@adacore.com>
25052             Sergey Rybin  <rybin@adacore.com>
25053
25054         * gnat_ugn.texi:
25055         Remove extra paren check from list of checks for redundant constructs
25056         Add documentation of new -gnatyx style check (check extra parens)
25057         Remove paragraph about gnatelim debug options.
25058
25059         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
25060         objects rather than forbidding dependencies on the package Ada.Streams.
25061
25062         * sinfo.ads: Add ??? note that we should document pragmas passed to
25063         back end.
25064
25065         * g-expect.ads: Fix a few typos in the comments.
25066
25067 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
25068
25069         * misc.c (gnat_handle_option): Use %< and %> for quoting in
25070         warning message.
25071
25072 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25073
25074         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
25075
25076 2004-11-07  Andreas Schwab  <schwab@suse.de>
25077
25078         * Makefile.in (install-gnatlib): Remove spurious hyphen.
25079
25080 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
25081
25082         PR ada/18228
25083         * Makefile.in (darwin): Set soext to .dylib.
25084
25085 2004-10-26  Vincent Celier  <celier@gnat.com>
25086             Thomas Quinot   <quinot@act-europe.fr>
25087
25088         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
25089         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
25090         there is no use of GNAT.Sockets.Constants.
25091         Remove remaining pragma Import for C_Write
25092         Remove C_Read and C_Write from internal implementation unit
25093         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
25094         the read and write functions from the system runtime library is fine
25095         on UNIX but won't work under Windows).
25096
25097         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
25098         (Check_Selector): Use C_Recv instead of C_Read.
25099         Selectors are the GNAT.Sockets abstraction to perform a select()
25100         call on a set of descriptors. To allow abortion of an ongoing
25101         select operation, some data is written to a dedicated socket that
25102         is always monitored.
25103         Under Windows, the write and read library functions cannot operate
25104         on sockets, so we need to use send and recv instead, which is portable
25105         across all supported platforms.
25106
25107         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
25108         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
25109         (using the read and write functions from the system runtime library is
25110         fine on UNIX but won't work under Windows).
25111
25112 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
25113
25114         * mlib-tgt-darwin.adb: New file.
25115
25116         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25117         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25118         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25119         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
25120         subprogram body.
25121
25122         * Makefile.in: Add support for building shared libraries under Darwin.
25123         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
25124         the low level EH init subprogram to be called from __gnat_initialize.
25125
25126         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
25127         indicates which options to pass to the archive indexer.
25128
25129         * mlib-utl.adb: Add support for calling ranlib with additional
25130         options. This is needed for instance under Mac OS X.
25131         (Ranlib_Options): New global variable, used to store the potential
25132         options to pass to ranlib.
25133         (Ar): Use Ranlib_Options when spawning ranlib.
25134         (Initialize): Set the value of ranlib option.
25135
25136 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
25137
25138         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
25139         instead of 8K, to reflect the real potential needs for stack-checking
25140         in the ZCX case.
25141
25142 2004-10-26  Pascal Obry  <obry@gnat.com>
25143
25144         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
25145
25146         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
25147         Windows only the initial thread stack size can be set so it is good to
25148         start we a low stack size.
25149         The OS will adjust the size as needed.
25150
25151 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
25152             Nicolas Setton  <setton@act-europe.fr>
25153
25154         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
25155         "__unix__" instead of "unix".
25156         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
25157         sections were just mistakenly ignored. The former is
25158         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
25159         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
25160         of hpux. This prevents an unwanted definition of the symbol
25161         convert_addresses in adaint.o.
25162
25163 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
25164
25165         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
25166         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
25167
25168 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
25169
25170         * a-filico.ads, a-filico.adb: fix incorrect header.
25171
25172 2004-10-26  Javier Miranda  <miranda@gnat.com>
25173
25174         * a-ststio.ads: Fix typo in identifier
25175
25176 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25177
25178         * sem_ch4.adb: Minor reformatting.
25179
25180 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25181
25182         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
25183         enabled, check the result of unary and binary operations when the
25184         expression is the right-hand side of an assignment.
25185
25186 2004-10-26  Vincent Celier  <celier@gnat.com>
25187
25188         * clean.adb (Delete): Do not output warnings when in quiet output and
25189         not in verbose mode.
25190         (Force_Deletions): New Boolean flag, defaulted to False
25191         (Delete): Only delete a file if it is writable, and when
25192         Force_Deletions is True.
25193         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
25194         (Usage): Line for new switch -f
25195         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
25196         own.
25197
25198 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
25199
25200         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
25201         JM type only if its size matches that of the wrapper.  When a size is
25202         prescribed and the field is not aliased, remove the wrapper of a JM
25203         type only if the size is not greater than that of the packed array.
25204         (gnat_to_gnu_entity): Change the extension of packed array wrappers
25205         from LJM to JM.
25206
25207 2004-10-26  Geert Bosch  <bosch@gnat.com>
25208
25209         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
25210         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
25211         (Pred): Implement in terms of Succ.
25212
25213 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25214
25215         * exp_aggr.adb (Safe_Component): An aggregate component that is an
25216         unchecked conversion is safe for in-place use if the expression of the
25217         conversion is safe.
25218         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
25219         be expandable in place even if the aggregate does not come from source.
25220         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
25221         designated object of an allocator in place, rather than building it
25222         first on the stack. The previous scheme forces a full copy of the array,
25223         and may be altogether unsusable if the size of the array is too large
25224         for stack allocation.
25225
25226 2004-10-26  Robert Dewar  <dewar@gnat.com>
25227
25228         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
25229         compares if the component is atomic.
25230
25231         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
25232         array assignment if the component type is atomic.
25233
25234 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25235             Eric Botcazou  <ebotcazou@act-europe.fr>
25236
25237         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
25238         is aliased and is a by_reference type, do not pass by copy.
25239         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
25240         detect whether the call is in the right side of an assignment or
25241         the expression of an object declaration.  Recurse on component
25242         association within aggregates.
25243         Call it in the condition that determines whether the temporary is
25244         necessary for correct stack-checking.
25245
25246 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25247
25248         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
25249         RACW_Type, used in the PolyORB version.
25250         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
25251         version and the GARLIC version.
25252
25253         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
25254         Rename RCI_Info to RCI_Locator for better consistency between the
25255         GARLIC and PolyORB versions of the distributed systems annex.
25256         (DSA_Implementation_Name): This enumeration lists the possible
25257         implementations of the Partition Communication Subsystem for the
25258         Distributed Systems Annex (DSA). The three available implementations
25259         are the dummy stub implementation (No_DSA), and two versions based on
25260         two different distribution runtime libraries: GARLIC and PolyORB. Both
25261         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
25262         technology.
25263         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
25264         that organization.
25265
25266         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
25267         between the GARLIC and PolyORB versions of the distributed systems
25268         annex.
25269         Remove RE_Unbounded_Reclaim_Pool since it is unused.
25270
25271 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
25272
25273         * gnat1drv.adb: Suppress calling the back end when
25274         Frontend_Layout_On_Target is true.
25275
25276 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25277
25278         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
25279         Set_Read_Only): New subprograms.
25280         These new routines allow the user to set or unset the Owner execute
25281         and Owner write permission flags on a file.
25282
25283         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
25284         GNAT.OS_Lib.Set_Executable instead of rolling our own.
25285
25286 2004-10-26  Matthew Gingell  <gingell@gnat.com>
25287
25288         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
25289
25290 2004-10-26  Pascal Obry  <obry@gnat.com>
25291
25292         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
25293         memory before the faulting page we properly test the process read
25294         access for this address using appropriate Win32 routine.
25295         (HPUX sections): guard with "__hpux__" instead of "hpux".
25296
25297 2004-10-26  Robert Dewar  <dewar@gnat.com>
25298
25299         * lib-xref.adb (Generate_Reference): Don't complain about reference to
25300         entry parameter if pragma Unreferenced set, since we do not properly
25301         handle the case of multiple parameters.
25302
25303 2004-10-26  Vincent Celier  <celier@gnat.com>
25304
25305         * prj-env.adb: (Contains_ALI_Files): New Boolean function
25306         (Ada_Objects_Path.Add): For a library project, add to the object path
25307         the library directory only if there is no object directory or if the
25308         library directory contains ALI files.
25309         (Set_Ada_Paths.Add.Recursive_Add): Ditto
25310
25311 2004-10-26  Vincent Celier  <celier@gnat.com>
25312
25313         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
25314         extension of library projects.
25315
25316         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
25317         path defaults to ".:<prefix>/lib/gnat".
25318         (Parse): For an extending all project, allow direct import of a project
25319         that is virtually extended.
25320
25321         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
25322         the specified name is directly imported, return its ID. Otherwise, if
25323         an extension of this project is imported, return the ID of the
25324         extension.
25325
25326 2004-10-26  Robert Dewar  <dewar@gnat.com>
25327
25328         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
25329         (Sub3): New procedure, used by Scaled_Divide
25330         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
25331         correct more than one instance of failure to propagate carries
25332         correctly.
25333         (Double_Divide): Handle overflow case of largest negative number
25334         divided by minus one.
25335
25336         * s-arit64.ads (Double_Divide): Document that overflow can occur in
25337         the case of a quotient value out of range.
25338         Fix comments.
25339
25340 2004-10-26  Robert Dewar  <dewar@gnat.com>
25341
25342         * s-bitops.adb (Bit_Eq): Remove redundant check.
25343
25344         * s-bitops.ads: Minor comment updates
25345         Change some occurrences of Address to System.Address
25346
25347         * s-carsi8.ads: Fix minor cut-and-paste error in comments
25348
25349 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25350
25351         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
25352         accessibility check to prefix that is a protected operation.
25353
25354 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25355
25356         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
25357         empty, post message on stub.
25358
25359 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25360             Javier Miranda  <miranda@gnat.com>
25361
25362         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
25363         current instance appears within a unit that is directly in the context
25364         of the main unit.
25365         Used to determine whether the body of the instance should be analyzed
25366         immediately after its spec, to make its subprogram bodies available
25367         for front-end inlining.
25368         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
25369         constraint is not allowed on the component type (AARM 12.5.3(3))
25370
25371 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
25372
25373         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
25374         'Storage_Pool): enhance, document & limit detection of non-sharable
25375         internal pools.
25376
25377         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
25378
25379         * s-pooglo.ads: Add more documentation now that this pool is properly
25380         documented.
25381
25382 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25383
25384         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
25385         or protected type with discriminants, do not constrain the
25386         corresponding record type if the subtype declaration has no
25387         discriminant constraints. This can be the case in source code, or in
25388         the subtype declaration created to rename an actual type within an
25389         instantiation.
25390
25391 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25392
25393         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
25394         different kind of stub (possibly wrong name for file), do not check
25395         for conformance.
25396         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
25397         includes call to some function that returns an unconstrained type, do
25398         not inline.
25399
25400 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25401
25402         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
25403         appear in the code for the main unit. Dependencies among units in the
25404         context of the main unit are established when those other units are
25405         compiled. Otherwise spurious elaboration constraints can generate
25406         incorrect elaboration circularities.
25407
25408 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25409             Ed Schonberg   <schonberg@gnat.com>
25410
25411         * sem_util.adb (Is_Aliased_View): Defend against the case where this
25412         subprogram is called with a parameter that is not an object name. This
25413         situation arises for some cases of illegal code, which is diagnosed
25414         later, and in this case it is wrong to call Is_Aliased, as that might
25415         cause a compiler crash.
25416         (Explain_Limited_Type): Refine previous fix to include
25417         inherited components of derived types, to provide complete information.
25418
25419         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
25420         is the prival for a protected object.
25421         It is necessary to mark this entity as a variable, in addition to
25422         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
25423         modified to avoid checking the Aliased flag on entities that are not
25424         objects. (Checking that flag for non-objects is erroneous and could
25425         lead to a compiler crash).
25426
25427 2004-10-26  Robert Dewar  <dewar@gnat.com>
25428
25429         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
25430         X_Frac = 0.5, then we know that the number X must be positive.
25431         (Succ): Remove the same redundant test, and also fix the primary test
25432         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
25433         Minor reformatting
25434         (Decompose): Add fuller comments to spec
25435
25436 2004-10-26  Pascal Obry  <obry@gnat.com>
25437
25438         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
25439         validity (process must have read access). Set to 0 in all other cases.
25440         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
25441         violation on Win32.
25442         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
25443         segmentation violation.
25444
25445 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
25446
25447         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
25448         whose type is a constructed subtype of an aliased object with an
25449         unconstrained nominal subtype, convert the actual to the constructed
25450         subtype before taking its address.
25451
25452 2004-10-26  Vincent Celier  <celier@gnat.com>
25453
25454         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
25455         (Is_Path_Name_Case_Sensitive): New function
25456
25457         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
25458         (Base_Name, Simple_Name, Current_Directory, Compose,
25459         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
25460         the result.
25461
25462 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
25463             Vasiliy Fofanov  <fofanov@act-europe.fr>
25464             Vincent Celier   <celier@gnat.com>
25465
25466         * gnat_ugn.texi: Generalize "finding memory problems" section into a
25467         "memory management issues" section and document some of the useful
25468         memory pools provided as part of the GNAT library.
25469         Remove "virtual" from declaration of A::method2 in
25470         the simple example of Ada/C++ mixed system.
25471         Library Projects may be virtually extended: their virtual extensions
25472         are not Library Projects.
25473         Added section on extending project hierarchies.
25474
25475 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25476
25477         * adaint.c (__gnat_get_libraries_from_registry): Cast value
25478         to LPBYTE.
25479         (__gnat_portable_spawn): Remove const.
25480
25481         * mingw32.h (MAXPATHLEN): Check for previous definition.
25482
25483 2004-10-17  Matthias Klose  <doko@debian.org>
25484
25485         * gnatvsn.ads: Set gnat library version to 4.0.
25486
25487 2004-10-05  Vincent Celier  <celier@gnat.com>
25488
25489         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
25490
25491 2004-10-04  Laurent Guerby  <laurent@guerby.net>
25492
25493         PR ada/15156
25494         * Makefile.in: Define and use RANLIB_FLAGS.
25495
25496 2004-10-04  Pascal Obry  <obry@gnat.com>
25497
25498         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
25499         other x86 platforms).
25500
25501 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
25502
25503         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
25504         in general and triggers stack alignment adjustment for thread entry
25505         points on targets where this is necessary.
25506
25507 2004-10-04  Bernard Banner  <banner@gnat.com>
25508
25509         PR ada/13897
25510         * Makefile.in: Add section for powerpc linux
25511         Add variant i-vxwork-x86.ads
25512
25513         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
25514
25515 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
25516
25517         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
25518         table registration calls when need be. Ensures no reference to the crt
25519         ctors symbol are issued in the SJLJ case, which avoids possible
25520         undefined symbol errors in the case of modules to be statically linked
25521         with the kernel.
25522
25523 2004-10-04  Javier Miranda  <miranda@gnat.com>
25524
25525         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
25526         in-line the code corresponding to subprogram Analyze_Actuals. In
25527         addition, analyze the actuals only in case of subprogram call.
25528
25529 2004-10-04  Ed Falis  <falis@gnat.com>
25530
25531         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
25532
25533 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
25534
25535         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
25536         in the documentation.
25537
25538 2004-10-04  Robert Dewar  <dewar@gnat.com>
25539
25540         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
25541         IF and CASE.
25542         (Analyze_Block_Statement): Add circuitry to detect following dead code
25543         (Check_Unreachable_Code): Handle case of block exit
25544
25545 2004-10-04  Robert Dewar  <dewar@gnat.com>
25546
25547         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
25548         (XMatchD): Avoid warning for Logic_Error call
25549
25550 2004-10-04  Robert Dewar  <dewar@gnat.com>
25551
25552         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25553         consider expressions buried within a procedure actual to be an actual.
25554         This caused some blowups with uses of packed slices within a procedure
25555         actual.
25556
25557 2004-10-04  Robert Dewar  <dewar@gnat.com>
25558
25559         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
25560         longer need to be initialized to zero.
25561         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
25562         initialized to zero.
25563
25564         * checks.adb (Expr_Known_Valid): Packed arrays are now always
25565         considered valid, even if the representation is modular. That's correct
25566         now that we no longer initialize packed modular arrays to zero.
25567
25568         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25569         suffixes. These are now documented as the only cases in which the
25570         debugger ignores outer records.
25571         Previously, the spec allowed arbitrary suffixes for this purpose.
25572         Change name of LJM to JM for packed array pad records
25573         Create separate section on packed array handling, and add a whole new
25574         set of comments to this section describing the situation with packed
25575         modular types and justification requirements depending on endianness.
25576
25577 2004-10-04  Robert Dewar  <dewar@gnat.com>
25578
25579         * a-except.adb: Add a comment for last change
25580
25581         * einfo.ads: Minor spelling correction in comment
25582
25583         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
25584
25585         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
25586         messages.
25587
25588         * sem_util.ads: Minor comment update
25589
25590 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25591
25592         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
25593         Inline_Always when in Configurable_Run_Time mode.
25594
25595         * sem_prag.adb (Process_Convention): If entity is an inherited
25596         subprogram, apply convention to parent subprogram if in same scope.
25597         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
25598         when in Configurable_Run_Time mode.
25599
25600 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25601
25602         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
25603         class_wide type after component list has been inherited.
25604
25605 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25606
25607         * sem_ch12.adb (Check_Generic_Actuals): New predicate
25608         Denotes_Previous_Actual, to handle properly the case of a private
25609         actual that is also the component type of a subsequent array actual.
25610         The visibility status of the first actual is not affected when the
25611         second is installed.
25612         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
25613         make fully recursive the treatment of formals of packages declared
25614         with a box.
25615         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
25616         the above on exit from an instantiation.
25617         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
25618         current instantiation which is now complete.
25619         (Analyze_Package_Instantiation): No instantiated body is needed if the
25620         main unit is generic. Efficient, and avoid anomalies when a instance
25621         appears in a package accessed through rtsfind.
25622
25623 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25624
25625         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
25626         do not generate a declaration for a temporary if the call is part of a
25627         library-level instantiation.
25628
25629 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25630
25631         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
25632         searching for a limited component to flag.
25633
25634         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
25635         expansion of Input, to account for the fact that the implicit call
25636         generated by the attribute reference must freeze the user-defined
25637         stream subprogram. This is only relevant to 'Input, because it can
25638         appear in an object declaration, prior to the body of the subprogram.
25639
25640         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
25641         expansion can proceed and further errors uncovered.
25642         (Minor clean up): Fix cases of using | instead of \ for continuation
25643         messages.
25644
25645 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25646
25647         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
25648
25649         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
25650         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
25651         Use gcc_assert and gcc_unreachable.
25652
25653         * decl.c (gnat_to_gnu_entity, case object): Check and process a
25654         specified alignment before validating size.
25655         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
25656         stripped-down declaration for the type of the inner field when making
25657         a JM type.
25658
25659         * utils.c (finish_record_type): Do not compute the size in units
25660         incrementally. Instead compute it once for the rep clause case.
25661         Use gcc_assert and gcc_unreachable.
25662
25663 2004-10-04  Vincent Celier  <celier@gnat.com>
25664
25665         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
25666         in file name.
25667         (Is_Valid_Path_Name): Take '/' as a directory separator.
25668
25669 2004-10-04  Vincent Celier  <celier@gnat.com>
25670
25671         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
25672         (Extended_Project) only if Extended_Project is defined, to avoid
25673         assertion error.
25674         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
25675         resolved path.
25676         (Parse_Single_Project): Ditto.
25677
25678         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
25679         Add_To_Project_Path for virtual projects.
25680
25681 2004-10-04  Vincent Celier  <celier@gnat.com>
25682
25683         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25684         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25685         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25686         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
25687         parameter Options_2.
25688
25689         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
25690         Build_Dynamic_Library with an empty Options_2.
25691
25692         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
25693         default anymore.
25694
25695         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
25696         directory separator, if any.
25697         (Gprmake): Do not allow mains on the command line for library projects.
25698         Do not attempt to link when the project is a library project.
25699         (Library_Opts): New table to store Library_Options.
25700         (Build_Library): If Library_Options is specified, pass these options
25701         when building a shared library.
25702
25703 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
25704
25705         * s-tposen.adb (Service_Entry): The object must be always unlocked at
25706         the end of this procedure now that the unlock operation was inserted
25707         by the expander.
25708
25709 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
25710
25711         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
25712         corresponding to the Preallocated_Stacks flags in System.
25713         (Get_Target_Parameters): Including the processing for
25714         Preallocated_Stacks.
25715
25716         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
25717         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
25718         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
25719         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
25720         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
25721         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
25722         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
25723         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
25724         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
25725         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
25726         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
25727         used to signal whether the compiler creates the required stacks and
25728         descriptors for the different tasks (when True) or it is done by the
25729         underlying operating system at run time (when False).
25730         It is initially set to False in all targets.
25731
25732         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
25733         if it is supported by the target.
25734         (Make_Task_Create_Call): Pass the stack address if it has been
25735         previously created. Otherwise pass a Null_Address.
25736
25737         * snames.adb: Add _stack.
25738
25739         * snames.ads: Add Name_uStack. Required to allow the expander to
25740         statically allocated task stacks.
25741
25742         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
25743         Stack_Address argument.
25744         Check that its value is equal to Null_Address because this target does
25745         not support the static stack allocation.
25746
25747 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
25748
25749         * usage.adb: Change "pragma inline" to "pragma Inline" in information
25750         and error messages
25751
25752 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
25753
25754         * exp_dist.adb: Split declaration of asynchronous flag out of
25755         Add_RACW_Read_Attribute.
25756         Minor reformatting for better alignment with PolyORB version.
25757         Store the entity for the asynchronous flag of an RACW, rather than the
25758         expression, in the asynchronous flags table. This will allow this flag
25759         to be used in other subprograms beside Add_RACW_Read_Attribute.
25760
25761 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
25762
25763         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
25764         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25765         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
25766         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
25767         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
25768         sockets constant MSG_NOSIGNAL (Linux-specific).
25769         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
25770         all Send operations.
25771         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
25772         from trigerring SIGPIPE.
25773         Rename components to avoid clash with Ada 2005 possible reserved
25774         word 'interface'.
25775         (Check_Selector): When the select system call returns with an error
25776         condition, propagate Socket_Error to the caller.
25777
25778 2004-10-01  Jan Hubicka  <jh@suse.cz>
25779
25780         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
25781
25782 2004-09-23  Robert Dewar  <dewar@gnat.com>
25783
25784         PR ada/17540
25785         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
25786         instead do this at freeze time (we won't do it if there is an address
25787         clause).
25788         Change "pragma inline" to "pragma Inline" in information and error
25789         messages.
25790         Minor reformatting.
25791
25792         * freeze.adb (Check_Address_Clause): Remove previous change, not the
25793         right way of doing things after all.
25794         (Freeze_Entity): For object, set Is_Public for imported entities
25795         unless there is an address clause present.
25796
25797 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
25798
25799         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
25800         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
25801         ensures proper handling of types with rep clauses, which might have
25802         their TYPE_SIZE set already.
25803
25804 2004-09-21  Robert Dewar  <dewar@gnat.com>
25805
25806         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
25807         packed array types in both little- and big-endian cases. This change
25808         ensures that we no longer count on the unused bits being initialized
25809         for such types (and in particular ensures that equality testing will
25810         only read the relevant bits).
25811         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
25812         These changes mean that we no longer need to initialize small packed
25813         arrays.
25814         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
25815         optimization to an LJM field as to its parent field.
25816
25817         * ada-tree.h, trans.c, utils.c, utils2.c:
25818         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
25819
25820 2004-09-20  Jan Hubicka  <jh@suse.cz>
25821
25822         * utils.c (gnat_finalize): Remove.
25823         (end_subprog_body): Directly call cgraph_finalize_function;
25824         do not lower the nested functions.
25825
25826 2004-09-20  Robert Dewar  <dewar@gnat.com>
25827
25828         PR ada/17540
25829         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
25830         if an address clause is present, since that means that the Import
25831         should be ignored.
25832
25833 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
25834
25835         * 5tsystem.ads: Removed, no longer used.
25836
25837 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
25838             Zack Weinberg  <zack@codesourcery.com>
25839
25840         * ada-tree.def: Use tree_code_class enumeration constants
25841         instead of code letters.
25842         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
25843         Update for new tree-class enumeration constants.
25844
25845 2004-09-17  Vincent Celier  <celier@gnat.com>
25846
25847         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
25848         capabilities of the general project manager.
25849
25850 2004-09-09  Vincent Celier  <celier@gnat.com>
25851
25852         * a-direct.ads: Add pragma Ada_05
25853         (Directory_Entry_Type): Give default value to component Kind to avoid
25854         not initialized warnings.
25855
25856         * a-direct.adb (Current_Directory): Remove directory separator at the
25857         end.
25858         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
25859         an existing directory.
25860         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
25861         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
25862         Convert the result to File_Size.
25863
25864         * prj.ads: (Project_Error): New exception
25865
25866         * prj-attr.adb: Except in procedure Initialize, Fail comes from
25867         Prj.Com, not from Osint.
25868         (Attrs, Package_Attributes): Tables moved to private part of spec
25869         (Add_Attribute, Add_Unknown_Package): Moved to new child package
25870         Prj.Attr.PM.
25871         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
25872         Prj.Project_Error after call to Fail.
25873         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
25874         Fail. Check that package name is not already in use.
25875
25876         * prj-attr.ads: Comment updates to indicate that all subprograms may be
25877         used by tools, not only by the project manager, and to indicate that
25878         exception Prj.Prj_Error may be raised in case of problem.
25879         (Add_Unknown_Package, Add_Attribute): Moved to new child package
25880         Prj.Attr.PM.
25881         (Attrs, Package_Attributes): Table instantiations moved from the body to
25882         the private part to be accessible from Prj.Attr.PM body.
25883
25884         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
25885         from new package Prj.Attr.PM.
25886         (Parse_Attribute_Declaration): Call Add_Attribute from new package
25887         Prj.Attr.PM.
25888
25889         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
25890
25891         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
25892         instead of Elaboration_Checks).
25893
25894         * a-calend.adb: Minor reformatting
25895
25896 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25897
25898         * gigi.h (maybe_pad_type): New declaration.
25899         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
25900
25901         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
25902
25903         * cuintp.c: Convert to use buildN.
25904
25905         * decl.c (maybe_pad_type): No longer static.
25906         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
25907         target pointer.
25908         Convert to use buildN.
25909
25910         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
25911         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
25912         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
25913         RHS.
25914         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
25915         (gnat_gimplify_expr, case ADDR_EXPR): New case.
25916         Convert to use buildN.
25917
25918         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
25919         TREE_READONLY for const.
25920         Convert to use buildN.
25921
25922         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
25923         (create_var_decl): Refine when TREE_STATIC is set.
25924         Convert to use buildN.
25925
25926 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
25927
25928         * gnat_ugn.texi: Delete text relating to checking of ali and object
25929         consistency.
25930
25931         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
25932         routines.
25933
25934 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
25935
25936         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
25937         pragmas recognized by GNAT.
25938
25939         * gnat_rm.texi: Document pragma Detect_Blocking.
25940
25941         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
25942         raise Program_Error if called from a protected operation.
25943
25944         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
25945         the protected action nesting level.
25946         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
25947         protected action nesting level.
25948         (Unlock): When pragma Detect_Blocking is active decrease the protected
25949         action nesting level.
25950
25951         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
25952         Protected_Action_Nesting.
25953
25954         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
25955         Common_ATCB record. It contains the dynamic level of protected action
25956         nesting for each task. It is needed for checking whether potentially
25957         blocking operations are called from protected operations.
25958         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
25959         Detect_Blocking is active or not in the partition.
25960
25961         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
25962         raise Program_Error if called from a protected operation.
25963         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
25964         Program_Error if called from a protected operation.
25965         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
25966         Program_Error if called from a protected operation.
25967
25968         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
25969         raise Program_Error if called from a protected operation.
25970
25971         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
25972         raise Program_Error if called from a protected operation, and increase
25973         the protected action nesting level.
25974         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
25975         Program_Error if called from a protected operation, and increase the
25976         protected action nesting level.
25977         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
25978         protected action nesting level.
25979
25980         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
25981         raise Program_Error if called from a protected operation, and increase
25982         the protected action nesting level.
25983         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
25984         Program_Error if called from a protected operation, and increase the
25985         protected action nesting level.
25986         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
25987         raise Program_Error if called from a protected operation.
25988         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
25989         active, raise Program_Error if called from a protected operation.
25990         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
25991         protected action nesting level.
25992
25993         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
25994         insertion of the statement raising Program_Error. The run time
25995         contains the required machinery for handling that.
25996
25997         * sem_util.ads: Change comment associated to procedure
25998         Check_Potentially_Blocking_Operation.
25999         This procedure does not insert a call for raising the exception because
26000         that is currently done by the run time.
26001
26002         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
26003
26004         * init.c: Add the global variable __gl_detect_blocking that indicates
26005         whether pragma Detect_Blocking is active (1) or not (0). Needed for
26006         making the pragma available at run time.
26007         (__gnat_set_globals): Pass and update the detect_blocking parameter.
26008
26009         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
26010         pragma Detect_Blocking is active.
26011
26012         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
26013
26014         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
26015         DB is found in the ali file. Any unit compiled with pragma
26016         Detect_Blocking active forces its effect in the whole partition.
26017
26018         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
26019         Detect_Blocking is active and delay is called from a protected
26020         operation.
26021
26022         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
26023         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
26024         Detect_Blocking is active (0 otherwise).
26025         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
26026         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
26027         otherwise).
26028
26029 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
26030
26031         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
26032         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
26033         package.
26034
26035         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
26036         (Register_Receiving_Stub): Add Subp_Info formal parameter.
26037         Update API in placeholder implemetation of s-parint to reflect changes
26038         in distribution runtime library.
26039
26040         * sem_ch3.adb (Expand_Derived_Record): Rename to
26041         Expand_Record_Extension.
26042
26043         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
26044         primitive operations of potentially distributed object types that have
26045         non-controlling anonymous access formals.
26046
26047         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
26048         subprogram.
26049         New implementation of expansion for remote access-to-subprogram types,
26050         based on the RACW infrastructure.
26051         This version of sem_dist is compatible with PolyORB/DSA as well as
26052         GLADE.
26053
26054         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
26055         Asynchrronous that applies to a remote access-to-subprogram type, mark
26056         the underlying RACW type as asynchronous.
26057
26058         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
26059          __gnat_using_gnu_linker to 1.
26060
26061         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
26062         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
26063         GNAT.Perfect_Hash_Generators, and remove the empty
26064         GNAT.Perfect_Hash package.
26065
26066         * atree.adb: Minor reformatting
26067
26068         * exp_ch3.adb (Expand_Derived_Record): Rename to
26069         Expand_Record_Extension.
26070         (Build_Record_Init_Proc.Build_Assignment): The default expression in
26071         a component declaration must remain attached at that point in the
26072         tree so New_Copy_Tree copies it if the enclosing record type is derived.
26073         It is therefore necessary to take a copy of the expression when building
26074         the corresponding assignment statement in the init proc.
26075         As a side effect, in the case of a derived record type, we now see the
26076         original expression, without any rewriting that could have occurred
26077         during expansion of the ancestor type's init proc, and we do not need
26078         to go back to Original_Node.
26079
26080         * exp_ch3.ads (Expand_Derived_Record): Rename to
26081         Expand_Record_Extension.
26082
26083         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
26084         Returns the RACW type used to implement a remote access-to-subprogram
26085         type.
26086         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
26087         New subprograms. Used to create a proxy tagged object for a remote
26088         subprogram. The proxy object is used as the designated object
26089         for RAS values on the same partition (unless All_Calls_Remote applies).
26090         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
26091         System.Partition_Interface.Get_Unique_Remote_Pointer.
26092         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
26093         Renamed from Add_RAS_*_Attribute.
26094         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
26095         subprograms.
26096         New implementation of expansion for remote access-to-subprogram types,
26097         based on the RACW infrastructure.
26098
26099         * exp_dist.ads (Copy_Specification): Update comment to note that this
26100         function can copy the specification from either a subprogram
26101         specification or an access-to-subprogram type definition.
26102
26103 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
26104
26105         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
26106         in an instance, between an explicit subprogram an one inherited from a
26107         type derived from an actual.
26108
26109         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
26110         add a polling call if the subprogram is to be inlined by the back-end,
26111         to avoid repeated calls with multiple inlinings.
26112
26113         * checks.adb (Apply_Alignment_Check): If the expression in the address
26114         clause is a call whose name is not a static entity (e.g. a dispatching
26115         call), treat as dynamic.
26116
26117 2004-09-09  Robert Dewar  <dewar@gnat.com>
26118
26119         * g-trasym.ads: Minor reformatting
26120
26121         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
26122         packed arrays, since unused bits are expected to be zero for a
26123         comparison.
26124
26125 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
26126
26127         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
26128         comment.
26129
26130 2004-09-09  Pascal Obry  <obry@gnat.com>
26131
26132         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
26133         enable map file generation. Add the right option to generate the map
26134         file if Map_File is set to True.
26135
26136         * gnatdll.adb (Gen_Map_File): New variable.
26137         (Syntax): Add info about new -m (Map_File) option.
26138         (Parse_Command_Line): Add support for -m option.
26139         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
26140         Minor reformatting.
26141
26142 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
26143
26144         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
26145         new gnatdist implementation.
26146         Define a subpackage isolating the output routines specific to this
26147         verbose mode.
26148
26149 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
26150
26151         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
26152
26153         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
26154
26155 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
26156
26157         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
26158         internal unit.
26159
26160         * opt.ads: Add Ada_Version_Runtime constant used to decide which
26161         version of the language is used to compile the run time.
26162
26163 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
26164
26165         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
26166         of variable length temporaries for function return now that the
26167         back-end and gigi support it.
26168
26169 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26170
26171         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
26172
26173         * trans.c (struct stmt_group): Delete field GLOBAL.
26174         (gnat_init_stmt_group): Do not initialize it.
26175         (call_to_gnu): Use save_expr, not protect_multiple_eval.
26176         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
26177         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
26178         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
26179         (start_stmt_group): Likewise.
26180         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
26181
26182         * utils2.c (ggc.h): Include.
26183         (build_call_raise): Call build_int_cst, not build_int_2.
26184
26185         * utils.c (gnat_init_decl_processing): Fix arg to
26186         build_common_tree_nodes.
26187         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
26188         (gnat_define_builtin): Set built_in_decls.
26189         (init_gigi_decls): Call build_int_cst, not build_int_2.
26190
26191         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
26192         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
26193         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
26194         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
26195         SET_TYPE_MODULE): Use them.
26196         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
26197         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
26198         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
26199         SET_TYPE_ADA_SIZE): Likewise.
26200         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
26201         (DECL_CONST_CORRESPONDING_VAR,
26202         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
26203         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
26204         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
26205         (TYPE_RM_SIZE_NUM): New macro.
26206         (TYPE_RM_SIZE): Modified to use above.
26207
26208         * cuintp.c: (build_cst_from_int): New function.
26209         (UI_To_gnu): Use it.
26210
26211         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
26212         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
26213         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
26214         MIN_EXPR for the size, copy it into new.
26215
26216 2004-09-01  Robert Dewar  <dewar@gnat.com>
26217
26218         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
26219         packed indexed component where array is an IN OUT formal. This
26220         generated garbage code previously.
26221
26222         * gnat_ugn.texi: Document -fverbose-asm
26223
26224         * gnat-style.texi: Minor updates (note that boolean constants and
26225         variables are joined with AND/OR rather than short circuit forms).
26226
26227 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
26228
26229         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
26230         it is an upward conversion of an untagged type with no representation
26231         change.
26232
26233 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
26234
26235         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
26236         System.Partition_Interface.
26237
26238         * checks.adb (Apply_Access_Checks): Do not generate checks when
26239         expander is not active (but check for unset reference to prefix of
26240         dereference).
26241
26242         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
26243         pragma Debug as an if statement with a constant condition, for
26244         consistent treatment of entity references contained within the
26245         enclosed procedure call.
26246
26247 2004-09-01  Vincent Celier  <celier@gnat.com>
26248
26249         * bindgen.adb: (Set_EA_Last): New procedure
26250         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
26251         Set_EA_Last.
26252         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
26253         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
26254         linked without errors.
26255         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
26256         ST and EA.
26257         (Gen_Exception_Table_C): Correct same bugs
26258
26259         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
26260
26261         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
26262         on Windows, make sure that the drive letter is in upper case.
26263
26264         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
26265         Windows, when the drive letter is added and Case_Sensitive is True, the
26266         drive letter is forced to upper case.
26267
26268         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
26269         to Options_2 for the call to MLib.Utl.Gcc.
26270
26271         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
26272         directory separator when defining BASE_DIR.
26273
26274 2004-09-01  Pascal Obry  <obry@gnat.com>
26275
26276         * gprcmd.adb (Extend): Do not output trailing directory separator. This
26277         is not needed and it confuses Windows GNU/make which does not report
26278         directory terminated by a slash as a directory.
26279         (gprcmd): Idem for "pwd" internal command.
26280
26281         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
26282         target names rewrite to fix regressions with recent version of
26283         GNU/make. Starting with GNU/make 3.80 the pipe character was not
26284         handled properly anymore.
26285
26286 2004-09-01  Andreas Schwab  <schwab@suse.de>
26287
26288         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
26289         * raise.c [!IN_RTS]: Undef abort.
26290
26291 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
26292
26293         * utils2.c (build_allocator): Use ssize_int.
26294
26295         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
26296
26297 2004-08-27  Andreas Schwab  <schwab@suse.de>
26298
26299         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
26300
26301 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
26302             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26303
26304         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
26305
26306 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
26307
26308         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
26309         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26310         * utils.c (init_gigi_decls): Likewise.
26311         * utils2.c (build_call_raise, build_allocator): Likewise.
26312
26313 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
26314
26315         * utils.c (gnat_init_decl_processing): Adjust
26316         build_common_tree_nodes call.
26317
26318 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
26319
26320         * utils2.c (build_allocator): Use build_int_cst for negative
26321         size types.
26322
26323 2004-08-18  Richard Henderson  <rth@redhat.com>
26324
26325         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
26326
26327 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
26328
26329         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
26330         call.s
26331         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
26332         (gnat_to_gnu): Likewise.
26333
26334 2004-08-16  Pascal Obry  <obry@gnat.com>
26335
26336         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
26337         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
26338         option and not mdll anymore. Update comment.
26339
26340 2004-08-16  Pascal Obry  <obry@gnat.com>
26341
26342         * bld.adb (Put_Include_Project): Properly handle directory separators
26343         on Windows.
26344
26345 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
26346
26347         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
26348         decreasing the number of allocated junk nodes while searching for the
26349         appropriate subprogram.
26350
26351 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
26352
26353         * cuintp.c (UI_To_gnu): Use build_int_cst..
26354         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26355         * utils.c (init_gigi_decls): Likewise.
26356         * utils2.c (build_call_raise): Likewise.
26357
26358 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
26359
26360         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
26361         for a global aliased object with a variable size and an unconstrained
26362         nominal subtype, pretend there is no initializer if the one we have is
26363         incomplete, and avoid referencing an inexistant component in there. The
26364         part we have will be rebuilt anyway and the reference may confuse
26365         further operations.
26366
26367 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
26368
26369         * einfo.ads: Minor reformatting
26370
26371         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
26372         restrictions in the ALI if we only want to warn about violations.
26373
26374 2004-08-13  Vincent Celier  <celier@gnat.com>
26375
26376         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
26377         when creating a new Unit_Record in table Units.
26378
26379         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
26380         that are violated, if any.
26381
26382         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
26383         add directory separator if path already ends with a directory separator.
26384
26385 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
26386
26387         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
26388         unit, this is an attempt to inline a construct that is not available in
26389         the current restricted mode, so abort rather than trying to continue.
26390
26391         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
26392         discriminants that rename those of the parent, recover names of
26393         original discriminants for the constraint on the full view of the
26394         parent.
26395         (Complete_Private_Subtype): Do not create a subtype declaration if the
26396         subtype is an itype.
26397
26398         * gnat_rm.texi: Added section on implementation of discriminated
26399         records with default values for discriminants.
26400
26401 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
26402
26403         PR ada/15601
26404         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
26405         the second operand is overloaded.
26406
26407 2004-08-10  Richard Henderson  <rth@redhat.com>
26408
26409         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
26410         add __builtin_alloca.
26411
26412 2004-08-10  Richard Henderson  <rth@redhat.com>
26413
26414         * config-lang.in (boot_language): Yes.
26415
26416 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
26417
26418         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
26419         from complaining on potential uninitialized reference.
26420         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
26421         new specification and test explicitly for non-zero return value.
26422
26423         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
26424         returning C.int, to avoid using a derived boolean type.
26425
26426         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
26427         Duplicate_Subexpr_No_Checks in preference to direct use of
26428         Remove_Side_Effects and New_Copy_Tree.
26429         Clear Comes_From_Source on prefix of 'Size attribute reference.
26430
26431         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
26432         g-socthi-vxworks.adb: Change calls to
26433         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
26434         and test explicitly for non-zero return value.
26435
26436         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
26437         (Is_Socket_In_Set): Declare imported function as returning C.int, to
26438         avoid using a derived boolean type.
26439
26440 2004-08-09  Albert Lee  <lee@gnat.com>
26441
26442         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
26443
26444 2004-08-09  Pascal Obry  <obry@gnat.com>
26445
26446         * gnat_ugn.texi: Document new way to build DLLs on Windows using
26447         GCC's -shared option.
26448
26449         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
26450         Options_2 parameter (options put after object files).
26451
26452 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
26453
26454         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
26455         ignore overflows on low and high bounds of an index to also account for
26456         differences in signedness between sizetype and gnu_index_subtype.
26457         These are as legitimate as the ones caused by a lower TYPE_PRECISION
26458         on sizetype.
26459
26460 2004-08-09  Robert Dewar  <dewar@gnat.com>
26461
26462         * s-solita.ads, s-solita.adb: Minor reformatting
26463
26464         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
26465         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
26466         obsolescent section
26467         Add note that No_Implicit_Conditionals does not suppress
26468         run time constraint checks.
26469
26470         * vms_conv.ads: Minor reformatting
26471
26472         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
26473         and necessary for following change).
26474         (Mark): Return new format Mark_Id containing sec stack address
26475         (Release): Use sec stack address from Mark_Id avoiding Self call
26476
26477         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
26478         pointer (cleanup and necessary for following change).
26479         Define Mark_Id as record containing address of secondary stack, that way
26480         Release does not need to find the stack again, decreasing the number of
26481         calls to Self and improving efficiency.
26482
26483         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
26484
26485         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
26486         case variable into the individual case branches when possible.
26487
26488         * sem_ch11.adb: Minor reformatting
26489
26490         * prj.ads: Correct spelling of suffixs
26491
26492         * prj-nmsc.adb: Minor reformatting
26493         Correct spelling suffixs throughout (also in identifiers)
26494
26495         * freeze.adb: Minor spelling correction
26496
26497         * exp_ch2.adb: Cleanups to handling of Current_Value
26498         (no functional effect).
26499
26500         * bld.adb: Correct spelling of suffixs
26501
26502         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
26503
26504 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
26505
26506         PR ada/15408
26507         * sem_ch7.adb (Install_Private_Declarations): In the body of the
26508         package or of a child, private entities are both immediately_visible
26509         and not hidden.
26510
26511 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
26512
26513         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
26514         there are no range checks on the value of the literal.
26515
26516         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
26517         wrapped is the triggering alternative of an asynchronous select, action
26518         statements mustbe inserted before the select itself.
26519
26520         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
26521         case where the prefix is a protected function call.
26522         (Resolve_Attribute, case 'Access): The attribute reference on a
26523         subprogram is legal in a generic body if the subprogram is declared
26524         elsewhere.
26525
26526 2004-08-09  Vincent Celier  <celier@gnat.com>
26527
26528         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
26529         languages, otherwise building the library may fail with unresolved
26530         symbols.
26531         (Compile_Sources): Do not build libraries if -c switch is used
26532
26533         * gnatlink.adb (Process_Args): New switches -M and -Mmap
26534         (Write_Usage): If map file creation is supported, output new switches
26535         -M and -Mmap.
26536         (Gnatlink): When -M is specified, add the necessary switch(es) to the
26537         gcc call, when supported.
26538
26539         * Makefile.in: Added indepsw.o to the object list for gnatlink
26540         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
26541
26542         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
26543         indepsw.adb, indepsw.ads: New files.
26544
26545 2004-08-09  Bernard Banner  <banner@gnat.com>
26546
26547         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
26548
26549         * Makefile.in: add section for vxworks x86
26550
26551 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
26552
26553         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
26554         per-object constrained components where the discriminant is of an
26555         Access type.
26556         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
26557         the parent initialization procedure for derived Unchecked_Unions.
26558         Instead, derived Unchecked_Unions build their own initialization
26559         procedure.
26560         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
26561         Check the body of the subprogram for details.
26562         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
26563         functions for derived Unchecked_Union types by introducing a condition.
26564         Allow the creation of TSS equality functions for Unchecked_Unions.
26565         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
26566         Add formal parameter Discr to function signature. Discr is used to
26567         control the generated case statement for Unchecked_Union types.
26568         (Make_Eq_If): Rename formal parameter Node to E in function signature.
26569
26570         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
26571         Unchecked_Unions.
26572         Check the body of the subprogram for details.
26573         (Expand_Composite_Equality): Augment composite type equality to include
26574         correct handling of Unchecked_Union components.
26575         (Expand_N_In): Add condition to detect illegal membership tests when the
26576         subtype mark is a constrained Unchecked_Union and the expression lacks
26577         inferable discriminants, and build a Raise_Program_Error node.
26578         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
26579         to detect types that contain components of unconstrained Unchecked_Union
26580         subtype. Add condition to detect equality between types that have an
26581         unconstrained Unchecked_Union component, and build a Raise_Program_Error
26582         node. Add condition to detect equality between Unchecked_Union types
26583         that lack inferable discriminants, and build a Raise_Program_Error node.
26584         Otherwise build a TSS equality function call.
26585         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
26586         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
26587         with the operand lacking inferable discriminants, and build a Raise_
26588         Program_Error node.
26589         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
26590         composite equality.
26591         (Has_Inferable_Discriminants): Implement new predicate for objects and
26592         expressions of Unchecked_Union type. Check the body of subprogram for
26593         details.
26594         (Has_Unconstrained_UU_Components): Add function
26595         Component_Is_Unconstrained_UU. It is used to detect whether a single
26596         component is of an unconstrained Unchecked_Union subtype. Add function
26597         Variant_Is_Unconstrained_UU. It is used to detect whether a single
26598         component inside a variant is of an unconstrained Unchecked_Union type.
26599
26600         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
26601         inferred discriminant values. Add condition to generate a case
26602         statement with an inferred discriminant as the switch.
26603         (Make_Component_List_Assign): Introduce a Boolean flag that determines
26604         the behaviour of the subprogram in the presence of an Unchecked_Union.
26605         Add condition to trigger the usage of the inferred discriminant value
26606         as the generated case statement switch.
26607         (Make_Field_Assign): Introduce a Boolean flag that determines the
26608         behaviour of the subprogram in the presence of an Unchecked_Union. Add
26609         condition to trigger the usage of the inferred discriminant value as
26610         the right-hand side of the generated assignment.
26611
26612         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
26613         parameter generation when dealing with Unchecked_Unions.
26614
26615         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
26616         checks for Unchecked_Unions.
26617
26618         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
26619
26620         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
26621         Raise_Program_Error nodes for the execution of Read and Write
26622         attributes of Unchecked_Union types and the execution of Input and
26623         Output attributes of Unchecked_Union types that lack default
26624         discriminant values.
26625
26626         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
26627         Unchecked_Union. Add procedure Check_Component. It is used to inspect
26628         per-object constrained components of Unchecked_Unions for being
26629         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
26630         check individual components withing a variant.
26631
26632         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
26633         comparison of Unchecked_Unions.
26634         (Resolve_Equality_OP): Remove guard that prevents equality between
26635         Unchecked_Unions.
26636
26637         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
26638         of component subtypes for Unchecked_Union components.
26639         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
26640         since it is the actual subtype.
26641
26642         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
26643         pass of Unchecked_Union subtypes as generic actuals to formal types
26644         that lack known_discriminant_parts or that are derived Unchecked_Union
26645         types, and do nothing. In any other case, produce an error message.
26646
26647         * sem_ch3.adb (Analyze_Component_Declaration): Add function
26648         Contains_POC. It determines whether a constraint uses the discriminant
26649         of an enclosing record type.
26650         Add condition to detect per-object constrained component and set the
26651         appropriate flag.
26652         (Derived_Type_Declaration): Remove guard that prevents derivation from
26653         Unchecked_Union types.
26654         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
26655         Union subtypes.
26656
26657         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
26658         references to Unchecked_Union discriminants.
26659
26660         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
26661         formal generation when dealing with Unchecked_Unions.
26662         (Set_Actual_Subtypes): Add condition to prevent generation of actual
26663         subtypes for Unchecked_Unions.
26664
26665         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
26666         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
26667         completions of discriminated partial views by Unchecked_Unions and
26668         produce an error message.
26669
26670 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26671
26672         * trans.c (struct stmt_group): New field, GLOBAL.
26673         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
26674         (struct elab_info): New struct.
26675         (elab_info_list, gnu_elab_proc_stack): New variables.
26676         (Compilation_Unit_to_gnu): New procedure.
26677         (gigi): Call it and also handle elaboration procs we've saved.
26678         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
26679         global field from parent.
26680         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
26681         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
26682         (start_stmt_group): Initialize global field from parent.
26683         (add_decl_expr): Set to global for current statement group.
26684         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
26685         post.
26686
26687         * utils.c (global_bindings_p): True when no current_function_decl; no
26688         longer check current_binding_level.
26689
26690 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
26691
26692         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
26693         choice.
26694
26695         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
26696
26697 2004-08-06  Andreas Schwab  <schwab@suse.de>
26698
26699         * utils.c (gnat_define_builtin): Remove second parameter of
26700         make_decl_rtl.
26701         (begin_subprog_body): Likewise.
26702
26703 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
26704
26705         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
26706         optimization, not supported by the tree-ssa back-end.
26707
26708 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
26709
26710         * s-mastop-irix.adb: Update comments.
26711
26712         * a-except.adb (Exception_Information): Raise Constraint_Error if
26713         exception Id is Null_Id.
26714         This is required behavior, which is more reliably and clearly checked
26715         at the top level interface level.
26716
26717 2004-07-26  Javier Miranda  <miranda@gnat.com>
26718
26719         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
26720         call if a component has no default_expression and the box is used.
26721
26722         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
26723         default_expression and you use box, it behaves as if you had declared a
26724         stand-alone object.
26725         (Resolve_Record_Aggregate): If a component has no default_expression and
26726         you use box, it behaves as if you had declared a stand-alone object.
26727
26728         * sem_ch10.adb (Install_Siblings): Do not make visible the private
26729         entities of private-with siblings.
26730
26731 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
26732
26733         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
26734         for a component of an itype, set the parent pointer for analysis,
26735         there is no list in which to insert it.
26736
26737         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
26738         bona-fide renamings, not for inherited operations.
26739
26740         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
26741         actual for a formal that is an access parameter, create local
26742         finalization list even if the expression is not an aggregate.
26743
26744 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
26745
26746         PR ada/16213
26747         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
26748         Diagnose properly illegal subprogram renamings that are library units.
26749
26750 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
26751
26752         PR ada/15588
26753         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
26754         conversion rewritten as an unchecked conversion, check that original
26755         expression is a variable.
26756
26757         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
26758         unchecked_conversion, create new node rather than rewriting in place,
26759         to preserve original construct.
26760
26761 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26762
26763         * gigi.h (gnat_expand_body): Deleted.
26764
26765         * Make-lang.in: (trans.o): Depends on function.h.
26766
26767         * misc.c: (gnat_expand_body): Moved to here.
26768
26769         * trans.c (gnat_expand_body_1): Deleted.
26770         (gnat_expand_body): Moved from here.
26771         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
26772         (add_stmt): Check for marked visited with global_bindings_p.
26773         (gnat_gimplify_expr, case COMPONENT_REF): New case.
26774         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
26775
26776         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
26777         VIEW_CONVERT_EXPR if not operation type.
26778
26779         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
26780         fat pointer.
26781
26782         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
26783         changes: reformatting of negation operators, removing unneeded
26784         inequality comparison with zero, converting equality comparisons with
26785         zero to negations, changing int/0/1 to bool/false/true, replace calls
26786         to gigi_abort with abort, and various other similar changes.
26787
26788 2004-07-26  Vincent Celier  <celier@gnat.com>
26789
26790         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
26791         "setup".
26792
26793         * make.adb (Gnatmake): Fail when a library is not present and there is
26794         no object directory.
26795
26796         * mlib-prj.adb (Check_Library): No need to check if the library needs
26797         to be rebuilt if there is no object directory, hence no object files
26798         to build the library.
26799
26800         * opt.ads (Setup_Projects): New Boolean flag.
26801
26802         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
26803         Location.
26804         Create directory when Kind /= "" and in "gnat setup". Report error if
26805         directory cannot be created.
26806         (Ada_Check): Create library interface copy dir if it does not exist
26807         and we are in "gnat setup".
26808         (Find_Sources): No error if in "gnat setup" and no Ada sources were
26809         found.
26810         (Language_Independent_Check): Create object directory, exec directory
26811         and/or library directory if they do not exist and we are in
26812         "gnat setup".
26813
26814         * vms_conv.ads: (Command_Type): New command Setup.
26815
26816         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
26817
26818         * vms_data.ads: Add qualifiers/switches for new built-in command
26819         "setup".
26820
26821 2004-07-25  Richard Henderson  <rth@redhat.com>
26822
26823         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
26824         DECL_IGNORED_P on RESULT_DECL.
26825
26826 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
26827
26828         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
26829         allocation and potentially overflowing update with
26830         Tailored_Exception_Information. Use the sec-stack free procedural
26831         interface to output Exception_Information instead.
26832
26833         * a-except.adb (To_Stderr): New subprogram for character, and string
26834         version moved from a-exextr to be visible from other separate units.
26835         (Tailored_Exception_Information): Remove the procedural version,
26836         previously used by the default Last_Chance_Handler and not any more.
26837         Adjust various comments.
26838
26839         * a-exexda.adb: Generalize the exception information procedural
26840         interface, to minimize the use of secondary stack and the need for
26841         local buffers when the info is to be output to stderr:
26842         (Address_Image): Removed.
26843         (Append_Info_Character): New subprogram, checking for overflows and
26844         outputing to stderr if buffer to fill is of length 0.
26845         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
26846         (Append_Info_Address, Append_Info_Exception_Name,
26847         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
26848         Append_Info_Basic_Exception_Traceback,
26849         Append_Info_Exception_Information): New subprograms.
26850         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
26851         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
26852         Exception_Info_Maxlength, Exception_Name_Length,
26853         Exception_Message_Length): New subprograms.
26854         (Exception_Information): Use Append_Info_Exception_Information.
26855         (Tailored_Exception_Information): Use
26856         Append_Info_Basic_Exception_Information.
26857         Export services for the default Last_Chance_Handler.
26858
26859         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
26860         other separate units.
26861
26862 2004-07-20  Vincent Celier  <celier@gnat.com>
26863
26864         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
26865
26866 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
26867
26868         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
26869         emit itype references for the designated types of component types that
26870         are declared outside of the full record declaration, and that may
26871         denote a partial view of that record type.
26872
26873 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
26874
26875         PR ada/15607
26876         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
26877         which is the designated type in an access component declaration, to the
26878         list of incomplete dependents of the parent type, to avoid elaboration
26879         issues with out-of-scope subtypes.
26880         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
26881         full view of the parent.
26882
26883 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
26884
26885         PR ada/15610
26886         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
26887         entities that are hidden, such as references to generic actuals
26888         outside an instance.
26889
26890 2004-07-20  Javier Miranda  <miranda@gnat.com>
26891
26892         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
26893         support to the new notation.
26894         (Analyze_Selected_Component): Add call to Try_Object_Operation.
26895
26896 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
26897
26898         * s-taprob.adb: Adding the elaboration code required for initializing
26899         the tasking soft links that are common to the full and the restricted
26900         run times.
26901
26902         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
26903         restricted run time has been moved to the package
26904         System.Soft_Links.Tasking.
26905
26906         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
26907         restricted run time has been moved to the package
26908         System.Soft_Links.Tasking.
26909
26910         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
26911
26912         * s-solita.ads, s-solita.adb: New files.
26913
26914 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26915
26916         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
26917         Case_Statement_to_gnu): Split off from gnat_to_gnu.
26918         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
26919         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
26920         Exception_Handler_to_gnu_zcx): Likewise.
26921
26922 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
26923
26924         * gigi.h (builtin_function): Declare.
26925
26926 2004-07-15  Robert Dewar  <dewar@gnat.com>
26927
26928         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
26929         reformatting
26930
26931         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
26932         access values as an example of a warning.
26933
26934         * gnat_rm.texi: Document new attribute Has_Access_Values
26935
26936         * gnat-style.texi: Document that box comments belong on nested
26937         subprograms
26938
26939         * sem_util.ads (Has_Access_Values): Improved documentation
26940
26941         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
26942
26943         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
26944         (Process_Interface_Name): Call to this new procedure
26945         (Set_Extended_Import_Export_External_Name): Call to this new procedure
26946
26947         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
26948
26949         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
26950
26951         * einfo.ads: Minor comment typo fixed
26952
26953 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
26954
26955         * snames.adb: Add _atcb.
26956
26957         * snames.ads: Add Name_uATCB.
26958
26959         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
26960         (in the expanded code) when using the restricted run time.
26961
26962         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
26963         a in parameter in order to allow ATCBs to be preallocated (in the
26964         expanded code).
26965
26966         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
26967         order to allow ATCBs to be preallocated. In case of error, the ATCB is
26968         deallocated in System.Tasking.Stages.
26969
26970         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
26971         order to allow ATCBs to be preallocated.
26972
26973         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
26974         here. It was previously done in Initialize_ATCB.
26975
26976         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
26977
26978         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
26979         Restricted run time.
26980
26981         * exp_ch3.adb: When using the Restricted run time, pass the
26982         preallocated Ada_Task_Control_Block when creating a task.
26983
26984 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
26985
26986         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
26987         function call that is itself an actual in an enclosing call, diagnose
26988         problem here rather than assuming that resolution will catch it.
26989
26990         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
26991         the local copy of a generic unit for a formal package, and the generic
26992         is a child unit, install private part of ancestors before compiling
26993         private part of spec.
26994
26995         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
26996         use scope entities rather than tree structures, to handle properly
26997         parent units that are instances rewritten as bodies for inlining
26998         purposes.
26999
27000         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
27001         Remove_Parents): Handle properly a parent unit that is an
27002         instantiation, when the unit has been rewritten as a body for inlining
27003         purposes.
27004
27005         * par.adb (Goto_List): Global variable to collect goto statements in a
27006         given unit, for use in detecting natural loops.
27007
27008         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
27009         use in detecting natural loops.
27010
27011         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
27012         backwards goto's, and rewrite as a infinite loop, to improve locality
27013         of temporaries.
27014
27015         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
27016         subcomponent that includes an indexed reference, to prevent the
27017         generation of copies that would miscompile the desired assignment
27018         statement.
27019         (Build_Task_Image_Decls): Add a numeric suffix to
27020         generated name for string variable, to avoid spurious conflicts with
27021         the name of the type of a single protected object.
27022
27023         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
27024         loop with an explicit exit statement, to avoid generating an
27025         out-of-range value with 'Succ leading to spurious constraint_errors
27026         when compiling with -gnatVo.
27027
27028 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
27029
27030         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
27031         might not be analyzed yet, even if its Etype is already set (case of an
27032         unchecked conversion built using Unchecked_Convert_To, for example).
27033         If the prefix has already been analyzed, this will be a nop anyway.
27034
27035         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
27036         controller type, or an assignment of a record type with controlled
27037         components, copy only user data, and leave the finalization chain
27038         pointers untouched.
27039
27040 2004-07-15  Vincent Celier  <celier@gnat.com>
27041
27042         * make.adb (Collect_Arguments): Improve error message when attempting
27043         to compile a source not part of any project, when -x is not used.
27044
27045         * prj.ads: (Defined_Variable_Kind): New subtype
27046
27047         * prj-attr.adb (Register_New_Package): Two new procedures to register
27048         a package with or without its attributes.
27049         (Register_New_Attribute): Mew procedure to register a new attribute in a
27050         package.
27051         New attribute oriented subprograms: Attribute_Node_Id_Of,
27052         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27053         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27054         Next_Attribute.
27055         New package oriented subprograms: Package_Node_Id_Of,
27056         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27057
27058         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
27059         type.
27060         (Package_Node_Id): Now a private, self initialized type
27061         (Register_New_Package): New procedure to register a package with its
27062         attributes.
27063         New attribute oriented subprograms: Attribute_Node_Id_Of,
27064         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27065         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27066         Next_Attribute.
27067         New package oriented subprograms: Package_Node_Id_Of,
27068         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27069
27070         * prj-dect.adb (Parse_Attribute_Declaration,
27071         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
27072
27073         * prj-makr.adb (Make): Parse existing project file before creating
27074         other files. Fail if there was an error during parsing.
27075
27076         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
27077         new spec of Prj.Attr.
27078
27079         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
27080         to new spec of Prj.Attr.
27081
27082 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27083
27084         * utils2.c: Fix typo in comment.
27085
27086 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27087
27088         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
27089         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
27090
27091 2004-07-14  Andreas Schwab  <schwab@suse.de>
27092
27093         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
27094
27095 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27096
27097         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
27098         object type.
27099         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
27100         TYPE_STUB_DECL.
27101
27102         * misc.c (gnat_types_compatible_p): New function.
27103         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
27104         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
27105
27106         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
27107         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
27108         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
27109         (mark_visited): Don't mark dummy type.
27110         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
27111         parameter, we must remove any LJM building from GNU_NAME.
27112         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
27113         (pos_to_constructor): Use int_const_binop.
27114         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
27115         PARM_DECL.
27116
27117         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
27118         (gnat_pushlevel): Set TREE_USE on BLOCK node.
27119         (gnat_install_builtins): Add __builtin_memset.
27120
27121 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
27122
27123         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
27124         for a renaming, stabilize the initialization expression if we are at a
27125         local level.  At the local level, uses of the renaming may be performed
27126         by a direct dereference of the initializing expression, and we don't
27127         want possible variables there to be evaluated for every use.
27128
27129         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
27130         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
27131         them on the way.  Account for the fact that we may introduce side
27132         effects in the process.
27133
27134 2004-07-13  Richard Henderson  <rth@redhat.com>
27135
27136         * misc.c (default_pass_by_ref): Use pass_by_reference.
27137
27138 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
27139
27140         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
27141         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
27142
27143 2004-07-08  Richard Henderson  <rth@redhat.com>
27144
27145         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
27146         commentary.
27147
27148 2004-07-06  Vincent Celier  <celier@gnat.com>
27149
27150         * vms_conv.ads: Minor reformatting.
27151         Alphabetical order for enumerated values of type Command_Type, to have
27152         the command in alphabetical order for the usage.
27153
27154         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
27155         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
27156
27157         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
27158
27159         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
27160         (Add_Archive_Path): Only add the global archive if there is one.
27161         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
27162         or not any object file to put in the global archive, and don't build
27163         a global archive if there is none.
27164         (X_Switches): New table
27165         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
27166         in the X_Switches table, if any.
27167         (Initialize): Make sure the X_Switches table is empty
27168         (Scan_Arg): Record -X switches in table X_Switches
27169
27170         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
27171
27172         * make.adb: Minor comment fix
27173
27174         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
27175         invoked with directory information, add the directory in front of the
27176         path.
27177
27178         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
27179         invoked with directory information, add the directory in front of the
27180         path.
27181
27182         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
27183         when Keep_Temporary_Files is False.
27184         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
27185         directory information, add the directory in front of the path.
27186         When not on VMS, handle new switch -dn before the command to set
27187         Keep_Temporary_Files to True.
27188         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
27189         everywhere.
27190
27191         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
27192         invoked with directory information, add the directory in front of the
27193         path.
27194
27195 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
27196
27197         * snames.ads, snames.adb (Name_Stub): New name for the distributed
27198         systems annex.
27199
27200         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
27201         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
27202
27203         * g-socket.adb (To_Timeval): Fix incorrect conversion of
27204         Selector_Duration to Timeval for the case of 0.0.
27205
27206         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
27207         documentation from Evolve_And_Then.
27208
27209 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
27210
27211         * s-taprop-tru64.adb, s-taprop-os2.adb,
27212         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
27213
27214 2004-07-06  Robert Dewar  <dewar@gnat.com>
27215
27216         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
27217         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
27218         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
27219         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
27220         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
27221         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
27222         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
27223         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
27224         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
27225         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
27226         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
27227         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
27228         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
27229         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
27230         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
27231         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
27232         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
27233         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
27234         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
27235         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
27236         vms_data.ads: Minor reformatting,
27237         Fix bad box comment format.
27238
27239         * gnat_rm.texi: Fix minor grammatical error
27240
27241         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
27242
27243         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
27244         more cases of discriminated records to be recognized as not needing a
27245         secondary stack.
27246         (Has_Access_Values): New function.
27247
27248         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
27249
27250         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
27251         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
27252         with LRM terminology).
27253         Change terminology in comments primitive type => elementary type.
27254
27255 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27256
27257         PR ada/15602
27258         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
27259         parameters do not impose any requirements on the presence of a body.
27260
27261 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27262
27263         PR ada/15593
27264         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
27265         compilation unit and is in an open scope at the point of instantiation,
27266         assume that a body may be present later.
27267
27268 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27269
27270         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
27271         Improve error message when specified size is not supported.
27272
27273         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
27274         is never a primitive operation.
27275
27276 2004-07-05  Andreas Schwab  <schwab@suse.de>
27277
27278         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
27279         RECORD_OR_UNION_CHECK.
27280         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
27281
27282 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
27283
27284         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
27285         dependency on xgnatugn, instead build it via a submake.
27286         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
27287
27288 2004-07-04  Richard Henderson  <rth@redhat.com>
27289
27290         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
27291
27292 2004-07-01  Richard Henderson  <rth@redhat.com>
27293
27294         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
27295         * utils.c (max_size): Likewise.
27296
27297 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27298
27299         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
27300         and rest_of_type_compilation; add arg to create_*_decl.
27301         (annotate_decl_with_node): Deleted.
27302         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
27303         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
27304         (get_current_block_context, gnat_pushdecl): New declarations.
27305         (gnat_init_stmt_group): Likewise.
27306         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
27307         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
27308         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
27309         (gnat_init): Call gnat_init_stmt_group.
27310         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
27311         (gnu_pending_elaboration_list): Deleted.
27312         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
27313         (gigi): Rearrange initialization calls and move some to last above.
27314         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
27315         Delete calls to add_decl_expr; add arg to create_*_decl.
27316         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
27317         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27318         begin_subprog_body and call it.
27319         Don't push and pop ggc context.
27320         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
27321         (add_stmt): Remove handling of DECL_EXPR from here.
27322         If not in function, mark visited.
27323         (add_decl_expr): Put global at top level.
27324         Check for cases of DECL_INITIAL we have to handle here.
27325         (process_type): Add extra arg to create_type_decl.
27326         (build_unit_elab): Rework to just gimplify.
27327         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
27328         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
27329         (get_pending_elaborations, pending_elaborations_p): Likewise.
27330         (push_pending_elaborations, pop_pending_elaborations): Likewise.
27331         (get_elaboration_location, insert_elaboration_list): Likewise.
27332         (gnat_binding_level): Renamed from ada_binding_level.
27333         (init_gnat_to_gnu): Don't clear pending_elaborations.
27334         (global_bindings_p): Treat as global if no current_binding_level.
27335         (set_current_block_context): New function.
27336         (gnat_pushdecl): Renamed from pushdecl; major rework.
27337         All callers changed.
27338         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
27339         (finish_record_type): Call call pushdecl for stub decl.
27340         (function_nesting_depth): Deleted.
27341         (begin_subprog_body): Delete obsolete code.
27342         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
27343
27344 2004-06-28  Robert Dewar  <dewar@gnat.com>
27345
27346         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27347         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
27348         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
27349         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27350         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
27351
27352         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
27353         deal with problem of inefficient slices on machines with strict
27354         alignment, when the slice is a component of a composite.
27355
27356         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
27357         machines, we need the check there as well.
27358
27359 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
27360
27361         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
27362         determine safe copying direction for overlapping slice assignments
27363         when component is controlled.
27364
27365         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
27366         formal derived type in the actual for a formal package are visible in
27367         the enclosing instance.
27368
27369 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
27370
27371         PR ada/15600
27372         * sem_util.adb (Trace_Components): Diagnose properly an illegal
27373         circularity involving a private type whose completion includes a
27374         self-referential component.
27375         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
27376         renaming or an instantiation from an implicit derived operation.
27377
27378 2004-06-28  Pascal Obry  <obry@gnat.com>
27379
27380         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
27381         DLL.
27382         (Library_File_Name_For): Idem.
27383
27384 2004-06-28  Matthew Gingell  <gingell@gnat.com>
27385
27386         * g-traceb.ads: Add explanatory note on the format of addresses
27387         expected by addr2line.
27388
27389 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
27390
27391         * Makefile.in: Force debugging information on s-tasdeb.adb,
27392         a-except.adb and s-assert.adb needed by the debugger.
27393
27394 2004-06-28  Vincent Celier  <celier@gnat.com>
27395
27396         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
27397         Need_To_Build_Lib.
27398         (Gnatmake): Ditto.
27399
27400         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
27401
27402         * prj.adb: Minor reformatting
27403         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
27404
27405         * prj.ads: Comment updates
27406         Minor reformatting
27407         (Project_Data): Change Flag1 to Need_To_Build_Lib.
27408         Remove Flag2: not used.
27409
27410         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
27411         declaration.
27412
27413         * gnat_ugn.texi: Put a "null;" declaration in one project file example
27414
27415         * gnat_rm.texi: Document Empty declarations "null;".
27416
27417         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
27418         front of the linker options.
27419         (Link_Foreign): Put the global archives and the libraries in front of
27420         the linker options.
27421
27422 2004-06-28  Javier Miranda  <miranda@gnat.com>
27423
27424         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
27425         (RTU_Loaded): Code cleanup
27426         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
27427         withed predefined units.
27428
27429         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
27430         explicitly withed predefined units.
27431         Fix typo in comment
27432
27433         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
27434         explicitly withed predefined units.
27435
27436 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27437
27438         * ada-tree.def (DECL_STMT): Deleted.
27439         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
27440         (DECL_STMT_VAR): Deleted.
27441         * decl.c: add_decl_stmt now add_decl_expr.
27442         * gigi.h: Likewise.
27443         * trans.c: Likewise.
27444         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27445         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
27446         (add_stmt): Only handle padded type here.
27447         (add_stmt_with_node): Allow gnat_node to not be present.
27448         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
27449         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
27450         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
27451         make a SAVE_EXPR for the entire fat pointer.
27452         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
27453         (create_index_type): Make a DECL_EXPR.
27454         (end_subprog_body): Don't call allocate_struct_function here but
27455         do clear cfun.
27456
27457 2004-06-25  Pascal Obry  <obry@gnat.com>
27458
27459         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
27460         Relocatable from Build_Dynamic_Library call.
27461
27462         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
27463         Relocatable are now synonym.
27464
27465         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
27466
27467         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
27468         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
27469         call.
27470
27471         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
27472         Lib_Address and Relocatable.
27473         (Default_DLL_Address): Removed.
27474
27475         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27476         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27477         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
27478         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
27479         (Default_DLL_Address): Removed.
27480
27481         * mlib-tgt-mingw.adb: Ditto.
27482         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
27483
27484         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
27485         the initial thread stack size.
27486
27487         * a-strmap.ads: Move package L to private part as it is not used in
27488         the spec. Found while reading code.
27489
27490 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
27491
27492         * tracebak.c: Introduce support for a GCC infrastructure based
27493         implementation of __gnat_backtrace.
27494
27495         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
27496         any more. Use accessors instead. This eases maintenance and relaxes
27497         some alignment constraints.
27498         (_GNAT_Exception structure): Remove the Ada specific fields
27499         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
27500         a-exexpr.adb.
27501         (is_handled_by, __gnat_eh_personality): Replace component references to
27502         exception structure by use of the new accessors.
27503
27504         * init.c (__gnat_initialize): Adjust comments to match the just
27505         reverted meaning of the -static link-time option.
27506
27507         * adaint.c (convert_addresses): Arrange not to define a stub for
27508         mips-irix any more, as we now want to rely on a real version from a
27509         recent libaddr2line.
27510
27511         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
27512         the personality routine can use them and not have to rely on a C
27513         counterpart of the record anymore. This simplifies maintenance and
27514         relaxes the constraint of having Standard'Maximum_Alignment match
27515         BIGGEST_ALIGNMENT.
27516         Update comments, and add a section on the common header alignment issue.
27517
27518 2004-06-25  Geert Bosch  <bosch@gnat.com>
27519
27520         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
27521         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
27522
27523 2004-06-25  Robert Dewar  <dewar@gnat.com>
27524
27525         * gnat_rm.texi: Fix section on component clauses to indicate that the
27526         restriction on byte boundary placement still applies for bit packed
27527         arrays.
27528         Add comment on stack usage from Initialize_Scalars
27529
27530         * gnat_ugn.texi: Add documentation for -gnatyLnnn
27531
27532         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
27533         limiting nesting level.
27534
27535         * usage.adb: Add line for -gnatyLnnn switch
27536
27537         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
27538         sem_ch13.adb, exp_aggr.adb: Minor reformatting
27539
27540         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
27541         type as well as on the subtype. This corrects a problem in freeze in
27542         setting alignments of atomic types.
27543
27544         * sem_eval.ads: Minor comment typo fixed
27545
27546         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
27547         level.  Minor reformatting.
27548
27549         * fname.adb (Is_Predefined_File_Name): Require a letter after the
27550         minus sign. This means that file names like a--b.adb will not be
27551         considered predefined.
27552
27553         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
27554         record Test new flag and give diagnostic for bad component clause.
27555         (Freeze_Entity): Set alignment of array from component alignment in
27556         cases where this is safe to do.
27557
27558         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
27559         arrays.
27560
27561         * cstand.adb: (Create_Standard): Set alignment of String to 1
27562
27563         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
27564
27565         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
27566         code in the common constrained array cases.
27567
27568         * a-storio.adb: Change implementation to avoid possible alignment
27569         problems on machines requiring strict alignment (data should be moved
27570         as type Buffer, not type Elmt).
27571
27572         * checks.adb (Apply_Array_Size_Check): Improve these checks by
27573         killing the overflow checks which we really do not need (64-bits is
27574         enough).
27575
27576 2004-06-25  Vincent Celier  <celier@gnat.com>
27577
27578         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
27579         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
27580         inconditionally for the main project.
27581         (Recursive_Add_Archives.Add_Archive_Path): New procedure
27582         (Link_Executables.Check_Time_Stamps): New procedure
27583         (Link_Executables.Link_Foreign): New procedure
27584         Changes made to reduce nesting level of this package
27585         (Check): New procedure
27586         (Add_Switches): When not in quiet output, check that a switch is not
27587         the concatenation of several valid switches. If it is, issue a warning.
27588         (Build_Global_Archive): If the global archive is rebuilt, linking need
27589         to be done.
27590         (Compile_Sources): Rebuilding a library archive does not imply
27591         rebuilding the global archive.
27592         (Build_Global_Archive): New procedure
27593         (Build_Library): New name for Build_Archive, now only for library
27594         project
27595         (Check_Archive_Builder): New procedure
27596         (Create_Global_Archive_Dependency_File): New procedure
27597         (Gprmake): Call Build_Global_Archive before linking
27598         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
27599         throughout.
27600         (Scan_Arg): Display the Copyright notice when -v is used
27601
27602         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
27603         for gnatls.
27604
27605         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
27606         COMPILE.
27607         Add new GNAT LIST qualifier /FILES=
27608         Added qualifier /DIRECTORY= to GNAT METRIC
27609         Added qualifier /FILES= to GNAT METRIC
27610         Added qualifier /FILES to GNAT PRETTY
27611
27612         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
27613         to take into account both versions of the switch.
27614
27615         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
27616         always be the last switch to the gcc driver. Disable switch storing so
27617         that switches automatically added by the gcc driver are not put in the
27618         ALI file.
27619
27620         * prj.adb (Project_Empty): Take into account changes in components of
27621         Project_Data.
27622
27623         * prj.ads (Languages_Processed): New enumaration value All_Languages.
27624
27625         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
27626         used. Split Boolean component Ada_Sources_Present in two Boolean
27627         components Ada_Sources_Present and Other_Sources_Present.
27628         Minor reformatting
27629
27630         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
27631         instead of Sources_Present.
27632         (Set_Ada_Paths.Add.Recursive_Add): Ditto
27633
27634         * prj-nmsc.adb: Minor reformatting
27635         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
27636         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
27637         Check_Ada_Naming_Scheme.
27638         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
27639         throughout.
27640
27641         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
27642         In_Limited.
27643         Make sure that all cycles where there is at least one "limited with"
27644         are detected.
27645         (Parse_Single_Project): New Boolean parameter In_Limited
27646
27647         * prj-proc.adb (Recursive_Check): When Process_Languages is
27648         All_Languages, call first Prj.Nmsc.Ada_Check, then
27649         Prj.Nmsc.Other_Languages_Check.
27650
27651         * prj-proc.adb (Process): Use Ada_Sources_Present or
27652         Other_Sources_Present (instead of Sources_Present) depending on
27653         Process_Languages.
27654
27655         * lang-specs.h: Keep -g and -m switches in the same order, and as the
27656         last switches.
27657
27658         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
27659         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
27660         False.
27661         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
27662         False.
27663
27664         * lib.ads (Disable_Switch_Storing): New procedure.
27665
27666         * make.adb: Modifications to reduce nesting level of this package.
27667         (Check_Standard_Library): New procedure
27668         (Gnatmake.Check_Mains): New procedure
27669         (Gnatmake.Create_Binder_Mapping_File): New procedure
27670         (Compile_Sources.Compile): Add switch -gnatez as the last option
27671         (Display): Never display -gnatez
27672
27673         * Makefile.generic:
27674         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
27675
27676         * gnatcmd.adb (Check_Project): New function
27677         (Process_Link): New procedure to reduce nesting depth
27678         (Check_Files): New procedure to reduce the nesting depth.
27679         For GNAT METRIC, include the inherited sources in extending projects.
27680         (GNATCmd): When GNAT LS is invoked with a project file and no files,
27681         add the list of files from the sources of the project file. If this list
27682         is too long, put it in a temp text files and use switch -files=
27683         (Delete_Temp_Config_Files): Delete the temp text file that contains
27684         a list of source for gnatpp or gnatmetric, if one has been created.
27685         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
27686         in the project file is too large, create a temporary text file that
27687         list them and pass it to the tool with "-files=<temp text file>".
27688         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
27689
27690         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
27691         generated file is in not in Ada.
27692
27693         * gnatls.adb: Remove all parameters And_Save that are no longer used.
27694         (Scan_Ls_Arg): Add processing for -files=
27695         (Usage): Add line for -files=
27696
27697         * g-os_lib.adb (On_Windows): New global constant Boolean flag
27698         (Normalize_Pathname): When on Windows and the path starts with a
27699         directory separator, make sure that the resulting path will start with
27700         a drive letter.
27701
27702         * clean.adb (Clean_Archive): New procedure
27703         (Clean_Project): When there is non-Ada code, delete the global archive,
27704         the archive dependency files, the object files and their dependency
27705         files, if they exist.
27706         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
27707
27708 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
27709
27710         * sinfo.ads: Fix typo in comment.
27711
27712         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
27713         the TSS for remote access-to-subprogram types, since these TSS are
27714         always present once the type has been analyzed.
27715         (RAS_E_Dereference): Same.
27716
27717         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
27718         reference raises Bad_Attribute, mark the reference as analyzed so the
27719         node (and any children resulting from rewrites that could have occurred
27720         during the analysis that ultimately failed) is not analyzed again.
27721
27722         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
27723
27724         * exp_dist.adb: Minor comment fix.
27725
27726         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
27727         type is an anonymous access type, no unchecked deallocation of the
27728         allocated object can occur. If the object is controlled, attach it with
27729         a count of 1. This allows attachment to the Global_Final_List, if
27730         no other relevant list is available.
27731         (Get_Allocator_Final_List): For an anonymous access type that is
27732         the type of a discriminant or record component, the corresponding
27733         finalisation list is the one of the scope of the type.
27734
27735 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
27736
27737         * sem_ch3.adb (Replace_Type): When computing the signature of an
27738         inherited subprogram, use the first subtype if the derived type
27739         declaration has no constraint.
27740
27741         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
27742         before applying previous optimization. Minor code cleanup.
27743
27744         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
27745         placed at the beginning of an unpacked record without explicit
27746         alignment, a slice of it will be aligned and does not need a copy when
27747         used as an actual.
27748
27749 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
27750
27751         PR ada/15591
27752         PR ada/15592
27753         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
27754         reference is written with expressions mimicking parameters.
27755
27756 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
27757
27758         PR ada/15589
27759         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
27760         STEP 2a. The constraints of a full type declaration of a derived record
27761         type are checked for conformance with those declared in the
27762         corresponding private extension declaration. The message
27763         "not conformant with previous declaration" is emitted if an error is
27764         detected.
27765
27766 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
27767
27768         * g-traceb.ads: Document the need for -E binder switch in the spec.
27769
27770         * g-trasym.ads: Document the need for -E binder switch in the spec.
27771
27772 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
27773
27774         * sem_prag.adb: Add handling of pragma Detect_Blocking.
27775
27776         * snames.h, snames.ads, snames.adb: Add entry for pragma
27777         Detect_Blocking.
27778
27779         * s-rident.ads: Change reference to pragma Detect_Blocking.
27780
27781         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
27782         system.ads.
27783
27784         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
27785         to indicate whether pragma Detect_Blocking is active.
27786
27787         * par-prag.adb: Add entry for pragma Detect_Blocking.
27788
27789         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
27790         of not handling WITH.
27791         Note that this replaces the previous update which was incorrect.
27792
27793 2004-06-25  Javier Miranda  <miranda@gnat.com>
27794
27795         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
27796         use-clauses to have a clean environment.
27797
27798         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
27799         the installation of the use-clauses to stablish a clean environment in
27800         case of compilation of a separate unit; otherwise the call to
27801         use_one_package is protected by the barrier Applicable_Use.
27802
27803         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
27804         the installation of the use-clauses to stablish a clean environment in
27805         case of compilation of a separate unit.
27806         (End_Use_Clauses): Minor comment cleanup.
27807
27808 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
27809
27810         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
27811
27812 2004-06-23  Richard Henderson  <rth@redhat.com>
27813
27814         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
27815
27816 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27817
27818         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
27819         now bool instead of int.
27820         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
27821         * trans.c (gnu_switch_label_stack): New function.
27822         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
27823         elaboration of renamed entity returns.
27824         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
27825         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
27826         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
27827         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
27828         DECL_SIZE_UNIT and simplify variable-sized case.
27829         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27830         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
27831         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
27832         (build_unit_elab): Disable for now.
27833         * utils.c (mark_visited): New function.
27834         (pushdecl): Walk tree to call it for global decl.
27835         (update_pointer_to): Update all variants of pointer and ref types.
27836         Add arg to COMPONENT_REF.
27837         (convert): Likewise.
27838         Move check for converting between variants lower down.
27839         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
27840         (build_allocator): Don't force type of MODIFY_EXPR.
27841         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
27842         put_var_into_stack.
27843
27844 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27845
27846         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
27847         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
27848         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
27849         subprograms.
27850         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
27851         all callers changed.
27852         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
27853         the way that EXIT_STMT finds the loop label.
27854         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
27855         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
27856         (add_stmt): Use annotate_with_locus insted of setting directly.
27857         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
27858         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
27859         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
27860         (build_vms_descriptor): Add extra args to ARRAY_REF.
27861         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
27862         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
27863         New cases.
27864         (build_binary_op): Don't make explicit CONVERT_EXPR.
27865         Add extra rgs to ARRAY_REF.
27866
27867 2004-06-14  Pascal Obry  <obry@gnat.com>
27868
27869         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
27870         Windows.  Fix minor typo.
27871
27872         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
27873         which is now supported on Windows. With this implementation using the
27874         Library Project feature is no different on Windows than on UNIX.
27875
27876 2004-06-14  Vincent Celier  <celier@gnat.com>
27877
27878         * makegpr.adb (Compile_Sources): Nothing to do when there are no
27879         non-Ada sources.
27880
27881         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
27882
27883         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
27884         found, show the project name and the path of the previously parsed
27885         project file.
27886
27887 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
27888
27889         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
27890         array, avoid copying the actual before the call.
27891
27892 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
27893
27894         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
27895         Instead, allocate memory on worst-case alignment assumptions, and then
27896         return an aligned address within the allocated zone.
27897
27898 2004-06-14  Robert Dewar  <dewar@gnat.com>
27899
27900         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
27901         elab entities in predefined units in No_Run_Time_Mode.
27902         (Gen_Adainit_C): Same fix
27903         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
27904         units in No_Run_Time_Mode
27905         (Gen_Elab_Calls_C): Same fix
27906
27907         * symbols-vms-alpha.adb: Minor reformatting
27908
27909         * g-debpoo.ads: Minor reformatting
27910
27911         * lib.adb (In_Same_Extended_Unit): Version working on node id's
27912
27913         * lib.ads (In_Same_Extended_Unit): Version working on node id's
27914
27915         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
27916         working on nodes.
27917
27918         * make.adb: Minor reformatting
27919
27920         * par-ch12.adb: Minor reformatting
27921
27922         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
27923
27924         * prj-strt.adb: Minor reformatting
27925
27926         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
27927         be more general.
27928
27929         * sem_attr.adb: Minor reformatting
27930
27931         * sem_ch7.adb: Minor reformatting
27932
27933         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
27934         for type in the same unit as the object declaration.
27935
27936         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
27937         static string expressions and not just string literals.
27938         Minor reformatting
27939         (Set_Warning): Reset restriction warning flag for restriction pragma
27940         Implement pragma Profile_Warnings
27941         Implement pragma Profile (Restricted)
27942         Give obolescent messages for old restrictions and pragmas
27943
27944         * snames.h, snames.ads, snames.adb: Add new entry for pragma
27945         Profile_Warnings.
27946
27947         * s-rident.ads: Add declarations for restrictions required by profile
27948         Restricted and profile Ravenscar.
27949
27950         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
27951
27952         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
27953         configuration pragmas.
27954
27955 2004-06-11  Vincent Celier  <celier@gnat.com>
27956
27957         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
27958         gnatsym, when symbol policy is Restricted.
27959
27960         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
27961         gnatsym, when symbol policy is Restricted.
27962
27963         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
27964         read the symbol file.
27965         (Finalize): Fail in symbol policy Restricted if a symbol in the original
27966         symbol file is not in the object files. Do not create a new symbol file
27967         when symbol policy is Restricted.
27968
27969         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
27970         in Scng.
27971
27972         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
27973         Restricted.
27974         (Usage): Line for new switch -R
27975
27976         * make.adb (Initialize): When the platform is not VMS, add the
27977         directory where gnatmake is invoked in the front of the path, if
27978         gnatmake is invoked with directory information.  Change the Scan_Args
27979         while loop to a for loop.
27980         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
27981         if Depth is equal or greater than the proposed depth, there is nothing
27982         to do.
27983         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
27984         instead of 0.
27985
27986         * prj.ads: Add new symbol policy Restricted.
27987
27988         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
27989         with the new parameters Check_All_Labels and Case_Location.
27990
27991         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
27992         (Library_Symbol_File needs to be defined).
27993
27994         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
27995         and Case_Location If Check_All_Labels is True, check that all values of
27996         the string type are used, and output warning(s) if they are not.
27997
27998         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
27999         and Case_Location.
28000
28001         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
28002
28003         * gnat_ugn.texi: Update documentation about the library directory in
28004         Library Projects.
28005
28006         * makegpr.adb (Display_Command): In verbose mode, also display the
28007         value of the CPATH env var, when the compiler is gcc.
28008         (Initialize): Change the Scan_Args while loop to a for loop
28009         (Compile_Individual_Sources): Change directory to object directory
28010         before compilations.
28011
28012         * symbols.ads: New symbol policy Restricted.
28013
28014 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
28015
28016         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
28017         is now taken care of internally in the Exception_Propagation package
28018         and does not require clients assistance any more.
28019
28020         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
28021         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
28022         functions. Helpers to maintain a predicate required in the handling of
28023         occurrence transfer between tasks.
28024         This is now handled internally and does not require clients assistance
28025         for the setup/propagate separation anymore.
28026         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
28027         allocation strategy, handle the Setup_And_Not_Propagated predicate and
28028         document.
28029
28030         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
28031         raise_after_setup, now that everything is handled internally within the
28032         setup/propagation engine.
28033
28034 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
28035
28036         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
28037         Add additional conditions for the case of an actual being a simple
28038         name or literal. Improve inlining by preventing the generation
28039         of temporaries with a short lifetime (one use).
28040
28041 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
28042
28043         PR ada/15587
28044         * einfo.ads: Minor comment updates for Has_Completion and
28045         E_Constant list of flags.
28046
28047         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
28048         and constant redeclarations now set the Has_Completion flag of their
28049         defining identifiers.
28050
28051         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
28052         Inspect_Deferred_Constant_Completion.
28053         Used to detect private deferred constants that have not been completed
28054         either by a constant redeclaration or pragma Import. Emits error message
28055         "constant declaration requires initialization expression".
28056
28057         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
28058         completes a deferred constant.
28059
28060 2004-06-11  Geert Bosch  <bosch@gnat.com>
28061
28062         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
28063
28064         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
28065         calculating exponent for scaling denormal numbers.
28066         (Leading_Part): Properly raise Constraint_Error for zero or negative
28067         Adjustment.
28068         (Remainder): Properly raise Constraint_Error for zero divisor.
28069
28070 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
28071
28072         * sem_util.adb: Minor reformatting.
28073
28074         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
28075         dereference when accessing the entry parameter record.
28076         (Check_Array_Type): Always check for possible implicit dereference.
28077         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28078         Abort if a pointer is still present (denoting that an implicit
28079         dereference was left in the tree by the front-end).
28080
28081         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
28082         dereference when accessing the entry parameter record.
28083         (Check_Array_Type): Always check for possible implicit dereference.
28084         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28085         Abort if a pointer is still present (denoting that an implicit
28086         dereference was left in the tree by the front-end).
28087
28088 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
28089
28090         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
28091         message, like the compiler itself does. Easier to parse the output.
28092
28093         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
28094
28095         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
28096         be base names, and not includes directories.
28097
28098 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
28099
28100         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
28101         so that dependencies are properly taken into account by make.
28102
28103 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
28104
28105         PR ada/15622
28106         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
28107         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
28108
28109 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
28110
28111         * Makefile.in (install-gnatlib): install target-specific run-time files.
28112
28113         * Make-lang.in: Remove obsolete targets.
28114
28115 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
28116
28117         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
28118         specification, to catch misuses of program unit names.
28119
28120         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
28121         superfluous conversions in an instance.
28122
28123 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
28124
28125         PR ada/15403
28126         * sem_ch12.adb (Save_References): If operator node has been folded to
28127         enumeration literal, associated_node must be discarded.
28128
28129 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
28130
28131         * s-stchop-vxworks.adb: Add required pragma Convention to
28132         Task_Descriptor because it is updated by a C function.
28133
28134 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
28135
28136         PR ada/15568
28137         * Makefile.in: Remove target specific SO_OPT on IRIX
28138
28139 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28140
28141         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
28142         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
28143         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
28144         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
28145         (STMT_STMT, USE_STMT): New statement codes.
28146         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
28147         * ada-tree.h: Reflect above changes.
28148         (struct tree_loop_id): Deleted.
28149         (union lang_tree_node, struct lang_decl, struct lang_type):
28150         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
28151         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
28152         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
28153         (IS_ADA_STMT): New macro.
28154         * decl.c (annotate_decl_with_node): New function.
28155         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
28156         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
28157         Call add_stmt_with_node to do needed assignments.
28158         Add call to update setjmp buffer directly, not via EXPR_STMT.
28159         (maybe_variable): Argment GNAT_NODE deleted.
28160         * gigi.h (maybe_variable): Likewise.
28161         (make_transform, add_stmt_with_node, set_block_for_group): New.
28162         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
28163         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
28164         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
28165         (set_lineno, set_lineno_from_sloc): Likewise.
28166         (record_code_position, insert_code_for): Likewise.
28167         (gnat_poplevel): Now returns void.
28168         (end_subprog_body): Now takes argument.
28169         * misc.c (cgraph.h, tree-inline.h): New includes.
28170         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
28171         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
28172         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
28173         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
28174         (gnat_parse_file): Don't set immediate_size_expand.
28175         Call cgraph functions.
28176         (gnat_expand_expr): Remove most cases.
28177         (record_code_position, insert_code_for): Remove from here.
28178         * trans.c (toplev.h, tree-gimple.h): Now included.
28179         (discard_file_names): Deleted.
28180         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
28181         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
28182         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
28183         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
28184         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
28185         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
28186         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
28187         (set_block_for_group, add_stmt_list): Likewise.
28188         (start_stmt_group): Renamed from start_block_stmt.
28189         (end_stmt_group): Likewise, from end_block_stmt.
28190         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
28191         (gigi): Don't set discard_file_names or call set_lineno.
28192         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
28193         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
28194         Numerous changes throughout to reflect new names and complete
28195         function-at-a-time implementation.
28196         (gnat_expand_stmt): Delete or comment out all cases.
28197         (process_inlined_subprograms): Use add_stmt.
28198         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
28199         call set_lineno; also remove unneeded block handling.
28200         (process_type): Remove unneeded block handling.
28201         (build_unit_elab): Remove calls to deleted functions.
28202         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
28203         (tree-dump.h): Likewise.
28204         (struct ada_binding_level): Add field jmpbuf_decl.
28205         (gnat_define_builtin, gnat_install_builtins): New.
28206         (gnat_gimplify_function, gnat_finalize): Likewise.
28207         (gnat_poplevel): No longer return BLOCK, set it instead.
28208         Remove code dealing with nested functions.
28209         (gnat_init_decl_processing): Also set size_type_node.
28210         Call gnat_install_builtins.
28211         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
28212         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
28213         Remove special-case for "main".
28214         (end_subprog_body): Add arg and rework for tree-ssa.
28215         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
28216         Add case for BOOLEAN_TYPE.
28217         * utils2.c (rtl.h): Now include.
28218         (build_call_raise): Test Debug_Flag_NN directly.
28219         (build_call_alloc_dealloc): Don't use local stack allocation for now.
28220         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
28221         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
28222
28223 2004-06-07  Robert Dewar  <dewar@gnat.com>
28224
28225         * a-direct.ads, einfo.ads: Minor comment updates
28226
28227         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
28228         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28229         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
28230         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
28231         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
28232
28233         * s-interr-sigaction.adb: Remove unreferenced variable
28234         (Attached_Interrupts).  Minor reformatting.
28235         Avoid use of variable I (replace by J).
28236
28237         * par-ch10.adb: Fix text of one error message
28238
28239         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
28240         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
28241         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
28242         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
28243         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
28244         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
28245         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
28246         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
28247         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
28248         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
28249         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
28250         2005 support.
28251
28252 2004-06-07  Doug Rupp  <rupp@gnat.com>
28253
28254         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
28255
28256         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
28257
28258         * mlib-tgt-vms-ia64.adb: New file.
28259
28260         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
28261         Add mlib-tgt-vms-ia64.adb
28262         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
28263         Move to alpha specific ifeq section.
28264         Add VMS specific versions of symbols.adb
28265         Renaming of 5q vms files.
28266
28267         * 5qsystem.ads renamed to system-vms_64.ads.
28268
28269 2004-06-07  Vincent Celier  <celier@gnat.com>
28270
28271         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
28272         explain that when a time of day corresponding to the non existing hour
28273         on the day switching to DST is specified, Split may return a different
28274         value for Seconds.
28275
28276         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
28277         to GNAT PRETTY.
28278
28279         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
28280         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
28281
28282         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
28283         to False.
28284         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
28285         the linking options.
28286         (Build_Library.Check_Libs): On VMS, if there is a dependency on
28287         g-trasym.ads, set Gtrasymobj_Needed to True.
28288
28289         * prj-attr.adb: Add new package Metrics for gnatmetric
28290
28291         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
28292         canonical case to take into account files with upper case characters on
28293         Windows.
28294         (Ada_Check): Load the reference symbol file name in the name buffer to
28295         check it, not the symbol file name.
28296
28297         * snames.ads, snames.adb: Add standard name Metrics (name of project
28298         file package for gnatmetric).
28299
28300         * vms_conv.ads: Add Metric to Comment_Type
28301
28302         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
28303
28304         * vms_data.ads: Add qualifiers for GNAT METRIC
28305
28306         * makegpr.adb (Link_Executables): Take into account the switches
28307         specified in package Linker of the main project.
28308
28309 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
28310
28311         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
28312         the index of the last element is Units.Last, not Units.Table'Last
28313         (which is usually not a valid index within the actually allocated
28314         storage for the table).
28315
28316         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
28317         determines whether to generate a call to a checked storage pool
28318         Dereference action.
28319         Generate such a call only for a dereference that either comes from
28320         source, or is the result of rewriting a dereference that comes from
28321         source.
28322
28323 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
28324
28325         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
28326
28327 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
28328
28329         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
28330         file level, elaborate the stride for inner dimensions in alignment
28331         units, not bytes.
28332
28333         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
28334         in a comment.
28335
28336 2004-06-07  Javier Miranda  <miranda@gnat.com>
28337
28338         * exp_ch6.adb: Correct wrong modification in previous patch
28339
28340 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
28341
28342         * g-trasym.ads: Corrected comment to properly reflect level of support
28343         on VMS.
28344
28345 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
28346
28347         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
28348         includes case of a variable referenced on the left hand side of an
28349         assignment, therefore remove redundant code. Variables and prefixes of
28350         indexed or selected components are now marked as referenced on left
28351         hand side. Warnings are now properly emitted when variables or prefixes
28352         are assigned but not read.
28353
28354         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
28355         left hand side referenced variables. Private access types do not
28356         produce the warning "variable ... is assigned but never read".
28357         Add also additional checks to left hand side referenced variables.
28358         Aliased, renamed objects and access types do not produce the warning
28359         "variable ... is assigned but never read" since other entities may read
28360         the memory location.
28361
28362 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
28363
28364         * Makefile.in: In the powerpc/vxworks-specific section, restore
28365         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
28366         by mistake).
28367
28368 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
28369
28370         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
28371         predefined operators.
28372         Removes spurious type errors from g-trasym-vms.adb.
28373
28374         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
28375         distinct from the operator appearing in the source, call appropriate
28376         routine to insert conversions when needed, and complete resolution of
28377         node.
28378         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
28379         interpretations for rewritten right operand.
28380         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
28381         the other operand is overloaded and the context is a type conversion.
28382
28383 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28384
28385         * ada-tree.def (BLOCK_STMT): Now has two operands.
28386         (BREAK_STMT): New.
28387
28388         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
28389
28390         * gigi.h: (gnat_poplevel): Now returns a tree.
28391
28392         * trans.c (end_block_stmt): Add arg; all callers changed.
28393         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
28394         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
28395         (add_stmt): Set TREE_TYPE.
28396         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
28397         (gnat_expand_stmt, case BREAK_STMT): New case.
28398
28399         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
28400
28401 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
28402
28403         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
28404         procedure Set_Stack_Size that is not needed.
28405
28406 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
28407
28408         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
28409         used for gnatpp input file and for the files upon which it depends
28410
28411 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
28412
28413         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28414
28415 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
28416
28417         * gnatvsn.ads: Bump version numbers appropriately.
28418         Add new build type.
28419
28420 2004-06-07  Pascal Obry  <obry@gnat.com>
28421
28422         * gnat_ugn.texi: Improve comments about imported names and link names
28423         on Windows. Add a note about the requirement to use -k gnatdll's option
28424         when working with a DLL which has stripped stdcall symbols (no @nn
28425         suffix).
28426
28427 2004-05-27  Vincent Celier  <celier@gnat.com>
28428
28429         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
28430         COMMENTS_LAYOUT=UNTOUCHED
28431
28432         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
28433         symbols-vms-alpha.adb
28434
28435 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
28436
28437         * sem.ads: Clarify documentation on checks suppression.
28438
28439         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
28440
28441 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
28442
28443         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
28444         the case of multiple derivations.
28445         (Is_Object_Reference): For a selected component, verify that the prefix
28446         is itself an object and not a value.
28447
28448         * sem_ch12.adb (Same_Instantiated_Constant): New name for
28449         Same_Instantiated_Entity.
28450         (Same_Instantiated_Variable): Subsidiary to
28451         Check_Formal_Package_Instance, to recognize actuals for in-out generic
28452         formals that are obtained from a previous formal package.
28453         (Instantiate_Subprogram_Body): Emit proper error when
28454         generating code and the proper body of a stub is missing.
28455
28456         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
28457         has a universal interpretation, do the disambiguation here.
28458
28459         * exp_ch4.adb (Expand_N_Type_Conversion,
28460         Expand_N_Unchecked_Type_Conversion): Special handling when target type
28461         is Address, to avoid typing anomalies when Address is a visible integer
28462         type.
28463
28464         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
28465         to determine whether a subprogram should not be marked Pure, even when
28466         declared in a pure package.
28467
28468 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
28469
28470         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
28471
28472         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
28473         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
28474         Update the documentation about the Ravenscar profile, following the
28475         definition found in AI-249.
28476
28477         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
28478         setting the Profile (Ravenscar). This must be done in addition to
28479         setting the required restrictions.
28480
28481         * rtsfind.ads: Add the set of operations defined in package
28482         Ada.Interrupts.
28483
28484         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
28485         restriction.
28486
28487 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
28488
28489         lang-specs.h: Always require -c or -S and always redirect to /dev/null
28490         if -gnatc or -gnats is passed.
28491
28492 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
28493
28494         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
28495         a significant reference. Warnings are now properly emitted when a
28496         discriminated type is not referenced.
28497
28498         * lib-xref.adb (Generate_Reference): A deferred constant completion,
28499         record representation clause or record type discriminant does not
28500         produce a reference to its corresponding entity. Warnings are now
28501         properly emitted when deferred constants and record types are not
28502         referenced.
28503
28504 2004-05-27  Geert Bosch  <bosch@gnat.com>
28505
28506         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
28507         Fixes ACATS Annex G tests.
28508
28509 2004-05-27  Robert Dewar  <dewar@gnat.com>
28510
28511         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
28512         handling WITH
28513
28514 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
28515
28516         * s-interr.adb (Server_Task): Take into account case of early return
28517         from sigwait under e.g. linux.
28518
28519 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
28520
28521         * gnat_ugn.texi: Add description for the new gnatpp options:
28522          -rnb - replace the original source without creating its backup copy
28523          -c0 - do not format comments
28524
28525 2004-05-24  Geert Bosch  <bosch@gnat.com>
28526
28527         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
28528         with 192 bits of precision, sufficient to reduce a double-extended
28529         arguments X with a maximum relative error of T'Machine_Epsilon, for X
28530         in -2.0**32 .. 2.0**32.
28531         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
28532         reduction by the processor, which only uses a 68-bit approximation of
28533         Pi.
28534         (Tan): Always reduce arguments and compute function either using
28535         the processor's fptan instruction, or by dividing sin and cos as needed.
28536
28537 2004-05-24  Doug Rupp  <rupp@gnat.com>
28538
28539         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
28540         gcc error on 32/64 bit VMS.
28541
28542 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
28543
28544         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
28545         since this is what we get for stack overflows although not documented
28546         as such.
28547         Document the issues which may require adjustments to our signal
28548         handlers.
28549
28550 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
28551
28552         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
28553         enclosing dynamic scope if the instantiation is within a generic unit.
28554
28555 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
28556
28557         * exp_dbug.ads: Fix typo.
28558
28559         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
28560         Rename it to its proper name: system-linux-ia64.ads
28561         (stamp-gnatlib1): Remove extra target specific run time files when
28562         setting up the rts directory.
28563
28564 2004-05-24  Javier Miranda  <miranda@gnat.com>
28565
28566         * einfo.ads, einfo.adb (Limited_Views): Removed.
28567         (Limited_View): New attribute that replaces the previous one. It is
28568         now a bona fide package with the limited-view list through the
28569         first_entity and first_private attributes.
28570
28571         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
28572         limited-private-with clause.
28573         (Install_Limited_Withed_Unit): Install the private declarations of a
28574         limited-private-withed package. Update the installation of the shadow
28575         entities according to the new structure (see Build_Limited_Views)
28576         (Build_Limited_Views): Replace the previous implementation of the
28577         limited view by a package entity that references the first shadow
28578         entity plus the first shadow private entity (required for limited-
28579         private-with clause)
28580         (New_Internal_Shadow_Entity): Code cleanup.
28581         (Remove_Limited_With_Clause): Update the implementation to undo the
28582         new work carried out by Build_Limited_Views.
28583         (Build_Chain): Complete documentation.
28584         Replace Ada0Y by Ada 0Y in comments
28585         Minor reformating
28586
28587         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
28588         types the level of accessibility depends on the enclosing type
28589         declaration.
28590
28591         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
28592         entities. Complete documentation of previous change.
28593
28594 2004-05-24  Robert Dewar  <dewar@gnat.com>
28595
28596         * namet.adb: Minor reformatting
28597         Avoid use of name I (replace by J)
28598         Minor code restructuring
28599
28600         * sem_ch6.adb: Minor reformatting
28601
28602         * lib-writ.adb: Do not set restriction as active if this is a
28603         Restriction_Warning case.
28604
28605         * sem_prag.adb: Reset restriction warning flag if real pragma
28606         restriction encountered.
28607
28608         * s-htable.adb: Minor reformatting
28609         Change rotate count to 3 in Hash (improves hash for small strings)
28610
28611         * 5qsystem.ads: Add comments for type Address (no literals allowed).
28612
28613         * gnat_ugn.texi: Add new section of documentation "Code Generation
28614         Control", which describes the use of -m switches.
28615
28616 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
28617
28618         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
28619         through the DECL_INITIAL for renamed variables.
28620
28621 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
28622
28623         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
28624
28625 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
28626
28627         * exp_dbug.ads: Correct comments concerning handling of overloading,
28628         since we no longer use $ anymore.
28629
28630 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
28631
28632         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
28633         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
28634         with illegal subunits.
28635
28636 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
28637
28638         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
28639         body with front-end inlining enabled, check whether an inline pragma
28640         appears immediately after the body and applies to it.
28641
28642         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
28643         enabled and the pragma appears after the body of the subprogram.
28644
28645 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28646
28647         Part of function-at-a-time conversion
28648
28649         * misc.c (adjust_decl_rtl): Deleted.
28650         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
28651         Define.
28652
28653         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
28654         (add_decl_stmt, add_stmt, block_has_vars): New functions.
28655         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
28656
28657         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
28658         when making a decl.
28659         (gnat_to_gnu_entity): Likewise.
28660         Use add_stmt to update setjmp buffer.
28661         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
28662         flush_addressof.
28663         No longer call adjust_decl_rtl.
28664         (DECL_INIT_BY_ASSIGN_P): New macro.
28665         (DECL_STMT_VAR): Likewise.
28666
28667         * trans.c (gigi): Call start_block_stmt to make the outermost
28668         BLOCK_STMT.
28669         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
28670         Call start_block_stmt and end_block_stmt temporarily.
28671         Use gnat_expand_stmt instead of expand_expr_stmt.
28672         (add_decl_stmt): New function.
28673         (tree_transform): Call it.
28674         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
28675         (end_block_stmt): Set type and NULL_STMT.
28676         (gnat_expand_stmt): Make recursize call instead of calling
28677         expand_expr_stmt.
28678         (gnat_expand_stmt, case DECL_STMT): New case.
28679         (set_lineno_from_sloc): Do nothing if global.
28680         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
28681         (start_block_stmt, add_stmt, end_block_stmt): New functions.
28682         (build_block_stmt): Call them.
28683         (gnat_to_code): Don't expand NULL_STMT.
28684         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
28685         args.
28686         (tree_transform): Likewise.
28687         (tree_transform, case N_Null_Statement): Return NULL_STMT.
28688         (gnat_expand_stmt, case NULL_STMT): New case.
28689         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
28690         IF_STMT_TRUE.
28691
28692         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
28693         TREE_ADDRESSABLE.
28694
28695         * utils.c (create_var_decl): Do not call expand_decl or
28696         expand_decl_init.
28697         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
28698         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
28699         here.
28700         (struct e_stack): Add chain_next to GTY.
28701         (struct binding_level): Deleted.
28702         (struct ada_binding_level): New struct.
28703         (free_block_chain): New.
28704         (global_binding_level, clear_binding_level): Deleted.
28705         (global_bindings_p): Rework to see if no chain.
28706         (kept_level_p, set_block): Deleted.
28707         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
28708         new data structure and work directly on BLOCK node.
28709         (gnat_poplevel): Similarly.
28710         (get_decls): Look at BLOCK_VARS.
28711         (insert_block): Work directly on BLOCK node.
28712         (block_has_var): New function.
28713         (pushdecl): Rework for new binding structures.
28714         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
28715         poplevel.
28716         (build_subprog_body): Likewise.
28717         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
28718
28719         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
28720
28721         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
28722         (DECL_STMT_VAR): Likewise.
28723
28724 2004-05-17  Robert Dewar  <dewar@gnat.com>
28725
28726         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
28727         procedure
28728
28729         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
28730         of restriction synonyums by using
28731         Restrict.Process_Restriction_Synonyms.
28732
28733         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
28734
28735         * s-restri.ads (Tasking_Allowed): Correct missing comment
28736
28737         * s-rident.ads: Add entries for restriction synonyms
28738
28739         * ali.adb: Fix some problems with badly formatted ALI files that can
28740         result in infinite loops.
28741
28742         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
28743         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
28744         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28745         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
28746         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
28747         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
28748         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
28749         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
28750         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
28751         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
28752         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
28753         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
28754         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
28755         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
28756         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
28757         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
28758         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
28759         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28760         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
28761         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
28762         to Task_Id (minor cleanup).
28763
28764 2004-05-17  Vincent Celier  <celier@gnat.com>
28765
28766         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
28767         directory separator.
28768
28769         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
28770         project being extended, if Languages is not declared in extending
28771         project.
28772
28773 2004-05-17  Javier Miranda  <miranda@gnat.com>
28774
28775         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
28776         limited view of a visible sibling.
28777
28778 2004-05-14  Robert Dewar  <dewar@gnat.com>
28779
28780         * gnat_ugn.texi: Minor change to -gnatS documentation
28781
28782         * sprint.adb: Remove some instances of Assert (False) and for this
28783         purpose replace them by output of a ??? string.
28784
28785         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
28786         Assert (False).
28787
28788         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
28789         flag processing. This was suppressing required dependencies in
28790         No_Run_Time mode and is not needed since the binder does not generate
28791         references for things in libgnat anyway.
28792
28793         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
28794         warning.
28795
28796 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
28797
28798         * gnat_ugn.texi: Document AIX-specific issue with initialization of
28799         resolver library.
28800
28801         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
28802         action for the case of an actual parameter in an init proc call.
28803
28804 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
28805
28806         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
28807         subtype, check visible entities in base type.
28808
28809         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
28810         actions if the object is a renaming.
28811
28812         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
28813         Check_Formal_Package_Instance, to determine more precisely when the
28814         formal and the actual denote the same entity.
28815
28816 2004-05-14  Javier Miranda  <miranda@gnat.com>
28817
28818         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
28819
28820         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
28821         corresponding to a private_with must be removed from visibility; it
28822         will be made visible later, just before we analyze the private part of
28823         the package.
28824         (Check_Private_Child_Unit): Allow private_with clauses in public
28825         siblings.
28826         (Install_Siblings): Make visible the private entities of private-withed
28827         siblings.
28828         (Install_Withed_Unit): Do not install the private withed unit if we
28829         are compiling a package declaration and the Private_With_OK flag was
28830         not set by the caller. These declarations will be installed later,
28831         just before we analyze the private part of the package.
28832
28833         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
28834         during the evaluation of the expression that initializes the object,
28835         decorate it with the expected type to avoid cascade errors.
28836         Code cleanup.
28837
28838         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
28839         subprogram we have to install the private_with clauses after its
28840         specification has been analyzed (as documented in AI-262.TXT).
28841
28842         * sem_ch8.adb (Has_Private_With): New function. Determines if the
28843         current compilation unit has a private with on a given entity.
28844         (Find_Direct_Name): Detect the Beaujolais problem described in
28845         AI-262.TXT
28846
28847         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
28848         provides the functionality of the function Is_Ancestor that was
28849         previously available in sem_ch10. It has been renamed to avoid
28850         overloading.
28851
28852         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
28853
28854 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28855
28856         * utils.c (build_vms_descriptor): Use SImode pointers.
28857
28858 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
28859
28860         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
28861
28862 2004-05-14  GNAT Script  <nobody@gnat.com>
28863
28864         * Make-lang.in: Makefile automatically updated
28865
28866 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
28867
28868         Renaming of target specific files for clarity
28869
28870         * Makefile.in: Rename GNAT target specific files.
28871
28872         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
28873         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
28874         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
28875         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
28876         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
28877         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
28878         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
28879         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
28880         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
28881         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
28882         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
28883         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
28884         51osinte.adb, 51osinte.ads, 51system.ads,
28885         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28886         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
28887         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
28888         56tpopsp.adb, 57system.ads, 58system.ads,
28889         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
28890         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
28891         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
28892         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
28893         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
28894         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
28895         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
28896         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
28897         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
28898         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
28899         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
28900         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
28901         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
28902         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
28903         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
28904         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
28905         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
28906         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
28907         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
28908         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
28909         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
28910         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
28911         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
28912         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
28913         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
28914         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
28915         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
28916         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
28917         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
28918         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
28919         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
28920         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
28921         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
28922         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
28923         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
28924         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
28925         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
28926         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
28927         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
28928         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
28929
28930         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
28931         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
28932         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
28933         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
28934         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
28935         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
28936         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
28937         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
28938         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
28939         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
28940         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
28941         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
28942         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
28943         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
28944         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
28945         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
28946         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
28947         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
28948         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
28949         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
28950         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
28951         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
28952         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
28953         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
28954         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
28955         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
28956         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
28957         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
28958         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
28959         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
28960         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
28961         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
28962         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
28963         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
28964         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
28965         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
28966         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
28967         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
28968         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
28969         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
28970         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
28971         s-osinte-vms.ads, s-osinte-vxworks.adb,
28972         s-osinte-vxworks.ads, s-osprim-mingw.adb,
28973         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
28974         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
28975         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
28976         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
28977         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
28978         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
28979         s-stchop-vxworks.adb, s-taprop-dummy.adb,
28980         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
28981         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
28982         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
28983         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
28984         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
28985         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
28986         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
28987         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
28988         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
28989         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
28990         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
28991         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
28992         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
28993         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
28994         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
28995         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
28996         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
28997         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
28998         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
28999         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
29000         system-irix-o32.ads, system-linux-x86_64.ads,
29001         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29002         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
29003         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
29004         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
29005         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
29006         system-vxworks-mips.ads, system-vxworks-ppc.ads,
29007         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
29008         above.
29009
29010 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
29011
29012         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
29013
29014 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
29015
29016         Merge from tree-ssa-20020619-branch.
29017
29018         * config-lang.in (boot_language, build_by_default): Set
29019         to no.
29020         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
29021         (max_size): Add static chain op for call_expr.
29022
29023 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
29024
29025         PR target/15331
29026         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
29027
29028 2004-05-11  Roger Sayle  <roger@eyesopen.com>
29029
29030         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
29031         COND_EXPR.
29032
29033 2004-05-10  Doug Rupp  <rupp@gnat.com>
29034
29035         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
29036         system.aux_dec.
29037
29038         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
29039
29040         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
29041
29042         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
29043         Fixes undefined symbols in IA64 gnatlib.
29044
29045         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
29046
29047         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
29048         Short_Address). This will be moved to system.auxdec.
29049
29050 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
29051
29052         * sem_util.adb: Replace test for presence of a node that is always
29053         present with a call to Discard_Node.
29054
29055         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
29056         Analyze on the library unit node after generation of distribution stub
29057         constructs.  The call was a no-op because Unit_Node has already been
29058         Analyzed, and the tree fragments for the distribution stubs are
29059         analyzed as they are inserted in Exp_Dist.
29060         Update comment regarding to distribution stubs to reflect that we
29061         do not generate stub in separate files anymore.
29062
29063         * einfo.ads: Clarify the fact that a tagged private type has the
29064         E_Record_Type_With_Private Ekind.
29065
29066         * erroutc.adb: Minor reformatting
29067
29068         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
29069         values if line length is increased using -gnatyM (noticed during code
29070         reading).
29071
29072         * eval_fat.adb: Minor reformatting
29073         Put spaces around exponentiation operator
29074
29075 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
29076
29077         PR ada/15005
29078         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
29079         has been rewritten as an explicit dereference, retrieve type of
29080         original node to check for possibly unconstrained record type.
29081
29082 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
29083
29084         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
29085         overriding, use the operation of the parent unconditionally.
29086
29087         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
29088         operation when either operand is a literal, to avoid further
29089         ambiguities.
29090
29091         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
29092         overridden by a previous explicit declaration, mark the previous entity
29093         as overriding.
29094
29095         * sem_disp.adb (Check_Dispatching_Operation): New predicate
29096         Is_Visibly_Controlled, to determine whether a declaration of a
29097         primitive control operation for a derived type overrides an inherited
29098         one. Add warning if the explicit declaration does not override.
29099
29100 2004-05-10  Vincent Celier  <celier@gnat.com>
29101
29102         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
29103         some cases when the sources are no longer present.
29104
29105         * make.adb (Collect_Arguments): Fail if an external source, not part
29106         of any project need to be compiled, when switch -x has not been
29107         specified.
29108
29109         * makeusg.adb: Document new switch -x
29110
29111         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
29112         defaulted to False.
29113
29114         * switch-m.adb (Scan_Make_Switches): New switch -x
29115
29116         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
29117         gnatmake switch -x.
29118
29119         * gnat_ugn.texi: Document new gnatmake switch -x
29120
29121 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
29122
29123         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
29124
29125         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
29126         (process_attributes): Likewise.
29127
29128 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
29129
29130         * s-inmaop.ads: Fix spelling mistake in one of the comments.
29131
29132 2004-05-10  Robert Dewar  <dewar@gnat.com>
29133
29134         * gnat_ugn.texi: Document that for config pragma files, the maximum
29135         line length is always 32767.
29136
29137         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
29138         literals is now allowed.
29139
29140         * gnat-style.texi: Remove statement about splitting long lines before
29141         an operator rather than after, since we do not follow this rule at all.
29142         Clarify rule (really lack of rule) for spaces around exponentiation
29143
29144         * sem_elim.adb: Allow concatenation of string literals as well as a
29145         single string literal for pragma arguments.
29146
29147         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
29148
29149         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
29150         written for append case.
29151
29152         * frontend.adb: Changes to avoid checking max line length in config
29153         pragma files.
29154
29155         * g-os_lib.ads: Minor reformatting
29156
29157         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
29158         wrong in any case. Instead use standard value. Noticed during code
29159         reading.
29160
29161         * opt.ads (Max_Line_Length): New field, used to implement removal of
29162         limitation on length of lines when scanning config pragma files.
29163
29164         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
29165         makeutl.ads, makeutl.adb: Minor reformatting
29166
29167         * scn.adb: Do not check line length while scanning config pragma files
29168         Do not check line length while scanning out license information
29169
29170         * scng.adb: Changes to avoid line length checks while parsing config
29171         pragma files.
29172
29173 2004-05-10  GNAT Script  <nobody@gnat.com>
29174
29175         * Make-lang.in: Makefile automatically updated
29176
29177 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
29178
29179         * osint.adb (Find_Program_Name): Fix handling of VMS version
29180         number.
29181
29182 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
29183
29184         * g-os_lib.ads (Invalid_Time): New constant
29185
29186         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
29187         return OS_Time instead of time_t to match what is imported by Ada.
29188         Now return -1 if the file doesn't exist, instead of a random value
29189
29190 2004-05-05  Robert Dewar  <dewar@gnat.com>
29191
29192         * usage.adb: Add line for -gnatR?s switch
29193
29194         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
29195
29196         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
29197         and for Match (Data_First, Data_last)
29198
29199         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
29200         written when we are dealing with multi-unit files.
29201
29202 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
29203
29204         * Makefile.in: Remove unused targets and variables.
29205
29206 2004-05-05  Vincent Celier  <celier@gnat.com>
29207
29208         * switch-m.adb: New gnatmake switch -eI
29209
29210         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
29211         of new gnatmake switch -eInnn.
29212
29213         * makegpr.adb: Take into account new parameters Index and Src_Index in
29214         Prj.Util.
29215
29216         * clean.adb: Implement support for multi-unit sources, including new
29217         switch -i.
29218
29219         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
29220         Src_Index.
29221
29222         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
29223         (Extract_From_Q): New out parameter Index
29224         (Mark, Is_Marked): Subprograms moved to Makeutl
29225         (Switches_Of): New parameter Source_Index
29226         (Add_Switch): New parameter Index
29227         (Check): New parameter Source_Index
29228         (Collect_Arguments): New parameter Source_Index
29229         (Collect_Arguments_And_Compile): New parameter Source_Index
29230         (Compile): New parameter Source_Index
29231         Put subprograms in alphabetical order
29232         Add support for multi-source sources, including in project files.
29233
29234         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
29235         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
29236         Make.
29237
29238         * makeusg.adb: New gnatmake switch -eInnn
29239
29240         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
29241         Prj.Util.Value_Of.
29242
29243         * opt.ads (Main_Index): New variable, defaulted to 0.
29244
29245         * osint.ads, osinte.adb (Add_File): New parameter Index
29246         (Current_Source_Index): New function
29247
29248         * prj.adb: Take into account new components Index and Src_Index
29249
29250         * prj.ads (String_Element): New component Index
29251         (Variable_Value): New component Index
29252         (Array_Element): New component Src_Index
29253
29254         * prj-attr.adb: Indicate that optional index may be specified for
29255         attributes Main, Executable, Spec, Body and some of Switches.
29256
29257         * prj-attr.ads (Attribute_Kind): New values for optional indexes
29258         (Attribute_Record): New component Optional_Index
29259
29260         * prj-com.ads (File_Name_Data): New component Index
29261
29262         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
29263
29264         * prj-env.adb (Put): Output optional index
29265
29266         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
29267         attributes Spec and Body.
29268
29269         * prj-nmsc.adb: Process optional indexes
29270
29271         * prj-pp.adb: Ouput "at" for optional indexes
29272
29273         * prj-proc.adb: Take into account optional indexes
29274
29275         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
29276         Optional_Index. For string literal,
29277         process optional index when Optional_Index is True.
29278         (Parse_Expresion): New Boolean parameter Optional_Index
29279
29280         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
29281         (Set_Source_Index_Of): New procedure
29282
29283         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
29284         index.
29285
29286         * prj-util.ads (Executable_Of): New parameter Index
29287         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
29288         New parameter Src_Index, defaulted to 0.
29289
29290 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
29291
29292         PR ada/15257
29293         * sem_ch3.adb (Access_Definition): If this is an access parameter
29294         whose designated type is imported through a limited_with clause, do
29295         not add the enclosing subprogram to the list of private dependents of
29296         the type.
29297
29298 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
29299
29300         PR ada/15258
29301         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
29302         a limited_with clause, and the other is its non-limited view.
29303
29304 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
29305
29306         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
29307
29308         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
29309         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
29310         Stand.Boolean_Literals to produce references to entities
29311         Standard_False and Standard_True from compile-time computed boolean
29312         values.
29313
29314         * stand.ads (Boolean_Literals): New variable, provides the entity
29315         values for False and True, for use by the expander.
29316
29317 2004-05-05  Doug Rupp  <rupp@gnat.com>
29318
29319         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
29320         5vinmaop.adb: Unchecked convert Short_Address vice Address
29321
29322         * adaint.c, raise.c: Caste CRTL function return value
29323         to avoid gcc error on 32/64 bit IVMS.
29324
29325         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
29326         target = IA64/VMS.
29327
29328         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
29329
29330         * 5qsystem.ads (Address): Declare as Long_Integer
29331         (Short_Address): Declare as 32 bit subtype of Address
29332         Declare  abstract address operations to avoid gratuitous ambiguities.
29333
29334 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
29335
29336         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
29337         instead of the old Boolean_Entry_Barriers.
29338         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
29339
29340 2004-05-05  GNAT Script  <nobody@gnat.com>
29341
29342         * Make-lang.in: Makefile automatically updated
29343
29344 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
29345
29346         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
29347
29348 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
29349
29350         PR ada/15152
29351         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
29352         alone. Replacing object references by literals is inappropriate in a
29353         so low level context.
29354
29355 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
29356
29357         * a-exexpr.adb: Add comments
29358
29359 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
29360
29361         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
29362         declare the Ancestor_Tags array in Type_Specific_Data with a small size
29363         without risking a bounds check error when accessing one of its
29364         components.
29365         (Type_Specific_Data): Define Ancestor_Tags as a small array.
29366         This prevents us from hitting a limitation during the debug info
29367         generation when using stabs.
29368
29369         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
29370         small array.
29371         This prevents us from hitting a limitation during the debug info
29372         generation when using stabs.
29373
29374 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
29375
29376         lang-specs.h: Remove -gnatz* from specs.
29377
29378 2004-05-03  Vincent Celier  <celier@gnat.com>
29379
29380         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
29381
29382         * Make-lang.in, Makefile.in: Add gprmake
29383
29384 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
29385
29386         * sem_aggr.adb: Fix typo in comment.
29387
29388 2004-05-03  Robert Dewar  <dewar@gnat.com>
29389
29390         * make.adb: Minor reformatting
29391
29392         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
29393
29394         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
29395         so that it works when address is not a private type.
29396
29397         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
29398         properly with rewritten unchecked conversions. This prevents
29399         order-of-elaboration issues that can otherwise arise.
29400         (Minimum_Size): Don't check size of access types under VMS
29401
29402         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
29403         interpretations of integer literals as type System.Address.
29404
29405         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
29406         (Is_Descendent_Of): New function
29407
29408 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
29409
29410         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29411         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
29412         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
29413
29414         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
29415         of the old Max_Entry_Queue_Depth.
29416
29417         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29418         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
29419         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
29420
29421         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
29422         New entry for proper handling of Max_Entry_Queue_Depth.
29423         New entry for proper handling of No_Dynamic_Interrupts.
29424
29425         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
29426         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29427         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
29428         the GNAT specific restriction Max_Entry_Queue_Depth.
29429         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
29430         the GNAT specific restriction No_Dynamic_Interrupts.
29431
29432         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
29433         instead of the old Boolean_Entry_Barriers.
29434         Use the new restriction No_Dynamic_Attachment instead of the old
29435         No_Dynamic_Interrupts.
29436
29437         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
29438         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29439
29440         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
29441         of the old Max_Entry_Queue_Depth.
29442
29443 2004-05-03  GNAT Script  <nobody@gnat.com>
29444
29445         * Make-lang.in: Makefile automatically updated
29446
29447 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
29448
29449         * checks.adb (Enable_Range_Check): If the prefix of an index component
29450         is an access to an unconstrained array, perform check unconditionally.
29451
29452 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29453
29454         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
29455         Component_Clause.
29456
29457 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
29458
29459         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
29460         alternate stack setting. There was no support for the tasking cases
29461         and the changes eventually caused a number of side-effect failures in
29462         the non-tasking case too.
29463
29464 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
29465
29466         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
29467         -gnats is passed.
29468
29469 2004-04-29  Vincent Celier  <celier@gnat.com>
29470
29471         * make.adb (Gnatmake): Increase max size of argument array for
29472         gnatbind for the potential addition of -F.
29473         If there are Stand-Alone Library projects, invoke gnatbind with -F to
29474         be sure that elaboration flags will be checked.
29475
29476         * switch-c.adb: Correct call to Scan_Pos for -gnateI
29477
29478 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
29479
29480         * sem_warn.adb (Check_References): Move '<access-variable> may be
29481         null' warning out of under Warn_On_No_Value_Assigned.
29482
29483 2004-04-29  Ed Falis  <falis@gnat.com>
29484
29485         * gnat_ugn.texi: Fixed texi error
29486
29487 2004-04-29  Robert Dewar  <dewar@gnat.com>
29488
29489         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
29490         abstract operations if they come from predefined files.
29491
29492         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
29493         Dynamic, not RM).
29494
29495         * s-addope.adb: Correct obvious error in mod function
29496
29497 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
29498
29499         * Makefile.in: Add target pairs for powerpc darwin*
29500         tasking support.
29501
29502         * a-intnam-darwin.ads, s-osinte-darwin.adb,
29503         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
29504
29505 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
29506
29507         * Makefile.in: Add target macro definitions for s390*-linux*.
29508         * system-linux-s390.ads: New file.
29509         * system-linux-s390x.ads: New file.
29510
29511 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
29512
29513         * gnat_ugn.texi: Correct argument to @setfilename.
29514
29515 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
29516
29517         * a-exexpr.adb (Unwind_Word): New data type.
29518         (Unwind_Exception): Use it as type of Private1 and Private2.
29519
29520         * raise.c (db_action_for): Fix debug printf.
29521
29522 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
29523
29524         * a-wtmoio.ads: Formal type must be a modular type, not a signed
29525         integer type.
29526
29527 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29528
29529         * decl.c (gnat_to_gnu_entity, case object): Call
29530         __builtin_update_setjmp_buf.
29531
29532         * gigi.h (update_setjmp_buf): Deleted.
29533         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
29534
29535         * misc.c: (update_setjmp_buf): Deleted.
29536
29537         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
29538         around block of RTL.
29539
29540         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
29541
29542 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
29543
29544         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
29545         subprogram for which no pragma All_Calls_Remote applies, store the
29546         address of the real subprogram in the underlying record type, so local
29547         dereferences do not go through the PCS.
29548
29549 2004-04-26  Robert Dewar  <dewar@gnat.com>
29550
29551         * i-c.ads: Add some type qualifications to avoid ambiguities when
29552         compiling with s-auxdec.ads and a non-private address type.
29553
29554 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
29555
29556         * Makefile.rtl: Fix error in previous check-in:
29557         Add s-addope.o to non tasking object list (rather than tasking object
29558         list).
29559
29560 2004-04-26  Javier Miranda  <miranda@gnat.com>
29561
29562         * sem_aggr.adb: Fix typo in comments
29563         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
29564         Required to check the null-exclusion attribute.
29565
29566         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
29567         case of anonymous access types in record and array components. For a
29568         component definition the level is the same of the enclosing composite
29569         type.
29570
29571         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
29572         that are anonymous access types the level of accessibility depends on
29573         the enclosing type declaration. In order to have this information, set
29574         the scope of the anonymous access type to the enclosing record type
29575         declaration.
29576         (Array_Type_Declaration): In case of components that are anonymous
29577         access types the level of accessibility depends on the enclosing type
29578         declaration. In order to have this information, set the scope of the
29579         anonymous access type to the enclosing array type declaration.
29580
29581         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
29582         access type.
29583
29584         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
29585         renaming of anonymous access-to-constant types allowed if and only if
29586         the renamed object is access-to-constant.
29587
29588         * sem_util.adb (Type_Access_Level): In case of anonymous access types
29589         that are component_definition or discriminants of a nonlimited type,
29590         the level is the same as that of the enclosing component type.
29591
29592 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
29593
29594         * sem_elim.adb: Some minor code reorganization from code reading. Fix
29595         misprint in the function name (File_Name_Match).
29596
29597 2004-04-23  Laurent Guerby  <laurent@guerby.net>
29598
29599         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
29600         install.
29601
29602 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29603
29604         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
29605
29606 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
29607
29608         * adaint.c (__gnat_try_lock): No longer requires that the parent
29609         directory be writable, the directory itself is enough.
29610         (gnat_is_absolute_path): Change profile, so that the call from
29611         GNAT.OS_Lib can be made more efficient.
29612
29613         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
29614         from GNAT.OS_Lib can be made more efficient.
29615
29616         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
29617         one copy of the file name. Found by code reading.
29618
29619 2004-04-23  Vincent Celier  <celier@gnat.com>
29620
29621         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
29622         Correct documentation on gnatmake switches transmitted to the compiler
29623
29624         * ali.ads: Minor comment fix
29625
29626 2004-04-23  Javier Miranda  <miranda@gnat.com>
29627
29628         * sem_ch6.adb: (Confirming Types): Code cleanup
29629
29630         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
29631         subprogram types: E_Anonymous_Access_Subprogram_Type and
29632         E_Anonymous_Access_Protected_Subprogram_Type.
29633
29634 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
29635
29636         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29637         whether a pragma All_Calls_Remote applies to the subprogram on which
29638         'Access is taken.
29639         No functional change is introduced by this revision; the new parameter
29640         will be used to allow calls to local RCI subprograms to be optimized
29641         to not use the PCS in the case where no pragma All_Calls_Remote applies,
29642         as is already done in the PolyORB implementation of the DSA.
29643
29644         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29645         whether a pragma All_Calls_Remote applies to the subprogram on which
29646         'Access is taken.
29647         No functional change is introduced by this revision; the new parameter
29648         will be used to allow calls to local RCI subprograms to be optimized
29649         to not use the PCS in the case where no pragma All_Calls_Remote applies,
29650         as is already done in the PolyORB implementation of the DSA.
29651
29652 2004-04-23  Robert Dewar  <dewar@gnat.com>
29653
29654         * Makefile.rtl: Add entry for s-addope.o in run time library list
29655         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
29656         * s-addope.ads, s-addope.adb: New files.
29657
29658         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
29659         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
29660         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
29661         System.Address to be non-private and signed.
29662
29663         * sem_elim.adb: Minor reformatting (fairly extensive)
29664         Some minor code reorganization from code reading
29665         Add a couple of ??? comments
29666
29667 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29668
29669         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
29670         (tree_transform, case N_If_Statement): Remove non-determinism.
29671
29672         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
29673
29674 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
29675
29676         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
29677         Eliminate' section.
29678
29679         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
29680         no longer used as a parameter name for Eliminate pragma).
29681
29682 2004-04-22  Laurent Guerby  <laurent@guerby.net>
29683
29684         PR optimization/14984
29685         PR optimization/14985
29686         * trans.c (gigi): Fix non determinism leading to bootstrap
29687         comparison failures.
29688
29689 2004-04-21  Pascal Obry  <obry@gnat.com>
29690
29691         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
29692         passed to spawnvp() to properly handle program pathname with spaces on
29693         Win32.
29694
29695 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
29696
29697         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
29698         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
29699         unlocked in case of exceptions.
29700
29701 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
29702
29703         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
29704         This function does not exist anymore.
29705
29706 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
29707
29708         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
29709
29710         * link.c: Move variables to the __gnat name space.
29711
29712         * Makefile.in: list link.o explicitly when needed.
29713
29714         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
29715
29716 2004-04-21  Javier Miranda  <miranda@gnat.com>
29717
29718         * einfo.adb (Original_Access_Type): New subprogram
29719         (Set_Original_Access_Type): New subprogram
29720         (Write_Field21_Name): Write the name of the new field
29721
29722         * einfo.ads (Original_Access_Type): New field present in access to
29723         subprogram types.
29724         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
29725         E_Anonymous_Access_Protected_Subprogram_Type.
29726
29727         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
29728         subprogram types.
29729
29730         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
29731         to anonymous access to subprogram types.
29732
29733         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
29734         to subprogram types.
29735
29736         * sem_ch3.adb (Access_Definition): Complete decoration of entities
29737         corresponding to anonymous access to subprogram types.
29738         (Analyze_Component_Declaration): Add new actual to the call to
29739         subprogram replace_anonymous_access_to_protected_subprogram.
29740         (Array_Type_Declaration): Add new actual to the call to subprogram
29741         replace_anonymous_access_to_protected_subprogram.
29742         (Process_Discriminants): Add new actual to the call to subprogram
29743         replace_anonymous_access_to_protected_subprogram.
29744         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
29745
29746         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
29747         formal.
29748
29749         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
29750         access to subprogram types.
29751
29752         * sem_util.adb (Has_Declarations): Addition of package_specification
29753         nodes.
29754
29755 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
29756
29757         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
29758         inlined flags to renamed entity only if in current unit.
29759
29760 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
29761
29762         * s-parint.ads: Add DSA implementation marker.
29763
29764         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
29765         value of System.Partition_Interface.DSA_Implementation to determine
29766         what version of the distributed systems annex is available (no
29767         implementation, GLADE, or PolyORB).
29768
29769 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
29770
29771         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
29772
29773 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29774
29775         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
29776         with new type if alias sets differ.
29777         Fixes ACATS c41103b.
29778
29779 2004-04-21  Vincent Celier  <celier@gnat.com>
29780
29781         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
29782         Add array Lang_Args for the language specific compiling argument
29783         switches.
29784
29785         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
29786
29787 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
29788
29789         * gnat_rm.texi: Update the descripton of the Eliminate pragma
29790         according to the recent changes in the format of the parameters of the
29791         pragma (replacing Homonym_Number with Source_Location).
29792
29793 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
29794
29795         * 5isystem.ads: Removed, unused.
29796
29797         * gnat_rm.texi: Redo 1.13 change.
29798
29799 2004-04-19  Robert Dewar  <dewar@gnat.com>
29800
29801         * s-stoele.ads: Clean up definition of Storage_Offset (the new
29802         definition is cleaner, avoids the kludge of explicit Standard operator
29803         references, and also is consistent with a visible System.Address with
29804         no visible operations.
29805
29806         * s-geveop.adb: Add declarations to avoid assumption of visible
29807         operations on type System.Address (since these might not be available
29808         if Address is a non-private type for which the operations
29809         are made abstract).
29810
29811         * sem_eval.adb: Minor reformatting
29812
29813         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
29814         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
29815         reformatting (new function spec format).
29816
29817         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
29818         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
29819         s-caun64.adb: Add declarations to avoid assumption of visible
29820         operations on type System.Address (since these might not be available
29821         if Address is a non-private type for which the operations are made
29822         abstract).
29823
29824         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
29825
29826         * exp_intr.adb: Minor comment update
29827
29828         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
29829
29830         * 5omastop.adb: Add declarations to avoid assumption of visible
29831         operations on type System.Address (since these might not be available
29832         if Address is a non-private type for which the operations
29833         are made abstract).
29834
29835 2004-04-19  Vincent Celier  <celier@gnat.com>
29836
29837         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
29838
29839         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
29840         defaulted to Ada.
29841
29842         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
29843         defaulted to Ada.
29844         Call Check with Process_Languages.
29845         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
29846         with Process_Languages.
29847         (Recursive_Check): New Boolean parameter Process_Languages. Call
29848         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
29849         Process_Languages.
29850
29851         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
29852
29853         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
29854         parameter Ada_Main, defaulted to True.
29855         Check for Ada specific characteristics only when Ada_Main is True.
29856
29857         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
29858
29859         * prj.adb: (Project_Empty): Add new Project_Data components.
29860
29861         * prj.ads: New types and tables for non Ada languages.
29862         (Project_Data): New components Languages, Impl_Suffixes,
29863         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
29864         Include_Path, Include_Data_Set.
29865
29866         * prj-env.ads, prj-env.adb: Minor reformatting
29867
29868         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
29869         Put subprograms in alphabetical order
29870
29871         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
29872         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
29873         Opt.Follow_Links.
29874
29875         * mlib-prj.adb: Back out modification in last version, as they are
29876         incorrect.
29877         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
29878
29879         * make.adb: (Mains): Moved to package Makeutl
29880         (Linker_Opts): Moved to package Makeutl
29881         (Is_External_Assignment): Moved to package Makeutl
29882         (Test_If_Relative_Path): Moved to package Makeutl
29883         (Gnatmake): Move sorting of linker options to function
29884         Makeutl.Linker_Options_Switches.
29885
29886         * makeutl.ads, makeutl.adb: New files.
29887
29888         * Makefile.in: Add makeutl.o to the object files for gnatmake
29889
29890         * makeusg.adb: Add line for new switch -eL.
29891
29892         * gnatls.adb (Image): New function.
29893         (Output_Unit): If in verbose mode, output the list of restrictions
29894         specified by pragmas Restrictions.
29895
29896         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
29897         Text_IO.
29898
29899         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
29900         needed, to put it in the range 1970 (included) - 2026 (excluded).
29901         (Time_Of): Do not shift Unix_Min_Year (1970).
29902         Shift the date by multiple of 56 years, if needed, to put it in the
29903         range 1970 (included) - 2026 (excluded).
29904
29905         * adaint.h, adaint.c (__gnat_set_executable): New function.
29906
29907 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29908
29909         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
29910         and pop GC context.
29911         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
29912         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
29913         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
29914         (tree_transform, case N_Code_Statement): Likewise.
29915         (gnat_expand_stmt, case LABEL_STMT): Don't look at
29916         LABEL_STMT_FIRST_IN_EH.
29917         (gnat_expand_stmt, case ASM_STMT): New case.
29918
29919         * utils2.c (build_unary_op): Properly set TREE_READONLY of
29920         UNCONSTRAINED_ARRAY_REF.
29921
29922         * utils.c (poplevel): Temporarily push/pop GC context around inline
29923         function expansion.
29924
29925         * decl.c (maybe_variable): Properly set TREE_READONLY of
29926         UNCONSTRAINED_ARRAY_REF.
29927         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
29928
29929         * ada-tree.def: (ASM_STMT): New.
29930
29931         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
29932         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
29933         ASM_STMT_INPUT): New.
29934         (ASM_STMT_CLOBBER): Likewise.
29935
29936 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
29937
29938         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
29939         general rcheck mechanism to raise Program_Error for E.4(18), instead
29940         of a custom raiser in System.Partition_Interface.
29941         Part of general cleanup work before PolyORB integration.
29942
29943         * snames.ads, snames.adb: Add new runtime library entities and names
29944         for PolyORB DSA.
29945
29946         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
29947         exp_dist.
29948         (Build_Subprogram_Id): New subprogram provided by exp_dist
29949         Code reorganisation in preparation for PolyORB integration.
29950
29951         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
29952         exp_dist.
29953         (Build_Subprogram_Id): New subprogram provided by exp_dist
29954
29955         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
29956         actual parameter types for call to dereference of an
29957         access-to-subprogram type.
29958
29959         * rtsfind.ads: Add new runtime library entities and names for PolyORB
29960         DSA.
29961
29962         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
29963         instead, which has the same behaviour here since we never pass it a
29964         NULL pointer.
29965
29966         * link.c (run_path_option, Solaris case): Use -Wl, as for other
29967         platforms.
29968
29969         * Makefile.in: adjust object file lists for gnatlink and gnatmake
29970         to account for new dependency upon Interfaces.C.Strings + link.o
29971         For x86 FreeBSD, use 86numaux.
29972
29973         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
29974         from Mlib.Tgt to Mlib.
29975
29976         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
29977         target-independent.
29978
29979         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
29980         target-specific versions of this subprogram, now implemented as a
29981         target-independent function in Mlib.
29982
29983         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
29984         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
29985         (Linker_Library_Path_Option): Remove target-specific versions of this
29986         subprogram, now implemented as a target-independent function in Mlib.
29987
29988         * atree.adb: (Allocate_Initialize_Node): New subprogram.
29989         Factors out node table slots allocation.
29990         (Fix_Parents): New subprogram.
29991         Encapsulate the pattern of fixing up parent pointers for syntactic
29992         children of a rewritten node.
29993         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
29994         (Rewrite): Use New_Copy when creating saved copy of original node.
29995         (Replace): Use Copy_Node to copy nodes.
29996
29997 2004-04-19  Javier Miranda  <miranda@gnat.com>
29998
29999         * sprint.adb (Sprint_Node_Actual): Give support to the new
30000         Access_To_Subprogram node available in Access_Definition nodes. In
30001         addition, give support to the AI-231 node fields: null-exclusion,
30002         all-present, constant-present.
30003
30004         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
30005
30006         * sinfo.ads, sinfo.adb:
30007         New field Access_To_Subprogram_Definition in Access_Definition nodes
30008
30009         * sem_ch6.adb (Process_Formals): Move here the code that creates and
30010         decorates internal subtype declaration corresponding to the
30011         null-excluding formal. This code was previously in Set_Actual_Subtypes.
30012         In addition, carry out some code cleanup on this code. In case of
30013         access to protected subprogram call
30014         Replace_Anonymous_Access_To_Protected_Subprogram.
30015         (Set_Actual_Subtypes): Code cleanup.
30016
30017         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
30018         Find_Type in case of anonymous access renamings. Add warning in case of
30019         null-excluding attribute used in anonymous access renaming.
30020
30021         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30022         subprogram
30023
30024         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
30025         subprogram.
30026         (Access_Definition): In case of anonymous access to subprograms call
30027         the corresponding semantic routine to decorate the node.
30028         (Access_Subprogram_Declaration): Addition of some comments indicating
30029         some code that probably should be added here. Detected by comparison
30030         with the access_definition subprogram.
30031         (Analyze_Component_Declaration): In case of access to protected
30032         subprogram call Replace_Anonymous_Access_To_Protected.
30033         (Array_Type_Declaration): In case of access to protected subprogram call
30034         Replace_Anonymous_Access_To_Protected_Subprogram.
30035         (Process_Discriminants): In case of access to protected subprogram call
30036         Replace_Anonymous_Access_To_Protected_Subprogram.
30037
30038         * par.adb (P_Access_Definition): New formal that indicates if the
30039         null-exclusion part was present.
30040         (P_Access_Type_Definition): New formal that indicates if the caller has
30041         already parsed the null-excluding part.
30042
30043         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
30044         (P_Identifier_Declarations): Code cleanup and give support to renamings
30045         of anonymous access to subprogram types.
30046         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
30047         (P_Array_Type_Definition): Give support to AI-254.
30048         (P_Component_Items): Give support to AI-254.
30049         (P_Access_Definition): New formal that indicates if the header was
30050         already parsed by the caller.
30051         (P_Access_Type_Definition): New formal that indicates if the caller has
30052         already parsed the null-excluding part.
30053
30054         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
30055         call to P_Access_Definition.
30056
30057 2004-04-19  Geert Bosch  <bosch@gnat.com>
30058
30059         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
30060         the delicate semantics of floating-point to integer conversion.
30061         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
30062
30063         * eval_fat.adb (Machine_Mantissa): Moved to spec.
30064         (Machine_Radix): New function.
30065
30066         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
30067         conversion checks.
30068         (Machine_Radix): New function also for use in conversion checks.
30069
30070 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
30071
30072         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
30073
30074         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
30075         to decorate the access-to-protected subprogram and the equivalent type.
30076
30077         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
30078         to anonymous access to subprogram types.
30079
30080         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
30081         constant-folding, for legality checks in contexts that require an RM
30082         static expression.
30083
30084         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
30085         temporary but stack checking is not enabled, increment serial number
30086         to so that symbol generation is consistent with and without stack
30087         checking.
30088
30089         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
30090         independent on whether stack checking is enabled, caller must check
30091         the corresponding flag.
30092
30093         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
30094         range checks.
30095         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
30096         parent if it has discriminants.
30097         (Build_Derived_Private_Type): Constructed full view does
30098         not come from source.
30099         (Process_Discriminants): Default discriminants on a tagged type are
30100         legal if this is the internal completion of a private untagged
30101         derivation.
30102
30103         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
30104         no constraint checks, because it corresponds to an existing object.
30105
30106         * sem_prag.adb (Process_Convention): Pragma applies
30107         only to subprograms in the same declarative part, i.e. the same unit,
30108         not the same scope.
30109
30110         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
30111         ignore type mismatch on a numeric conversion if expression comes from
30112         expansion.
30113
30114 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
30115
30116         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
30117         Homonym_Number parameter, add processing for Source_Location parameter
30118         corresponding.
30119         (Check_Eliminated): Remove the check for homonym numbers, add the check
30120         for source location traces.
30121
30122         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
30123         with Arg_Source_Location corresponding to the changes in the format of
30124         the pragma.
30125
30126         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
30127         Eliminate pragma corresponding to the changes in the format of the
30128         pragma: Homonym_Number is replaced with Source_Location, two ways of
30129         distinguishing homonyms are mutially-exclusive.
30130
30131 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
30132
30133         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
30134
30135         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
30136         No_Dollar_In_Label, no longer necessary, as it is always True.
30137         (Strip_Suffixes): Likewise.
30138
30139 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
30140
30141         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
30142         modulus for compatibility with size clause on targets with 16-bit
30143         Integer.
30144
30145         * layout.adb (Discrimify): In the case of private types, set Vtyp to
30146         full type to fix type mismatches on calls to size functions for
30147         discriminant-dependent array components.
30148
30149 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
30150
30151         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
30152         lib.
30153
30154 2004-04-19  Pascal Obry  <obry@gnat.com>
30155
30156         * mdll-utl.adb (Locate): New version is idempotent.
30157
30158 2004-04-17  Laurent Guerby  <laurent@guerby.net>
30159
30160         PR ada/14988 (partial)
30161         * impunit.adb: Fix typo.
30162
30163 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
30164
30165         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
30166         and install-rts-cert targets.  Remove all gnatlib and gnattools
30167         targets and all other rts-* targets (moved to libada).  Remove (now)
30168         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
30169         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
30170
30171 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30172
30173         * trans.c (tree_transform): Shortcut returning error_mark_node for
30174         statements in annotate_only_mode.
30175         (tree_transform, case N_Label, case N_Return_Statement,
30176         N_Goto_Statement): Make statement tree instead of generating code.
30177         (tree_transform, case N_Assignment_Statement): No longer check
30178         type_annotate_only.
30179         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
30180         RETURN_STMT): New.
30181         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
30182         New fcns.
30183         (gnat_to_gnu): Collect any RTL generated and deal with it.
30184         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
30185         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
30186         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
30187
30188         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
30189
30190         * ada-tree.def (EXPR_STMT): Fix typo in name.
30191         (BLOCK_STMT, IF_STMT): New nodes.
30192
30193         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
30194         LABEL_STMT_FIRST_IN_EH): New macros.
30195         (RETURN_STMT_EXPR): Likewise.
30196
30197         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
30198         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
30199
30200 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
30201
30202         * atree.ads: Correct documentation on extended nodes.
30203
30204         * link.c: Set run_path_option for FreeBSD.
30205
30206 2004-04-08  Vincent Celier  <celier@gnat.com>
30207
30208         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
30209         one of the ALI file, do not link with DEC lib.
30210
30211         * par.adb Remove the last two characters ("%s" or "%b") when checking
30212         if a language defined unit may be recompiled.
30213
30214 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
30215
30216         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
30217         removal of abstract operation leaves no possible interpretation for
30218         expression.
30219
30220         * sem_eval.adb (Eval_Qualified_Expression): Use
30221         Set_Raises_Constraint_Error on node when needed, so that it does not
30222         get optimized away by subsequent optimizations.
30223
30224         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
30225         operands even when they are not wrapped in a type conversion.
30226
30227 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
30228
30229         * sem_prag.adb (Set_Exported): Warn about making static as result of
30230         export only when the export is coming from source. This may be not
30231         be true e.g. on VMS where we expand export pragmas for exception codes
30232         together with imported or exported exceptions, and we don't want the
30233         user to be warned about something he didn't write.
30234
30235 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
30236
30237         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
30238         duplication between normal entities and those declared as renamings.
30239         No functional change.
30240
30241         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
30242         inline functions returning an unconstrained result.
30243
30244 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
30245
30246         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
30247         conform to what other front-ends do.
30248
30249 2004-04-08  Doug Rupp  <rupp@gnat.com>
30250
30251         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
30252         libraries.
30253
30254 2004-04-06  Pascal Obry  <obry@gnat.com>
30255
30256         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
30257
30258         * osint.adb (Program_Name): Do not look past a directory separator.
30259
30260 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
30261
30262         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
30263
30264         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
30265         requirement for preserving a copy of the original assignment node.
30266
30267         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
30268
30269 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
30270
30271         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
30272         when supported.
30273
30274 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
30275
30276         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
30277         operator calls in functional notation, and apply
30278         Universal_Interpretation to operands, not to their type.
30279
30280 2004-04-06  Robert Dewar  <dewar@gnat.com>
30281
30282         * 5wdirval.adb: Minor reformatting
30283
30284 2004-04-06  Ed Falis  <falis@gnat.com>
30285
30286         * gnat_rm.texi: Improve a reference to the GCC manual
30287
30288 2004-04-05  Vincent Celier  <celier@gnat.com>
30289
30290         * adaint.h, adaint.c: Add function __gnat_named_file_length
30291
30292         * impunit.adb: Add Ada.Directories to the list
30293
30294         * Makefile.in: Add VMS and Windows versions of
30295         Ada.Directories.Validity package body.
30296
30297         * Makefile.rtl: Add a-direct and a-dirval
30298
30299         * mlib-tgt.ads: Minor comment update.
30300
30301         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
30302         a-direct.ads, a-direct.adb: New files.
30303
30304 2004-04-05  Vincent Celier  <celier@gnat.com>
30305
30306         PR ada/13620
30307         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
30308         just to the compiler.
30309
30310 2004-04-05  Robert Dewar  <dewar@gnat.com>
30311
30312         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
30313         returned string is 1.
30314
30315         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
30316
30317         * eval_fat.ads: Minor reformatting
30318
30319         * g-curexc.ads: Document that lower bound of returned string values
30320         is always one.
30321
30322         * gnatlink.adb: Add ??? comment for previous change
30323         (need to document why this is VMS specific)
30324
30325         * s-stoele.ads: Minor reformatting
30326
30327         * tbuild.ads: Minor reformatting throughout (new function specs)
30328
30329         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
30330         after WITH.
30331
30332         * scng.adb: Minor reformatting
30333
30334 2004-04-05  Geert Bosch  <bosch@gnat.com>
30335
30336         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
30337         (Leading_Part): Still perform truncation to machine number if the
30338         specified radix_digits is greater or equal to machine_mantissa.
30339
30340 2004-04-05  Javier Miranda  <miranda@gnat.com>
30341
30342         * par-ch3.adb: Complete documentation of previous change
30343         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
30344         (aliased must appear before constant).
30345
30346         * par-ch4.adb: Complete documentation of previous change.
30347
30348         * par-ch6.adb: Complete documentation of previous change.
30349
30350         * sinfo.ads: Fix typo in commment.
30351
30352 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
30353
30354         * sem_ch3.adb (Inherit_Components): If derived type is private and has
30355         stored discriminants, use its discriminants to constrain parent type,
30356         as is done for non-private derived record types.
30357
30358         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
30359         Ada 2005 AI-310: an abstract non-dispatching operation is not a
30360         candidate interpretation in an overloaded call.
30361
30362         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
30363         expression is Null and target type is not an access type (e.g. a
30364         non-private address type).
30365
30366 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
30367
30368         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
30369         statement whose right-hand side is an inlined call, save a copy of the
30370         original assignment subtree to preserve enough consistency for
30371         Analyze_Assignment to proceed.
30372
30373         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
30374         complete assignment subtree which is now unnecessary, as the expansion
30375         of inlined call has been improved to preserve a consistent assignment
30376         tree.  Note_Possible_Modification must be called only
30377         after checks have been applied, or else unnecessary checks will
30378         be generated.
30379
30380         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
30381         of explicit dereferences that do not Come_From_Source:
30382          - be selective on cases where we must go back to the dereferenced
30383            pointer (an assignment to an implicit dereference must not be
30384            recorded as modifying the pointer);
30385          - do not rely on Original_Node being present (Analyze_Assignment
30386            calls Note_Possible_Modification on a copied tree).
30387
30388         * sem_warn.adb (Check_References): When an unset reference to a pointer
30389         that is never assigned is encountered, prefer '<pointer> may be null'
30390         warning over '<pointer> is never assigned a value'.
30391
30392 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
30393
30394         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
30395         the ABI.
30396
30397 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
30398
30399         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
30400         libexc. We currently don't reference anything in this library and
30401         linking it in triggers linker warnings we don't want to see.
30402
30403         * init.c: Update comments.
30404
30405 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30406
30407         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
30408         * utils.c (create_field_decl): Likewise.
30409         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
30410
30411 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
30412
30413         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
30414         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
30415         Add info directory entry and category.
30416
30417 2004-04-02  Jan Hubicka  <jh@suse.cz>
30418
30419         * utils.c: Include function.h
30420         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
30421
30422 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
30423
30424         PR ada/14150
30425         * Make-lang.in: Clean up generation of documentation
30426
30427         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
30428
30429         * xgnatug.adb: Removed, replaced by xgnatugn.adb
30430
30431         * xgnatugn.adb: Replaces xgnatug.adb
30432
30433         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
30434
30435         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
30436
30437         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30438         gnat_ug_wnt.texi: Removed.
30439
30440 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
30441
30442         * utils2.c: Update copyright notice.
30443
30444 2004-04-01  Robert Dewar  <dewar@gnat.com>
30445
30446         * checks.adb: Minor reformatting throughout
30447         Note that prev checkin added RM reference to alignment warning
30448
30449 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
30450
30451         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
30452         non-static when building aggregate for bit-packed array.
30453
30454         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
30455         function call that is itself the actual in a procedure call, build
30456         temporary for it.
30457
30458         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
30459         a string literal, create a temporary for it, constant folding only
30460         handles scalars here.
30461
30462 2004-04-01  Vincent Celier  <celier@gnat.com>
30463
30464         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
30465         Error_Msg_SP): New empty procedures to instantiate the Scanner.
30466         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
30467         tokens.
30468         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
30469         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
30470         and get the checksum.
30471
30472         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
30473         already in the Q.
30474         Increase the Marking_Label at the end of the Multiple_Main_Loop,
30475         instead of at the beginning.
30476
30477         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
30478         directly.
30479         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
30480         on VMS.
30481
30482         * osint.ads (Multi_Unit_Index_Character): New Character global variable
30483
30484         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
30485         not '~' directly.
30486
30487         * par.adb: Remove test on file name to detect language defined units.
30488         Add test on unit name, after parsing, to detect language defined units
30489         that are not compiled with -gnatg (except System.RPC and its children)
30490
30491         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
30492         following units without style checking.
30493
30494         * switch-c.adb: Change -gnatC to -gnateI
30495
30496         * usage.adb: Document new switch -gnateInnn
30497
30498         * scng.adb (Accumulate_Token_Checksum): New procedure
30499         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
30500         word or literal number.
30501         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
30502         numbers.
30503
30504 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
30505
30506         * a-tasatt.adb,
30507         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
30508         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
30509         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
30510         5vtpopde.adb: Add missing 'constant' keywords.
30511
30512 2004-04-01  Javier Miranda  <miranda@gnat.com>
30513
30514         * par-ch4.adb: (P_Allocator): Code cleanup
30515
30516         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
30517         attribute.
30518
30519         * sinfo.ads: Complete documentation of previous change
30520
30521 2004-04-01  Pascal Obry  <obry@gnat.com>
30522
30523         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
30524         only on VMS.  This special handling was done because an old GNU/ld bug
30525         on Windows which has been fixed.
30526
30527 2004-04-01  GNAT Script  <nobody@gnat.com>
30528
30529         * Make-lang.in: Makefile automatically updated
30530
30531 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30532
30533         * decl.c (gnat_to_gnu_entity, make_type_from_size):
30534         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
30535         * trans.c (tree_transform, convert_with_check): Likewise.
30536         * utils.c (gnat_signed_or_unsigned_type): Likewise.
30537         (build_vms_descriptor, unchecked_convert): Likewise.
30538         * utils2.c (nonbinary_modular_operation): Likewise.
30539
30540 2004-03-29  Javier Miranda  <miranda@gnat.com>
30541
30542         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
30543         (Install_Null_Excluding_Check): Local subprogram that determines whether
30544         an access node requires a runtime access check and if so inserts the
30545         appropriate run-time check.
30546         (Apply_Access_Check): Call Install_Null_Excluding check if required
30547         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
30548
30549         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
30550
30551         * einfo.ads: Fix typo in comment
30552
30553         * exp_ch3.adb (Build_Assignment): Generate conversion to the
30554         null-excluding type to force the corresponding run-time check.
30555         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
30556         type to force the corresponding run-time check.
30557
30558         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
30559         the null-excluding type to force the corresponding run-time check.
30560
30561         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
30562         case of access types unless they have the null-excluding attribute.
30563
30564         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
30565         part.
30566
30567         * exp_util.ads: Fix typo in comment
30568
30569         * par.adb (P_Null_Exclusion): New subprogram
30570         (P_Subtype_Indication): New formal that indicates if the null-excluding
30571         part has been scanned-out and it was present
30572
30573         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
30574
30575         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
30576         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
30577         type to force the corresponding run-time check
30578         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
30579         components
30580         (Resolve_Array_Aggregate): Carry out some static checks
30581         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
30582
30583         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
30584         attribute must be set only if specified by means of the null-excluding
30585         part. In addition, we must also propagate the access-constant attribute
30586         if present.
30587         (Access_Subprogram_Declaration, Access_Type_Declaration,
30588         Analyze_Component_Declaration, Analyze_Object_Declaration,
30589         Array_Type_Declaration, Process_Discriminants,
30590         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
30591         and carry out some static checks.
30592         (Build_Derived_Access_Type): Set the null-excluding attribute
30593         (Derived_Type_Declaration, Process_Subtype): Carry out some static
30594         checks.
30595
30596         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
30597
30598         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
30599
30600         * sem_ch6.adb (Process_Formals): Carry out some static checks.
30601         (Set_Actual_Subtypes): Generate null-excluding subtype if the
30602         null-excluding part was present; it is not required to be done here in
30603         case of anonymous access types.
30604         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
30605         value.
30606
30607         * sem_res.adb (Resolve_Actuals): Carry out some static check
30608         (Resolve_Null): Allow null in anonymous access
30609
30610         * sinfo.adb: New subprogram Null_Exclusion_Present
30611         All_Present and Constant_Present available on access_definition nodes
30612
30613         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
30614         object_declaration, derived_type_definition, component_definition,
30615         discriminant_specification, access_to_object_definition,
30616         access_function_definition, allocator, access_procedure_definition,
30617         access_definition, parameter_specification, All_Present and
30618         Constant_Present flags available on access_definition nodes.
30619
30620 2004-03-29  Robert Dewar  <dewar@gnat.com>
30621
30622         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
30623         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
30624         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
30625         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
30626         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
30627         sem_prag.adb: Updates to handle multiple units/file
30628
30629         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
30630
30631         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
30632         sem_util.adb: Minor reformatting
30633
30634         * sem_ch12.adb: Add comment for previous change
30635
30636 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
30637
30638         * osint.adb (Executable_Prefix): Set Exec_Name to the current
30639         executable name when not initialized. Otherwise, use its current value.
30640
30641         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
30642         initialize it to another executable name than the current one. This
30643         allows to configure paths for an executable name (gnatmake) different
30644         from the current one (gnatdist).
30645
30646 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
30647
30648         * exp_ch6.adb (Expand_Call): A call to a function declared in the
30649         current unit cannot be inlined if it appears in the body of a withed
30650         unit, to avoid order of elaboration problems in gigi.
30651
30652         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
30653         information for protected (wrapper) operation as well, to simplify gdb
30654         use.
30655
30656         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
30657         protected body, indicate that the entity for the generated spec comes
30658         from source, to ensure that references are properly generated for it.
30659         (Build_Body_To_Inline): Do not inline a function that returns a
30660         controlled type.
30661
30662         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
30663         apply convention to homonyms that are declared explicitly.
30664
30665         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
30666         that renames an equality operator and the operands are overloaded,
30667         resolve them with the declared formal types, before rewriting as an
30668         operator.
30669
30670 2004-03-29  GNAT Script  <nobody@gnat.com>
30671
30672         * Make-lang.in: Makefile automatically updated
30673
30674 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
30675
30676         * memtrack.adb: Log realloc calls, which are treated as free followed
30677         by alloc.
30678
30679 2004-03-25  Vincent Celier  <celier@gnat.com>
30680
30681         * prj-makr.adb (Process_Directories): Detect when a file contains
30682         several units. Do not include such files in the config pragmas or
30683         in the naming scheme.
30684
30685         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
30686         Resolve links only when not in Trusted_Mode.
30687         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
30688         Do not resolve links for the display names.
30689
30690         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
30691         resolve links when computing the display names.
30692
30693 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
30694
30695         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
30696         attribute reference does not denote a subtype, it can be any
30697         expression that has a classwide type, potentially after an implicit
30698         dereference.  In particular, the prefix can be a view conversion for
30699         a classwide type (for which Is_Object_Reference holds), but it can
30700         also be a value conversion for an access-to-classwide type. In the
30701         latter case, there is an implicit dereference, and the original node
30702         for the prefix does not verify Is_Object_Reference.
30703
30704         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
30705         conversion of a discriminant-dependent component of a mutable object
30706         is one itself.
30707
30708 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
30709
30710         * freeze.adb (Freeze_Entity): When an inherited subprogram is
30711         inherited, has convention C, and has unconstrained array parameters,
30712         place the corresponding warning on the derived type declaration rather
30713         than the original subprogram.
30714
30715         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
30716         indication on renaming declaration, if formal has a box and actual
30717         is absent.
30718
30719         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
30720         determine whether to generate an implicit or explicit reference to
30721         the renamed entity.
30722
30723         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
30724         subprogram renaming comes from a defaulted formal subprogram in an
30725         instance.
30726
30727 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
30728
30729         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
30730         value expressions to ensure that calls within a component definition
30731         will be checked (since those are evaluated during the record type's
30732         elaboration).
30733
30734 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
30735
30736         * s-tpobop.adb: Code clean up:
30737         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
30738         code.
30739         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
30740
30741 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
30742
30743         * Makefile.in: Clean up in the ravenscar run time.
30744
30745 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30746
30747         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
30748         of No_Strict_Aliasing to build_pointer_type_for_mode.
30749         * utils.c (update_pointer_to): Walk pointer and ref chains.
30750
30751 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
30752
30753         * ali.ads: Fix Comment about Dynamic_Elab.
30754
30755         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
30756         Has_RACW, Is_Generic, etc.)
30757         (Output_Object, Gnatls): Take into account ALI files not attached to
30758         an object.
30759
30760 2004-03-22  Vincent Celier  <celier@gnat.com>
30761
30762         * gprep.adb: Change all String_Access to Name_Id
30763         (Is_ASCII_Letter): new function
30764         (Double_File_Name_Buffer): New procedure
30765         (Preprocess_Infile_Name): New procedure
30766         (Process_Files): New procedure
30767         (Gnatprep): Check if output and input are existing directories.
30768         Call Process_Files to do the real job.
30769
30770 2004-03-22  Robert Dewar  <dewar@gnat.com>
30771
30772         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
30773         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
30774
30775 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
30776
30777         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
30778         case when the source contains only comments.
30779
30780 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
30781
30782         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
30783         declaration for a child subprogram body that acts as a spec, indicate
30784         that the entity in the declaration needs debugging information.
30785
30786         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
30787         full view if the subtype is created for a constrained record component;
30788         gigi has enough information to construct the record, and there is no
30789         place in the tree for the declaration.
30790
30791         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
30792         serial number for the dummy body that is built for analysis, to avoid
30793         inconsistencies in the generation of internal names when compiling
30794         with -gnatN.
30795
30796 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
30797
30798         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
30799         object.
30800
30801 2004-03-22  GNAT Script  <nobody@gnat.com>
30802
30803         * Make-lang.in: Makefile automatically updated
30804
30805 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30806
30807         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30808         * trans.c (tree_transform, emit_index_check): Likewise.
30809         * utils.c (build_template): Likewise.
30810         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
30811         (maybe_unconstrained_array, unchecked_convert): Likewise.
30812         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
30813         (build_unary_op): Likewise.
30814         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30815         (fill_vms_descriptor): Likewise.
30816         (build_call_alloc_dealloc): Likewise.
30817         ALIGN is unsigned.
30818         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
30819
30820 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
30821
30822         PR other/14630
30823         * gnat_ug.texi: Add info directory category and entry.
30824         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30825         gnat_ug_wnt.texi: Regenerate.
30826
30827 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
30828
30829         * ada-tree.h: Update copyright notice.
30830         Minor reformatting.
30831
30832 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
30833
30834         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
30835         as regular exception objects and not as mere integers representing the
30836         condition code.  The latter approach required some dynamics to mask off
30837         severity bits, which did not fit well into the GCC table based model.
30838         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
30839         exception data objects. We don't it and it would conflict with the other
30840         external symbol we have to generate for such exceptions.
30841
30842         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
30843         the special code for VMS exceptions, since these are now represented
30844         as regular exceptions objects.
30845
30846 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30847
30848         * decl.c (debug_no_type_hash): Remove.
30849         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
30850         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
30851
30852 2004-03-19  Laurent Guerby  <laurent@guerby.net>
30853
30854         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
30855         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
30856
30857 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30858
30859         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
30860         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
30861         (TYPE_RM_SIZE_INT): Directly use type.values.
30862         (TREE_LOOP_ID): Clean up check.
30863         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
30864         TYPE_VALUES, not TYPE_FIELDS.
30865         * trans.c (convert_with_check): Delay access of bounds of basetype
30866         until sure is numeric.
30867
30868 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
30869
30870         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
30871
30872         Code clean up:
30873         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
30874         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
30875         Specific.Set instead of direct call to e.g pthread_setspecific.
30876
30877 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
30878
30879         * adaint.c: Update comments.
30880
30881         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
30882         GNATLIB_SHARED for FreeBSD.
30883
30884 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
30885
30886         * init.c [VxWorks]: Do not fix the stack size for the environment task.
30887         When needed (stack checking) the stack size is retrieved
30888         from the VxWorks kernel.
30889
30890         * Makefile.in: Flag -nostdinc is required when building the run time
30891         for avoiding looking for files in the base compiler.
30892         Add the VxWorks specific version of the package body for
30893         System.Stack_checking.Operations (5zstchop.adb).
30894
30895         * Make-lang.in: Add the object file for
30896         System.Stack_Checking.Operations.
30897
30898         * Makefile.rtl: Add object file for the package
30899         System.Stack_Checking.Operations.
30900
30901         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
30902
30903         * s-stache.ads, s-stache.adb: Move the operations related to stack
30904         checking from this package to package System.Stack_Checking.Operations.
30905         This way, stack checking operations are only linked in the final
30906         executable when using the -fstack-check flag.
30907
30908 2004-03-18  Doug Rupp  <rupp@gnat.com>
30909
30910         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
30911         Reorganize ifeq's.
30912
30913         * 5qsystem.ads, 5xcrtl.ads: New files.
30914
30915 2004-03-18  Vincent Celier  <celier@gnat.com>
30916
30917         * prj.adb (Reset): Reset hash table Files_Htable
30918
30919         * prj-env.adb (Source_Paths, Object_Paths): New tables.
30920         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
30921         the procedures Add_To_Path_File.
30922         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
30923         making sure that each directory is present only once and, for object
30924         dirs, when a directory already present is added, the duplicate is
30925         removed and the directory is always put as the last in the table.
30926         Write the path files at the end of these accumulations.
30927
30928         * prj-nmsc.adb (Record_Source): Add source file name in hash table
30929         Files_Htable for all sources.
30930
30931         * prj-proc.adb (Process): Remove restrictions between not directly
30932         related extending projects.
30933
30934 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
30935
30936         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
30937         (Find_Sources): Minor speed optimization.
30938
30939         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
30940         parameter Trusted_Mode.
30941
30942 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
30943
30944         * scn.adb (Determine_License): Take into account a degenerated case
30945         when the source contains only comments.
30946
30947 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
30948
30949         * sem_warn.adb (Check_References): For a warning on a selected
30950         component that does not come from source, locate an uninitialized
30951         component of the record type to produce a more precise error message.
30952
30953 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
30954
30955         * 3zsoccon.ads: Fix multicast options.
30956
30957         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
30958         in the spec.
30959
30960 2004-03-15  Robert Dewar  <dewar@gnat.com>
30961
30962         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
30963         pragma used for a private type.
30964
30965         * lib-xref.adb (Generate_Reference): Do not generate warning if
30966         reference is in a different unit from the pragma Unreferenced.
30967
30968         * 5vtpopde.adb: Minor reformatting
30969         Fix casing of To_Task_ID
30970
30971         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
30972         flag if we have an unchecked conversion to an access type in the same
30973         unit.
30974
30975 2004-03-15  Geert Bosch  <bosch@gnat.com>
30976
30977         * a-ngcoty.adb (Modulus): In alternate formula for large real or
30978         imaginary parts, use Double precision throughout.
30979
30980         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
30981         we want to be able to compile run-time with -gnata for testing, but
30982         this may also be instantiated in user code that is compiled with -gnata.
30983
30984 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
30985
30986         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
30987         codes. Having a separate type for this is useful to enforce consistency
30988         throughout the various run-time units.
30989         (Exception_Data): Use Exception_Code for Import_Code.
30990
30991         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
30992         Natural and Integer in various places.
30993         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
30994         with the severity bits masked off.
30995         (Register_VMS_Exception): Handle the additional exception data pointer
30996         argument.
30997
30998         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
30999         component, now reflected by an exported accessor.
31000         (is_handled_by): New routine to compute whether the propagated
31001         occurrence matches some handler choice specification. Extracted out of
31002         get_action_description_for, and expanded to take care of the VMS
31003         specifities.
31004         (get_action_description_for): Use is_handled_by instead of an explicit
31005         complex condition to decide if the current choice at hand catches the
31006         propagated occurrence.
31007
31008         * raise.h (Exception_Code): New type for C.
31009
31010         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
31011         System.Standard_Library.Exception_Code, to allow references from the
31012         pragma import/export expander.
31013
31014         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
31015         New accessors to allow easy access to GNAT exception data
31016         characteristics.
31017         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
31018         redundant Handled_By_Others component, helper for the personality
31019         routine which will now be able to call the appropriate exception data
31020         accessor instead.
31021
31022         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
31023         component of Standard_Exception_Type to be the closest possible to
31024         Exception_Code in System.Standard_Library, that we cannot get at this
31025         point. Expand a ??? comment to notify that this type node should
31026         probably be rewritten later on.
31027
31028         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
31029         registration call to include a pointer to the exception object in the
31030         arguments.
31031
31032         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
31033         instead of int and explicit bitmasks.
31034
31035 2004-03-15  Vincent Celier  <celier@gnat.com>
31036
31037         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
31038         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
31039
31040         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
31041         longer needed now that it is in the spec of
31042         System.Tasking.Task_Attributes.
31043
31044         * adaint.h, adaint.c: (__gnat_create_output_file): New function
31045
31046         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
31047
31048         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
31049
31050         * make.adb (Gnatmake): Do not check the executable suffix; it is being
31051         taken care of in Scan_Make_Arg.
31052         (Scan_Make_Arg): Add the executable suffix only if the argument
31053         following -o, in canonical case, does not end with the executable
31054         suffix.  When in verbose mode and executable file name does not end
31055         with executable suffix, output the executable name, in canonical case.
31056
31057         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
31058         to avoid warnings when instantiating Ada.Task_Attributes.
31059         Minor reformating.
31060
31061         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
31062         in the correct order.
31063
31064         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
31065         redirect standard output and error to a file for the invocation of the
31066         compiler, then read the file.
31067
31068         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
31069         directory, instead of the Value.
31070         (Find_Source_Dirs): Remove useless code & comments.
31071
31072 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
31073
31074         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
31075         tagged type is inherited, and the parent operation is not frozen yet,
31076         force generation of a freeze node for the inherited operation, so the
31077         corresponding dispatch entry is properly initialized.
31078         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
31079         when looking for user-defined equality operation.
31080
31081         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
31082         boolean when locating primitive equality of tagged component.
31083
31084         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
31085         bit-aligned field and the right-hand side a string literal, introduce
31086         a temporary before expanding assignment into a loop.
31087
31088         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
31089         priority in full, to ensure that any expanded subepxressions of it are
31090         elaborated in the scope of the init_proc.
31091
31092         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
31093         after object declaration, skipping over code that may have been
31094         generated for validity checks.
31095
31096         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
31097         discriminants, ignore the known discriminants of its full view, if
31098         any, to check legality.
31099
31100         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
31101         component if type has unknown discriminants.
31102         (Analyze_Private_Extension_Declaration): Discriminant constraint is
31103         null if type has unknown discriminants.
31104
31105         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
31106         for end label when present.
31107
31108         * s-fileio.adb (Open): When called with a C_Stream, use given name for
31109         temporary file, rather than an empty string.
31110
31111 2004-03-15  Ed Falis  <falis@gnat.com>
31112
31113         * s-thread.adb: Removed, no longer used.
31114
31115 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31116
31117         * decl.c (target.h): Now include.
31118         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
31119         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
31120         (validate_size): For POINTER_TYPE, get smallest size permitted on
31121         machine.
31122
31123         * fe.h: Sort Einfo decls and add Set_Mechanism.
31124
31125         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
31126         (ada/decl.o): Depends on target.h.
31127
31128         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
31129         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
31130
31131 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
31132
31133         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
31134
31135         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
31136         Insert_Dereference_Action when rewriting an implicit dereference into
31137         an explicit one, this will be taken care of during expansion of the
31138         explicit dereference.
31139         (Expand_N_Slice): Same. Always do the rewriting, even for the case
31140         of non-packed slices, since the dereference action generated by
31141         expansion of the explicit dereference is needed in any case.
31142         (Expand_N_Selected_Component): When rewriting an implicit dereference,
31143         analyze and resolve the rewritten explicit dereference so it is seen
31144         by the expander.
31145         (Insert_Dereference_Action): This procedure is now called only for the
31146         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
31147         dereferences that do not come from source (including explicit
31148         dereferences resulting from rewriting implicit ones), but do not
31149         recursively insert a check for the dereference nodes contained within
31150         the check.
31151         (Insert_Dereference_Action): Clarify and correct comment.
31152
31153 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
31154
31155         PR ada/14131
31156         Move language detection to the top level.
31157         * config-lang.in: Build by default.
31158
31159 2004-03-05  Robert Dewar  <dewar@gnat.com>
31160
31161         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
31162
31163         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
31164         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
31165         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
31166         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
31167         unchecked conversion to spec to avoid warnings.
31168
31169         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
31170         to Task_ID
31171
31172         * 7stpopsp.adb: Correct casing in To_Task_ID call
31173
31174         * a-strsea.ads, a-strsea.adb: Minor reformatting
31175
31176         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
31177
31178         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
31179         Adjust Max_Msg_Length to be clearly large enough.
31180
31181         * fe.h: Define In_Same_Source_Unit
31182
31183         * osint.adb: Add pragma Warnings Off to suppress warnings
31184         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
31185         aliasing warnings.
31186
31187         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
31188
31189         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
31190
31191         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
31192
31193         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
31194
31195         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
31196
31197         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
31198         node. We now do generate them for gcc back end.
31199
31200         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
31201         warning.
31202
31203         * sinput-c.adb: Fix bad name in header.
31204         Add pragma Warnings Off to suppress aliasing warning.
31205
31206         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
31207
31208         * snames.h, snames.ads, snames.adb: Add entry for pragma
31209         No_Strict_Aliasing.
31210
31211 2004-03-05  Vincent Celier  <celier@gnat.com>
31212
31213         * prj-com.ads: Add hash table Files_Htable to check when a file name
31214         is already a source of another project.
31215
31216         * prj-nmsc.adb (Record_Source): Before recording a new source, check
31217         if its file name is not already a source of another project. Report an
31218         error if it is.
31219
31220         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
31221         source file name, call gnatpp with all the sources of the main project.
31222
31223         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
31224         of file names.
31225
31226         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
31227         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
31228         /RUNTIME_SYSTEM=, converted to --RTS=
31229         /NOTABS, converted to -notabs
31230
31231 2004-03-05  Pascal Obry  <obry@gnat.com>
31232
31233         * make.adb: Minor reformatting.
31234
31235 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
31236
31237         Part of implemention of AI-262.
31238         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
31239
31240         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
31241         procedure.
31242
31243         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
31244         when component type is a partially constrained class-wide subtype.
31245         (Constrain_Discriminated_Type): If parent type has unknown
31246         discriminants, a constraint is illegal, even if full view has
31247         discriminants.
31248         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
31249         with unknown discriminants whose full view is a discriminated record.
31250
31251         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
31252         flag, to handle properly derivations of tagged types with unknown
31253         discriminants.
31254         (Analyze_Package_Spec, Analyze_Package_Body): Install
31255         Private_With_Clauses before analyzing private part or body.
31256
31257         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
31258         Has_Discriminants can be true for a given type (documentation).
31259
31260 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
31261
31262         * s-restri.ads: Fix license (GPL->GMGPL).
31263
31264         * s-tassta.adb: Minor reformatting.
31265
31266         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31267         by calls to Exit_One_ATC_Level, since additional clean up is performed
31268         by this function.
31269
31270         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31271         by calls to Exit_One_ATC_Level, since additional clean up is performed
31272         by this function.
31273
31274 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31275
31276         * trans.c: Reflect GCC changes to fix bootstrap problem.
31277         Add warning for suspicious aliasing unchecked conversion.
31278
31279 2004-03-05  GNAT Script  <nobody@gnat.com>
31280
31281         * Make-lang.in: Makefile automatically updated
31282
31283 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
31284
31285         * ali.adb (Read_Instantiation_Instance): Do not modify the
31286         current_file_num when reading information about instantiations, since
31287         this corrupts files in later references.
31288
31289 2004-03-02  Vincent Celier  <celier@gnat.com>
31290
31291         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
31292         before checking if it is read-only.
31293
31294         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
31295         of SRC_DIRS and eliminate duplicates.
31296
31297         * gprcmd.adb: Replace command "path" with command "path_sep" to return
31298         the path separator.
31299         (Usage): Document path_sep
31300
31301         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
31302         C++ compiler. No need for a script.
31303         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
31304         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
31305         subst.
31306
31307         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
31308         where there are Ada sources.
31309         (Set_Ada_Paths): Only add to the include path the source dirs of project
31310         with Ada sources.
31311         (Add_To_Path): Add the Display_Values of the directories, not their
31312         Values.
31313
31314         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
31315         data.
31316
31317         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
31318         is not No_Name.
31319         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
31320         Value is canonicalized.
31321         (Language_Independent_Check): Do not copy Value to Display_Value when
31322         canonicalizing Value.
31323
31324         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
31325         path to find limited with cycles.
31326         (Parse_Single_Project): Use canonical cased path to find the end of a
31327         with cycle.
31328
31329 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
31330
31331         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
31332         and not a child unit.
31333
31334         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
31335         appear in a with_clause.
31336
31337         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
31338         only happen in type_annotate mode, do not try to elaborate it.
31339
31340         * exp_util.adb (Force_Evaluation): If expression is a selected
31341         component on the left of an assignment, use a renaming rather than a
31342         temporary to remove side effects.
31343
31344         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
31345         inlined instance body, which is analyzed before the end of the
31346         enclosing scope.
31347
31348 2004-03-02  Robert Dewar  <dewar@gnat.com>
31349
31350         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
31351         sem_ch4.adb: Use new feature for substitution of keywords in VMS
31352
31353         * errout.ads, errout.adb: Implement new circuit for substitution of
31354         keywords in VMS.
31355
31356         * sem_case.adb (Analyze_Choices): Place message properly when case is
31357         a subtype reference rather than an explicit range.
31358
31359         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
31360
31361 2004-03-02  Doug Rupp  <rupp@gnat.com>
31362
31363         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
31364
31365 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
31366
31367         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
31368
31369 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31370
31371         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
31372         BLKmode bitfield.
31373
31374 2004-02-25  Robert Dewar  <dewar@gnat.com>
31375
31376         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31377         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
31378         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
31379         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
31380         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
31381         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
31382         the defining instance of the type to avoid aliasing problems.
31383         Fix copyright header.  Fix bad comments in package header.
31384
31385         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
31386
31387 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
31388
31389         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
31390         rewritten as references when aliased through an address clause.
31391
31392         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
31393         whether call can be interpreted as an indirect call to the result of a
31394         parameterless function call returning an access subprogram.
31395
31396 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
31397
31398         Code clean up:
31399         * exp_ch7.adb (Make_Clean): Remove generation of calls to
31400         Unlock[_Entries], since this is now done by Service_Entries directly.
31401
31402         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
31403
31404         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
31405         Requeue_Call for better code readability. Change spec and update calls:
31406         PO_Service_Entries now unlock the PO on exit.
31407         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
31408         PO_Service_Entries.
31409
31410         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
31411
31412         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
31413
31414 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
31415
31416         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
31417         protected subprogram call and analyzing the result of such expanding
31418         in case when the called protected subprogram is eliminated.
31419
31420         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
31421         names.
31422
31423 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
31424
31425         * Makefile.in: Clean ups.
31426
31427 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
31428
31429         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
31430         protected operations if original subprogram is flagged as eliminated.
31431         (Expand_N_Subprogram_Body): For a protected operation, create
31432         discriminals for next operation before checking whether the operation
31433         is eliminated.
31434
31435         * exp_ch9.adb (Expand_N_Protected_Body,
31436         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
31437         for internal protected operations if the original subprogram is
31438         eliminated.
31439
31440         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
31441         declared in a single protected object.
31442
31443 2004-02-23  Vincent Celier  <celier@gnat.com>
31444
31445         * prj-attr.adb: Make attribute Builder'Executable an associative array,
31446         case insensitive if file names are case insensitive, instead of a
31447         standard associative array.
31448
31449         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
31450         them as case insensitive on platforms where the file names are case
31451         sensitive.
31452
31453         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
31454         project file has already been parsed that canonical path are compared.
31455
31456 2004-02-23  Robert Dewar  <dewar@gnat.com>
31457
31458         * sinput-c.ads: Correct bad unit title in header
31459
31460         * freeze.adb: Minor reformatting
31461
31462 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31463
31464         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
31465         nonaddressable COMPONENT_REF that is removing padding that we are
31466         taking the address of, take the address of the padded record instead
31467         if item is variable size.
31468
31469 2004-02-20  Robert Dewar  <dewar@gnat.com>
31470
31471         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
31472
31473 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
31474
31475         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
31476         itype references for the constrained designated type of a component
31477         whose base type is already frozen.
31478
31479 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
31480
31481         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
31482         avoid GCC warnings.
31483
31484 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
31485
31486         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
31487         identifier for a phantom package that rewrites the formal package
31488         declaration with a box. The Add semantic decorations for the defining
31489         identifier from the original node (that represents the formal package).
31490
31491 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
31492
31493         * Make-lang.in (ada/stamp-sdefault): Use the top level
31494         move-if-change.
31495
31496 2004-02-19  Richard Henderson  <rth@redhat.com>
31497
31498         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
31499
31500 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
31501
31502         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
31503         Scan_ALI can be used for multiple ALI files without reinitializing
31504         between calls.
31505
31506 2004-02-18  Robert Dewar  <dewar@gnat.com>
31507
31508         * debug.adb: Minor reformatting.
31509
31510 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31511
31512         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
31513         to zero if there is an address clause.
31514
31515 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
31516
31517         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
31518
31519 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
31520
31521         * layout.adb (Layout_Component_List): Revise generation of call to
31522         discriminant-checking function to pass selections of all of the type's
31523         discriminants rather than just the variant-controlling discriminant.
31524
31525 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
31526
31527         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
31528         fail in the current setup and triggers spurious system error messages.
31529         Pretend it occurred and failed instead.
31530
31531 2004-02-18  Vincent Celier  <celier@gnat.com>
31532
31533         * bld.adb: Mark FLDFLAGS as saved
31534         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
31535         it is not the root project.  Put each directory to be
31536         extended between double quotes to prevent it to be expanded on Windows.
31537         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
31538         the project file. Set them back to their initial values if they have not
31539         been set in the project file.
31540
31541         * gprcmd.adb: (Gprdebug, Debug): New global variables
31542         (Display_Command): New procedure
31543         (Usage): Document new command "linkopts"
31544         Call Display_Command when env var GPRDEBUG has the value "TRUE"
31545         Implement new command "linkopts"
31546         Remove quotes that may be around arguments for "extend"
31547         Always call Normalize_Pathname with arguments formatted for the platform
31548
31549         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
31550         Change @echo to @$(display) in target clean to be able to clean silently
31551
31552         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
31553
31554         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
31555         canonical case.
31556
31557         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
31558         = Extending_All when current project is an extending all project.
31559
31560         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
31561         set to True only for LINK command, after Unix switch -o.
31562         (Process_Arguments): Set Output_File_Expected to True for LINK command
31563         after Unix switch -o. When Output_File_Expected is True, never add an
31564         extension to a file name.
31565
31566         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
31567         option file name, only to the --for-linker= switch.
31568         (Option_File_Name): If option file name do not end with ".opt", append
31569         "/OPTIONS".
31570
31571 2004-02-18  GNAT Script  <nobody@gnat.com>
31572
31573         * Make-lang.in: Makefile automatically updated
31574
31575 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
31576
31577         * Make-lang.in (stamp-sdefault): Do not depend on
31578         move-if-change.
31579
31580 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
31581
31582         * config-lang.in: Disable Ada by default until probe logic for
31583         a bootstrap Ada compiler can be moved to the top level configure
31584         script.
31585
31586 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
31587
31588         * decl.c (components_to_record): Don't claim that the internal fields
31589         we make to hold the variant parts are semantically addressable, because
31590         they are not.
31591
31592         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
31593         adjust the comment describing the modular type form when we can use it.
31594         (Install_PAT): Account for the Esiz renaming.
31595
31596         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
31597         sc_onstack context indication before raising the exception to which
31598         the signal is mapped. Allows better handling of later signals possibly
31599         triggered by the resumed user code if the exception is handled.
31600
31601 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
31602
31603         * 5zinit.adb: Removed, no longer used.
31604
31605 2004-02-12  Robert Dewar  <dewar@gnat.com>
31606
31607         * ali.adb: Remove separating space between parameters on R line. Makes
31608         format consistent with format used by the binder for Set_Globals call.
31609
31610         * atree.ads, atree.adb: Minor reformatting (new function header format)
31611
31612         * bindgen.adb: Add Run-Time Globals documentation section containing
31613         detailed documentation of the globals passed from the binder file to
31614         the run time.
31615
31616         * gnatls.adb: Minor reformatting
31617
31618         * init.c (__gnat_set_globals): Add note pointing to documentation in
31619         bindgen.
31620
31621         * lib-writ.ads, lib-writ.adb: Remove separating space between
31622         parameters on R line.
31623         Makes format consistent with format used by the binder for Set_Globals
31624         call.
31625
31626         * osint.ads: Add 2004 to copyright notice
31627         Minor reformatting
31628
31629         * snames.ads: Correct capitalization of FIFO_Within_Priorities
31630         Noticed during code reading, documentation issue only
31631
31632         * usage.adb: Remove junk line for obsolete C switch
31633         Noticed during code reading
31634
31635 2004-02-12  Vincent Celier  <celier@gnat.com>
31636
31637         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
31638         extend for each directory, so that multiple /** directories are
31639         extended individually.
31640         (Recursive_Process): Set the default for LANGUAGES to ada
31641
31642         * gprcmd.adb: Define new command "ignore", to do nothing.
31643         Implement new comment "path".
31644
31645         * Makefile.generic: Suppress output when SILENT is set
31646         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
31647         used, so that the correct compiler is invoked.
31648         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
31649         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
31650
31651 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
31652
31653         * Makefile.in: Clean ups and remove obsolete targets.
31654
31655 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
31656
31657         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
31658         predicate declared in exp_util.
31659
31660         * exp_util.adb: Add comments.
31661
31662         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
31663         visibility before compiling context of the subunit.
31664
31665         * sem_res.adb (Check_Parameterless_Call): If the context expects a
31666         value but the name is a procedure, do not attempt to analyze as a call,
31667         in order to obtain more telling diagnostics.
31668
31669         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
31670         'Access on parameterless function calls.
31671         (Normalize_Actuals): For a parameterless function call with missing
31672         actuals, defer diagnostic until resolution of enclosing call.
31673
31674         * sem_util.adb (Wrong_Type): If the context type is an access to
31675         subprogram and the expression is a procedure name, suggest a missing
31676         'attribute.
31677
31678 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
31679             Nathanael Nerode  <neroden@gcc.gnu.org>
31680
31681         PR ada/6637
31682         PR ada/5911
31683         Merge with libada-branch:
31684         * config-lang.in: Build libada only when ada is built.
31685
31686 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
31687
31688         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
31689         for a tagged type, verify that both formals have the same type.
31690
31691         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
31692         temporary when the formal is an in-parameter and the actual a possibly
31693         unaligned slice.
31694
31695         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
31696         when expansion is disabled, to ensure proper name capture with
31697         overloaded literals.  Condition can be of any boolean type, resolve
31698         accordingly.
31699
31700         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
31701         renaming is for a formal subprogram with a default operator name, and
31702         there is a usable operator that is visible at the point of
31703         instantiation.
31704
31705 2004-02-09  Robert Dewar  <dewar@gnat.com>
31706
31707         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
31708         rewrite to ignore errors in ali files, intended to allow tools downward
31709         compatibility with new versions of ali files.
31710
31711         * ali.ads: Add new parameter Ignore_Errors
31712
31713         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
31714         duplicating the error message giving the file with restrictions.
31715
31716         * debug.adb: Add debug flag I for gnatbind
31717
31718         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
31719         operators for the case where the operator is a defining operator.
31720
31721         * exp_ch3.adb: Minor reformatting (new function spec format).
31722
31723         * exp_ch4.adb: Add comment for previous change, and make minor
31724         adjustment to loop to always check for improper loop termination.
31725         Minor reformatting throughout (new function spec format).
31726
31727         * gnatbind.adb: Implement -di debug flag for gnatbind
31728
31729         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
31730
31731         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
31732
31733         * lib-load.adb: Fix bad assertion.
31734         Found by testing and code reading.
31735         Minor reformatting.
31736
31737         * lib-load.ads: Minor reformatting.
31738
31739         * lib-writ.adb: There is only one R line now.
31740
31741         * lib-writ.ads: Add documentation on making downward compatible changes
31742         to ali files so old tools work with new ali files.
31743         There is only one R line now.
31744         Add documentation on format incompatibilities (with special GPS note)
31745
31746         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
31747
31748         * par-load.adb: Minor reformatting
31749
31750         * sem_ch8.adb: Fix to error message from last update
31751         Minor reformatting and restructuring of code from last update
31752
31753         * par-prag.adb, snames.adb, snames.ads, snames.h,
31754         sem_prag.adb: Implement pragma Profile.
31755
31756         * stylesw.adb: Implement -gnatyN switch to turn off all style check
31757         options.
31758
31759         * usage.adb: Add line for -gnatyN switch
31760
31761         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
31762
31763 2004-02-09  Albert Lee  <lee@gnat.com>
31764
31765         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
31766
31767 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
31768
31769         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
31770         slices.
31771
31772         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
31773         is nested in an instance that is not frozen yet, to avoid
31774         order-of-elaboration problems in gigi.
31775
31776         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
31777         body the attribute is legal.
31778
31779 2004-02-09  Robert Dewar  <dewar@gnat.com>
31780
31781         * s-rident.ads: Minor comment correction
31782
31783         * targparm.adb: Remove dependence on uintp completely. There was
31784         always a bug in Make in that it called Targparm before initializing
31785         the Uint package. The old code appeared to get away with this, but
31786         the new code did not! This caused an assertion error in gnatmake.
31787
31788         * targparm.ads: Fix bad comment, restriction pragmas with parameters
31789         are indeed fully supported.
31790
31791 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
31792
31793         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
31794
31795 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
31796
31797         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
31798         with targetm.calls.promote_prototypes.
31799
31800 2004-02-04  Robert Dewar  <dewar@gnat.com>
31801
31802         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
31803         ali.ads, gprcmd.adb: Minor reformatting
31804
31805         * bindgen.adb: Output restrictions string for new style restrictions
31806         handling
31807
31808         * impunit.adb: Add s-rident.ads (System.Rident) and
31809         s-restri (System.Restrictions)
31810
31811         * lib-writ.adb: Fix bug in writing restrictions string (last few
31812         entries wrong)
31813
31814         * s-restri.ads, s-restri.adb: Change name Restrictions to
31815         Run_Time_Restrictions to avoid conflict with package name.
31816         Add circuit to read and acquire run time restrictions.
31817
31818 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
31819
31820         * restrict.ads, restrict.adb: Use the new restriction
31821         No_Task_Attributes_Package instead of the old No_Task_Attributes.
31822
31823         * sem_prag.adb: No_Task_Attributes is a synonym of
31824         No_Task_Attributes_Package.
31825
31826         * snames.ads, snames.adb: New entry for proper handling of
31827         No_Task_Attributes.
31828
31829         * s-rident.ads: Adding restriction No_Task_Attributes_Package
31830         (AI-00249) that supersedes the GNAT specific restriction
31831         No_Task_Attributes.
31832
31833 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
31834
31835         * sem_prag.adb:
31836         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
31837          body, an identifier may be wrapped in an unchecked conversion.
31838
31839 2004-02-04  Vincent Celier  <celier@gnat.com>
31840
31841         * lib-writ.ads: Comment update for the W lines
31842
31843         * bld.adb: (Expression): An empty string list is static
31844
31845         * fname-uf.adb: Minor comment update
31846
31847         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
31848
31849         * gnatbind.adb: Initialize Cumulative_Restrictions with the
31850         restrictions on the target.
31851
31852 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
31853
31854         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
31855         gen_rtx.
31856
31857 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
31858
31859         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
31860
31861 2004-02-02  Vincent Celier  <celier@gnat.com>
31862
31863         * gprcmd.adb (Check_Args): If condition is false, print the invoked
31864         comment before the usage.
31865         Gprcmd: Fail when command is not recognized.
31866         (Usage): Document command "prefix"
31867
31868         * g-md5.adb (Digest): Process last block.
31869         (Update): Do not process last block. Store remaining characters and
31870         length in Context.
31871
31872         * g-md5.ads (Update): Document that several call to update are
31873         equivalent to one call with the concatenated string.
31874         (Context): Add fields to allow new Update behaviour.
31875
31876         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
31877         defaulted to False.
31878         When May_Fail is True and no existing file can be found, return No_File.
31879
31880         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
31881         functions.
31882
31883         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
31884         spec file name instead on the W line.
31885
31886 2004-02-02  Robert Dewar  <dewar@gnat.com>
31887
31888         * ali.adb: Read and acquire info from new format restrictions lines
31889
31890         * bcheck.adb: Add circuits for checking restrictions with parameters
31891
31892         * bindgen.adb: Output dummy restrictions data
31893         To be changed later
31894
31895         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
31896         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
31897         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
31898         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
31899         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
31900
31901         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
31902         the warning message on access to possibly uninitialized variable S)
31903         Minor changes for new restrictions handling.
31904
31905         * gnatbind.adb: Minor reformatting
31906         Minor changes for new restrictions handling
31907         Move circuit for -r processing here from bcheck (cleaner)
31908
31909         * gnatcmd.adb, gnatlink.adb: Minor reformatting
31910
31911         * lib-writ.adb: Output new format restrictions lines
31912
31913         * lib-writ.ads: Document new R format lines for new restrictions
31914         handling.
31915
31916         * s-restri.ads/adb: New files
31917
31918         * Makefile.rtl: Add entry for s-restri.ads/adb
31919
31920         * par-ch3.adb: Fix bad error messages starting with upper case letter
31921         Minor reformatting
31922
31923         * restrict.adb: Major rewrite throughout for new restrictions handling
31924         Major point is to handle restrictions with parameters
31925
31926         * restrict.ads: Major changes in interface to handle restrictions with
31927         parameters. Also generally simplifies setting of restrictions.
31928
31929         * snames.ads/adb: New entry for proper handling of No_Requeue
31930
31931         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
31932         restriction counting.
31933         Other minor changes for new restrictions handling
31934
31935         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
31936         Restriction_Warnings now allows full parameter notation
31937         Major rewrite of Restrictions for new restrictions handling
31938
31939 2004-02-02  Javier Miranda  <miranda@gnat.com>
31940
31941         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
31942         syntax rule for object renaming declarations.
31943         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
31944         component definitions.
31945
31946         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
31947         components.
31948         (Array_Type_Declaration): Give support to access components. In addition
31949         it was also modified to reflect the name of the object in anonymous
31950         array types. The old code did not take into account that it is possible
31951         to have an unconstrained anonymous array with an initial value.
31952         (Check_Or_Process_Discriminants): Allow access discriminant in
31953         non-limited types.
31954         (Process_Discriminants): Allow access discriminant in non-limited types
31955         Initialize the new Access_Definition field in N_Object_Renaming_Decl
31956         node.  Change Ada0Y to Ada 0Y in comments
31957
31958         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
31959         equality operators.
31960         Change Ada0Y to Ada 0Y in comments
31961
31962         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
31963         renamings Change Ada0Y to Ada 0Y in comments
31964
31965         * sem_type.adb (Find_Unique_Type): Give support to the equality
31966         operators for universal access types
31967         Change Ada0Y to Ada 0Y in comments
31968
31969         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
31970
31971         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
31972         field.
31973         (N_Object_Renaming_Declaration): Addition of Access_Definition field
31974         Change Ada0Y to Ada 0Y in comments
31975
31976         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
31977         component definition and object renaming nodes
31978         Change Ada0Y to Ada 0Y in comments
31979
31980 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
31981
31982         * restrict.adb: Use the new restriction identifier
31983         No_Requeue_Statements instead of the old No_Requeue for defining the
31984         restricted profile.
31985
31986         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
31987         No_Requeue_Statements.
31988
31989         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
31990         that supersedes the GNAT specific restriction No_Requeue. The later is
31991         kept for backward compatibility.
31992
31993 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
31994
31995         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
31996         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
31997         pragma and fix incorrect ones.
31998
31999         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
32000         warning if the pragma is redundant.
32001
32002 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
32003
32004         * 5staprop.adb: Add missing 'constant' keywords.
32005
32006         * Makefile.in: use consistent value for SYMLIB on
32007         platforms where libaddr2line is supported.
32008
32009 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32010
32011         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
32012         annotating types.
32013
32014 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
32015
32016         * init.c (__gnat_install_handler): Setup an alternate stack for signal
32017         handlers in the environment thread. This allows proper propagation of
32018         an exception on stack overflows in this thread even when the builtin
32019         ABI stack-checking scheme is used without support for a stack reserve
32020         region.
32021
32022         * utils.c (create_field_decl): Augment the head comment about bitfield
32023         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
32024         here, because the former is not accurate enough at this point.
32025         Let finish_record_type decide instead.
32026         Don't make a bitfield if the field is to be addressable.
32027         Always set a size for the field if the record is packed, to ensure the
32028         checks for bitfield creation are triggered.
32029         (finish_record_type): During last pass over the fields, clear
32030         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
32031         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
32032         from DECL_BIT_FIELD.
32033
32034 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
32035
32036         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
32037         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
32038         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
32039
32040 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32041
32042         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
32043
32044         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
32045         (ZCX_By_Default): Likewise.
32046         (Front_End_ZCX_Support): Likewise.
32047
32048         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
32049         (Initialize_Lock): Mark Level unreferenced.
32050         (Sleep): Mark Reason unreferenced.
32051         (Timed_Sleep): Likewise.
32052         (Wakeup): Likewise.
32053         (Exit_Task): Use Result.
32054         (Check_No_Locks): Mark Self_ID unreferenced.
32055
32056         * 5gtasinf.adb (New_Sproc): Make Attr constant.
32057         (Bound_Thread_Attributes): Make Sproc constant.
32058         (New_Bound_Thread_Attributes): Likewise.
32059
32060 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
32061
32062         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
32063         one-dimensional array an slice assignments, when component type is
32064         controlled.
32065
32066         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
32067         component type is controlled, and control_actions are in effect, use
32068         TSS procedure rather than generating inline code.
32069
32070         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
32071         arrays with controlled components.
32072
32073 2004-01-26  Vincent Celier  <celier@gnat.com>
32074
32075         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
32076         command line for the non VMS case.
32077
32078         * gnatlink.adb (Process_Binder_File): When building object file, if
32079         GNU linker is used, put all object paths between quotes, to prevent ld
32080         error when there are unusual characters (such as '!') in the paths.
32081
32082         * Makefile.generic: When there are sources in Ada and the main is in
32083         C/C++, invoke gnatmake with -B, instead of -z.
32084
32085         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
32086         from VMS_Conversion.
32087         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
32088         specification of argument file on the command line.
32089
32090 2004-01-26  Bernard Banner  <banner@gnat.com>
32091
32092         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
32093
32094 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
32095
32096         * snames.adb: Update copyright notice.
32097         Add info on slice assignment for controlled arrays.
32098
32099 2004-01-23  Robert Dewar  <dewar@gnat.com>
32100
32101         * exp_aggr.adb: Minor reformatting
32102
32103         * exp_ch9.adb: Minor code clean up
32104         Minor reformatting
32105         Fix bad character in comment
32106
32107         PR ada/13471
32108         * targparm.adb (Get_Target_Parameters): Give clean abort error on
32109         unexpected end of file, along with more detailed message.
32110
32111 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32112
32113         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
32114         PAT.
32115
32116         * decl.c (copy_alias_set): New function.
32117         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
32118
32119 2004-01-23  Doug Rupp  <rupp@gnat.com>
32120
32121         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
32122         lib$${file} in case subsequent character is not a separator.
32123
32124 2004-01-23  Vincent Celier  <celier@gnat.com>
32125
32126         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
32127         when the GCC version is at least 3.
32128
32129         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
32130         Remove all "Opt.", to prepare for opt split
32131
32132         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
32133         Extends_All. Set to True when the project parsed is an extending all
32134         project. Fails for importing an extending all project only when the
32135         imported project is an extending all project.
32136         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
32137         depending on the value of Extends_All returned.
32138
32139         * prj-proc.adb (Process): Check that no project shares its object
32140         directory with a project that extends it, directly or indirectly,
32141         including a virtual project.
32142         Check that no project extended by another project shares its object
32143         directory with another also extended project.
32144
32145         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
32146         Kind = N_With_Clause
32147
32148         * prj-tree.ads: Minor reformatting
32149         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
32150
32151 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
32152
32153         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
32154         applies to a type with an incomplete view, use full view in Name of
32155         clause, for consistency with uses of Get_Attribute_Definition_Clause.
32156
32157 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
32158
32159         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
32160         SCHED_RR, since other values are not supported by this policy.
32161         (Initialize): Move initialization of mutex attribute to package
32162         elaboration, to prevent early access to this variable.
32163
32164         * Makefile.in: Remove mention of Makefile.adalib, unused.
32165
32166         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32167         1ssecsta.ads: Removed, unused.
32168
32169 2004-01-21  Javier Miranda  <miranda@gnat.com>
32170
32171         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
32172         entity if already built in the current scope.
32173
32174         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
32175         reminder in internal scopes. Required for nested limited aggregates.
32176
32177 2004-01-21  Doug Rupp  <rupp@gnat.com>
32178
32179         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
32180         VMS. Replace all occurences of libgnat- and libgnarl- with
32181         libgnat$(hyphen) and libgnarl$(hyphen).
32182         Fixed shared library build problem on VMS.
32183
32184 2004-01-21  Robert Dewar  <dewar@gnat.com>
32185
32186         * mlib-prj.adb: Minor reformatting
32187
32188 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
32189
32190         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
32191         'constant' keywords for declaration of pointers that are not modified.
32192
32193         * exp_pakd.adb: Fix English in comment.
32194
32195 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
32196
32197         PR ada/10889
32198         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
32199         copy all attributes of the parent, including the foreign language
32200         convention.
32201
32202 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
32203
32204         PR ada/10565
32205         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
32206         for 'delay until' statement.
32207
32208 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
32209
32210         * Make-lang.in: Replace $(docdir) with doc.
32211         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
32212         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
32213         to use consistent MAKEINFO rule.
32214         (ada.man, ada.srcman): Dummy entry.
32215         (ADA_INFOFILES): Define.
32216         (ada.info, ada.srcinfo): New rules.
32217
32218 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
32219
32220         * utils.c: Update copyright notice, missed in previous change.
32221
32222 2004-01-19  Vincent Celier  <celier@gnat.com>
32223
32224         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
32225         args if Bind is True. Set First_ALI, if not already done.
32226         (Build_Library): For Stand Alone Libraries, extract from one ALI file
32227         an eventual --RTS switch, for gnatbind, and all backend switches +
32228         --RTS, for linking.
32229
32230 2004-01-19  Robert Dewar  <dewar@gnat.com>
32231
32232         * sem_attr.adb, memtrack.adb: Minor reformatting
32233
32234 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
32235
32236         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
32237         that rename enumeration literals. This is properly done in sem_eval.
32238
32239         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
32240         to functions that rename enumeration literals.
32241
32242         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
32243         functions that rename enumeration literals.
32244
32245 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
32246
32247         * Make-lang.in (utils.o): Depend on target.h.
32248         * utils.c: Include target.h.
32249         (process_attributes): Use targetm.have_named_sections instead
32250         of ASM_OUTPUT_SECTION_NAME.
32251
32252 2004-01-16  Andreas Jaeger  <aj@suse.de>
32253
32254         * Makefile.in: Add $(DESTDIR).
32255
32256 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
32257
32258         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
32259         also when not defining if a Size clause applies. That information is
32260         not to be ignored.
32261
32262 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
32263
32264         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
32265         symbolic links for the shared gnat run time when needed.
32266
32267 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
32268
32269         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
32270         for writing, and terminate with an error message if not.
32271
32272 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
32273
32274         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
32275         warning on an access to subprogram in an instance, when the target
32276         type is declared in the same generic unit.
32277         (Eval_Attribute): If 'access is known to fail accessibility check,
32278         rewrite as a raise statement.
32279
32280 2004-01-15  GNAT Script  <nobody@gnat.com>
32281
32282         * Make-lang.in: Makefile automatically updated
32283
32284 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
32285
32286         * Make-lang.in (ada.srcextra): Dummy entry.
32287
32288 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
32289
32290         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
32291
32292 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
32293
32294         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
32295         components that are initialized with aggregates.
32296
32297 2004-01-13  Vincent Celier  <celier@gnat.com>
32298
32299         * gnatlink.adb (Process_Binder_File): To find directory of shared
32300         libgcc, if "gcc-lib" is not a subdirectory, look for the last
32301         subdirectory "lib" in the path of the shared libgnat or libgnarl.
32302
32303         * make.adb (Gnatmake): If GCC version is at least 3, link with
32304         -shared-libgcc, when there is at least one shared library project.
32305
32306         * opt.ads (GCC_Version): New integer constant.
32307
32308         * adaint.c (get_gcc_version): New function.
32309
32310 2004-01-13  Robert Dewar  <dewar@gnat.com>
32311
32312         * sem_dist.adb, sem_res.adb, sem_util.adb,
32313         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
32314         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
32315
32316 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
32317
32318         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
32319         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
32320         declarations.
32321
32322 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
32323
32324         * misc.c: Remove trailing spaces.
32325         Update copyright notice missed in previous change.
32326
32327         PR ada/13572
32328         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
32329         prefix/share/make
32330
32331         * Makefile.generic: Update copyright.
32332         Add license notice.
32333
32334         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
32335         of prefix/share/make.
32336
32337         * Makefile.prolog: Update copyright.
32338         Add license notice.
32339
32340 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
32341
32342         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
32343         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
32344         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
32345         instead of String.
32346
32347         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
32348         signature.
32349
32350 2004-01-12  Javier Miranda  <miranda@gnat.com>
32351
32352         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
32353         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
32354         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
32355         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
32356         Component_Definition node.
32357
32358 2004-01-12  Ed Falis  <falis@gnat.com>
32359
32360         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
32361
32362 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
32363
32364         * link.c: Change default libgnat kind to STATIC for FreeBSD.
32365
32366 2004-01-12  Bernard Banner  <banner@gnat.com>
32367
32368         * Makefile.in: map 86numaux to a-numaux for x86_64
32369
32370 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
32371
32372         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
32373         generated to rename a generic actual, go to the actual itself, the
32374         subtype is not a user-visible entity.
32375
32376         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
32377         part is a private subtype, reset the visibility of its full view, if
32378         any, to be consistent.
32379
32380         PR ada/13417
32381         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
32382         to use a generic package G as a formal package for another generic
32383         declared within G.
32384
32385 2004-01-12  Robert Dewar  <dewar@gnat.com>
32386
32387         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
32388
32389         * usage.adb: Remove mention of obsolete -gnatwb switch
32390         Noticed during code reading
32391
32392 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
32393
32394         * 1ssecsta.adb: Minor changes for -gnatwa warnings
32395
32396 2004-01-12  GNAT Script  <nobody@gnat.com>
32397
32398         * Make-lang.in: Makefile automatically updated
32399
32400 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
32401
32402         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
32403
32404 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32405
32406         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
32407
32408 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
32409
32410         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
32411         Update comment and copyright date.
32412         * stamp-xgnatug: Delete.
32413
32414 2004-01-05  Robert Dewar  <dewar@gnat.com>
32415
32416         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
32417         be modified by the binder generated main program if the -D switch is
32418         used.
32419
32420         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
32421         imported functions (since now we expect this to be done for imported
32422         functions)
32423
32424         * 5vtaprop.adb: Add several ??? for sections requiring more comments
32425         Minor reformatting throughout
32426
32427         * 5zinit.adb: Minor reformatting
32428         Add 2004 to copyright date
32429         Minor changes to avoid -gnatwa warnings
32430         Correct some instances of using OR instead of OR ELSE (noted while
32431         doing reformatting)
32432
32433         * sprint.adb: Minor updates to avoid -gnatwa warnings
32434
32435         * s-secsta.ads, s-secsta.adb:
32436         (SS_Get_Max): New function to obtain high water mark for ss stack
32437         Default_Secondary_Stack is not a constant since it may be modified by
32438         the binder generated main program if the -D switch is used.
32439
32440         * switch-b.adb: New -Dnnn switch for binder
32441
32442         * switch-c.adb:
32443         Make -gnatg imply all warnings currently in -gnatwa
32444
32445         * vms_conv.adb: Minor reformatting
32446         Add 2004 to copyright notice
32447         Add 2004 to printed copyright notice
32448
32449         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
32450         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
32451         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
32452         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
32453         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
32454         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
32455         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
32456         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
32457         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
32458         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
32459         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
32460         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
32461         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
32462         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
32463         checks.adb, clean.adb, cstand.adb, einfo.ads,
32464         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
32465         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
32466         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
32467         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
32468         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
32469         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
32470         Minor reformatting and code clean ups.
32471         Minor changes to prevent -gnatwa warnings
32472
32473         * ali.adb: Minor reformatting and cleanup of code
32474         Acquire new SS indication of secondary stack use from ali files
32475
32476         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
32477         (since now we expect this to be done for imported functions)
32478
32479         * bindgen.adb: Generate call to modify default secondary stack size if
32480         -Dnnn switch given
32481
32482         * bindusg.adb: Add line for new -D switch
32483
32484         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
32485         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
32486         Add circuitry for both records and arrays to avoid gigi
32487         processing if the type involved has non-bit-aligned components
32488
32489         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
32490         N_String_Literal node always references an E_String_Literal_Subtype
32491         entity. This may not be true in the future.
32492         (Possible_Bit_Aligned_Component): Move processing of
32493         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
32494
32495         * exp_ch6.adb (Expand_Thread_Body): Pick up
32496         Default_Secondary_Stack_Size as variable so that we get value modified
32497         by possible -Dnnn binder parameter.
32498
32499         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
32500         (Type_May_Have_Bit_Aligned_Components): New function.
32501
32502         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
32503         (Type_May_Have_Bit_Aligned_Components): New function.
32504
32505         * fe.h: (Set_Identifier_Casing): Fix prototype.
32506         Add declaration for Sem_Elim.Eliminate_Error_Msg.
32507         Minor reformatting.
32508
32509         * freeze.adb (Freeze_Entity): Add RM reference to error message about
32510         importing constant atomic/volatile objects.
32511         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
32512         unless explicit Pure_Function pragma given, to avoid insidious bug of
32513         call to non-pure imported function getting eliminated.
32514
32515         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
32516         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
32517         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
32518         Add 2004 to printed copyright notice
32519
32520         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
32521         stack used.
32522
32523         * Makefile.rtl: Add entry for g-sestin.o
32524         g-sestin.ads: New file.
32525
32526         * mdll.adb: Minor changes to avoid -gnatwa warnings
32527
32528         * mlib-tgt.adb: Minor reformatting
32529
32530         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
32531         New switch Sec_Stack_Used (GNAT, GNATBIND)
32532         Make Default_Secondary_Stack_Size a variable instead of a constant,
32533         so that it can be modified by the new -Dnnn bind switch.
32534
32535         * rtsfind.adb (Load_Fail): Give full error message in configurable
32536         run-time mode if all_errors mode is set. This was not done in the case
32537         of a file not found, which was an oversight.
32538         Note if secondary stack unit is used by compiler.
32539
32540         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
32541         ineffective elaborate all pragmas on non-visible packages (this
32542         happened when a renamed subprogram was called). Now the elaborate all
32543         always goes on the package containing the renaming rather than the one
32544         containing the renamed subprogram.
32545
32546         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
32547         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
32548
32549         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
32550         has an Etype that references an E_String_Literal.
32551         (Eval_String_Literal): Avoid assumption that N_String_Literal node
32552         always references an E_String_Literal_Subtype entity. This may not
32553         be true in the future.
32554
32555         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
32556         pragma location.
32557
32558         * sem_res.adb (Resolve): Specialize msg for function name used in proc
32559         call.
32560
32561 2004-01-05  Ed Falis  <falis@gnat.com>
32562
32563         * g-debuti.adb: Replaced direct boolean operator with short-circuit
32564         form.
32565
32566 2004-01-05  Vincent Celier  <celier@gnat.com>
32567
32568         * bld.adb: Minor comment updates
32569         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
32570         of Item_Name).
32571
32572         * make.adb (Gnatmake): Special process for files to compile/check when
32573         -B is specified. Fail when there are only foreign mains in attribute
32574         Main of the project file and -B is not specified. Do not skip bind/link
32575         steps when -B is specified.
32576
32577         * makeusg.adb: Document new switch -B
32578
32579         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
32580
32581         * switch-m.adb: (Scan_Make_Switches): Process -B switch
32582
32583         * vms_data.ads: Add new GNAT PRETTY qualifier
32584         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
32585
32586 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32587
32588         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
32589         case.
32590
32591         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
32592         Set_Identifier_Casing.
32593
32594         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
32595         has size that overflows.
32596
32597 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
32598
32599         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
32600         -gnatwa warning on static condition.
32601
32602 2004-01-05  Doug Rupp  <rupp@gnat.com>
32603
32604         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
32605
32606 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
32607
32608         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
32609         all attributes, including read-only attribute.
32610
32611 2004-01-05  Pascal Obry  <obry@gnat.com>
32612
32613         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
32614         library naming scheme.
32615
32616         * mlib-prj.adb (Build_Library): Generate different names for the static
32617         or dynamic version of the GNAT runtime. This is needed to support the
32618         new shared library naming scheme.
32619         (Process_Binder_File): Add detection of shared library in binder file
32620         based on the new naming scheme.
32621
32622         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
32623         scheme for the shared runtime libraries.
32624
32625         * Makefile.in:
32626         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
32627         scheme.
32628         (install-gnatlib): Do not create symlinks for shared libraries.
32629         (gnatlib-shared-default): Idem.
32630         (gnatlib-shared-dual-win32): New target. Not used for now as the
32631         auto-import feature does not support arrays/records.
32632         (gnatlib-shared-win32): Do not create copy for the shared libraries.
32633         (gnatlib-shared-vms): Fix shared runtime libraries names.
32634
32635         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
32636         dependent runtime shared library name.
32637
32638 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
32639
32640         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
32641         than the object.
32642
32643 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
32644
32645         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
32646         protected objects when allocator has a subtype indication, not a
32647         qualified expression. Note that qualified expressions may have to be
32648         checked when limited aggregates are implemented.
32649
32650         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
32651         pure, emit warning.
32652         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
32653         subprogram is imported, remove warning.
32654
32655 2004-01-05  Geert Bosch  <bosch@gnat.com>
32656
32657         * s-poosiz.adb: Update copyright notice.
32658         (Allocate): Use Task_Lock to protect against concurrent access.
32659         (Deallocate): Likewise.
32660
32661 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
32662
32663         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
32664         comment.
32665
32666 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
32667
32668         * gnat_ug.texi: Force a CVS commit by updating copyright.
32669         * gnat_ug_vxw.texi: Regenerate.
32670         * gnat_ug_wnt.texi: Regenerate.
32671         * gnat_ug_vms.texi: Regenerate.
32672         * gnat_ug_unx.texi: Regenerate.
32673
32674 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
32675
32676         * trans.c: Remove uses of "register" specifier in
32677         declarations of local variables.
32678
32679 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
32680
32681         * stamp-xgnatug: New stamp file.
32682         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
32683         (ada/doctools/xgnatug): Add $(build_exeext).
32684         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
32685         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
32686
32687 2003-12-17  Ed Falis  <falis@gnat.com>
32688
32689         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
32690         eliminate warning.
32691
32692         * a-exextr.adb: Add context clause for
32693         Ada.Exceptions.Last_Chance_Handler.
32694
32695 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
32696
32697         * cstand.adb (Create_Standard): Change the way how the declaration of
32698         the Duration type is created (making it the same way as it is for all
32699         the other standard types).
32700
32701 2003-12-17  Robert Dewar  <dewar@gnat.com>
32702
32703         * s-crtl.ads: Fix header format
32704         Change Pure to Preelaborate
32705
32706 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
32707
32708         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
32709         the expression type only if it is declared in the current unit.
32710
32711         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
32712         are universal and already analyzed, as can occur in constrained
32713         subcomponents that depend on discriminants, when one constraint is a
32714         subtype mark.
32715
32716         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
32717         type Any_Fixed is legal as the argument of a conversion, if only one
32718         fixed-point type is in context.
32719
32720 2003-12-17  GNAT Script  <nobody@gnat.com>
32721
32722         * Make-lang.in: Makefile automatically updated
32723
32724 2003-12-15  Robert Dewar  <dewar@gnat.com>
32725
32726         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
32727         sec stack size.
32728
32729 2003-12-15  Vincent Celier  <celier@gnat.com>
32730
32731         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
32732         (Gnatchop): Do not set failure status when reporting the number of
32733         warnings.
32734
32735 2003-12-15  Doug Rupp  <rupp@gnat.com>
32736
32737         * s-ctrl.ads: New file.
32738
32739         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
32740
32741         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
32742         (GNATBIND_OBJS): Add ada/s-crtl.o.
32743
32744         * Makefile.in [VMS]: Clean up ifeq rules.
32745
32746         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
32747         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
32748         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
32749         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
32750         s-tasdeb.adb: Update copyright.
32751         Import System.CRTL.
32752         Make minor modifications to use System.CRTL declared functions instead
32753         of importing locally.
32754
32755 2003-12-15  GNAT Script  <nobody@gnat.com>
32756
32757         * Make-lang.in: Makefile automatically updated
32758
32759 2003-12-11  Ed Falis  <falis@gnat.com>
32760
32761         * 5zinit.adb: Clean up.
32762
32763         * 5zintman.adb (Notify_Exception): replaced case statement with a call
32764         to __gnat_map_signal, imported from init.c to support
32765         signal -> exception mappings that depend on the vxWorks version.
32766
32767         * init.c:
32768         Created and exported __gnat_map_signal to support signal -> exception
32769         mapping that is dependent on the VxWorks version.
32770         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
32771
32772 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
32773
32774         * 5wosinte.ads: Link with -mthreads switch.
32775
32776 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
32777
32778         * init.c (__gnat_install_handler [NetBSD]): Set
32779         __gnat_handler_installed, as done on all other platforms.
32780         Remove duplicated code.
32781
32782 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
32783
32784         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
32785
32786 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
32787
32788         * sinfo.ads: Fix inconsistent example code in comment.
32789
32790 2003-12-11  Robert Dewar  <dewar@gnat.com>
32791
32792         * a-tiinau.adb: Add a couple of comments
32793
32794         * sem_ch3.adb: Minor reformatting
32795
32796         * sem_prag.adb:
32797         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
32798         Minor reformatting throughout
32799
32800 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
32801
32802         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
32803         bounds of a loop, create a separate block in order to generate proper
32804         cleanup actions to prevent memory leaks.
32805
32806         * sem_res.adb (Resolve_Call): After a call to
32807         Establish_Transient_Scope, the call may be rewritten and relocated, in
32808         which case no further processing is needed.
32809
32810         * sem_util.adb: (Wrong_Type): Refine previous fix.
32811          Fixes ACATS regressions.
32812
32813         PR ada/13353
32814         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
32815         be inlined.
32816
32817 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
32818
32819         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
32820         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
32821         obsolete files.
32822
32823         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
32824         (rts-zfp): Ditto.
32825
32826 2003-12-08  Robert Dewar  <dewar@gnat.com>
32827
32828         * 7sintman.adb: Minor reformatting
32829
32830         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
32831         standard linker options to get standard libraries linked. We now plan
32832         to provide dummy versions of these libraries to match the appropriate
32833         configurable run-time (e.g. if a library is not needed at all, provide
32834         a dummy empty library).
32835
32836         * targparm.ads: Configurable_Run_Time mode no longer affects linker
32837         options (-L parameters and standard libraries). What we plan to do is
32838         to provide dummy libraries where the libraries are not required.
32839
32840         * gnatbind.adb: Minor comment improvement
32841
32842 2003-12-08  Javier Miranda  <miranda@gnat.com>
32843
32844         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
32845         aggregate in the parent. Otherwise constants with limited aggregates
32846         are not supported. Add new formal to pass the component type (Ctype).
32847         It is required to call the corresponding IP subprogram in case of
32848         default initialized components.
32849         (Gen_Assign): In case of default-initialized component, generate a
32850         call to the IP subprogram associated with the component.
32851         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
32852         of aggregate with default initialized components.
32853         (Has_Default_Init_Comps): Improve implementation to recursively check
32854         all the present expressions.
32855
32856         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
32857         to indicate that the initialization call corresponds to a
32858         default-initialized component of an aggregate.
32859         In case of default initialized aggregate with tasks this parameter is
32860         used to generate a null string (this is just a workaround that must be
32861         improved later). In case of discriminants, this parameter is used to
32862         generate a selected component node that gives access to the discriminant
32863         value.
32864
32865         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
32866         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
32867         allocated aggregates with default-initialized components.
32868
32869         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
32870         the box notation is used in positional aggregates.
32871
32872 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
32873
32874         * lib.ads: Fix typo in comment
32875
32876 2003-12-08  Vincent Celier  <celier@gnat.com>
32877
32878         * prj.adb (Project_Empty): New component Unkept_Comments
32879         (Scan): Remove procedure; moved to Prj.Err.
32880
32881         * prj.ads (Project_Data): New Boolean component Unkept_Comments
32882         (Scan): Remove procedure; moved to Prj.Err.
32883
32884         * prj-dect.adb: Manage comments for the different declarations.
32885
32886         * prj-part.adb (With_Record): New component Node
32887         (Parse): New Boolean parameter Store_Comments, defaulted to False.
32888         Set the scanner to return ends of line and comments as tokens, if
32889         Store_Comments is True.
32890         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
32891         comments are associated with these nodes. Store the node IDs in the
32892         With_Records.
32893         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
32894         With_Records.
32895         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
32896         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
32897         current project. Call Tree.Restore afterwards. Set the various nodes
32898         for comment storage (Next_End, End_Of_Line, Previous_Line,
32899         Previous_End).
32900
32901         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
32902         defaulted to False.
32903
32904         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
32905         to False. When Truncated is True, truncate the string, never go to the
32906         next line.
32907         (Write_End_Of_Line_Comment): New procedure
32908         (Print): Process comments for nodes N_With_Clause,
32909         N_Package_Declaration, N_String_Type_Declaration,
32910         N_Attribute_Declaration, N_Typed_Variable_Declaration,
32911         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
32912         Process nodes N_Comment.
32913
32914         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
32915         without comments and there are some comments, set the flag
32916         Unkept_Comments to True.
32917         (Scan): If there are comments, set the flag Unkept_Comments to True and
32918         clear the comments.
32919         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
32920         (Next_End_Nodes: New table
32921         (Comment_Zones_Of): New function
32922         (Scan): New procedure; moved from Prj. Accumulate comments in the
32923         Comments table and set end of line comments, comments after, after end
32924         and before end.
32925         (Add_Comments): New procedure
32926         (Save, Restore, Seset_State): New procedures
32927         (There_Are_Unkept_Comments): New function
32928         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
32929         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
32930         procedures.
32931         (First_Comment_After, First_Comment_After_End): New functions
32932         (First_Comment_Before, First_Comment_Before_End): New functions
32933         (Next_Comment): New function
32934         (End_Of_Line_Comment, Follows_Empty_Line,
32935         Is_Followed_By_Empty_Line): New functions
32936         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
32937         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
32938         (Set_Next_Comment): New procedure
32939         (Default_Project_Node): Associate comment before if the node can store
32940         comments.
32941
32942         * scans.ads (Token_Type): New enumeration value Tok_Comment
32943         (Comment_Id): New global variable
32944
32945         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
32946         defaulted to False.
32947         (Scan): Store position of start of comment. If comments are tokens, set
32948         Comment_Id and set Token to Tok_Comment when scanning a comment.
32949         (Set_Comment_As_Token): New procedure
32950
32951         * sinput-p.adb: Update Copyright notice
32952         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
32953         that no longer exists.
32954
32955 2003-12-08  Javier Miranda  <miranda@gnat.com>
32956
32957         * sem_aggr.adb: Add dependence on Exp_Tss package
32958         Correct typo in comment
32959         (Resolve_Aggregate): In case of array aggregates set the estimated
32960         type of the aggregate before calling resolve. This is needed to know
32961         the name of the corresponding IP in case of limited array aggregates.
32962         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
32963         in case of default initialized array components.
32964
32965         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
32966         types. Required to give support to limited aggregates in generic
32967         formals.
32968
32969 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
32970
32971         * sem_ch3.adb (Check_Initialization): For legality purposes, an
32972         inlined body functions like an instantiation.
32973         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
32974         until bounds are analyzed, to diagnose premature use of type.
32975
32976         * sem_util.adb (Wrong_Type): Improve error message when the type of
32977         the expression is used prematurely.
32978
32979 2003-12-08  GNAT Script  <nobody@gnat.com>
32980
32981         * Make-lang.in: Makefile automatically updated
32982
32983 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
32984
32985         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
32986         they are automatically generated by Make-lang.in and cause nothing but
32987         maintenance troubles.
32988
32989 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
32990
32991         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
32992         version of this unit).
32993
32994 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
32995
32996         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
32997         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
32998         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
32999         the body of System.Interrupt_Management common to several targets.
33000         Update copyright notice when appropriate.
33001
33002         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
33003         constant.
33004
33005         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
33006         to ensure that the kernel fills in the interrupted context structure
33007         before calling a signal handler, which is necessary to be able to
33008         unwind past it. Update the copyright notice.
33009
33010 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
33011
33012         * a-elchha.ads: New file.
33013
33014         * a-elchha.adb: New default last chance handler. Contents taken from
33015         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
33016
33017         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
33018         is moved to a-elchha.adb to provide a target-independent default last
33019         chance handler.
33020
33021         * Makefile.rtl: Add a-elchha.o
33022
33023         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
33024
33025 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
33026
33027         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
33028         declared in an instance, do not inline the call if the instance is not
33029         frozen yet, to prevent order of elaboration problems.
33030
33031         * sem_prag.adb: Add comments for previous fix.
33032
33033 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
33034
33035         * g-table.adb: Use the right variable in Set_Item.
33036         Update copyright notice.
33037
33038 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
33039
33040         * Makefile.in: Remove unused rules.
33041
33042 2003-12-05  Vincent Celier  <celier@gnat.com>
33043
33044         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
33045         -nostdlib. Not needed here after all.
33046
33047 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
33048
33049         PR ada/11724
33050         * adaint.h, adaint.c, g-os_lib.ads:
33051         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
33052         on some platforms (including FreeBSD), it is a 64 bit value.
33053         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
33054
33055 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
33056
33057         * gnatvsn.ads (Library_Version): Now contain only the relevant
33058         version info.
33059         (Verbose_Library_Version): New constant.
33060
33061         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
33062         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
33063         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
33064
33065         * gnatlbr.adb: Clean up: replace Library_Version by
33066         Verbose_Library_Version.
33067
33068         * make.adb, lib-writ.adb, exp_attr.adb:
33069         Clean up: replace Library_Version by Verbose_Library_Version.
33070
33071         * 5lintman.adb: Removed.
33072
33073         * Makefile.in:
33074         Update and simplify computation of LIBRARY_VERSION.
33075         Fix computation of GSMATCH_VERSION.
33076         5lintman.adb is no longer used: replaced by 7sintman.adb.
33077
33078 2003-12-03  Robert Dewar  <dewar@gnat.com>
33079
33080         * exp_ch5.adb:
33081         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
33082         name. Modified to consider small non-bit-packed arrays as troublesome
33083         and in need of component-by-component assigment expansion.
33084
33085 2003-12-03  Vincent Celier  <celier@gnat.com>
33086
33087         * lang-specs.h: Process nostdlib as nostdinc
33088
33089         * back_end.adb: Update Copyright notice
33090         (Scan_Compiler_Arguments): Process -nostdlib directly.
33091
33092 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
33093
33094         * Makefile.in:
33095         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
33096         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
33097         included in HIE_NONE_TARGET_PAIRS.
33098
33099 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
33100
33101         * sem_attr.adb:
33102         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
33103         is legal in an instance, because legality is cheched in the template.
33104
33105         * sem_prag.adb:
33106         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
33107         appplied to an unchecked conversion of a formal parameter.
33108
33109         * sem_warn.adb:
33110         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
33111         variables.
33112
33113 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
33114
33115         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
33116         routines. The second one is new functionality to deal with backtracing
33117         through signal handlers.
33118         (unwind): Split into the two separate subroutines above.
33119         Update the documentation, and deal properly with sizeof (REG) different
33120         from sizeof (void*).
33121
33122 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
33123
33124         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
33125         so that the debugger can reliably access the value of the parameter,
33126         and therefore is able to display the exception name when an exception
33127         breakpoint is reached.
33128
33129 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
33130
33131         * fmap.adb: Fix typo in warning message.
33132
33133         * g-socket.ads, g-socket.adb: Make Free a visible instance of
33134         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
33135
33136 2003-12-01  Vincent Celier  <celier@gnat.com>
33137
33138         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
33139         ther is no Afile.
33140         (Build_Library): Get the switches only if Default_Switches is declared
33141         in package Binder.
33142
33143 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
33144
33145         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
33146         actuals that are indexed components, reanalyze actual to ensure that
33147         packed array references are properly expanded.
33148
33149         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
33150         attempted assignment to a discriminant.
33151
33152 2003-12-01  Robert Dewar  <dewar@gnat.com>
33153
33154         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
33155         reformatting.
33156
33157         * switch-c.adb: Minor reformatting of comments
33158
33159 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
33160
33161         * Makefile.in: Clean ups.
33162
33163 2003-12-01  GNAT Script  <nobody@gnat.com>
33164
33165         * Make-lang.in: Makefile automatically updated
33166
33167 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
33168
33169         * 5wsystem.ads: Disable zero cost exception, not ready yet.
33170
33171 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
33172
33173         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
33174         to force serialization.
33175
33176 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
33177
33178         * g-socket.ads, g-socket.adb:
33179         Clarify documentation of function Stream. Introduce a Free procedure
33180         to release the returned Stream once it becomes unused.
33181
33182         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
33183
33184 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
33185
33186         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
33187         since NT 4 cannot handle timeout values that are too large,
33188         e.g. DWORD'Last - 1.
33189
33190 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
33191
33192         * exp_ch4.adb:
33193         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
33194         in procedure calls and whose expansion must be deferred.
33195
33196         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
33197         is in exp_ch4.
33198
33199         * sem_ch3.adb:
33200         (Build_Derived_Array_Type): Create operator for unconstrained type
33201         if ancestor is unconstrained.
33202
33203 2003-11-26  Vincent Celier  <celier@gnat.com>
33204
33205         * make.adb (Project_Object_Directory): New global variable
33206         (Change_To_Object_Directory): New procedure
33207         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
33208         of Change_Dir directly. Do not change working directory to object
33209         directory of main project after each compilation.
33210         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
33211         directly.
33212         Change to object directory of main project before binding step.
33213         (Initialize): Initialize Project_Object_Directory to No_Project
33214
33215         * mlib-prj.adb:
33216         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
33217         binding a Stand-Alone Library.
33218
33219         * output.adb: Update Copyright notice
33220         (Write_Char): Output buffer when full
33221
33222 2003-11-26  Robert Dewar  <dewar@gnat.com>
33223
33224         * sem_ch13.adb: (Check_Size): Reset size if size is too small
33225
33226         * sem_ch13.ads:
33227         (Check_Size): Fix documentation to include bit-packed array case
33228
33229         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
33230
33231         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
33232
33233         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
33234
33235 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
33236
33237         PR ada/13142
33238         * utils.c (init_gigi_decls): Change name of built-in setjmp to
33239         __builtin_setjmp, since this is apparently needed by recent
33240         non Ada changes.
33241
33242 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33243
33244         * adadecode.c: Only include ctype.h if not IN_GCC.
33245         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
33246
33247 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
33248
33249         * Makefile.in:
33250         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
33251         signals and interrupts.
33252
33253         * 5zintman.ads: New File.
33254
33255         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
33256         add exception signals to the set of unmasked signals.
33257
33258         * 5ztaprop.adb:
33259         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
33260         between signals and interrupts.
33261         Add to Unblocked_Signal_Mask the set of signals that are in
33262         Keep_Unmasked.
33263
33264         * 7sinmaop.adb:
33265         Adding a check to see whether the Interrupt_ID we want to unmask is in
33266         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
33267         reason is that the index type of the Keep_Unmasked array is not always
33268         Interrupt_ID; it may be a subtype of Interrupt_ID.
33269
33270 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
33271
33272         * exp_util.adb:
33273         (Remove_Side_Effects): Condition constantness of object created for a
33274          an unchecked type conversion on the constantness of the expression
33275          to ensure the correct value for 'Constrained when passing components
33276          of view-converted class-wide objects.
33277
33278 2003-11-24  Robert Dewar  <dewar@gnat.com>
33279
33280         * par-load.adb (Load): Improve handling of misspelled and missing units
33281         Removes several cases of compilation abandoned messages
33282
33283         * lib.adb: (Remove_Unit): New procedure
33284
33285         * lib.ads: (Remove_Unit): New procedure
33286
33287         * lib-load.adb: Minor reformatting
33288
33289 2003-11-24  Vincent Celier  <celier@gnat.com>
33290
33291         * make.adb:
33292         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
33293         (Marking_Label): Label to mark processed source files. Incremented for
33294         each executable.
33295         (Gnatmake): Increase Marking_Labet for each executable
33296         (Is_Marked): Compare against marking label
33297         (Mark): Mark with marking label
33298
33299 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
33300
33301         * s-thread.ads:
33302         Move the declaration of the TSD for System.Threads to System.Soft_Links.
33303         Add some comments.
33304
33305         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
33306         (rts-cert): build a single relocatable object for the run-time lib.
33307         Fix perms.
33308
33309 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
33310
33311         * Make-lang.in:
33312         Use gnatls rather than gcc to obtain the location of GNAT RTL for
33313         crosstools build.
33314
33315 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
33316
33317         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
33318         can not use it as before (that is, as a variable) when dumping it into
33319         the tree file. Add a local variable to store the result of this
33320         function and to be used as the string to be written into the tree.
33321
33322         * scn.adb (Initialize_Scanner): Add comments explaining the recent
33323         changes.
33324
33325         * sinput.adb (Source_First, Source_Last): In case of
33326         Internal_Source_File, replace returning attributes of
33327         Internal_Source_Ptr (which is wrong) with returning attributes of
33328         Internal_Source.
33329
33330 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
33331
33332         * sem_ch3.adb:
33333         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
33334         used for implicit concatenation operators.
33335         Code cleanup.
33336
33337         * sem_elab.adb:
33338         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
33339         task bodies that are in the scope of a Suppress pragma.
33340         (Check_A Call): Use the flag to prevent spurious elaboration checks.
33341
33342         * sinfo.ads, sinfo.adb:
33343         New flag No_Elaboration_Check on function/procedure calls, to properly
33344         suppress checks on calls in task bodies that are within a local suppress
33345         pragma.
33346
33347         * exp_ch4.adb:
33348         (Expand_Concatenate_Other): Use the proper integer type for the
33349         expression for the upper bound, to avoid universal_integer computations
33350         when possible.
33351
33352 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
33353
33354         * .cvsignore: Delete.
33355
33356 2003-11-21  Andreas Schwab  <schwab@suse.de>
33357
33358         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
33359
33360 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
33361
33362         * 5wsystem.ads: Enable zero cost exception.
33363
33364 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
33365
33366         * 5ztiitho.adb: Remove an unreferenced variable.
33367
33368 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
33369
33370         * adaint.c: For FreeBSD, use mkstemp.
33371
33372 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
33373
33374         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
33375
33376 2003-11-21  Robert Dewar  <dewar@gnat.com>
33377
33378         * bld.adb: Remove useless USE of gnatvsn
33379
33380         * gnatchop.adb: Minor reformatting
33381         Clean up version handling to be more consistent
33382
33383         * gnatxref.adb: Minor reformatting
33384
33385         * gprcmd.adb: Minor reformatting
33386         Fix output of copyright to be more consistent with other tools
33387
33388 2003-11-21  Vincent Celier  <celier@gnat.com>
33389
33390         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
33391
33392 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
33393
33394         * atree.adb (Initialize): Add initializations for global variables
33395         used in New_Copy_Tree.
33396
33397         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
33398         Internal_Source_File as the actual).
33399         Put the set of statements creating Any_Character before the set of
33400         statements creating Any_Array to have Any_Character fully initialized
33401         when it is used in creating Any_Array.
33402
33403         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
33404         not call Scan in case if the actual is Internal_Source_File
33405         Add 2003 to copyright note.
33406
33407         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
33408         processing Internal_Source_File.
33409
33410         * types.ads: Add the constant Internal_Source_File representing the
33411         source buffer for artificial source-code-like strings created within
33412         the compiler (the definition of Source_File_Index is changed).
33413
33414 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
33415
33416         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
33417         56system.ads: New file, FreeBSD version.
33418
33419 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
33420
33421         * Make-lang.in (ada.extraclean): Delete.
33422
33423 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
33424
33425         * gnatmem.adb: Clean up verbose output.
33426
33427         * gprcmd.adb: Change copyright to FSF.
33428
33429 2003-11-19  Vincent Celier  <celier@gnat.com>
33430
33431         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
33432         and Version (ignored).
33433
33434         * symbols.ads: (Policy): New type
33435         (Initialize): New parameter Reference, Symbol_Policy and
33436         Library_Version.
33437         Remove parameter Force.
33438         Minor reformatting.
33439
33440         * snames.ads, snames.adbadb: New standard names
33441         Library_Reference_Symbol_File and Library_Symbol_Policy
33442
33443         * mlib-prj.adb:
33444         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
33445         project.
33446
33447         * mlib-tgt.adb:
33448         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
33449
33450         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
33451
33452         * prj.adb: (Project_Empty): New component Symbol_Data
33453
33454         * prj.ads: (Policy, Symbol_Record): New types
33455         (Project_Data): New component Symbol_Data
33456
33457         * prj-attr.adb:
33458         New attributes Library_Symbol_File, Library_Symbol_Policy and
33459         Library_Reference_Symbol_File.
33460
33461         * prj-nmsc.adb:
33462         (Ada_Check): When project is a Stand-Alone library project, process
33463         attribute Library_Symbol_File, Library_Symbol_Policy and
33464         Library_Reference_Symbol_File.
33465
33466         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33467         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
33468         5sml-tgt.adb (Build_Dynamic_Library): New parameter
33469         Symbol_Data (ignored).
33470
33471         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
33472         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
33473         functions Option_File_Name and Version_String. Set new options of
33474         gnatsym related to symbol file, symbol policy and reference symbol
33475         file.
33476
33477         * 5vsymbol.adb:
33478         Extensive modifications to take into account the reference symbol file,
33479         the symbol policy, the library version and to put in the symbol file the
33480         minor and major IDs.
33481
33482         * bld.adb (Process_Declarative_Items): Put second argument of
33483         gprcmd to_absolute between single quotes, to avoid problems with
33484         Windows.
33485
33486         * bld-io.adb: Update Copyright notice.
33487         (Flush): Remove last character of a line, if it is a back slash, to
33488         avoid make problems.
33489
33490         * gnatsym.adb:
33491         Implement new scheme with reference symbol file and symbol policy.
33492
33493         * g-os_lib.ads: (Is_Directory): Clarify comment
33494
33495 2003-11-19  Robert Dewar  <dewar@gnat.com>
33496
33497         * atree.adb: Move New_Copy_Tree global variables to head of package
33498
33499         * errout.adb: Minor reformatting
33500
33501 2003-11-19  Javier Miranda  <miranda@gnat.com>
33502
33503         * sem_ch4.adb: (Diagnose_Call): Improve error message.
33504         Add reference to Ada0Y (AI-50217)
33505
33506         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
33507         sem_util.adb: Add reference to AI-50217
33508
33509         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
33510
33511         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
33512
33513         * sem_aggr.adb: Complete documentation of AI-287 changes
33514
33515         * par-ch4.adb: Document previous changes.
33516
33517         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
33518         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
33519         Ada0Y (AI-50217)
33520
33521         * exp_aggr.adb: Add references to AI-287 in previous changes
33522
33523 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
33524
33525         * exp_ch6.adb:
33526         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
33527         in the rewriting is the result of an inlined call.
33528
33529         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
33530         parameter is a type conversion, use original node to construct the
33531         post-call assignment, because expression may have been rewritten, e.g.
33532         if it is a packed array.
33533
33534         * sem_attr.adb:
33535         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
33536         body, just as it is in an instance.
33537         Categorization routines
33538
33539         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
33540         Instantiate_Object): Set proper sloc reference for message on missing
33541         actual.
33542
33543 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
33544
33545         * Makefile.in: Add FreeBSD libgnat pairs.
33546
33547         * usage.adb: Fix typo in usage message.
33548
33549 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
33550
33551         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
33552         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
33553         pragma Thread_Body.
33554         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
33555
33556         * s-thread.adb: This file is now a dummy implementation of
33557         System.Thread.
33558
33559 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
33560
33561         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
33562
33563 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
33564
33565         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33566         instanciation references in the parent type description.
33567
33568 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33569
33570         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
33571
33572         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
33573         TYPE_PRECISION directly from esize.
33574
33575 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
33576
33577         * cstreams.c:
33578         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
33579
33580         * init.c: Initialization routines for FreeBSD
33581
33582         * link.c: Link info for FreeBSD
33583
33584         * sysdep.c: Add the case of FreeBSD
33585
33586 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
33587
33588         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
33589         already called in System.Threads.
33590
33591         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
33592         environment task, as it has been moved to System.Threads.Initialization.
33593
33594 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
33595
33596         * adaint.c (__gnatlib_install_locks): Only reference
33597         __gnat_install_locks on VMS, since other platforms can avoid using
33598         --enable-threads=gnat
33599
33600 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33601
33602         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
33603
33604         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
33605         TYPE_PACKED_ARRAY_TYPE_P.
33606         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
33607
33608         Part of PR ada/12806
33609         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
33610         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
33611
33612 2003-11-17  Vincent Celier  <celier@gnat.com>
33613
33614         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
33615         to False.
33616         Do not set exit status to Failure when Warning is True.
33617         (Gnatchop): Make errors "no compilation units found" and
33618         "no source files written" warnings only.
33619
33620         * make.adb (Gnatmake): When using a project file, set
33621         Look_In_Primary_Dir to False.
33622         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
33623         and Local_Configuration_Pragmas in the project where they are declared
33624         not an extending project which might have inherited them.
33625
33626         * osint.adb (Locate_File): If Name is already an absolute path, do not
33627         look for a directory.
33628
33629         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
33630         -gnats (Check_Syntax) is used, issue only a warning, not an error.
33631
33632         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
33633         in objects of type Variable_Value.
33634
33635         * prj.ads: (Variable_Value): New component Project
33636
33637         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
33638         is in a project extended by Project.
33639
33640         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
33641         Project of Variable_Values to this new parameter value.
33642         (Expression): Set component Project of Variable_Values.
33643         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
33644         Set the component Project in array elements.
33645
33646 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
33647
33648         * errout.adb: (Initialize): Add initialization for error nodes.
33649
33650         * sem_ch12.adb (Initialize): Add missing initializations for
33651         Exchanged_Views and Hidden_Entities.
33652
33653 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
33654
33655         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
33656         already instantiated tree for use in subsequent inlining.
33657         (Analyze_Associations, Instantiate_Formal_Subprogram,
33658         Instantiate_Object): improve error message for mismatch in
33659         instantiations.
33660
33661         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
33662         instantiations of subprograms declared in instances.
33663
33664 2003-11-17  Javier Miranda  <miranda@gnat.com>
33665
33666         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
33667         executed only under the Extensions_Allowed flag.
33668
33669 2003-11-17  Robert Dewar  <dewar@gnat.com>
33670
33671         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
33672         zeroes suppressed.
33673         (Address_Image): Fix bug of returning 0x instead of 0x0
33674         Minor reformatting (function specs).
33675
33676         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
33677         (missed case of 33-63)
33678
33679         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
33680
33681         * s-thread.adb: Add comments for pragma Restriction
33682
33683         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
33684         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
33685
33686 2003-11-17  Ed Falis  <falis@gnat.com>
33687
33688         * s-thread.adb: Added No_Tasking restriction for this implementation.
33689
33690 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
33691
33692         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33693         instanciation references in the parent type description.
33694
33695 2003-11-17  GNAT Script  <nobody@gnat.com>
33696
33697         * Make-lang.in: Makefile automatically updated
33698
33699 2003-11-16  Jason Merrill  <jason@redhat.com>
33700
33701         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
33702         and TAGS files that include them for each front end.
33703
33704 2003-11-14  Andreas Jaeger  <aj@suse.de>
33705
33706         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
33707         is the canonical version.
33708         * misc.c (gnat_handle_option): Likewise.
33709
33710         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
33711
33712         * 5nsystem.ads: New file for x86_64-linux-gnu.
33713
33714 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
33715
33716         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
33717
33718         * comperr.adb: Fix logic in previous change.
33719
33720 2003-11-13  Vincent Celier  <celier@gnat.com>
33721
33722         * 5bml-tgt.adb (Build_Dynamic_Library): Use
33723         Osint.Include_Dir_Default_Prefix instead of
33724         Sdefault.Include_Dir_Default_Name.
33725
33726         * gnatlbr.adb: Update Copyright notice
33727         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
33728         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
33729         instead of Sdefault.Object_Dir_Default_Name
33730
33731         * gnatlink.adb:
33732         (Process_Binder_File): Never suppress the option following -Xlinker
33733
33734         * mdll-utl.adb:
33735         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
33736         Sdefault.Object_Dir_Default_Name.
33737
33738         * osint.ads, osint.adb:
33739         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
33740         Minor reformatting.
33741
33742         * vms_conv.ads: Minor reformating
33743         Remove GNAT STANDARD and GNAT PSTA
33744
33745         * vms_conv.adb:
33746         Allow GNAT MAKE to have several files on the command line.
33747         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
33748         Sdefault.Object_Dir_Default_Name.
33749         Minor Reformating
33750         Remove data for GNAT STANDARD
33751
33752         * vms_data.ads:
33753         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
33754         Remove data for GNAT STANDARD
33755         Remove options and documentation for -gnatwb/-gnatwB: these warning
33756         options no longer exist.
33757
33758 2003-11-13  Ed Falis  <falis@gnat.com>
33759
33760         * 5zthrini.adb: (Init_RTS): Made visible
33761
33762         * 5zthrini.adb:
33763         (Register): Removed unnecessary call to taskVarGet that checked whether
33764          an ATSD was already set as a task var for the argument thread.
33765
33766         * s-thread.adb:
33767         Updated comment to reflect that this is a VxWorks version
33768         Added context clause for System.Threads.Initialization
33769         Added call to System.Threads.Initialization.Init_RTS
33770
33771 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
33772
33773         * 5zthrini.adb:
33774         (Init_RTS): New procedure, for the initialization of the run-time lib.
33775
33776         * s-thread.adb:
33777         Remove dependancy on System.Init, so that this file can be used in the
33778         AE653 sequential run-time lib.
33779
33780 2003-11-13  Robert Dewar  <dewar@gnat.com>
33781
33782         * bindgen.adb: Minor reformatting
33783
33784 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
33785
33786         * checks.adb:
33787         (Apply_Discriminant_Check): Do no apply check if target type is derived
33788         from source type with no applicable constraint.
33789
33790         * lib-writ.adb:
33791         (Ensure_System_Dependency): Do not apply the style checks that may have
33792         been specified for the main unit.
33793
33794         * sem_ch8.adb:
33795         (Find_Selected_Component): Further improvement in error message, with
33796         RM reference.
33797
33798         * sem_res.adb:
33799         (Resolve): Handle properly the case of an illegal overloaded protected
33800         procedure.
33801
33802 2003-11-13  Javier Miranda  <miranda@gnat.com>
33803
33804         * exp_aggr.adb:
33805         (Has_Default_Init_Comps): New function to check the presence of
33806         default initialization in an aggregate.
33807         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
33808         extension aggregate of a limited record. In addition, a new formal
33809         was added to do not initialize the record controller (if any) during
33810         this recursive expansion of ancestors.
33811         (Init_Controller): Add support for limited record components.
33812         (Expand_Record_Aggregate): In case of default initialized components
33813         convert the aggregate into a set of assignments.
33814
33815         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
33816         describing the new syntax.
33817         Nothing else needed to be done because this subprogram delegates part of
33818         its work to P_Precord_Or_Array_Component_Association.
33819         (P_Record_Or_Array_Component_Association): Give support to the new
33820         syntax for default initialization of components.
33821
33822         * sem_aggr.adb:
33823         (Resolve_Aggregate): Relax the strictness of the frontend in case of
33824         limited aggregates.
33825         (Resolve_Record_Aggregate): Give support to default initialized
33826         components.
33827         (Get_Value): In case of default initialized components, duplicate
33828         the corresponding default expression (from the record type
33829         declaration). In case of default initialization in the *others*
33830         choice, do not check that all components have the same type.
33831         (Resolve_Extension_Aggregate): Give support to limited extension
33832         aggregates.
33833
33834         * sem_ch3.adb:
33835         (Check_Initialization): Relax the strictness of the front-end in case
33836         of aggregate and extension aggregates. This test is now done in
33837         Get_Value in a per-component manner.
33838
33839         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
33840         expression corresponds to a limited aggregate. This test is now done
33841         in Get_Value.
33842
33843         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
33844         Box_Present flag.
33845
33846         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
33847         present in an N_Component_Association node
33848
33849 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
33850
33851         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
33852         type-conformant entry only if they are homographs.
33853
33854 2003-11-13  GNAT Script  <nobody@gnat.com>
33855
33856         * Make-lang.in: Makefile automatically updated
33857
33858 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33859
33860         * adadecode.c: Use <> form of include for ctype.h.
33861         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
33862
33863 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33864
33865         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
33866         Works around PR middle-end/6552.
33867
33868 2003-11-10  Ed Falis  <falis@gnat.com>
33869
33870         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
33871
33872         * 5zinit.adb: (Install_Handler): Moved back to spec
33873         (Install_Signal_Handlers): Deleted
33874
33875         * 5zthrini.adb: Added context clause for System.Storage_Elements
33876         (Register): Only handles creation of taskVar; initialization moved to
33877         Thread_Body_Enter.
33878         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
33879         Added declaration of environment task secondary stack and
33880         initialization.
33881
33882         * s-thread.adb: Implement bodies for thread body processing
33883
33884         * s-thread.ads:
33885         Added comment identifying supported targets for pragma Thread_Body.
33886
33887 2003-11-10  Pascal Obry  <obry@gnat.com>
33888
33889         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
33890         GNAT_MAX_PATH_LEN.
33891
33892         * s-fileio.adb:
33893         (Open): Properly check for string length before copying into the buffer.
33894         Raises Name_Error if buffer is too small. Note that this was a potential
33895         buffer overflow.
33896
33897 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
33898
33899         * bindgen.adb, comperr.adb: Code clean ups.
33900         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
33901
33902 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
33903
33904         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
33905
33906 2003-11-10  Vincent Celier  <celier@gnat.com>
33907
33908         * gprcmd.adb:
33909         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
33910         installation.
33911
33912         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
33913
33914         * prj.adb: (Project_Empty): Add new boolean component Virtual
33915
33916         * prj.ads: (Virtual_Prefix): New constant string
33917         (Project_Data): New boolean component Virtual
33918
33919         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
33920         a library project is extended by a virtual extending project.
33921
33922         * prj-part.adb:
33923         Modifications throughout to implement extending-all project, including:
33924         (Virtual_Hash, Processed_Hash): New hash tables
33925         (Create_Virtual_Extending_Project): New procedure
33926         (Look_For_Virtual_Projects_For): New procedure
33927
33928         * prj-proc.adb:
33929         (Process): After checking the projects, if main project is an
33930         extending-all project, set the object directory of all virtual extending
33931         project to the object directory of the main project.
33932         Adjust error message when a virtual extending project has the same
33933         object directory as an project being extended.
33934         (Recursive_Process): If name starts with the virtual prefix, set Virtual
33935         to True in the project data.
33936
33937         * prj-tree.adb:
33938         (Default_Project_Node): Add new boolean component Extending_All
33939         (Is_Extending_All): New function
33940         (Set_Is_Extending_All): New procedure
33941
33942         * prj-tree.ads: (Is_Extending_All): New function
33943         (Set_Is_Extending_All): New procedure
33944         (Project_Node_Record): New boolean component Extending_All
33945
33946         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
33947
33948         * vms_data.ads:
33949         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
33950
33951         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
33952         "gprcmd prefix" to define it.
33953
33954 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
33955
33956         * einfo.ads: Fix a typo and remove an extraneous word in comments.
33957
33958         * lib-load.adb:
33959         (Create_Dummy_Package_Unit): Set the scope of the entity for the
33960         created dummy package to Standard_Standard, not to itself, to
33961         defend other parts of the front-end against encoutering a cycle in
33962         the scope chain.
33963
33964         * sem_ch10.adb:
33965         (Analyze_With_Clause): When setting the entities for the successive
33966         N_Expanded_Names that constitute the name of a child unit, do not
33967         attempt to go further than Standard_Standard in the chain of scopes.
33968         This case arises from the placeholder units created by
33969         Create_Dummy_Package_Unit in the case of a with_clause for a
33970         nonexistent child unit.
33971
33972 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
33973
33974         * exp_ch6.adb:
33975         (Expand_Thread_Body): Place subprogram on scope stack, so that new
33976         declarations are given the proper scope.
33977
33978         * sem_ch13.adb:
33979         (Check_Expr_Constants): Reject an expression that contains a constant
33980         created during expansion, and that appears after the object to which
33981         the address clause applies.
33982
33983         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
33984         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
33985         that uses 'Range of a function call with controlled components, so
33986         that the function result can be finalized before starting the loop.
33987
33988         * sem_ch8.adb:
33989         (Find_Selected_Component): Improve error message when prefix is
33990         an implicit dereference of an incomplete type.
33991
33992 2003-11-10  Robert Dewar  <dewar@gnat.com>
33993
33994         * opt.ads: New Print_Standard flag for -gnatS switch
33995
33996         * sem_ch13.adb: Remove some additional checks for unaligned arrays
33997
33998         * cstand.adb (Create_Standard): Print out package standard if -gnatS
33999         switch set
34000
34001         * debug.adb: Update doc for -gnatds to discuss relationship with new
34002         -gnatS flag
34003
34004         * sinfo.adb: Add new field Entity_Or_Associated_Node
34005
34006         * sinfo.ads: Add new field Entity_Or_Associated_Node
34007         Update documentation for Associated_Node and Entity fields to clarify
34008         relationship and usage.
34009
34010         * sprint.adb:
34011         (Write_Id): Properly process Associated_Node field in generic template
34012
34013         * switch-c.adb:
34014         Recognize new -gnatS switch for printing package Standard
34015         This replaces gnatpsta
34016
34017         * usage.adb:
34018         Add line for  new -gnatS switch for printing package Standard
34019         This replaces gnatpsta
34020
34021 2003-11-10  Andreas Jaeger  <aj@suse.de>
34022
34023         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
34024         integer.
34025
34026 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34027
34028         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
34029         by gnat1.
34030
34031 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34032
34033         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
34034         no longer needed.
34035
34036         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
34037
34038         * sysdep.c: Add handling of cygwin.
34039
34040 2003-11-10  GNAT Script  <nobody@gnat.com>
34041
34042         * Make-lang.in: Makefile automatically updated
34043
34044 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34045
34046         PR 12950
34047         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
34048         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
34049         Replace GNAT_ROOT by GCC_ROOT.
34050
34051         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
34052
34053 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
34054
34055         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
34056         and update for changed meaning of GET_MODE_BITSIZE.
34057
34058 2003-11-04  Doug Rupp  <rupp@gnat.com>
34059
34060         * sysdep.c: Problem discovered during IA64 VMS port.
34061         [VMS] #include <unixio.h> to get proper prototypes.
34062
34063         * adaint.c:
34064         Issues discovered/problems fixed during IA64 VMS port.
34065         [VMS] #define _POSIX_EXIT for proper semantics.
34066         [VMS] #include <unixio.h> for proper prototypes.
34067         [VMS] (fork): #define IA64 version.
34068         (__gnat_os_exit): Remove unnecessary VMS specific code.
34069
34070 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34071
34072         Part of PR ada/12806
34073         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
34074         tree, not integer.
34075
34076         * decl.c:
34077         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
34078         not integer.
34079
34080         * targtyps.c, decl.c, misc.c,
34081         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
34082         routines to work around change in FP sizing semantics in GCC.
34083
34084         * utils.c:
34085         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
34086
34087         * gigi.h: (enumerate_modes): New function.
34088
34089         * Make-lang.in: (ada/misc.o): Add real.h.
34090
34091         * misc.c: (enumerate_modes): New function.
34092
34093 2003-11-04  Robert Dewar  <dewar@gnat.com>
34094
34095         * 3vtrasym.adb: Minor reformatting
34096         Use terminology encoded/decoded name, rather than C++ specific notion
34097         of mangling (this is the terminology used throughout GNAT).
34098
34099         * einfo.h: Regenerated
34100
34101         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
34102
34103         * exp_ch6.adb:
34104         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
34105
34106         * par-prag.adb: Add dummy entry for Thread_Body pragma
34107
34108         * rtsfind.ads:
34109         Add entries for System.Threads entities for thread body processing
34110
34111         * sem_attr.adb:
34112         (Analyze_Pragma, Access attributes): Check these are not applied to a
34113         thread body, since this is not permitted
34114
34115         * sem_prag.adb: Add processing for Thread_Body pragma.
34116         Minor comment fix.
34117
34118         * sem_res.adb:
34119         (Resolve_Call): Check for incorrect attempt to call a thread body
34120          procedure with a direct call.
34121
34122         * snames.ads, snames.adb: Add entry for Thread_Body pragma
34123         Add names associated with thread body expansion
34124
34125         * snames.h: Add entry for Thread_Body pragma
34126
34127         * s-thread.adb: Add entries for thread body processing
34128         These are dummy bodies so far
34129
34130         * s-thread.ads: Add documentation on thread body handling.
34131         Add entries for thread body processing.
34132
34133 2003-11-04  Javier Miranda  <miranda@gnat.com>
34134
34135         * sem_ch10.adb:
34136         (Build_Limited_Views): Return after posting an error in case of limited
34137         with_clause on subprograms, generics, instances or generic renamings
34138         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
34139         on subprograms, generics, instances or generic renamings
34140
34141 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
34142
34143         * raise.c (setup_to_install): Correct mistake in last revision; two
34144         arguments out of order.
34145
34146         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
34147         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
34148         notice, missed in previous change.
34149         Remove trailing blanks and other style errors introduced in previous
34150         change.
34151
34152 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
34153
34154         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
34155         rid of the wrapper for a LJM type, ensuring we don't do that if the
34156         field is addressable.  This avoids potential low level type view
34157         mismatches later on, for instance in a by-reference argument passing
34158         process.
34159
34160 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34161
34162         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
34163         aligned at byte boundary.
34164
34165 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
34166
34167         * decl.c (components_to_record): Do not delete the empty variants from
34168         the end of the union type.
34169
34170 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
34171
34172         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
34173         operation for a derived type, an explicit declaration may use a local
34174         subtype of Boolean.
34175
34176 2003-11-04  Vincent Celier  <celier@gnat.com>
34177
34178         * make.adb (Gnatmake): Allow main sources on the command line with a
34179         library project when it is only for compilation (no binding or
34180         linking).
34181
34182 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34183
34184         * Makefile.in: Remove many duplicate variables.
34185
34186 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
34187
34188         * Make-lang.in (dvi): Move targets to $(docobjdir).
34189         (gnat_ug_vms.dvi): Simplify rule and adjust target.
34190         (gnat_ug_wnt.dvi): Likewise.
34191         (gnat_ug_unx.dvi): Likewise.
34192         (gnat_ug_vxw.dvi): Likewise.
34193         (gnat_rm.dvi): Likewise.
34194         (gnat-style.dvi): Likewise.
34195
34196 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
34197
34198         * gigi.h: Missed commit from update for C90.
34199
34200 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
34201
34202         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
34203
34204 2003-10-31  Andreas Schwab  <schwab@suse.de>
34205
34206         * raise.c (get_action_description_for): Fix typo in last change.
34207
34208 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
34209
34210         PR ada/12761
34211         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
34212         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
34213
34214 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
34215
34216         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
34217         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
34218         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
34219         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
34220         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
34221
34222 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
34223
34224         * 3vtrasym.adb:
34225         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
34226         numbers when symbol name is too long.
34227
34228 2003-10-30  Ed Falis  <falis@gnat.com>
34229
34230         * g-signal.ads, g-signal.adb: New files
34231
34232         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
34233
34234         * Makefile.rtl: Introduce GNAT.Signals
34235
34236 2003-10-30  Robert Dewar  <dewar@gnat.com>
34237
34238         * freeze.adb: Minor reformatting
34239
34240         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
34241
34242         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
34243         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
34244         New handling of Id_Check parameter to improve recognition of keywords
34245         used as identifiers.
34246         Update copyright notice to include 2003
34247
34248 2003-10-29  Robert Dewar  <dewar@gnat.com>
34249
34250         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
34251         sem_ch10.adb: Minor reformatting
34252
34253         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
34254         (Expand_Assign_Record): Test right hand side for bit unaligned as well
34255
34256 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
34257
34258         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
34259         Support for TBK$SYMBOLIZE-based symbolic traceback.
34260
34261 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
34262
34263         * exp_disp.adb:
34264         Revert previous change, that did not work well when pragma No_Run_Time
34265         was used in conjunction with a run-time other than ZFP.
34266
34267 2003-10-29  Vincent Celier  <celier@gnat.com>
34268
34269         * make.adb:
34270         (Gnatmake): When there are no Ada mains in attribute Main, disable the
34271          bind and link steps only is switch -z is not used.
34272
34273 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
34274
34275         * Makefile.generic: Remove duplicated setting of CC.
34276
34277         * Makefile.prolog: Set CC to gcc by default, to override make's
34278         default (cc).
34279
34280         * einfo.h: Regenerated.
34281
34282 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
34283
34284         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
34285         current body, after compiling subunit.
34286
34287         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
34288         when in deleted code, because gigi needs properly ordered freeze
34289         actions to annotate types.
34290
34291         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
34292         prevent the premature freezing of record type that contains
34293         subcomponents with a private type that does not yet have a completion.
34294
34295 2003-10-29  Javier Miranda  <miranda@gnat.com>
34296
34297         * sem_ch12.adb:
34298         (Analyze_Package_Instantiation): Check that instances can not be used in
34299         limited with_clauses.
34300
34301         * sem_ch8.adb:
34302         (Analyze_Package_Renaming): Check that limited withed packages cannot
34303         be renamed. Improve text on error messages related to limited
34304         with_clauses.
34305
34306         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
34307
34308         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
34309         Update copyright notice.
34310
34311         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
34312         (Install_Limited_Context_Clauses): New subprogram that isolates all the
34313         checks required for limited context_clauses and installs the limited
34314         view.
34315         (Install_Limited_Withed_Unit): Complete its documentation.
34316         (Analyze_Context): Check that limited with_clauses are only allowed in
34317         package specs.
34318         (Install_Context): Call Install_Limited_Context_Clauses after the
34319         parents have been installed.
34320         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
34321         package as 'From_With_Type'; this mark indicates that the limited view
34322         is installed. Used to check bad usages of limited with_clauses.
34323         (Build_Limited_Views): Do not add shadow entities to the scope's list
34324         of entities. Do not add real entities to the Non_Limited_Views chain.
34325         Improve error notification.
34326         (Remove_Context_Clauses): Remove context clauses in two phases:
34327         limited views first and regular views later (to maintain the
34328         stack model).
34329         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
34330         its visible entities.
34331
34332 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
34333
34334         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
34335         with any type that Is_Fixed_Point_Type.
34336
34337         * sinfo.ads: Fix documentation for Associated_Node attribute.
34338
34339 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
34340
34341         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
34342         both '-gnatc' and '-gnatt' are specified.
34343
34344         * atree.adb (Initialize): Add initialization for Node_Count (set to
34345         zero).
34346
34347 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34348
34349         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
34350         do not consider as Pure.
34351
34352         Part of implementation of function-at-a-time:
34353
34354         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
34355         (tree_transform): Add new argument to build_component_ref.
34356         (tree_transform, case N_Assignment_Statement): Make and return an
34357         EXPR_STMT.
34358         (tree_transform): If result IS_STMT, set flags and return it.
34359         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34360
34361         * utils2.c (build_simple_component_ref, build_component_ref): Add new
34362         arg, NO_FOLD_P.
34363         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
34364         (build_allocator): Likewise.
34365
34366         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
34367         Add new arg to build_component_ref.
34368         (maybe_unconstrained_array, unchecked_convert): Likewise.
34369
34370         * ada-tree.def (EXPR_STMT): New code.
34371
34372         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
34373
34374         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
34375         build_component_ref calls.
34376
34377         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
34378
34379         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34380         (build_component_ref): Add new argument, NO_FOLD_P.
34381
34382 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
34383
34384         * Makefile.generic: Add missing substitution on object_deps handling.
34385
34386         PR ada/5909
34387         * Make-lang.in (check-ada): Enable ACATS test suite.
34388
34389 2003-10-27  Robert Dewar  <dewar@gnat.com>
34390
34391         * exp_ch3.adb:
34392         (Freeze_Array_Type): We do not need an initialization routine for types
34393         derived from String or Wide_String. They should be treated the same
34394         as String and Wide_String themselves. This caused problems with the
34395         use of Initialize_Scalars.
34396
34397         * exp_ch5.adb:
34398         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
34399         composites. This allows use of component clauses that are not byte
34400         aligned.
34401
34402         * sem_prag.adb:
34403         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
34404         is an attempt to pack an array of atomic objects.
34405
34406         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
34407
34408 2003-10-27  Pascal Obry  <obry@gnat.com>
34409
34410         * g-dirope.adb:
34411         (Basename): Check for drive letters in a pathname only on DOS based OS.
34412
34413 2003-10-27  Vincent Celier  <celier@gnat.com>
34414
34415         * make.adb:
34416         (Gnatmake): When unable to change dir to the object dir, display the
34417         content of the parent dir of the obj dir, to try to understand why this
34418         happens.
34419
34420 2003-10-27  GNAT Script  <nobody@gnat.com>
34421
34422         * Make-lang.in: Makefile automatically updated
34423
34424 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
34425
34426         * sem_ch12.adb:
34427         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
34428         should not be done in Save/Restore_Scope_Stack, because it is performed
34429         locally.
34430
34431         * sem_ch8.adb:
34432         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34433         whether use clauses should be removed/restored.
34434
34435         * sem_ch8.ads:
34436         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34437         whether use clauses should be removed/restored.
34438
34439 2003-10-26  Andreas Jaeger  <aj@suse.de>
34440
34441         * Makefile.in: Remove duplicated lines.
34442
34443 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34444
34445         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
34446         minimize the differences with ACT tree.
34447
34448         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
34449         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
34450         Gnatvsn.Gnat_Static_Version_String to reduce differences between
34451         ACT and FSF trees.
34452
34453 2003-10-24  Pascal Obry  <obry@gnat.com>
34454
34455         PR ada/12014
34456         * adadecode.c (ostrcpy): New function.
34457         (__gnat_decode): Use ostrcpy of strcpy.
34458         (has_prefix): Set first parameter a const.
34459         (has_suffix): Set first parameter a const.
34460         Update copyright notice. Fix source name in header.
34461         Removes a trailing space.
34462
34463 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
34464
34465         * exp_disp.adb:
34466         Remove the test against being in No_Run_Time_Mode before generating a
34467         call to Register_Tag. It is redundant with the test against the
34468         availability of the function Register_Tag.
34469
34470 2003-10-24  Vincent Celier  <celier@gnat.com>
34471
34472         * g-catiio.adb: (Month_Name): Correct spelling of February
34473
34474         * make.adb: (Mains): New package
34475         (Initialize): Call Mains.Delete
34476         (Gnatmake): Check that each main on the command line is a source of a
34477         project file and, if there are several mains, each of them is a source
34478         of the same project file.
34479         (Gnatmake): When a foreign language is specified in attribute Languages,
34480         no main is specified on the command line and attribute Mains is not
34481         empty, only build the Ada main. If there is no Ada main, just compile
34482         the Ada sources and their closure.
34483         (Gnatmake): If a main is specified on the command line with directory
34484         information, check that the source exists and, if it does, that the path
34485         is the actual path of a source of a project.
34486
34487         * prj-env.adb:
34488         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
34489         Full_Path is True, return the full path instead of the simple file name.
34490         (Project_Of): New function
34491
34492         * prj-env.ads:
34493         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
34494         defaulted to False.
34495         (Project_Of): New function
34496
34497 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34498
34499         * Makefile.generic:
34500         Ensure objects of main project are always checked and rebuilt if needed.
34501         Set CC to gcc by default.
34502         Prepare new handling of link by creating a global archive (not activated
34503         yet).
34504
34505         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34506         stringt.h: Update copyright notice. Remove trailing blanks.
34507         Fix source name in header.
34508
34509 2003-10-24  Robert Dewar  <dewar@gnat.com>
34510
34511         * sem_ch12.adb: Minor reformatting
34512
34513         * sem_ch3.adb:
34514         Minor reformatting (including new function return style throughout)
34515
34516         * sem_ch3.ads:
34517         Minor reformatting (including new function return style throughout)
34518
34519 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34520
34521         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34522         stringt.h: Update copyright notice. Remove trailing blanks.
34523         Fix source name in header.
34524
34525 2003-10-24  GNAT Script  <nobody@gnat.com>
34526
34527         * Make-lang.in: Makefile automatically updated
34528
34529 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
34530
34531         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
34532         stringt.h: Convert to ISO C90 declarations and definitions.
34533
34534 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
34535
34536         PR ada/11978
34537         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
34538         External_Tag attribute definition clauses.
34539
34540 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
34541
34542         PR ada/7613
34543         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
34544         child unit, generate a fully qualified name to avoid spurious errors
34545         when the context contains renamings of different child units with
34546         the same simple name.
34547
34548         * exp_dbug.ads: Add documentation on name qualification for renamings
34549         of child units.
34550
34551 2003-10-23  Robert Dewar  <dewar@gnat.com>
34552
34553         * g-regpat.ads, g-regpat.adb: Minor reformatting
34554
34555 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
34556
34557         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
34558
34559 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34560
34561         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
34562         Machine call.
34563
34564         * urealp.h: (Machine): Update to proper definition.
34565
34566 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
34567
34568         * init.c, adaint.c: Minor reformatting.
34569
34570 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
34571
34572         * adaint.c (w32_epoch_offset): Define static const at file level.
34573         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
34574         rather than t_create, t_access in call to GetFileTime. Use union
34575         to convert between FILETIME and  unsigned long long.
34576         (__gnat_file_time_name): Test for invalid file handle.
34577         (__gnat_set_filetime_name): Support win32 targets using
34578         w32api SetFileTime.
34579
34580 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
34581
34582         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
34583
34584         * ctrl_c.c (__gnat_int_handler): Remove declaration.
34585
34586         * decl.c (creat_concat_name):  Const-ify prefix.
34587
34588         * adaint.c: Include ctype.h if __MINGW32__.
34589         (__gnat_readlink): Mark arguments as possibly unused.
34590         (__gnat_symlink): Likewise.
34591         (__gnat_is_symbolic_link): Likewise.
34592         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
34593         declaration
34594         (__gnat_file_time_name): Don't declare struct stat statbuf when
34595         not needed.
34596         (__gnat_is_absolute_path): Add parenthesis around condition of
34597         'if' statement to avoid warning.
34598         (__gnat_plist_init): Specify void as parameter.
34599         (plist_enter): Likewise.
34600         (plist_leave): Likewise.
34601         (remove_handle): Make static. Initialize prev.
34602
34603 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
34604
34605         PR ada/10110
34606         * Makefile.in: Disable build of gnatpsta.
34607         * cstreams.c (__gnat_full_name): Minor improvements and clean up
34608         of previous change.
34609
34610 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34611
34612         * tracebak.c (MAX): Avoid redefinition warning.
34613
34614         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
34615         Change msg to const char *.
34616         (__gnat_install_handler): Remove ss, unused.
34617         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
34618         to const char *.
34619         * cstreams.c (__gnat_full_name): Declare p only when used.
34620         (__gnat_full_name) [sgi] Return buffer.
34621
34622 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
34623
34624         * mingw32.h: New file.
34625         * gnat_wrapper.adb: New file.
34626
34627 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
34628
34629         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
34630         string match a pre compiled regular expression (the corresponding
34631         version of the function working on a raw regular expression)
34632         Fix typos in various comments
34633         Update copyright notice in spec
34634
34635 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
34636
34637         * exp_ch3.adb:
34638         (Component_Needs_Simple_Initialization): Return False when the type is a
34639         packed bit array. Revise spec comments to document this case.
34640
34641         * exp_prag.adb:
34642         (Expand_Pragma_Import): Set any expression on the imported object to
34643         empty to avoid initializing imported objects (in particular this
34644         covers the case of zero-initialization of bit arrays).
34645         Update copyright notice.
34646
34647 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
34648
34649         * sem_ch12.adb:
34650         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
34651         a subunit is missing.
34652         (Instantiate_Subprogram_Body): If body of function is missing, set type
34653         of return expression explicitly in dummy body, to prevent cascaded
34654         errors when a subunit is missing.
34655         Fixes PR 5677.
34656
34657         * sem_ch3.adb:
34658         (Access_Subprogram_Declaration): Verify that return type is valid.
34659         Fixes PR 8693.
34660
34661         * sem_elab.adb:
34662         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
34663         generic.
34664         Fixes PR 12318.
34665
34666         * sem_util.adb:
34667         (Corresponding_Discriminant): If the scope of the discriminant is a
34668         private type without discriminant, use its full view.
34669         Fixes PR 8247.
34670
34671 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
34672
34673         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
34674         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
34675         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
34676         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
34677         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
34678         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
34679         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
34680         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
34681         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
34682         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
34683         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
34684         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
34685         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
34686         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
34687         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
34688         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
34689         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
34690         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
34691         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
34692         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
34693         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
34694         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
34695         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
34696         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
34697         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
34698         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
34699         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
34700         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
34701         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
34702         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
34703         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
34704         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
34705         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
34706         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
34707         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
34708         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
34709         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
34710         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
34711         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
34712         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
34713         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
34714         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
34715         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
34716         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
34717         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
34718         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
34719         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
34720         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
34721         vms_conv.ads, vms_conv.adb, vms_data.ads,
34722         vxaddr2line.adb: Files added. Merge with ACT tree.
34723
34724         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
34725         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
34726         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
34727         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
34728         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
34729         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
34730         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
34731         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
34732         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
34733         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
34734
34735         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
34736         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
34737         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
34738         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
34739         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
34740         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
34741         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
34742         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
34743         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
34744         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
34745         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34746         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
34747         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
34748         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34749         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
34750         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
34751         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
34752         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
34753         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
34754         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
34755         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
34756         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34757         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34758         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34759         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
34760         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
34761         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
34762         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34763         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
34764         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34765         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34766         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
34767         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34768         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
34769         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
34770         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
34771         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
34772         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
34773         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
34774         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
34775         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
34776         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
34777         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
34778         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
34779         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
34780         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
34781         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
34782         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
34783         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
34784         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
34785         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
34786         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
34787         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
34788         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
34789         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
34790         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
34791         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
34792         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
34793         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
34794         checks.adb, checks.ads, cio.c, comperr.adb,
34795         comperr.ads, csets.adb, cstand.adb, cstreams.c,
34796         debug_a.adb, debug_a.ads, debug.adb, decl.c,
34797         einfo.adb, einfo.ads, errout.adb, errout.ads,
34798         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
34799         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
34800         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
34801         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34802         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
34803         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
34804         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
34805         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
34806         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
34807         fe.h, fmap.adb, fmap.ads, fname.adb,
34808         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
34809         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
34810         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
34811         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
34812         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
34813         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
34814         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
34815         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
34816         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
34817         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
34818         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
34819         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
34820         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
34821         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
34822         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
34823         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
34824         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
34825         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
34826         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
34827         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
34828         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
34829         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
34830         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
34831         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
34832         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
34833         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
34834         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
34835         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
34836         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
34837         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
34838         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
34839         layout.adb, lib.adb, lib.ads, lib-list.adb,
34840         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
34841         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
34842         link.c, live.adb, make.adb, make.ads,
34843         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
34844         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
34845         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
34846         misc.c, mkdir.c, mlib.adb, mlib.ads,
34847         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
34848         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
34849         namet.adb, namet.ads, namet.h, nlists.ads,
34850         nlists.h, nmake.adt, opt.adb, opt.ads,
34851         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
34852         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
34853         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
34854         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
34855         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
34856         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
34857         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
34858         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
34859         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
34860         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
34861         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
34862         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
34863         prj-util.adb, prj-util.ads, raise.c, raise.h,
34864         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
34865         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
34866         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
34867         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
34868         scans.ads, scn.adb, scn.ads, s-crc32.adb,
34869         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
34870         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34871         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
34872         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
34873         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
34874         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
34875         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
34876         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
34877         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
34878         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
34879         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
34880         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
34881         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
34882         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
34883         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
34884         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
34885         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
34886         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
34887         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
34888         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
34889         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
34890         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
34891         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
34892         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
34893         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
34894         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
34895         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
34896         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
34897         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
34898         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
34899         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
34900         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
34901         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
34902         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
34903         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
34904         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
34905         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
34906         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
34907         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
34908         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
34909         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34910         stringt.adb, stringt.ads, stringt.h, style.ads,
34911         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
34912         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
34913         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
34914         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
34915         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
34916         table.adb, table.ads, targparm.adb, targparm.ads,
34917         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
34918         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
34919         ttypes.ads, types.ads, types.h, uintp.adb,
34920         uintp.ads, uintp.h, uname.adb, urealp.adb,
34921         urealp.ads, urealp.h, usage.adb, utils2.c,
34922         utils.c, validsw.adb, validsw.ads, widechar.adb,
34923         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
34924         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
34925         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
34926         gnatvsn.ads: Merge with ACT tree.
34927
34928         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
34929
34930 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
34931
34932         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
34933         (gnat_ug_vmx.info): Likewise.
34934         (gnat_ug_vxw.info): Likewise.
34935         (gnat_ug_wnt.info): Likewise.
34936         (gnat_rm.info): Likewise.
34937         (gnat-style.info): Likewise.
34938
34939         * Make-lang.in (ada.install-info): Remove target.
34940         (info): New target.
34941         (install-info): Likewise.
34942         (gnat_ug_unx.info): Simplify rule.
34943         (gnat_ug_vmx.info): Likewise.
34944         (gnat_ug_vxw.info): Likewise.
34945         (gnat_ug_wnt.info): Likewise.
34946         (gnat_rm.info): Likewise.
34947         (gnat-style.info): Likewise.
34948
34949 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34950
34951         * Make-lang.in: Replace uses of $(target_alias) with
34952         $(target_noncanonical).
34953         * ada/Makefile.in: Remove unused mention of $(target_alias).
34954
34955 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
34956
34957         * Make-lang.in (ada.info): Replace with ...
34958         (info): ... this.
34959         (ada.dvi): Replace with ...
34960         (dvi): ... this.
34961
34962 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
34963
34964         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
34965         initialize dconstp5 and dconstmp5.
34966
34967 2003-09-28  Richard Henderson  <rth@redhat.com>
34968
34969         * trans.c (tree_transform): Update call to expand_asm_operands.
34970
34971 2003-09-21  Richard Henderson  <rth@redhat.com>
34972
34973         * trans.c, utils.c: Revert.
34974
34975 2003-09-21  Richard Henderson  <rth@redhat.com>
34976
34977         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
34978         change to const.
34979
34980 2003-09-04  Michael Matz  <matz@suse.de>
34981
34982         * misc.c: Include "target.h".
34983         * Make-lang.in (misc.o): Add dependency on target.h.
34984
34985 2003-09-03  DJ Delorie  <dj@redhat.com>
34986
34987         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
34988         hook.
34989
34990 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
34991
34992         * Makefile.in: Update substitutions to match changes to
34993         configure.  Use include directives instead of @-insertions
34994         to read in host and target fragments.  Add a rule to
34995         regenerate ada/Makefile.
34996
34997 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
34998
34999         * lang-options.h: Remove.
35000         * lang.opt: Add help text.
35001
35002 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
35003
35004         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
35005         calls.
35006
35007 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
35008
35009         * misc.c (gnat_handle_option): Don't handle filenames.
35010
35011 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35012
35013         * Make-lang.in: Replace PWD with PWD_COMMAND.
35014         * Makefile.adalib: Likewise.
35015         * Makefile.in: Likewise.
35016
35017 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
35018
35019         * misc.c (gnat_argv): Revert last change.
35020         (gnat_handle_option, gnat_init_options): Copy arguments.
35021
35022 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
35023
35024         * misc.c (gnat_argv): Make const.
35025
35026 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
35027
35028         * misc.c (save_argc, save_argv): Keep non-static!
35029
35030 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
35031
35032         * misc.c (save_argc, save_argv): Make static.
35033         (gnat_init_options): New prototype.
35034         (gnat_init_options): Update.
35035
35036 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
35037
35038         * gnat_ug.texi: Remove unlikely characters from @vars.
35039         * gnat_ug_vms.texi: Regenerate.
35040
35041 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
35042
35043         * misc.c (record_code_position): Adjust emit_note call.
35044
35045 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
35046
35047         * misc.c (gnat_handle_option): Don't check for missing arguments.
35048
35049 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
35050
35051         * utils.c (end_subprog_body): Adjust expand_function_end call.
35052
35053 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
35054
35055         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
35056         Bind_Main_Program.
35057
35058 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
35059
35060         * lang.opt: Declare Ada.
35061         * misc.c (gnat_init_options): Update.
35062
35063 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
35064
35065         * utils.c (begin_subprog_body): Adjust init_function_start call.
35066
35067 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
35068
35069         * Make-lang.in: Update to use options.c and options.h.
35070         * misc.c: Include options.h not aoptions.h.
35071         (gnat_handle_option): Abort on unrecognized switch.
35072         (gnat_init_options): Request Ada switches.
35073
35074 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
35075
35076         * lang.opt: Add -Wall.
35077         * misc.c (gnat_handle_option): Handle it.
35078
35079 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
35080
35081         * misc.c (gnat_handle_option): Fix warnings.
35082
35083 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
35084
35085         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
35086
35087 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
35088
35089         * Make-lang.in: Update to handle command-line options.
35090         * lang.opt: New file.
35091         * misc.c: Include aoptions.h.
35092         (cl_options_count, cl_options): Remove.
35093         (gnat_handle_option): New.
35094         (gnat_decode_option): Remove.
35095         (LANG_HOOKS_DECODE_OPTION): Remove.
35096         (LANG_HOOKS_HANDLE_OPTION): Override.
35097
35098 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
35099
35100         * init.c, misc.c, trans.c, utils.c: Remove dead code.
35101
35102 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
35103
35104         * Makefile.in: Replace "host_canonical" with "host" for autoconf
35105         substitution.
35106
35107 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
35108
35109         * Make-lang.in: Update.
35110         * misc.c: Include opts.h. Define cl_options_count and cl_options.
35111
35112 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
35113
35114         * misc.c (gnat_init_options): Update.
35115
35116 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
35117
35118         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
35119         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
35120         __attribute__ ((__unused__)).
35121
35122 2003-06-05  Jan Hubicka  <jh@suse.cz>
35123
35124         * Make-lang.in:  Add support for stageprofile and stagefeedback
35125
35126 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
35127
35128         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
35129         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
35130
35131 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
35132
35133         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
35134         Remove non-VMS directive.
35135         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
35136         alternatives.
35137         (Examples of gnatls Usage): Remove VMS alternative.
35138
35139 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
35140
35141         PR ada/9953
35142         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
35143         and turn ZCX_By_Default back to False since the underlying support
35144         is not quite there yet.
35145
35146 2003-06-01  Andreas Jaeger  <aj@suse.de>
35147
35148         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
35149         and ROUND_TYPE_SIZE_UNIT.
35150
35151 2003-05-22   Geert Bosch  <bosch@gnat.com>
35152
35153         * gnat_rm.texi : Remove reference to Ada Core Technologies.
35154
35155 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
35156
35157         * trans.c (tree_transform): Use location_t and input_location
35158         directly.
35159         (build_unit_elab): Likewise.
35160         * utils.c (create_label_decl): Likewise.
35161
35162 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
35163
35164         * trans.c (tree_transform, build_unit_elab,
35165         set_lineno): Rename lineno to input_line.
35166         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
35167         end_subprog_body): Likewise.
35168         * utils2.c (build_call_raise): Likewise.
35169
35170 2003-05-01  Laurent Guerby  <guerby@acm.org>
35171
35172         PR ada/10546
35173         * 5iosinte.ads: Increase pthread_cond_t size to match recent
35174         LinuxThread and NPTL version, merge from ACT.
35175
35176 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
35177
35178         * utils.c (convert): No need to clear TREE_CST_RTL.
35179
35180 2003-04-23   Geert Bosch  <bosch@gnat.com>
35181
35182         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35183         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35184         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35185         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35186         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35187         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
35188         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
35189         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
35190         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35191         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
35192         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
35193         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
35194         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
35195         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
35196         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
35197         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
35198         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
35199         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
35200         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
35201         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
35202         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
35203         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
35204         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35205         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
35206         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
35207         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
35208         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
35209         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
35210         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
35211         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
35212         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
35213         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
35214         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
35215         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
35216         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
35217         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
35218         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
35219         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
35220         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
35221         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
35222         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
35223         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
35224         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
35225         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
35226         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
35227         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
35228         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
35229         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
35230         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
35231         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
35232         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
35233         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
35234         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
35235         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
35236         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
35237         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
35238         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
35239         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
35240         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
35241         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
35242         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
35243         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
35244         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
35245         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
35246         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
35247         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
35248         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
35249         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
35250         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
35251         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
35252         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
35253         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
35254         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
35255         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
35256         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
35257         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
35258         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
35259         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
35260         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
35261         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
35262         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
35263         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
35264         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
35265         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
35266         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
35267         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
35268         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
35269         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
35270         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
35271         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
35272         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
35273         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
35274         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
35275         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
35276         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
35277         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
35278         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
35279         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
35280         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
35281         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
35282         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
35283         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
35284         ali.adb, ali.ads, alloc.ads, argv.c,
35285         atree.adb, atree.ads, atree.h, aux-io.c,
35286         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
35287         binde.adb, binde.ads, binderr.adb, binderr.ads,
35288         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
35289         butil.adb, butil.ads, cal.c, calendar.ads,
35290         casing.adb, casing.ads, ceinfo.adb, checks.adb,
35291         checks.ads, cio.c, comperr.adb, comperr.ads,
35292         config-lang.in, csets.adb, csets.ads, csinfo.adb,
35293         cstand.adb, cstand.ads, cuintp.c, debug.adb,
35294         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
35295         dec-io.ads, dec.ads, deftarg.c, directio.ads,
35296         einfo.adb, einfo.ads, elists.adb, elists.ads,
35297         elists.h, errno.c, errout.adb, errout.ads,
35298         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
35299         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
35300         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
35301         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
35302         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
35303         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
35304         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
35305         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
35306         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
35307         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
35308         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
35309         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
35310         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
35311         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
35312         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
35313         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
35314         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
35315         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
35316         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
35317         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
35318         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35319         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35320         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35321         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
35322         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
35323         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
35324         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
35325         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
35326         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
35327         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
35328         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
35329         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
35330         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
35331         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
35332         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
35333         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
35334         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
35335         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
35336         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
35337         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
35338         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
35339         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
35340         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
35341         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
35342         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
35343         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
35344         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
35345         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
35346         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
35347         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
35348         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
35349         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
35350         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
35351         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
35352         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
35353         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
35354         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
35355         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
35356         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
35357         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35358         lib.adb, lib.ads, live.adb, live.ads,
35359         machcode.ads, make.adb, make.ads, makeusg.adb,
35360         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
35361         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
35362         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
35363         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
35364         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
35365         mlib.ads, namet.adb, namet.ads, nlists.adb,
35366         nlists.ads, opt.adb, opt.ads, osint-b.adb,
35367         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
35368         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
35369         osint.ads, output.adb, output.ads, par-ch10.adb,
35370         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
35371         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35372         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
35373         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
35374         par-tchk.adb, par-util.adb, par.adb, par.ads,
35375         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
35376         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
35377         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
35378         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
35379         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
35380         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
35381         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
35382         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
35383         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
35384         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
35385         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
35386         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
35387         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
35388         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
35389         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
35390         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
35391         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
35392         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35393         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
35394         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
35395         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
35396         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
35397         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35398         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
35399         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
35400         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
35401         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
35402         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
35403         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
35404         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
35405         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
35406         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
35407         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
35408         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
35409         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
35410         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
35411         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
35412         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
35413         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
35414         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
35415         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
35416         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
35417         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
35418         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
35419         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
35420         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
35421         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
35422         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
35423         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
35424         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
35425         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
35426         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
35427         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
35428         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
35429         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
35430         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
35431         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
35432         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
35433         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
35434         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
35435         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
35436         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
35437         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
35438         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
35439         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
35440         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
35441         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
35442         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
35443         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
35444         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
35445         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
35446         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
35447         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
35448         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
35449         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
35450         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
35451         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
35452         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
35453         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
35454         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35455         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
35456         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
35457         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
35458         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35459         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
35460         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
35461         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
35462         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
35463         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
35464         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
35465         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
35466         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
35467         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
35468         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
35469         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
35470         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
35471         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
35472         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
35473         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
35474         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
35475         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
35476         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
35477         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
35478         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
35479         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
35480         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
35481         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
35482         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
35483         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
35484         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
35485         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35486         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35487         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
35488         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
35489         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
35490         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
35491         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
35492         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
35493         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
35494         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
35495         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
35496         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
35497         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
35498         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
35499         snames.ads, sprint.adb, sprint.ads, stand.adb,
35500         stand.ads, stringt.adb, stringt.ads, style.adb,
35501         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
35502         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
35503         switch-m.ads, switch.adb, switch.ads, system.ads,
35504         table.adb, table.ads, targparm.adb, targparm.ads,
35505         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
35506         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
35507         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
35508         ttypef.ads, ttypes.ads, types.adb, types.ads,
35509         uintp.adb, uintp.ads, uname.adb, uname.ads,
35510         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
35511         usage.adb, usage.ads, validsw.adb, validsw.ads,
35512         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
35513         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
35514         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
35515         formatting and other trivial changes from ACT.
35516
35517 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
35518
35519         * gigi.h, utils2.c (build_constructor):
35520         Rename gnat_build_constructor. Use build_constructor.
35521         * decl.c (gnat_to_gnu_entity)
35522         * trans.c (tree_transform, pos_to_constructor, extract_values)
35523         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
35524         (unchecked_convert)
35525         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
35526         (fill_vms_descriptor):
35527         Update to match.
35528
35529 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
35530
35531         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
35532         * misc.c (gnat_tree_size): New function.
35533         (LANG_HOOKS_TREE_SIZE): Override.
35534
35535 2003-04-03  Jason Merrill  <jason@redhat.com>
35536
35537         * misc.c (gnat_adjust_rli): #if 0.
35538
35539 2003-03-31   Geert Bosch  <bosch@gnat.com>
35540
35541         PR ada/10020
35542         * link.c : Fix misspelled "const" keyword
35543
35544 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
35545
35546         PR c++/7086
35547         * utils2.c: Adjust calls to put_var_into_stack.
35548
35549 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
35550
35551         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
35552
35553 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
35554
35555         * misc.c (gnat_init): Update for new prototype.
35556
35557 2003-03-05  Olivier Hainque  <hainque@gnat.com>
35558
35559         ada/9961
35560         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
35561         warning, and fix return type for the IN_RTS && !SJLJ case.
35562
35563 2003-03-04  Tom Tromey  <tromey@redhat.com>
35564
35565         * Make-lang.in (ada.tags): New target.
35566
35567 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
35568
35569         ada/9911
35570         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
35571         wrapper, which name remains constant whatever underlying GCC
35572         scheme.
35573
35574         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
35575         the stable interface needed for a-except.
35576
35577 2003-03-02  Andreas Jaeger  <aj@suse.de>
35578
35579         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35580         gnat_ug_wnt.texi: Regenerate.
35581
35582 2003-03-02  Laurent Guerby  <guerby@acm.org>
35583
35584         * Makefile.in (install-gnatlib): Match previous change there
35585         so it works.
35586
35587 2003-02-28  Andreas Schwab  <schwab@suse.de>
35588
35589         * Make-lang.in (install-gnatlib): Change to ada directory before
35590         running make instead of using ada/Makefile directly.
35591
35592 2003-02-18  Ben Elliston  <bje@redhat.com>
35593
35594         Part of PR ada/9406
35595         * gnat_ug.texi (Binder output file): Grammar fix.
35596
35597 2003-02-18  Ben Elliston  <bje@redhat.com>
35598
35599         PR other/7350
35600         * 5qtaprop.adb (Sleep): Fix typo in comment.
35601
35602 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
35603
35604         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
35605         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35606         gnat_ug_wnt.texi: Regenerate.
35607
35608 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
35609
35610         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
35611         be created if necessary.
35612         (ada.install-common): Let $(DESTDIR)$(bindir) be created
35613         if necessary.  Remove erroneous and redundant gnatchop
35614         installation commands.  Test for gnatdll before attempting
35615         to install it.
35616         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
35617         and gnatdll from all plausible locations.
35618
35619 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
35620
35621         * utils2.c (build_unary_op): Don't check flag_volatile.
35622         * gnat_ug.texi: Remove -fvolatile from example.
35623         * gnat_ug_vxw.texi: Likewise.
35624
35625 2003-01-29  Laurent Guerby  <guerby@acm.org>
35626
35627         PR ada/8344
35628         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
35629         * Makefile.in: match previous change.
35630         * Make-lang.in: match previous change.
35631
35632 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
35633
35634         * 5rosinte.ads: Add SIGXCPU.
35635         * 5rtpopsp.adb: New file.
35636         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
35637         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
35638         specific file 5rtpopsp.adb.
35639         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
35640         is likely needed for all newlib targets.
35641         * init.c: Add RTEMS specific version of __gnat_initialize().
35642
35643 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35644
35645         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
35646
35647 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35648
35649         * init.c (__gnat_error_handler): Make msg const.
35650
35651         * gmem.c (convert_addresses): Move declaration ...
35652         * adaint.h: ... here.
35653         * adaint.c (convert_addresses): Adapt addrs type to match
35654         prototype.
35655
35656         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
35657
35658 2003-01-24  Andreas Schwab  <schwab@suse.de>
35659
35660         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
35661         size_t to avoid warning.
35662
35663 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
35664
35665         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
35666
35667 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
35668
35669         * gnat_rm.texi: Remove RCS version number.
35670
35671         * ada-tree.h (union lang_tree_node): Add chain_next option.
35672
35673 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
35674
35675         * Make-lang.in (ada.install-info, ada.install-common,
35676         ada.uninstall): Prepend $(DESTDIR) to the destination
35677         directory in all (un)installation commands.
35678         * Makefile.in (install-gnatlib, install-rts): Ditto.
35679
35680 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
35681
35682         * gnat_rm.texi, gnat_ug.texi: Use @copying.
35683         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35684         gnat_ug_wnt.texi: Regenerate.
35685
35686 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
35687
35688         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
35689         only.
35690         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
35691         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
35692         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
35693         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
35694         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
35695         $(srcdir)/doc/include/gcc-common.texi.
35696
35697 2002-12-15   Geert Bosch  <bosch@gnat.com>
35698
35699         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
35700
35701 2002-12-14   Geert Bosch  <bosch@gnat.com>
35702
35703         PR ada/5690
35704         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
35705         case of a body created for a Renaming_As_Body, on which
35706         conformance checks are not performed.
35707
35708 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
35709
35710         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
35711         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
35712         not already included.
35713         * Make-lang.in: Update dependencies.
35714
35715 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
35716         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
35717         solution to buffer overflow bug on GNU/Linux.
35718
35719 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35720
35721         PR ada/5856
35722         PR ada/6919
35723         * bindgen.adb: Remove all references to Public_Version.
35724         * comperr.adb: Remove all references to Public_Version and
35725         GNATPRO_Version; correct bug reporting instructions.
35726         * comperr.ads: Change to match bug box.
35727         * gnatvsn.ads: Remove all references to Public version and
35728         GNATPRO version.
35729
35730 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
35731
35732         PR ada/6919
35733         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
35734         GNU/Linux.
35735
35736         PR ada/6558
35737         * config-lang.in: Remove diff_excludes.
35738
35739 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
35740
35741         PR ada/8358
35742         * trans.c (gnu_pending_elaboration_lists): New GC root.
35743         (build_unit_elab): Use..
35744
35745 2002-10-30   Geert Bosch  <bosch@gnat.com>
35746
35747         PR ada/6558
35748         * misc.c : Include optabs.h
35749
35750         * Make-lang.in (misc.o): Add dependency on optabs.h
35751
35752 2002-10-29   Geert Bosch  <bosch@gnat.com>
35753
35754         PR ada/6558
35755         * Make-lang.in (gnatbind): Depend on CONFIG_H
35756
35757 2002-10-29  Geert bosch  <bosch@gnat.com>
35758
35759         PR ada/6558
35760         * misc.c: Unrevert misc.c (1.13)
35761
35762 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
35763
35764         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
35765         maintainership comments.
35766
35767 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
35768
35769         PR ada/5904
35770         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
35771         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
35772         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
35773         7staprop.adb: Correct statements in comments about
35774         maintainership of GNAT.
35775
35776         PR ada/5904
35777         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
35778         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
35779         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
35780         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
35781         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
35782         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
35783         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
35784         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
35785         comments about maintainership of GNAT.
35786
35787         PR ada/6919 (forward port of patch for PR ada/5904)
35788         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
35789         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
35790         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
35791         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
35792         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
35793         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
35794         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
35795         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
35796         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
35797         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
35798         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
35799         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
35800         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
35801         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
35802         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
35803         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
35804         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
35805         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
35806         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
35807         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
35808         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
35809         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
35810         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
35811         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
35812         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
35813         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
35814         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
35815         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
35816         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
35817         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
35818         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
35819         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
35820         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
35821         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
35822         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
35823         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
35824         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
35825         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
35826         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
35827         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
35828         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
35829         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
35830         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
35831         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
35832         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
35833         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
35834         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
35835         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
35836         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
35837         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
35838         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
35839         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
35840         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
35841         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
35842         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
35843         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
35844         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
35845         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
35846         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
35847         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
35848         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
35849         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
35850         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
35851         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
35852         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
35853         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
35854         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
35855         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
35856         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
35857         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
35858         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
35859         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
35860         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
35861         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
35862         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
35863         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
35864         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
35865         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
35866         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
35867         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
35868         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
35869         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
35870         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
35871         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
35872         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
35873         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
35874         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
35875         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
35876         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
35877         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
35878         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
35879         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
35880         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
35881         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
35882         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
35883         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
35884         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
35885         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
35886         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
35887         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
35888         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
35889         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
35890         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
35891         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
35892         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
35893         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
35894         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
35895         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
35896         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
35897         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
35898         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
35899         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
35900         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
35901         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
35902         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
35903         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
35904         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
35905         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
35906         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
35907         par-endh.adb par-labl.adb par-load.adb par-prag.adb
35908         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
35909         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
35910         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
35911         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
35912         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
35913         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
35914         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
35915         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
35916         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
35917         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
35918         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
35919         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
35920         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
35921         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
35922         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
35923         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
35924         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
35925         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
35926         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
35927         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
35928         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
35929         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
35930         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
35931         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
35932         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
35933         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
35934         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
35935         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
35936         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
35937         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
35938         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
35939         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
35940         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
35941         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
35942         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
35943         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
35944         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
35945         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
35946         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
35947         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
35948         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
35949         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
35950         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
35951         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
35952         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
35953         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
35954         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
35955         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
35956         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
35957         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
35958         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
35959         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
35960         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
35961         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
35962         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
35963         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
35964         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
35965         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
35966         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
35967         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
35968         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
35969         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
35970         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
35971         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
35972         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
35973         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
35974         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
35975         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
35976         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
35977         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
35978         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
35979         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
35980         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
35981         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
35982         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
35983         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
35984         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
35985         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
35986         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
35987         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
35988         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
35989         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
35990         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
35991         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
35992         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
35993         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
35994         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
35995         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
35996         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
35997         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
35998         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
35999         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
36000         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
36001         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
36002         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
36003         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
36004         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
36005         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
36006         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
36007         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
36008         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
36009         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
36010         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
36011         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
36012         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
36013         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
36014         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
36015         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
36016         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
36017         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
36018         stringt.ads stringt.h style.adb style.ads stylesw.adb
36019         stylesw.ads switch.adb switch.ads sysdep.c system.ads
36020         table.adb table.ads targparm.adb targparm.ads targtyps.c
36021         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
36022         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
36023         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
36024         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
36025         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
36026         usage.ads utils.c utils2.c validsw.adb validsw.ads
36027         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
36028         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
36029         xtreeprs.adb: Correct statements in comments about maintainership
36030         of GNAT.
36031
36032 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
36033
36034         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
36035         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
36036         * gnatvsn.ads: Gnat_Version_String is now a function.
36037         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
36038         copy the C version_string into a String and return it.
36039         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
36040         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
36041         Remove pragma Ident (Gnat_Version_String).  If this was the
36042         sole use of package Gnatvsn, remove the with statement too.
36043         * gnat1drv.adb: Tweak -gnatv output.
36044
36045 2002-09-17  Richard Henderson  <rth@redhat.com>
36046
36047         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
36048         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
36049         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
36050         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
36051         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
36052         and real_2expN instead of a loop.
36053         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
36054         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
36055
36056 2002-08-25  Andre Leis  <a.leis@gmx.net>
36057             David Billinghurst  <David.Billinghurst@riotinto.com>
36058
36059         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
36060
36061 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36062
36063         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
36064         Remove $(CONFIG_H) dependency.
36065
36066 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
36067
36068         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
36069
36070 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36071
36072         * adadecode.c (ada_demangle): Use xstrdup in lieu of
36073         xmalloc/strcpy.
36074         * misc.c (gnat_decode_option): Likewise.
36075
36076 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
36077
36078         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
36079         function approach did not work well because of a side effect (the
36080         function call could reallocate the table which was being indexed
36081         using its result). Fixes ada/4851. [RESURRECTED]
36082
36083 2002-07-01  Roger Sayle  <roger@eyesopen.com>
36084
36085         * ada/utils.c (builtin_function): Accept an additional parameter.
36086
36087 2002-06-28  Andreas Jaeger  <aj@suse.de>
36088
36089         PR ada/7144
36090         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
36091         <adi@thur.de>.
36092
36093 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36094
36095         * Makefile.in (SHELL): Set to @SHELL@.
36096
36097 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36098
36099         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
36100         array size calculation.
36101
36102 2002-06-04  Andreas Jaeger  <aj@suse.de>
36103
36104         * Make-lang.in (gnatbind): Readd rule that has been lost in last
36105         patch.
36106
36107 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
36108
36109         Merge from pch-branch:
36110
36111         * config-lang.in (gtfiles): Add ada-tree.h.
36112         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
36113         (SET_TYPE_MODULUS): New.
36114         (SET_TYPE_INDEX): New.
36115         (SET_TYPE_DIGITS_VALUE): New.
36116         (SET_TYPE_RM_SIZE): New.
36117         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
36118         (SET_TYPE_ADA_SIZE): New.
36119         (SET_TYPE_ACTUAL_BOUNDS): New.
36120         (SET_DECL_CONST_CORRESPONDING_VAR): New.
36121         (SET_DECL_ORIGINAL_FIELD): New.
36122         (TREE_LOOP_ID): Correct typo.
36123         * decl.c: Use new macros.
36124         * utils.c: Include debug.h, use new macros.
36125         * utils2.c: Use new macros.
36126
36127         * ada-tree.h: Update all macros for new tree description.
36128         (struct tree_loop_id): New.
36129         (union lang_tree_node): New.
36130         (struct lang_decl): New.
36131         (struct lang_type): New.
36132         * misc.c (gnat_mark_tree): Delete.
36133         (LANG_HOOKS_MARK_TREE): Delete.
36134         * trans.c (tree_transform): No longer any need to cast
36135         for TREE_LOOP_ID.
36136
36137         * utils.c (struct language_function): New dummy structure.
36138
36139         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
36140         (misc.o): Likewise.
36141         (utils.o): Likewise; also gtype-ada.h.
36142         * Make-lang.in (gnat1): Add dependency on s-gtype.
36143         (gnatbind): Add dependency on $(CONFIG_H).
36144         * utils.c: Correct last #include.
36145         (stuct e_stack): Remove unnecessary 'static'.
36146         (mark_e_stack): Remove unused prototype.
36147
36148         * scn-nlit.adb: Remove whitespace after version number to
36149         keep lines under 80 chars.
36150         * snames.adb: Likewise.
36151         * treepr.ads: Likewise.
36152
36153         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
36154         (misc.o): Likewise.
36155         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
36156         * config-lang.in (gtfiles): New.
36157         * decl.c: Use gengtype for roots.
36158         * gigi.h: Use gengtype for roots.
36159         * trans.c: Use gengtype for roots.
36160         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
36161
36162 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
36163
36164         * misc.c (gnat_init): Adjust setting of internal_error_function.
36165
36166 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
36167
36168         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
36169         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36170         gnat_ug_wnt.texi: Regenerate.
36171
36172 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
36173
36174         * 5ntaprop.adb (with System.OS_Primitives): Remove.
36175
36176         * cstreams.c (max_path_len): Move from here ...
36177         * adaint.c (__gnat_max_path_len): ... to here.
36178         * adaint.c (__gnat_max_path_len): Declare.
36179         * g-dirope.adb (Max_Path): Adjust.
36180         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
36181         * i-cstrea.ads (max_path_len): Adjust.
36182         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
36183         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
36184
36185         * Makefile.in, Make-lang.in: Documentation is now built in
36186         Make-lang.in.  Store Info and generated Texinfo files in the
36187         source directory.
36188         * gnat_ug.texi: Remove CVS keywords, correct version number.
36189         Set file name correctly.
36190
36191         * gnat_ug_*.texi: Add.
36192         * .cvsignore: Ignore generated Texinfo files.
36193
36194 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
36195
36196         * ada.h: Add MI guard macro.
36197         (SUBTYPE): Define constants with an anonymous enum, not static
36198         const variables.
36199         (IN): Cast constants to appropriate type before use.
36200
36201 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
36202
36203         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
36204         (experimental)".
36205
36206 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36207
36208         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
36209         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
36210         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
36211         (ALL_ADA_CFLAGS): Likewise.
36212         (ADA_INCLUDES): Likewise.
36213         Adapt for new working dir.
36214         (GNATBIND): Use Makefile.in version.
36215         (.SUFFIXES): Copy from Makefile.in.
36216         (ada-warn): Define.
36217         (.adb.o, .ads.o): Copy from Makefile.in.
36218         Added $(OUTPUT_OPTION).
36219         (GNAT1_C_OBJS): Moved from Makefile.in.
36220         Prefix with ada subdir.
36221         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
36222         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
36223         Adapt for new working dir.
36224         (EXTRA_GNATBIND_OBJS): Likewise.
36225         (ADA_BACKEND): Moved from Makefile.in.
36226         Renamed to avoid conflict with global BACKEND.
36227         Use that one.
36228         (TARGET_ADA_SRCS): Moved from Makefile.in.
36229         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
36230         Use ADA_BACKEND.
36231         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
36232         (ada_extra_files): Moved from Makefile.in.
36233         Prefix with ada subdir.
36234         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
36235         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
36236         (ada/nmake.ads): Likewise.
36237         (update-sources): Moved from Makefile.in.
36238         Prefix with ada subdir.
36239         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
36240         (ADA_TREE_H): Likewise.
36241         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
36242         (ada/memtrack.o): Likewise.
36243         (ada/adadecode.o): Likewise.
36244         Update dependencies.
36245         (ada/adaint.o): New.
36246         (ada/argv.o): Moved from Makefile.in.
36247         Prefix with ada subdir.
36248         Update dependencies.
36249         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
36250         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
36251         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
36252         Prefix with ada subdir.
36253         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
36254         (GNAT DEPENDENCIES): Regenerate.
36255         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
36256         toplevel Makefile.in.
36257         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
36258         (TARGET_ADA_SRCS): Removed.
36259         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
36260         (GNATBIND_OBJS): Likewise.
36261         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
36262         (BACKEND): Removed.
36263         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
36264         (TREE_H): Likewise.
36265         (ada_extra_files): Likewise.
36266         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
36267         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
36268         (update-sources): Likewise.
36269         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
36270         (ADA_TREE_H): Likewise.
36271         (adadecoce.o): Likewise.
36272         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
36273         (GNAT DEPENDENCIES): Likewise.
36274
36275 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36276
36277         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
36278         * Makefile.in: Likewise.
36279
36280 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36281
36282         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
36283         Restore $(CONFIG_H) and prefix.o dependencies.
36284         (ada.stage[1-4]): Depend on stage?-start.
36285
36286         * Makefile.in (b_gnatb.c): Depend on interfac.o.
36287
36288 2002-05-02  Jim Wilson  <wilson@redhat.com>
36289
36290         * utils.c (finish_record_type): Change record_size to record_type.
36291
36292 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
36293
36294         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
36295         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
36296         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
36297
36298 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
36299
36300         * misc.c (gnat_parse_file): Update.
36301
36302 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
36303
36304         * misc.c (gnat_init): Don't set lang_attribute_common.
36305
36306 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
36307
36308         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
36309
36310 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
36311
36312         * gnat_ug.texi: New file.
36313
36314         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
36315         instead of gfdl.texi
36316
36317         * xgnatug.adb, ug_words: New files.
36318
36319         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
36320         gnat_rm and gnat-style manuals.
36321
36322 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
36323
36324         * gigi.h (incomplete_type_error): Remove.
36325         * utils.c (incomplete_type_error): Remove.
36326
36327 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
36328
36329         * trans.c (tree_transform): Add has_scope argument to
36330         expand_start_stmt_expr.
36331
36332 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
36333
36334         * gigi.h (truthvalue_conversion): Rename.
36335         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
36336         * trans.c (tree_transform): Update.
36337         * utils2.c (truthvalue_conversion): Rename, update.
36338         (build_binary_op, build_unary_op): Update.
36339
36340 2002-04-04  Laurent Guerby  <guerby@acm.org>
36341
36342         * make.adb: Implement -margs, remove restriction about file name placement.
36343         * makeusg.adb: Documentation update.
36344         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
36345         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
36346
36347 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
36348
36349         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
36350         (builtin_function): Similarly.
36351
36352 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
36353
36354         * decl.c (gnat_to_gnu_entity): Update.
36355         * gigi.h (mark_addressable): Rename.
36356         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
36357         * trans.c (tree_transform): Update.
36358         * utils.c (create_var_decl): Update.
36359         * util2.c (build_binary_op, build_unary_op,
36360         fill_vms_descriptor): Update.
36361         (mark_addressable): Rename, update.
36362
36363 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
36364
36365         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
36366         Rename.
36367         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
36368         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
36369         * trans.c (tree_transform, convert_with_check): Update.
36370         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
36371         Rename.
36372
36373 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
36374
36375         * gigi.h (finish_incomplete_decl): Rename.
36376         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
36377         * utils.c (gnat_init_decl_processing): Don't set hook.
36378         (finish_incomplete_decl): Rename.
36379
36380 2002-03-29  Andreas Schwab  <schwab@suse.de>
36381
36382         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
36383         directory.
36384
36385 2001-03-28  Robert Dewar  <dewar@gnat.com>
36386
36387         * checks.ads:
36388         (Remove_Checks): New procedure
36389
36390         * checks.adb:
36391         (Remove_Checks): New procedure
36392
36393         * exp_util.adb:
36394         Use new Duplicate_Subexpr functions
36395         (Duplicate_Subexpr_No_Checks): New procedure
36396         (Duplicate_Subexpr_No_Checks_Orig): New procedure
36397         (Duplicate_Subexpr): Restore original form (checks duplicated)
36398         (Duplicate_Subexpr): Call Remove_Checks
36399
36400         * exp_util.ads:
36401         (Duplicate_Subexpr_No_Checks): New procedure
36402         (Duplicate_Subexpr_No_Checks_Orig): New procedure
36403         Add 2002 to copyright notice
36404
36405         * sem_util.adb: Use new Duplicate_Subexpr functions
36406
36407         * sem_eval.adb:
36408         (Eval_Indexed_Component): This is the place to call
36409         Constant_Array_Ref and to replace the value. We simply merge
36410         the code of this function in here, since it is now no longer
36411         used elsewhere. This fixes the problem of the back end not
36412         realizing we were clever enough to see that this was
36413         constant.
36414         (Expr_Val): Remove call to Constant_Array_Ref
36415         (Expr_Rep_Val): Remove call to Constant_Array_Ref
36416         Minor reformatting
36417         (Constant_Array_Ref): Deal with string literals (patch
36418         suggested by Zack Weinberg on the gcc list)
36419
36420 2001-03-28  Ed Schonberg  <schonber@gnat.com>
36421
36422         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
36423         Duplicate_Subexpr_Move_Checks.
36424
36425         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
36426         Duplicate_Subexpr_Move_Checks.
36427
36428         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
36429         value of array exists before retrieving it (it may a private
36430         protected component in a function).
36431
36432 2002-03-28   Geert Bosch  <bosch@gnat.com>
36433
36434         * prj-pp.adb : New file.
36435
36436         * prj-pp.ads : New file.
36437
36438 2002-03-28  Andreas Jaeger  <aj@suse.de>
36439
36440         * Makefile.in (stamp-sdefault): Fix path for Makefile.
36441
36442 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
36443
36444         * misc.c (gnat_expand_expr): Move prototype.
36445
36446 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36447
36448         * misc.c (insert_default_attributes): Remove.
36449
36450 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36451
36452         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
36453         (gnat_init): Don't set hook.
36454         (gnat_expand_expr): Fix prototype.
36455
36456 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36457
36458         * misc.c (ggc_p): Remove.
36459
36460 2002-03-27  Geert Bosch  <bosch@gnat.com>
36461
36462         * prj-makr.ads, prj-makr.adb : New files.
36463
36464 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
36465
36466         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
36467         (lang_mark_tree): Make static, rename.
36468
36469 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
36470
36471         * misc.c (maybe_build_cleanup): Remove.
36472
36473 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
36474
36475         * gigi.h (yyparse): Remove.
36476
36477 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
36478
36479         From Ben Brosgol  <brosgol@gnat.com>
36480         * gnat_rm.texi: Sync with ACT version.
36481
36482 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
36483
36484         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
36485         (gnat_init): Remove old hook.
36486
36487 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
36488
36489         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
36490         (yyparse): Rename gnat_parse_file.
36491
36492 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
36493
36494         Delete all lines containing "$Revision:".
36495         * xeinfo.adb: Don't look for revision numbers.
36496         * xnmake.adb: Likewise.
36497         * xsinfo.adb: Likewise.
36498         * xsnames.adb: Likewise.
36499         * xtreeprs.adb: Likewise.
36500
36501 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36502
36503         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
36504         gnat_tree_code_name): Delete.
36505         (tree_code_type, tree_code_length, tree_code_name): Define.
36506         (gnat_init): Don't try to copy into the various tree_code
36507         arrays.
36508
36509 2002-03-11  Richard Henderson  <rth@redhat.com>
36510
36511         * Makefile.in (.NOTPARALLEL): Add fake tag.
36512
36513 2002-03-07  Geert Bosch  <bosch@gnat.com>
36514
36515         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
36516         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
36517         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
36518         switch-m.adb, switch-m.ads : New files.
36519
36520 2002-03-07  Geert Bosch  <bosch@gnat.com>
36521
36522         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
36523         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
36524         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
36525         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
36526         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
36527         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
36528         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
36529         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
36530         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
36531         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
36532         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
36533         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
36534         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
36535         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
36536         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
36537         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
36538         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
36539         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
36540         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36541         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
36542         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
36543         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
36544         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
36545         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
36546         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
36547         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
36548         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
36549         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
36550         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
36551         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
36552         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
36553         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
36554         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
36555         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
36556         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36557         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
36558         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36559         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
36560         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
36561         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
36562         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
36563         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
36564         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
36565         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
36566         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
36567         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
36568         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
36569         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
36570         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
36571         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
36572         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
36573         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
36574         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
36575         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
36576         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
36577         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
36578         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
36579         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
36580         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
36581         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
36582         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
36583         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
36584         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
36585         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
36586         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
36587         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
36588         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
36589         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
36590         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
36591         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
36592         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
36593         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
36594         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
36595         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36596         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36597         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
36598         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36599         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36600         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
36601         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36602         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
36603         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
36604         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
36605         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
36606         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
36607         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
36608         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
36609         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
36610         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
36611         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
36612         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
36613         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
36614         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
36615         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
36616         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
36617         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
36618         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
36619
36620         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
36621         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
36622         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
36623         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
36624
36625         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
36626         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
36627
36628         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
36629         to mdll-fil.ad[bs] and mdll-util.ad[bs]
36630
36631         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
36632         from mdllfile.ad[bs] and mdlltool.ad[bs]
36633
36634 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36635
36636         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
36637         lieu of explicit sizeof/sizeof.
36638
36639 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
36640
36641         * misc.c (copy_lang_decl): Remove.
36642
36643 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
36644
36645         * misc.c: Delete traditional-mode-related code copied from the
36646         C front end but not used, or used only to permit the compiler
36647         to link.
36648
36649 2002-02-07  Richard Henderson  <rth@redhat.com>
36650
36651         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
36652         * adaint.h (__gnat_to_gm_time): Update prototype.
36653
36654 2002-01-30  Richard Henderson  <rth@redhat.com>
36655
36656         * trans.c (tree_transform) [N_Loop_Statement]: Use
36657         expand_exit_loop_top_cond.
36658
36659 2001-12-23  Richard Henderson  <rth@redhat.com>
36660
36661         * utils.c (end_subprog_body): Push GC context around
36662         rest_of_compilation for nested functions.
36663
36664 2001-12-23  Richard Henderson  <rth@redhat.com>
36665
36666         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
36667
36668 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
36669
36670         * gnat-style.texi (Declarations and Types): Remove ancient style
36671         rule which was mandated by code generation issues.
36672
36673         * gnat-style.texi (header): Add @dircategory, @direntry.
36674         (title page): Remove date.
36675         (general) Add @./@: where approriate, and two spaces after the
36676         full stop at the end of a sentence.  Use @samp markup when
36677         referring concrete lexical entities (keywords, attribute names
36678         etc.), and @syntax for ARM grammar elements. Use @r for English
36679         text in comments.  Use @emph for emphasis.  Change "if-statements"
36680         etc. to "if statements" (without @samp). Break long lines.  Make
36681         casing of section names consistent.
36682         (Identifiers): Use @samp markup for variable names.
36683         (Comments): Use @samp markup for comment characters. Line-end
36684         comments may follow any Ada code, not just statements.  Fix
36685         misspelling of "Integer" as "integer".
36686         (Loop statements): Do not use variable name "I", use "J".
36687         (Subprogram Declarations): Document alignment.
36688         (Subprogram Bodies, Block statements): Document empty line before
36689         "begin".
36690
36691 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
36692
36693         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
36694         function approach did not work well because of a side effect (the
36695         function call could reallocate the table which was being indexed
36696         using its result). Fixes ada/4851.
36697
36698 2001-12-19  Robert Dewar  <dewar@gnat.com>
36699
36700         * bindgen.adb: Minor reformatting
36701
36702         * cstand.adb: Minor reformatting
36703
36704         * fmap.adb: Minor reformatting
36705         Change name from Add for Add_To_File_Map (Add is much too generic)
36706         Change Path_Name_Of to Mapped_Path_Name
36707         Change File_Name_Of to Mapped_File_Name
36708         Fix copyright dates in header
36709
36710         * fmap.ads:
36711         Change name from Add for Add_To_File_Map (Add is much too generic)
36712         Change Path_Name_Of to Mapped_Path_Name
36713         Change File_Name_Of to Mapped_File_Name
36714         Fix copyright dates in header
36715
36716         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
36717         Add use clause for Fmap.
36718
36719         * make.adb: Minor reformatting
36720
36721         * osint.adb: Minor reformatting.  Change of names in Fmap.
36722         Add use clause for Fmap.
36723
36724         * prj-env.adb: Minor reformatting
36725
36726         * prj-env.ads: Minor reformatting
36727
36728         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
36729         error found (there were odd exceptions to this general rule in
36730         -gnatec/-gnatem processing)
36731
36732 2001-12-19  Olivier Hainque  <hainque@gnat.com>
36733
36734         * raise.c (__gnat_eh_personality): Exception handling personality
36735         routine for Ada.  Still in rough state, inspired from the C++ version
36736         and still containing a bunch of debugging artifacts.
36737         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
36738         inspired from the C++ library.
36739
36740         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
36741         exception handling integration.
36742
36743 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
36744
36745         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
36746         (HIE_SOURCES): Add s-secsta.ad{s,b}.
36747         (HIE_OBJS): Add s-fat*.o
36748         (RAVEN_SOURCES): Remove files that are no longer required. Add
36749         interrupt handling files.
36750         (RAVEN_MOD): Removed, no longer needed.
36751
36752 2001-12-19  Robert Dewar  <dewar@gnat.com>
36753
36754         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
36755         Add 2001 to copyright date
36756
36757         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
36758         need to force universal inlining for these cases.
36759
36760 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
36761
36762         * s-taprob.adb: Minor clean ups so that this unit can be used in
36763         Ravenscar HI.
36764
36765         * exp_ch7.adb: Allow use of secondary stack in HI mode.
36766         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
36767
36768 2001-12-19  Vincent Celier  <celier@gnat.com>
36769
36770         * prj-tree.ads (Project_Node_Record): Add comments for components
36771         Pkg_Id and Case_Insensitive.
36772
36773 2001-12-19  Pascal Obry  <obry@gnat.com>
36774
36775         * g-socket.adb: Minor reformatting. Found while reading code.
36776
36777 2001-12-19  Robert Dewar  <dewar@gnat.com>
36778
36779         * prj-tree.ads: Minor reformatting
36780
36781 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
36782
36783         * config-lang.in (diff_excludes): Remove.
36784
36785 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36786
36787         * sem_res.adb (Resolve_Selected_Component): do not generate a
36788         discriminant check if the selected component is a component of
36789         the argument of an initialization procedure.
36790
36791         * trans.c (tree_transform, case of arithmetic operators): If result
36792         type is private, the gnu_type is the base type of the full view,
36793         given that the full view itself may be a subtype.
36794
36795 2001-12-17  Robert Dewar  <dewar@gnat.com>
36796
36797         * sem_res.adb: Minor reformatting
36798
36799         * trans.c (tree_transform, case N_Real_Literal): Add missing third
36800         parameter in call to Machine (unknown horrible effects from this
36801         omission).
36802
36803         * urealp.h: Add definition of Round_Even for call to Machine
36804         Add third parameter for Machine
36805
36806 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36807
36808         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
36809         predefined units in No_Run_Time mode.
36810
36811 2001-12-17  Richard Kenner  <kenner@gnat.com>
36812
36813         * misc.c (insn-codes.h): Now include.
36814
36815 2001-12-17  Olivier Hainque  <hainque@gnat.com>
36816
36817         * a-except.adb: Preparation work for future integration of the GCC 3
36818         exception handling mechanism
36819         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
36820         to factorize previous code sequences and make them externally callable,
36821         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
36822         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
36823         Use the new notification routines.
36824
36825 2001-12-17  Emmanuel Briot  <briot@gnat.com>
36826
36827         * prj-tree.ads (First_Choice_Of): Document the when others case
36828
36829 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
36830
36831         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
36832         HI-E mode, in order to support Ravenscar profile properly.
36833
36834         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
36835         mode on 32 bits targets.
36836
36837 2001-12-17  Vincent Celier  <celier@gnat.com>
36838
36839         * fmap.adb: Initial version.
36840
36841         * fmap.ads: Initial version.
36842
36843         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
36844         If search is successfully done, add to mapping.
36845
36846         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
36847
36848         * make.adb:
36849         (Gnatmake): Add new local variable Mapping_File_Name.
36850          Create mapping file when using project file(s).
36851          Delete mapping file before exiting.
36852
36853         * opt.ads (Mapping_File_Name): New variable
36854
36855         * osint.adb (Find_File): Use path name found in mapping, if any.
36856
36857         * prj-env.adb (Create_Mapping_File): New procedure
36858
36859         * prj-env.ads (Create_Mapping_File): New procedure.
36860
36861         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
36862         (Mapping_File)
36863
36864         * usage.adb: Add entry for new switch -gnatem.
36865
36866         * Makefile.in: Add dependencies for fmap.o.
36867
36868 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36869
36870         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
36871         is a package instantiation rewritten as a package body.
36872         (Install_Withed_Unit): Undo previous change, now redundant.
36873
36874 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
36875
36876         * layout.adb:
36877         (Compute_Length): Move conversion to Unsigned to callers.
36878         (Get_Max_Size): Convert Len expression to Unsigned after calls to
36879         Compute_Length and Determine_Range.
36880         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
36881         Compute_Length and Determine_Range.
36882         Above changes fix problem with length computation for supernull arrays
36883         where Max (Len, 0) wasn't getting applied due to the Unsigned
36884         conversion used by Compute_Length.
36885
36886 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
36887
36888         * rtsfind.ads:
36889         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
36890          System.Secondary_Stack.
36891         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
36892          in HI-E mode.
36893         Remove unused entity RE_Exception_Data.
36894
36895         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
36896
36897         * rident.ads (No_Secondary_Stack): New restriction.
36898
36899 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
36900
36901         * gnat_rm.texi: Fix minor typos. Found while reading the section
36902         regarding "Bit_Order Clauses" that was sent to a customer.
36903         Very interesting documentation!
36904
36905 2001-12-17  Robert Dewar  <dewar@gnat.com>
36906
36907         * sem_case.adb (Choice_Image): Avoid creating improper character
36908         literal names by using the routine Set_Character_Literal_Name. This
36909         fixes bombs in certain error message cases.
36910
36911 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
36912
36913         * a-reatim.adb: Minor reformatting.
36914
36915 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36916
36917         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
36918         case where the formal is an extension of another formal in the current
36919         unit or in a parent generic unit.
36920
36921 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
36922
36923         * s-tposen.adb: Update comments.  Minor reformatting.
36924         Minor code clean up.
36925
36926         * s-tarest.adb: Update comments.  Minor code reorganization.
36927
36928 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
36929
36930         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
36931         when Java_VM.
36932
36933 2001-12-17  Robert Dewa  <dewar@gnat.com>
36934
36935         * exp_attr.adb: Minor reformatting
36936
36937 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36938
36939         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
36940         derivations nested within a child unit: verify that the parent
36941         type is declared in an outer scope.
36942
36943 2001-12-17  Robert Dewar  <dewar@gnat.com>
36944
36945         * sem_ch12.adb: Minor reformatting
36946
36947 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36948
36949         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
36950         warning if current unit is a predefined one, from which bodies may
36951         have been deleted.
36952
36953 2001-12-17  Robert Dewar  <dewar@gnat.com>
36954
36955         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
36956         Fix header format. Add 2001 to copyright date.
36957
36958         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
36959         which caused CE during compilation if checks were enabled.
36960
36961 2001-12-17  Vincent Celier  <celier@gnat.com>
36962
36963         * make.adb:
36964         (Switches_Of): New function
36965         (Test_If_Relative_Path): New procedure
36966         (Add_Switches): Use new function Switches_Of
36967         (Collect_Arguments_And_Compile): Use new function Switches_Of.
36968         When using a project file, test if there are any relative
36969         search path. Fail if there are any.
36970         (Gnatmake): Only add switches for the primary directory when not using
36971         a project file. When using a project file, change directory to the
36972         object directory of the main project file. When using a project file,
36973         test if there are any relative search path. Fail if there are any.
36974         When using a project file, fail if specified executable is relative
36975         path with directory information, and prepend executable, if not
36976         specified as an absolute path, with the exec directory.  Make sure
36977         that only one -o switch is transmitted to the linker.
36978
36979         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
36980
36981         * prj-nmsc.adb:
36982         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
36983         when using a non standard naming scheme.
36984         (Check_Ada_Naming_Scheme): Make sure that error messages
36985         do not raise exceptions.
36986         (Is_Illegal_Append): Return True if there is no dot in the suffix.
36987         (Language_Independent_Check): Check the exec directory.
36988
36989         * prj.adb (Project_Empty): Add new component Exec_Directory
36990
36991         * prj.ads:
36992         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
36993         (Project_Data): Add component Exec_Directory
36994
36995         * snames.adb: Updated to match snames.ads revision 1.215
36996
36997         * snames.ads: Added Exec_Dir
36998
36999 2001-12-17  Robert Dewar  <dewar@gnat.com>
37000
37001         * make.adb: Minor reformatting
37002
37003         * prj-nmsc.adb: Minor reformatting
37004
37005         * snames.adb: Updated to match snames.ads
37006
37007         * snames.ads: Alphebetize entries for project file
37008
37009 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37010
37011         * trans.c (process_freeze_entity): Do nothing if the entity is a
37012         subprogram that was already elaborated.
37013
37014 2001-12-17  Richard Kenner  <kenner@gnat.com>
37015
37016         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
37017         and Esize if object is referenced via pointer.
37018
37019 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37020
37021         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
37022         is discrete before analyzing choices.
37023
37024 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
37025
37026         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
37027         containing the name of the Ada Main Program. This string is mainly
37028         intended for the debugger.
37029         (Gen_Output_File_C): Do the equivalent change when generating a C file.
37030
37031 2001-12-17  Robert Dewar  <dewar@gnat.com>
37032
37033         * ali.adb: Set new Dummy_Entry field in dependency entry
37034
37035         * ali.ads: Add Dummy_Entry field to source dependency table
37036
37037         * bcheck.adb (Check_Consistency): Ignore dummy D lines
37038
37039         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
37040
37041         * lib-writ.ads: Document dummy D lines for missing files.
37042
37043         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
37044
37045 2001-12-17  Robert Dewar  <dewar@gnat.com>
37046
37047         * ali.adb: Type reference does not reset current file.
37048
37049         * ali.adb: Recognize and scan renaming reference
37050
37051         * ali.ads: Add spec for storing renaming references.
37052
37053         * lib-xref.ads: Add documentation for handling of renaming references
37054
37055         * lib-xref.adb: Implement output of renaming reference.
37056
37057         * checks.adb:
37058         (Determine_Range): Document local variables
37059         (Determine_Range): Make sure Hbound is initialized. It looks as though
37060          there could be a real problem here with an uninitialized reference
37061          to Hbound, but no actual example of failure has been found.
37062
37063 2001-12-17  Laurent Pautet  <pautet@gnat.com>
37064
37065         * g-socket.ads:
37066         Fix comment of Shutdown_Socket and Close_Socket. These functions
37067         should not fail silently because if they are called twice, this
37068         probably means that there is a race condition in the user program.
37069         Anyway, this behaviour is consistent with the rest of this unit.
37070         When an error occurs, an exception is raised with the error message
37071         as exception message.
37072
37073 2001-12-17  Robert Dewar  <dewar@gnat.com>
37074
37075         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
37076         that it happens before modification of Sloc values for -gnatD.
37077
37078         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
37079         so that it happens before modification of Sloc values for -gnatD.
37080
37081         * switch.adb: Minor reformatting
37082
37083 2001-12-15  Richard Henderson  <rth@redhat.com>
37084
37085         * sem_ch7.adb: Wrap comment.
37086
37087 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
37088
37089         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
37090         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
37091         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
37092         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
37093         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
37094         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
37095         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
37096         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
37097         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
37098         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
37099         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
37100         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
37101         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
37102         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
37103         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
37104         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
37105         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
37106         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
37107         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
37108         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
37109         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
37110         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
37111         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
37112         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
37113         spelling errors.
37114
37115 2001-12-14  Vincent Celier  <celier@gnat.com>
37116
37117         * osint.adb(Create_Debug_File): When an object file is specified,
37118         put the .dg file in the same directory as the object file.
37119
37120 2001-12-14  Robert Dewar  <dewar@gnat.com>
37121
37122         * osint.adb: Minor reformatting
37123
37124         * lib-xref.adb (Output_Instantiation): New procedure to generate
37125         instantiation references.
37126
37127         * lib-xref.ads: Add documentation of handling of generic references.
37128
37129         * ali.adb (Read_Instantiation_Ref): New procedure to read
37130         instantiation references
37131
37132         * ali.ads: Add spec for storing instantiation references
37133
37134         * bindusg.adb: Minor reformatting
37135
37136         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37137
37138         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37139
37140         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37141
37142         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37143
37144         * csets.ads:
37145         Fix header format
37146         Add 2001 to copyright date
37147         Add entry for Latin-5 (Cyrillic ISO-8859-5)
37148
37149 2001-12-14  Matt Gingell  <gingell@gnat.com>
37150
37151         * adaint.c: mktemp is a macro on Lynx and can not be used as an
37152         expression.
37153
37154 2001-12-14  Richard Kenner  <kenner@gnat.com>
37155
37156         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
37157         if operand is CONSTRUCTOR.
37158
37159 2001-12-14  Ed Schonberg  <schonber@gnat.com>
37160
37161         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
37162         before emiting check on right-hand side, so that exception information
37163         is correct.
37164
37165 2001-12-14  Richard Kenner  <kenner@gnat.com>
37166
37167         * utils.c (create_var_decl): Throw away initializing expression
37168         if just annotating types and non-constant.
37169
37170 2001-12-14  Vincent Celier  <celier@gnat.com>
37171
37172         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
37173         Default_Ada_...
37174
37175         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37176         Remove functions.
37177         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
37178
37179         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37180         Remove functions.
37181         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
37182
37183 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
37184
37185         * ChangeLog: Remove piece of diff output.
37186
37187 2001-12-14  Geert Bosch  <bosch@gnat.com>
37188
37189         * config-lang.in: Update copyright notice
37190
37191         * layout.adb: Remove commented out code.
37192
37193         * mdllfile.ads: Update copyright notice. Fix header format.
37194
37195         * sem_case.ads: Likewise.
37196
37197         * sem_ch3.adb: Minor reformatting.
37198
37199 2001-12-12  Geert Bosch  <bosch@gnat.com>
37200
37201         * freeze.ads: Update copyright date.
37202
37203         * g-comlin.ads: Minor reformatting.
37204
37205         * gnat-style.texi: Fix typo.
37206
37207 2001-12-12  Geert Bosch  <bosch@gnat.com>
37208
37209         *  einfo.h: Regenerate.
37210
37211 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37212
37213         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
37214         on known node types, rather than untyped fields. Further cleanups.
37215
37216 2001-12-12  Robert Dewar  <dewar@gnat.com>
37217
37218         * sem_ch12.adb:
37219         (Save_Entity_Descendant): Minor comment update.
37220         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
37221          of an N_Attribute_Reference node. As per note below, this does not
37222         eliminate need for Associated_Node in attribute ref nodes.
37223         (Associated_Node): Documentation explicitly mentions attribute
37224         reference nodes, since this field is used in such nodes.
37225
37226         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
37227
37228 2001-12-12  Robert Dewar  <dewar@gnat.com>
37229
37230         * s-stalib.adb: Add more comments on with statements being needed
37231
37232         * par-ch12.adb: Minor reformatting
37233
37234         * prj-dect.ads: Fix copyright header
37235
37236         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
37237         inputs fit in 32 bits, but the result still overflows.
37238
37239         * s-fatgen.ads: Minor comment improvement
37240
37241 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37242
37243         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
37244         formal derived type, look for an inherited component from the full
37245         view of the parent, if any.
37246
37247 2001-12-12  Robert Dewar  <dewar@gnat.com>
37248
37249         * checks.ads (Apply_Alignment_Check): New procedure.
37250
37251         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
37252         ensure that the alignment of objects with address clauses is
37253         appropriate, and raise PE if not.
37254
37255         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
37256         Exp_Pakd.Known_Aligned_Enough
37257
37258         * mdllfile.ads: Minor reformatting
37259
37260         * mlib-fil.ads: Minor reformatting
37261
37262 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37263
37264         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
37265         fix to any component reference if enclosing record has non-standard
37266         representation.
37267
37268 2001-12-12  Vincent Celier  <celier@gnat.com>
37269
37270         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
37271         Iteration
37272
37273 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37274
37275         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
37276         sem_attr.
37277
37278 2001-12-12  Robert Dewar  <dewar@gnat.com>
37279
37280         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
37281
37282 2001-12-12  Emmanuel Briot  <briot@gnat.com>
37283
37284         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
37285         and it adds dependencies to system.io.
37286
37287 2001-12-12  Pascal Obry  <obry@gnat.com>
37288
37289         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
37290         variable name.
37291
37292 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37293
37294         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
37295         that is the parent of other generics, the instance body replaces the
37296         instance node.  Retrieve the instance of the spec, which is the one
37297         that is visible in clients and within the body.
37298
37299 2001-12-11  Vincent Celier  <celier@gnat.com>
37300
37301         * gnatmain.adb: Initial version.
37302
37303         * gnatmain.ads: Initial version.
37304
37305         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
37306
37307         * snames.adb: Updated to match snames.ads.
37308
37309         * snames.ads: Added Gnatstub.
37310
37311 2001-12-11  Vincent Celier  <celier@gnat.com>
37312
37313         * prj-attr.adb (Initialization_Data): Change name from
37314         Initialisation_Data.
37315
37316 2001-12-11  Emmanuel Briot  <briot@gnat.com>
37317
37318         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
37319         + and * applied to backslashed expressions like \r.
37320
37321 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
37322
37323         * g-os_lib.ads: String_List type added, Argument_List type is now
37324         subtype of String_List.
37325
37326 2001-12-11  Robert Dewar  <dewar@gnat.com>
37327
37328         * g-os_lib.ads: Change copyright to FSF
37329         Add comments for String_List type
37330
37331 2001-12-11  Vincent Celier  <celier@gnat.com>
37332
37333         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
37334         string to the buffer).
37335
37336 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37337
37338         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
37339         sem_attr.
37340
37341         * sem_attr.adb: Simplify previous fix for Address.
37342         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
37343         to avoid anomalies where the bound of the type appears to raise
37344         constraint error.
37345
37346 2001-12-11  Robert Dewar  <dewar@gnat.com>
37347
37348         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
37349         handled.
37350
37351 2001-12-11  Ed Schonber   <schonber@gnat.com>
37352
37353         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
37354         renamed unit before checking for recursive instantiations.
37355
37356 2001-12-11  Emmanuel Briot  <briot@gnat.com>
37357
37358         * prj.ads: Add comments for some of the fields.
37359
37360 2001-12-11  Robert Dewar  <dewar@gnat.com>
37361
37362         * lib-xref.adb (Output_Refs): Don't output type references outside
37363         the main unit if they are not otherwise referenced.
37364
37365 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37366
37367         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
37368         code and diagnose additional illegal uses
37369
37370         * sem_util.adb (Is_Object_Reference): An indexed component is an
37371         object only if the prefix is.
37372
37373 2001-12-11  Vincent Celier  <celier@gnat.com>
37374
37375         * g-diopit.adb: Initial version.
37376
37377         * g-diopit.ads: Initial version.
37378
37379         * g-dirope.adb:
37380         (Expand_Path): Avoid use of Unbounded_String
37381         (Find, Wildcard_Iterator): Moved to child package Iteration
37382
37383         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
37384
37385 2001-12-11  Robert Dewar  <dewar@gnat.com>
37386
37387         * sem_attr.adb: Minor reformatting
37388
37389 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37390
37391         * sem_ch3.adb: Clarify some ???.
37392
37393 2001-12-11  Robert Dewar  <dewar@gnat.com>
37394
37395         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
37396         Exp_Pakd.Known_Aligned_Enough
37397
37398         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
37399         version is moved to Exp_Ch13.
37400
37401 2001-12-11  Robert Dewar  <dewar@gnat.com>
37402
37403         * einfo.ads: Minor reformatting
37404
37405         * exp_ch5.adb: Add comment for previous.change
37406
37407         * ali.adb: New interface for extended typeref stuff.
37408
37409         * ali.ads: New interface for typeref stuff.
37410
37411         * checks.adb (Apply_Alignment_Check): New procedure.
37412
37413         * debug.adb: Add -gnatdM for modified ALI output
37414
37415         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
37416
37417         * lib-xref.adb: Extend generation of <..> notation to cover
37418         subtype/object types. Note that this is a complete rewrite,
37419         getting rid of the very nasty quadratic algorithm previously
37420         used for derived type output.
37421
37422         * lib-xref.ads: Extend description of <..> notation to cover
37423         subtype/object types. Uses {..} for these other cases.
37424         Also use (..) for pointer types.
37425
37426         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
37427
37428         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
37429         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
37430
37431 2001-12-11  Vincent Celier  <celier@gnat.com>
37432
37433         * gnatcmd.adb:
37434         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
37435         Changed /BIND_ONLY to /ACTIONS=BIND
37436         Changed /LINK_ONLY to /ACTIONS=LINK
37437
37438 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37439
37440         * sem_ch8.adb (Find_Selected_Component): improved search for a
37441         candidate package in case of error.
37442
37443         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
37444         chain back on scope stack before reinstalling use clauses.
37445
37446         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
37447         is enabled, do not kill the code for the condition, to preserve
37448         warning.
37449
37450 2001-12-11  Robert Dewar  <dewar@gnat.com>
37451
37452         * checks.adb (Insert_Valid_Check): Apply validity check to expression
37453         of conversion, not to result of conversion.
37454
37455 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37456
37457         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
37458         before freezing parent. If the declarations are mutually recursive,
37459         an access to the current record type may be frozen before the
37460         derivation is complete.
37461
37462 2001-12-05  Vincent Celier  <celier@gnat.com>
37463
37464         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
37465         -c /COMPILE_ONLY, -l /LINK_ONLY
37466
37467         * opt.ads:
37468         (Bind_Only): New Flag
37469         (Link_Only): New flag
37470
37471         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
37472         and -l (Link_Only)
37473
37474         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
37475
37476         * make.adb:
37477         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
37478         (Gnatmake): Set the step flags. Only perform a step if the
37479         corresponding step flag is True.
37480         (Scan_Make_Arg): Reset the bind and link step flags when -u
37481         or -gnatc has been specified.
37482
37483 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37484
37485         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
37486         get bounds from right operand.
37487
37488         * sem_eval.adb: Minor reformatting
37489
37490         * exp_util.adb (Make_Literal_Range): use bound of literal rather
37491         than Index'First, its lower bound may be different from 1.
37492
37493         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
37494         and C48009J
37495
37496 2001-12-05  Vincent Celier  <celier@gnat.com>
37497
37498         * prj-nmsc.adb Minor reformatting
37499
37500         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
37501         set and libraries are not supported.
37502
37503 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37504
37505         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
37506         private view explicitly, so the back-end can treat as a global
37507         when appropriate.
37508
37509 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37510
37511         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
37512          unit, always replace instance node with new body, for ASIS use.
37513
37514 2001-12-05  Vincent Celier  <celier@gnat.com>
37515
37516         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
37517         libraries are not supported and both attributes Library_Name and
37518         Library_Dir are specified.
37519
37520         * prj-proc.adb (Expression): Set location of Result to location of
37521         first term.
37522
37523         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
37524         (prj-nmsc is now importing MLib.Tgt)
37525
37526         * prj-proc.adb: Put the change indicated above that was forgotten.
37527
37528 2001-12-05  Robert Dewar  <dewar@gnat.com>
37529
37530         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
37531
37532 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37533
37534         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
37535         constraint, introduce explicit subtype declaration and derive from it.
37536
37537         * sem_ch3.adb: Minor reformatting
37538
37539 2001-12-05  Robert Dewar  <dewar@gnat.com>
37540
37541         * checks.adb (Determine_Range): Increase cache size for checks.
37542         Minor reformatting
37543
37544         * exp_ch6.adb: Minor reformatting
37545         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
37546         a parameter whose root type is System.Address, since treating such
37547         subprograms as pure in the code generator is almost surely a mistake
37548         that will lead to unexpected results.
37549
37550         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
37551         change handling of conversions.
37552
37553         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
37554
37555 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37556
37557         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
37558         aggregate with static wrong size, attach generated Raise node to
37559         declaration.
37560
37561 2001-12-05  Robert Dewar  <dewar@gnat.com>
37562
37563         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
37564         Fixes compilation abandoned bomb in B24009B.
37565
37566 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37567
37568         * sem_ch12.adb:
37569         Document use of Associated_Node on Selected_Components.
37570         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
37571         to clarify use of untyped descendant fields.
37572
37573 2001-12-05  Robert Dewar  <dewar@gnat.com>
37574
37575         * prj-dect.ads: Add ??? comment
37576         Add 2001 to copyright notice (was not done in after all)
37577
37578         * prj-part.adb: Minor reformatting. Reword one awkward error message.
37579
37580         * prj.ads: Minor reformatting throughout, and add some ??? comments
37581
37582         * snames.ads: Minor reformatting
37583
37584 2001-12-05  Geert Bosch  <bosch@gnat.com>
37585
37586         * snames.adb: Autoupdate
37587
37588 2001-12-05  Vincent Celier  <celier@gnat.com>
37589
37590         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
37591
37592         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
37593
37594         * prj-env.adb: Minor comment changes (modifying -> extends).
37595
37596         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
37597
37598         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
37599         Tok_Extends.
37600
37601         * prj.adb (Initialize): Change Modifying to Extends.
37602
37603         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
37604
37605         * prj.ads: Minor comment change (Modifying -> extending).
37606
37607         * snames.ads: Change modifying to extends.
37608
37609 2001-12-05  Robert Dewar  <dewar@gnat.com>
37610
37611         * sem_warn.adb: Remove stuff for conditionals, we are not going to
37612         do this after all.
37613
37614         * sem_warn.ads: Remove stuff for conditionals, we are not going to
37615         do this after all.  Add 2001 to copyright notice
37616
37617 2001-12-04  Geert Bosch  <bosch@gnat.com>
37618
37619         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
37620
37621 2001-12-04  Robert Dewar  <dewar@gnat.com>
37622
37623         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
37624         location if we already have errors. Stops some cases of cascaded
37625         errors.
37626
37627         * errout.adb: Improve comment.
37628
37629 2001-12-04  Robert Dewar  <dewar@gnat.com>
37630
37631         * sem_ch12.adb:
37632         (Analyze_Formal_Type_Definition): Defend against Error.
37633         (Analyze_Formal_Subprogram): Defend against Error.
37634
37635         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
37636         remove following semicolon if present. Removes cascaded error.
37637
37638 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
37639
37640         * bindgen.adb:
37641         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
37642          exceptions equals 0.
37643         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
37644         Fixes PIWG E tests (which have to be run with -gnatL).
37645
37646 2001-12-04  Robert Dewar  <dewar@gnat.com>
37647
37648         * einfo.ads: Minor reformatting
37649
37650 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37651
37652         * einfo.ads: Block_Node points to the identifier of the block, not to
37653         the block node itself, to preserve the link when the block is
37654         rewritten, e.g. within an if-statement with a static condition.
37655
37656         * inline.adb (Cleanup_Scopes): recover block statement from block
37657         entity using new meaning of Block_Node.
37658
37659         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
37660         identifier of block node, rather than to node itself.
37661
37662 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
37663
37664         * layout.adb:
37665         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
37666         (Discrimify): Go back to setting the Etypes of the selected component
37667         because the Vname component does not exist at this point and will
37668         fail name resolution. Also set Analyzed.
37669         Remove with and use of Sem_Res.
37670
37671 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
37672
37673         * Makefile.in: (HIE_SOURCES): add s-fat*.
37674
37675 2001-12-04  Robert Dewar  <dewar@gnat.com>
37676
37677         * sem_attr.adb:
37678         (Compile_Time_Known_Attribute): New procedure.
37679         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
37680          proper range check.
37681
37682 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37683
37684         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
37685         processing discriminants to diagnose illegal default values.
37686
37687 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37688
37689         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
37690         access discriminant within a type extension that constrains its
37691         parent discriminants.
37692
37693 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37694
37695         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
37696         is malformed, use instance of Any_Id to allow analysis to proceed.
37697
37698         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
37699         type definition is illegal.
37700         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
37701         misplaced.
37702
37703 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37704
37705         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
37706         constants.
37707
37708 2001-12-04  Robert Dewar  <dewar@gnat.com>
37709
37710         * errout.adb: Minor reformatting
37711
37712 2001-12-04  Robert Dewar  <dewar@gnat.com>
37713
37714         * exp_util.adb: Minor reformatting from last change
37715
37716         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
37717         which is a rewriting of an expression, traverse the original
37718         expression to remove warnings that may have been posted on it.
37719
37720 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37721
37722         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
37723         record that has other packed components.
37724
37725 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
37726
37727         * adaint.c: Minor cleanups.
37728
37729 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
37730
37731         * adaint.c: Do not use utime.h on vxworks.
37732
37733 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
37734
37735         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
37736         more confusion than it solves.
37737
37738 2001-12-04  Geert bosch  <bosch@gnat.com>
37739
37740         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
37741
37742 2001-12-04  Geert Bosch  <bosch@gnat.com>
37743
37744         * Makefile.in (update-sources): New target.
37745         For use by gcc_release script.
37746
37747 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37748
37749         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
37750         a configuration pragma, it is now legal wherever a pragma can appear.
37751
37752 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
37753
37754         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
37755         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
37756         is now @CROSS@ -DIN_GCC; update comment.
37757
37758 2001-12-04  Robert Dewar  <dewar@gnat.com>
37759
37760         * einfo.adb (Has_Pragma_Pure_Function): New flag.
37761         Fix problem that stopped ceinfo from working
37762
37763         * einfo.ads (Has_Pragma_Pure_Function): New flag.
37764
37765         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
37766
37767 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
37768
37769         * gnatchop.adb:
37770         (File_Time_Stamp): New procedure.
37771         (Preserve_Mode): New boolean.
37772         (Write_Unit): Pass time stamp.
37773         Implement -p switch (preserve time stamps).
37774
37775         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
37776
37777         * gnatchop.adb: Do usage info for -p switch
37778
37779         * adaint.h (__gnat_set_file_time_name): New function
37780
37781         * adaint.c (__gnat_set_file_time_name): Implement
37782
37783         * adaint.h: Fix typo
37784
37785 2001-12-03  Robert Dewar  <dewar@gnat.com>
37786
37787         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
37788         have Associated_Node.
37789
37790 2001-12-03  Robert Dewar  <dewar@gnat.com>
37791
37792         * prj-proc.adb: Minor reformatting
37793
37794         * make.adb: Minor reformatting
37795
37796 2001-12-03  Geert Bosch  <bosch@gnat.com>
37797
37798         * make.adb: Minor reformatting.
37799
37800 2001-12-03 Robert Dewar  <dewar@gnat.com>
37801
37802         * sem_ch12.adb: Minor reformatting
37803
37804 2001-12-03  Ed Schonberg  <schonber@gnat.com>
37805
37806         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
37807         push Standard on the stack before analyzing the instance body,
37808         in order to have a clean visibility environment.
37809
37810         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
37811
37812 2001-12-03  Ed Schonberg  <schonber@gnat.com>
37813
37814         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
37815         instantiation of a body that contains an inlined body.
37816
37817 2001-12-03  Ed Schonberg  <schonber@gnat.com>
37818
37819         * sem_ch12.adb:
37820         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
37821         to prevent freezing within formal packages.
37822         (Freeze_Subprogram_Body): If body comes from another instance that
37823         appeared before its own body, place freeze node at end of current
37824         declarative part, to prevent a back-end crash.
37825         (Inline_Instance_Body): Handle properly a package instance within
37826         a subprogram instance that is a child unit.
37827
37828 2001-12-01  Graham Stott  <grahams@redhat.com>
37829
37830         * Makefile.in (misc.o): Add missing $(srcdir) prefix
37831         and add optabs.h dependency.
37832
37833         * misc.c: Include optabs.h
37834         (gnat_tree_code_type): Make static and const.
37835         (gnat_tree_code_length): Likewise.
37836         (gnat_tree_code_name): Likewise.
37837         (update_setjmp_buf): Obtain operands mode from insn_data.
37838
37839 2001-11-29  Richard Henderson  <rth@redhat.com>
37840
37841         * init.c: Remove obsolete dwarf2 frame.h section.
37842
37843 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
37844
37845         * Make-lang.in (ada.generated-manpages): New dummy target.
37846
37847 2001-11-29  Ed Schonberg  <schonber@gnat.com>
37848
37849         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
37850         into Command, an array conversion is illegal here. Uncovered by
37851         ACATS B460005.
37852
37853 2001-11-28  Geert Bosch  <bosch@gnat.com>
37854
37855         * init.c: Minor whitespace changes.
37856
37857 2001-11-28  Doug Rupp  <rupp@gnat.com>
37858
37859         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
37860         signal stack.
37861
37862 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
37863
37864         * misc.c (gnat_expand_constant): Move declaration above
37865         definition of lang_hooks.
37866         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
37867         (gnat_init): lang_expand_constant no longer exists.
37868
37869         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
37870         always have vprintf.
37871         (gnat_init): Always call set_internal_error_function.
37872
37873 2001-11-27  Andreas Jaeger  <aj@suse.de>
37874
37875         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
37876
37877 2001-11-27  Laurent Guerby  <guerby@acm.org>
37878
37879         * Makefile.in: Regenerate Ada dependencies.
37880
37881 2001-11-26  Richard Henderson  <rth@redhat.com>
37882
37883         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
37884         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
37885         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
37886
37887 2001-11-25  Laurent Guerby  <guerby@acm.org>
37888
37889         * sysdep.c (rts_get_*): Fix style.
37890
37891 2001-11-19  Laurent Guerby  <guerby@acm.org>
37892
37893         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
37894         since it is of no apparent use and cause warnings.
37895
37896 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
37897
37898         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
37899         static too.
37900         (gnat_init): Don't return NULL.
37901         (finish_parse): Remove.
37902
37903 2001-11-17  Laurent Guerby  <guerby@acm.org>
37904
37905         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
37906         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
37907         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
37908         * lang-spec.h: Add missing struct field to silence warnings.
37909         * sysdep.c (rts_get_*): Provide K&R prototype.
37910         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
37911         * traceback.c (Unlock_Task, Lock_Task): Likewise.
37912         * tracebak.c (__gnat_backtrace): Remove unused variable.
37913         * utils.c (end_subprog_body): Move to K&R style.
37914
37915 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37916
37917         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
37918
37919 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
37920
37921         * misc.c (gnat_init): Change prototype.  Include the
37922         functionality of the old init_parse and init_decl_processing.
37923         (gnat_init_decl_processing): New prototype.
37924         (init_parse): Remove.
37925         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
37926
37927 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
37928
37929         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
37930         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
37931         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
37932         set_yydebug): Remove.
37933
37934 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
37935
37936         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
37937         (struct lang_hooks): Constify.
37938         (language_string, lang_identify): Remove.
37939         * utils.c (init_decl_processing): Update.
37940
37941 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
37942
37943         * misc.c: Include langhooks-def.h.
37944         * Makefile.in: Update.
37945
37946 2001-10-30  Robert Dewar  <dewar@gnat.com>
37947
37948         * style.adb:
37949         (Check_Identifier): Rewrite circuit to be compatible with use of letters
37950         in the upper half of ASCII.
37951         (Check_Identifier): Minor reformatting
37952
37953 2001-10-30  Geert Bosch  <bosch@gnat.com>
37954
37955         * (Associated_Node, Set_Associated_Node): Do not check for
37956         Freeze_Entity.
37957
37958 2001-10-30  Robert Dewar  <dewar@gnat.com>
37959
37960         * a-reatim.ads: Minor reformatting
37961
37962 2001-10-30  Robert Dewar  <dewar@gnat.com>
37963
37964         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
37965         undocumented declarations.
37966
37967 2001-10-30  Pascal Obry  <obry@gnat.com>
37968
37969         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
37970         to the binder and linker.
37971         Minor style fix.
37972
37973         * mdll.ads: Fix layout.  Update copyright notice.
37974
37975         * mdll.adb: Fix layout.  Update copyright notice.
37976
37977 2001-10-30  Robert Dewar  <dewar@gnat.com>
37978
37979         * usage.adb: Minor fix to output for -gnaty.
37980
37981 2001-10-30  Ed Schonberg  <schonber@gnat.com>
37982
37983         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
37984         to accommodate all its possible values.
37985
37986         * a-reatim.adb (Split): Special-case handling of Time_Span_First
37987         and of small absolute values of T.
37988
37989 2001-10-30  Richard Kenner  <kenner@gnat.com>
37990
37991         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
37992         set_mem_attributes since not needed and wrong if RESULT if a REG;
37993         fixes ACATS failures.
37994
37995 2001-10-30  Geert Bosch  <bosch@gnat.com>
37996
37997         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
37998         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
37999
38000 2001-10-30  Robert Dewar  <dewar@gnat.com>
38001
38002         * bindusg.adb: Undocument -f switch.
38003
38004         * gnatcmd.adb: Remove /FULL_ELABORATION.
38005
38006         * opt.ads (Force_RM_Elaboration_Order): Document that this is
38007         obsolescent.
38008
38009         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
38010
38011         * gnatbind.adb: Minor update of warning msg.
38012
38013 2001-10-30  Vincent Celier  <celier@gnat.com>
38014
38015         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
38016         for project file switches (-P (/PROJECT_FILE=),
38017          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
38018         or MEDIUM or HIGH)
38019
38020 2001-10-30  Geert Bosch  <bosch@gnat.com>
38021
38022         * decl.c: Minor whitespace fixes.
38023
38024 2001-10-30  Richard Kenner  <kenner@gnat.com>
38025
38026         * utils2.c (build_allocator): Test for SIZE overflow in array case too
38027
38028 2001-10-30  Geert Bosch  <bosch@gnat.com>
38029
38030         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
38031         Found due to GCC 3.0 warning of using uninitialized value.
38032
38033         * layout.adb:
38034         (Get_Max_Size): Use variant record for tracking value/expression.
38035          Makes logic clearer and prevents warnings for uninitialized variables.
38036         (Layout_Array_Type): Use variant record for tracking value/expression.
38037          Makes logic clearer and prevents warnings for uninitialized variables.
38038
38039 2001-10-30  Robert Dewar  <dewar@gnat.com>
38040
38041         * lib.adb: Minor reformatting
38042
38043         * s-taprop.ads: Minor reformatting
38044
38045 2001-10-29  Laurent Guerby  <guerby@acm.org>
38046
38047         * init.c:
38048         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
38049         const.
38050         (_gnat_error_handler): Make MSG const.
38051
38052 2001-10-29  Richard Kenner  <kenner@gnat.com>
38053
38054         * sysdep.c: Fix localtime_r problem on LynxOS.
38055         Also remove #elif to avoid warnings.
38056
38057         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
38058         used by this.
38059
38060         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
38061
38062 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
38063
38064         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
38065         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
38066         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
38067         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
38068         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
38069         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
38070         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
38071         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
38072         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
38073         types.ads, urealp.adb: Fix spelling errors.
38074
38075 2001-10-27  Laurent Guerby  <guerby@acm.org>
38076
38077         * trans.c (gigi): Fix non determinism leading to bootstrap
38078         comparison failures for debugging information.
38079
38080 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
38081
38082         * gnat_rm.texi: Use @./@: where appropriate.
38083
38084 2001-10-26  Robert Dewar  <dewar@gnat.com>
38085
38086         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
38087
38088 2001-10-26  Richard Kenner  <kenner@gnat.com>
38089
38090         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
38091
38092 2001-10-26  Richard Kenner  <kenner@gnat.com>
38093
38094         * decl.c (validate_size): Modify message for bad size to avoid
38095         implication that compiler is modifying the size.
38096
38097 2001-10-26  Robert Dewar  <dewar@gnat.com>
38098
38099         * prj-util.adb: Minor reformatting. Fix bad header format.
38100
38101 2001-10-26  Robert Dewar  <dewar@gnat.com>
38102
38103         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
38104
38105         * sinfo.ads: Clarify use of Associated_Node (documentation only).
38106
38107         * sem_ch12.adb: Change Node4 to Associated_Node. Change
38108         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
38109         much more narrowly in places where needed. These are cleanups.
38110
38111 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
38112
38113         * 5zosinte.ads (null_pthread): new constant.
38114
38115         * 5ztaprop.adb:
38116         (Initialize_TCB): Initialize thread ID to null, to be able to verify
38117          later that this field has been set.
38118         (Finalize_TCB): ditto.
38119         (Suspend_Task): Verify that the thread ID is not null before using it.
38120         (Resume_Task): ditto.
38121
38122         * s-tasdeb.adb:
38123         (Resume_All_Tasks): Lock the tasks list before using it.
38124         (Suspend_All_Tasks): ditto.
38125
38126 2001-10-26  Richard Kenner  <kenner@gnat.com>
38127
38128         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
38129         Make constant variant of designated type for Is_Access_Constant.
38130         Call update_pointer_to with main variant.
38131
38132         * trans.c (process_freeze_entity, process_type):
38133         Call update_pointer_to on main variant.
38134
38135         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
38136         If main variant, update all other variants.
38137
38138         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
38139         TREE_STATIC.
38140
38141 2001-10-26  Robert Dewar  <dewar@gnat.com>
38142
38143         * prj-util.adb: Minor reformatting
38144
38145 2001-10-26  Robert Dewar  <dewar@gnat.com>
38146
38147         * prj-util.adb: Minor reformatting
38148
38149 2001-10-26  Robert Dewar  <dewar@gnat.com>
38150
38151         * prj-attr.adb: Minor reformatting throughout
38152
38153 2001-10-26  Robert Dewar  <dewar@gnat.com>
38154
38155         * prj-attr.ads: Minor reformatting
38156         Add ??? comment (this whole spec has almost no comments)
38157
38158 2001-10-26  Vincent Celier  <celier@gnat.com>
38159
38160         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
38161         ("//") that precede the drive letter on Interix.
38162
38163 2001-10-26  Geert Bosch  <bosch@gnat.com>
38164
38165         * gnat_rm.texi: Add GNAT Reference Manual.
38166
38167 2001-10-25  Robert Dewar  <dewar@gnat.com>
38168
38169         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
38170         is Error. Similar change for other renaming cases.
38171
38172 2001-10-25  Robert Dewar  <dewar@gnat.com>
38173
38174         * s-atacco.ads: Add pragma Inline_Always for functions.
38175         Fix header format. Add copyright 2001
38176
38177 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38178
38179         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
38180         return Error rather than Empty so that analysis can proceed.
38181
38182 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38183
38184         * sem_util.adb (Enter_Name): better handling of cascaded error
38185         messages when a unit appears in its own context.
38186
38187 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38188
38189         * sem_util.adb (Defining_Entity): in case of error, attach created
38190         entity to specification, so that semantic analysis can proceed.
38191
38192 2001-10-25  Robert Dewar  <dewar@gnat.com>
38193
38194         * sem_util.adb
38195         (Defining_Entity): Deal with Error.
38196         (Process_End_Label): Deal with bad end label for.
38197
38198 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38199
38200         * sem_elab.adb (Check_A_Call): refine message when call is in an
38201         instance but callee is not declared in the generic unit.
38202
38203 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38204
38205         * sem_elab.adb (Check_A_Call): check for renaming before finding the
38206         enclosing unit, which may already be different from the calling unit.
38207
38208 2001-10-25  Geert Bosch  <bosch@gnat.com>
38209
38210         * 4gintnam.ads: fix header format.
38211
38212 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38213
38214         * sem_res.adb (Resolve_Call): if the call is actually an indexing
38215         operation on the result of a parameterless call, perform elaboration
38216         check after the node has been properly rewritten.
38217
38218         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
38219         inlined within the generic tree, the defining identifier is not a
38220         compilation_unit.
38221
38222 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38223
38224         * sem_res.adb (Resolve): special-case resolution of Null in an
38225          instance or an inlined body to avoid view conflicts.
38226
38227         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
38228          compatibility by retrieving the access type of the generic copy.
38229
38230 2001-10-25  Robert Dewar  <dewar@gnat.com>
38231
38232         * sem_ch3.adb:
38233         (Analyze_Number_Declaration): Handle error expression.
38234         (Signed_Integer_Type_Declaration): Handle error bound.
38235         (Analyze_Subtype_Indication): Handle error range.
38236
38237         * sem_util.adb (Get_Index_Bounds): Check for Error.
38238
38239 2001-10-25  Robert Dewar  <dewar@gnat.com>
38240
38241         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
38242         in no run time mode.
38243
38244 2001-10-25  Pascal Obry  <obry@gnat.com>
38245
38246         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
38247         mode case for ALLOC case.
38248
38249         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
38250         all platforms. Improvement of last change.
38251
38252 2001-10-25  Robert Dewar  <dewar@gnat.com>
38253
38254         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
38255
38256 2001-10-25  Geert Bosch  <bosch@gnat.com>
38257
38258         * osint.adb (Is_Relative): Remove duplicate.
38259
38260 2001-10-25  Pascal Obry  <obry@gnat.com>
38261
38262         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
38263         pathnames in UNIX and DOS style with drive letter.
38264         (Is_Relative): new routine.
38265
38266         * osint.adb: Minor reformatting
38267
38268         * osint.adb (Is_Relative): implementation using
38269         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
38270
38271 2001-10-25  Pascal Obry  <obry@gnat.com>
38272
38273         * g-dirope.adb (Basename): correctly compute offset between the
38274         original Path and the translated one.
38275
38276         * g-dirope.adb: (Base_Name): add some comments.
38277
38278 2001-10-25  Robert Dewar  <dewar@gnat.com>
38279
38280         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
38281         in HIE mode, avoids compilation abandoned message
38282
38283         * exp_imgv.adb: Correct typo in previous change
38284
38285         * exp_imgv.adb: Correct typo in previous change (not my day!)
38286
38287 2001-10-25  Robert Dewar  <dewar@gnat.com>
38288
38289         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
38290
38291 2001-10-25  Pascal Obry  <obry@gnat.com>
38292
38293         * g-awk.ads: Move all pragma inlines next to the routine
38294          declarations. This is more uniform with other GNAT spec.
38295
38296 2001-10-22  Geert Bosch  <bosch@gnat.com>
38297
38298         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
38299
38300 2001-10-19  Geert Bosch  <bosch@gnat.com>
38301
38302         * Makefile.in (tools, gnattools): Remove gnatmem.
38303
38304 2001-10-17  Richard Henderson  <rth@redhat.com>
38305
38306         * Makefile.in (misc.o): Depend on langhooks.h.
38307         * misc.c: Include it.
38308         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
38309         (LANG_HOOKS_DECODE_OPTION): New.
38310         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
38311
38312 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
38313
38314         * trans.c (tree_transform): Adjust to recent change in
38315         expand_asm_operands to implement named asm operands.
38316
38317 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38318
38319         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
38320         renaming of discriminant for mutable record type.
38321
38322 2001-10-11  Robert Dewar  <dewar@gnat.com>
38323
38324         * validsw.adb: Properly save -gnatVn status.
38325
38326 2001-10-11  Robert Dewar  <dewar@gnat.com>
38327
38328         * usage.adb: Add lines for V switch.
38329
38330         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
38331         (/VALIDITY_CHECKING).
38332
38333 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38334
38335         * sem_type.adb (Add_One_Interp): an operator for a type declared in
38336         an extension of System is known to be visible.
38337
38338 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38339
38340         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
38341         properly. Fixes regression on ACATS C34005G.
38342
38343 2001-10-11  Robert Dewar  <dewar@gnat.com>
38344
38345         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
38346         loop in generic instance, since this is likely not very useful.
38347
38348 2001-10-11  Robert Dewar  <dewar@gnat.com>
38349
38350         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
38351         the error message for high integrity mode.
38352
38353         * rtsfind.adb (RTE): Give message if we try to find an entity that
38354         is not available in high integrity mode.
38355
38356         * rtsfind.ads:
38357         (OK_To_Use_In_HIE_Mode): New array.
38358         (RTE): May return Empty in high integrity mode.
38359
38360         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
38361         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
38362
38363         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
38364         unit if not inlined always and in no runtime mode. Fixes problem
38365         caused by new Rtsfind changes.
38366
38367         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
38368         body is deleted.
38369
38370         * rtsfind.adb (RTE): Make sure we do not try to load unit after
38371         giving message for entity not available in high integrity mode.
38372
38373 2001-10-11  Pascal Obry  <obry@gnat.com>
38374
38375         * impunit.adb: Add GNAT.CRC32.
38376
38377 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38378
38379         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
38380         properly the case where one universal operand in a non-static
38381         exponentiation of a real literal.
38382
38383 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38384
38385         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
38386         clause, return the gobal finalization list, for lack of anthing else.
38387
38388 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38389
38390         * exp_ch7.adb (Make_Transient_Block): if statement is within
38391         exception handler, always use new transient scope to place Clean
38392         procedure.
38393
38394 2001-10-11  Pascal Obry  <obry@gnat.com>
38395
38396         * Makefile.in:
38397         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38398         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38399         (GNATLS_RTL_OBJS): add g-crc32.o
38400         (GNATMAKE_RTL_OBJS): add g-crc32.o
38401
38402         * ali-util.adb:
38403         (CRC_Match): new function.
38404         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
38405         instead of the previous simple checksum algorithm.
38406         (Time_Stamp_Mismatch): use CRC_Match for comparison.
38407         (Set_Source_Table): idem.
38408
38409         * ali-util.ads:
38410         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
38411         instead of simple checksum.
38412         (CRC_Match): new function.
38413         (CRC_Error): new constant.
38414
38415         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
38416         a CRC now and not a simple checksum. A CRC uses lower-case hex
38417         letters, fixes ambiguity in parsing.
38418
38419         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
38420         is what this variable will store.
38421
38422         * bcheck.adb: Change reference to chechsum in comments by CRC.
38423         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
38424         rename All_Checksum_Match to All_CRC_Match. Change due to API
38425         renaming since now GNAT does not use a simple checksum but a
38426         CRC using GNAT.CRC32.
38427
38428         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
38429         now and not anymore a simple checksum.
38430
38431         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
38432         places.
38433
38434         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
38435
38436         * scans.adb:
38437         (Restore_Scan_State): rename Checksum to CRC.
38438         (Save_Scan_State): idem.
38439
38440         * scans.ads:
38441         With GNAT.CRC32.
38442         (Checksum): rename to CRC.
38443         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
38444
38445         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
38446         GNAT.CRC32).  Update copyright notice.
38447
38448         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
38449         GNAT.CRC32).  Update copyright notice.
38450
38451         * scn.adb:
38452         (Accumulate_Checksum): removed.
38453         (Update): new procedure. Add a wide-character into the CRC.
38454
38455         * sinput-l.adb:
38456         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
38457         (Load_File): fix initialization of S (change Source_Checksum to
38458         Source_CRC)
38459
38460         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
38461         Source_CRC in S initialization.
38462
38463         * sinput.adb (Source_Checksum): renamed to Source_CRC.
38464
38465         * sinput.ads (Source_Checksum): renamed to Source_CRC.
38466         Update comments for the CRC.
38467
38468         * types.adb (Hex): Use lowercase for the letter part.
38469
38470         * types.ads (Get_Hex_String): Returns the hexadecimal representation
38471         for a word. This is currently used only for CRC. In previous version,
38472         the checksum was using a representation with all letter being
38473         upper-case. With the new implementation (using CRC) we do not remove
38474         the 32th bit of the CRC, so we can have an upper-case starting letter
38475         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
38476         It is ambigous since the CRC was optional and could be followed by
38477         options like EB, EE. So now this routines uses lower-case letter for
38478         the hexadecimal representation. Strange enough only lower case letters
38479         where checked in Scan_ALI (even if this was not a possible case).
38480
38481         * gnatvsn.ads (Library_Version): changed to 3.15a.
38482
38483         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
38484         for the compiler.
38485
38486         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
38487         for the compiler.
38488
38489         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
38490         Add 2001 to copyright notice
38491         (Accumulate_Checksum): Modify to use System.CRC32.
38492
38493         * ali-util.ads: Redo changes of previous revision to continue to use
38494         the word Checksum. Add 2001 to copyright notice.
38495
38496         * ali.adb: Undo some of previous changes, not needed.
38497         Keep the change for lower case letters in the checksum.
38498
38499         * ali.ads: Undo previous change not needed.
38500
38501         * bcheck.adb: Undo most of previous change, not needed.
38502         But do use Checksums_Match for checksum comparison.
38503
38504         * gnatls.adb: Undo most of previous change, not needed.
38505         But do use Checksums_Match for comparing checksums.
38506
38507         * lib-load.adb: Undo previous change, not needed.
38508
38509         * lib-writ.adb: Undo previous change, not needed.
38510
38511         * lib-writ.ads: Document that checksums use lower case,
38512         not upper case letters.
38513
38514         * scans.adb: Undo previous change, not needed
38515
38516         * scans.ads: Undo previous change, not needed.
38517
38518         * scn-nlit.adb: Undo previous changes, not needed.
38519
38520         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
38521
38522         * scn.adb:
38523         (Accumulate_Checksum): Use System.CRC32.
38524         (Initialize_Checksum): New procedure.
38525         Remove other changes of previous revision.
38526
38527         * sinput-p.adb: Undo previous change, not needed.
38528
38529         * sinput.adb: Undo previous change, not needed.
38530
38531         * sinput-l.adb: Undo previous change, not needed.
38532
38533         * sinput.ads: Undo previous change, not needed.  Keep only comment
38534         on new checksum algorithm
38535
38536         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
38537         Also remove a-tags and a-stream from GNAT sources.
38538
38539         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
38540
38541         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
38542
38543 2001-10-11  Geert Bosch  <bosch@gnat.com>
38544
38545         * einfo.h: Regenerate.
38546
38547         * nmake.ads: Regenerate.
38548
38549         * nmake.adb: Regenerate.
38550
38551         * sinfo.h: Regenerate.
38552
38553         * treeprs.adb: Regenerate.
38554
38555 2001-10-10  Geert Bosch  <bosch@gnat.com>
38556
38557         * gnat-style.texi: New file describing coding guidelines for Ada.
38558
38559 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38560
38561         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
38562         is Flag174.
38563
38564 2001-10-10  Geert Bosch  <bosch@gnat.com>
38565
38566         * snames.ads: Add new names for project facility.
38567
38568         * snames.adb: Update to reflect snames.ads changes.
38569
38570         * snames.h: Update to reflect snames.ads changes.
38571
38572 2001-10-10  Vincent Celier  <celier@gnat.com>
38573
38574         * make.adb:
38575         (Add_Switches): reflect the changes for the switches attributes
38576         Default_Switches indexed by the programming language,
38577         Switches indexed by the file name.
38578         (Collect_Arguments_And_Compile): Idem.
38579         Reflect the attribute name changes.
38580
38581         * prj-attr.adb:
38582         (Initialisation_Data): Change the names of some packages and
38583         attributes.
38584         (Initialize): process case insensitive associative arrays.
38585
38586         * prj-attr.ads:
38587         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
38588
38589         * prj-dect.adb:
38590         (Parse_Attribute_Declaration): For case insensitive associative
38591          arrays, set the index string to lower case.
38592
38593         * prj-env.adb:
38594         Reflect the changes of the project attributes.
38595
38596         * prj-nmsc.adb:
38597         Replace Check_Naming_Scheme by Ada_Check and
38598         Language_Independent_Check.
38599
38600         * prj-nmsc.ads:
38601         Replaced Check_Naming_Scheme by 2 procedures:
38602         Ada_Check and Language_Independent_Check.
38603
38604         * prj-proc.adb:
38605         (Process_Declarative_Items): For case-insensitive associative
38606         arrays, set the index string to lower case.
38607         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
38608         Prj.Nmsc.Check_Naming_Scheme.
38609
38610         * prj-tree.adb:
38611         (Case_Insensitive): New function
38612         (Set_Case_Insensitive): New procedure
38613
38614         * prj-tree.ads:
38615         (Case_Insensitive): New function
38616         (Set_Case_Insensitive): New procedure
38617         (Project_Node_Record): New flag Case_Insensitive.
38618
38619         * prj-util.adb:
38620         (Value_Of): new function to get the string value of a single
38621         string variable or attribute.
38622
38623         * prj-util.ads:
38624         (Value_Of): new function to get the string value of a single
38625         string variable or attribute.
38626
38627         * prj.adb:
38628         (Ada_Default_Spec_Suffix): New function
38629         (Ada_Default_Impl_Suffix): New function
38630         Change definitions of several constants to reflect
38631         new components of record types.
38632
38633         * prj.ads:
38634         (Naming_Data): Change several components to reflect new
38635         elements of naming schemes.
38636         (Project_Data): New flags Sources_Present and
38637         Language_Independent_Checked.
38638         (Ada_Default_Spec_Suffix): New function.
38639         (Ada_Default_Impl_Suffix): New function.
38640
38641         * snames.ads:
38642         Modification of predefined names for project manager: added
38643         Implementation, Specification_Exceptions, Implementation_Exceptions,
38644         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
38645         Default_Switches, _Languages, Builder, Cross_Reference,
38646         Finder. Removed Body_Part, Specification_Append, Body_Append,
38647         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
38648         Gnatlink.
38649
38650         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
38651         Add comments.
38652
38653         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
38654         not that it is Nil_Variable_Value.
38655
38656         * prj.ads: Add ??? for uncommented declarations
38657
38658 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38659
38660         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
38661         constant, do not indicate possible modification, so that gigi can
38662         treat it as a bona fide constant.
38663
38664 2001-10-10  Robert Dewar  <dewar@gnat.com>
38665
38666         * sem_prag.adb: Add processing for pragma External.
38667
38668         * snames.ads: Add entry for pragma External.
38669
38670         * par-prag.adb: Add pragma External.
38671
38672         * snames.adb: Updated to match snames.ads.
38673
38674 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38675
38676         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
38677         a dynamic task if the allocator appears in an indexed assignment
38678         or selected component assignment.
38679
38680         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
38681         For a dynamic task in an assignment statement, use target of
38682         assignment to generate meaningful name.
38683
38684 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38685
38686         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
38687         a generic package.
38688
38689         * einfo.ads: Body_Entity is also defined for generic package.
38690         Documentation change only
38691
38692         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
38693         others_choice for a discriminated component initialization,
38694         convert discriminant references into the corresponding discriminals.
38695
38696         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
38697         only if original type is private and expression has to be wrapped
38698         in a conversion.
38699
38700         * checks.adb:
38701         (Apply_Constraint_Check): Do not perform length check
38702         if expression is an aggregate with only an others_choice.
38703         (Length_N_Cond): two references to the same in_parameter
38704         (typically the discriminal in an init_proc) denote the same value.
38705         Two useful optimization uncovered by bugfixes above.
38706
38707 2001-10-10  Robert Dewar  <dewar@gnat.com>
38708
38709         * xeinfo.adb: Change int to char in translation of enumeration types.
38710         This fixes a problem in the C representation of component alignment.
38711         Add 2001 to copyright notice
38712
38713 2001-10-10  Richard Kenner  <kenner@gnat.com>
38714
38715         * decl.c: (validate_size): Do check size of object of integral type
38716         if it is a packed array type.
38717
38718 2001-10-10  Richard Kenner  <kenner@gnat.com>
38719
38720         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
38721         VAR_DECL for constant if not Is_Public but -O0.
38722
38723 2001-10-10  Richard Kenner  <kenner@gnat.com>
38724
38725         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
38726
38727 2001-10-10  Geert Bosch  <bosch@gnat.com>
38728
38729         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
38730         use '/' as switch character, allowing for absolute file names.
38731
38732 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
38733
38734         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
38735         FSF address.
38736
38737 2001-10-08  Geert Bosch  <bosch@gnat.com>
38738
38739         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
38740         Automatically build utilities when files need to be regenerated.
38741
38742 2001-10-08  Geert Bosch  <bosch@gnat.com>
38743
38744         * xsnames.adb: New utility for updating snames.ads and snames.adb
38745
38746 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
38747
38748         * Make-lang.in (ADAFLAGS): Add -W -Wall.
38749         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
38750         (gnat1): Also depend on attribs.o.
38751         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
38752         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
38753         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
38754         (ADAFLAGS): Add -W -Wall.
38755         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
38756         take out CFLAGS.
38757
38758         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
38759         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
38760         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
38761         Use $(ADAC), not $(CC), as compilation command.
38762
38763         (gnattools): Depend directly on tools to build, don't use
38764         recursive make.
38765         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
38766
38767         * einfo.h, sinfo.h: New files (autogenerated).
38768
38769 2001-10-08  Richard Henderson  <rth@redhat.com>
38770
38771         * comperr.adb (Abort_In_Progress): New.
38772         (Compiler_Abort): Use it to prevent recursion.
38773
38774 2001-10-08  Robert Dewar  <dewar@gnat.com>
38775
38776         * atree.adb: Set Error_Posted in Error node, helps error recovery.
38777
38778         * par-endh.adb (Output_End_Expected): We should also not test
38779         Error_Posted on the Error node, since now it is always set.
38780
38781         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
38782         to help error recovery. Part of general work on 9407-004.
38783
38784         * par.adb: Add ??? for misuse of error
38785
38786         * sem_res.adb:
38787         (Resolve): Defend against Error, fixes 9407-003.
38788         (Resolve_Discrete_Subtype_Indication): Defend against Error.
38789
38790         * sinfo.ads (N_Error): Now has Etype field (which will be set
38791         to Any_Type to help error recovery).
38792
38793 2001-10-08  Richard Kenner  <kenner@gnat.com>
38794
38795         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
38796         Consistently set MEM attributes from expression; fixes
38797         bootstrap failure on x86.
38798
38799 2001-10-08  Geert Bosch  <bosch@gnat.com>
38800
38801         * 5oosinte.adb: Add 2001 to copyright notice.
38802
38803 2001-10-08  Geert Bosch  <bosch@gnat.com>
38804
38805         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
38806
38807         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
38808
38809 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
38810
38811         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
38812
38813 2001-10-05  Geert Bosch  <bosch@gnat.com>
38814
38815         * adaint.h: Small formatting fix.
38816
38817 2001-10-04  Geert Bosch  <bosch@gnat.com>
38818
38819         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
38820         Arg is int, not FILE *, in dummy version of functions.
38821
38822         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
38823         Arg is int, not FILE *.
38824
38825 2001-10-04  Geert Bosch  <bosch@gnat.com>
38826
38827         * 3lsoccon.ads: Added file, missed with initial check ins.
38828
38829         * 4lintnam.ads: Fix header format.
38830         Change Linux to GNU/Linux.
38831
38832         * 5iosinte.adb: Change Linux to GNU/Linux.
38833
38834         * 5iosinte.ads: Change Linux to GNU/Linux.
38835
38836         * 5itaprop.adb: Change Linux to GNU/Linux.
38837
38838         * 5itaspri.ads: Change Linux to GNU/Linux.
38839         Update copyright notice.
38840
38841         * 5lintman.adb: Change Linux to GNU/Linux.
38842
38843         * 5lml-tgt.adb: Change Linux to GNU/Linux.
38844
38845         * 5losinte.ads: Change Linux to GNU/Linux.
38846
38847         * 5lsystem.ads: Change Linux to GNU/Linux.
38848
38849         * 5qosinte.adb: Change Linux to GNU/Linux.
38850
38851         * 5qosinte.ads: Change Linux to GNU/Linux.
38852
38853         * 5qparame.ads: Change Linux to GNU/Linux.
38854
38855         * 5qtaprop.adb: Change Linux to GNU/Linux.
38856
38857         * 5qtaspri.ads: Change Linux to GNU/Linux.
38858         Add 2001 to copyright notice.
38859
38860         * 5vintman.ads: Change Linux to GNU/Linux.
38861         Fix header format.  Add 2001 to copyright notice.
38862
38863         * g-soccon.ads: Change Linux to GNU/Linux.
38864
38865         * g-trasym.ads: Change Linux to GNU/Linux.
38866         Add 2001 to copyright notice.
38867
38868         * memtrack.adb: Change Linux to GNU/Linux.
38869
38870         * s-intman.ads: Change Linux to GNU/Linux.
38871         Add 2001 to copyright notice.  Fix header format.
38872
38873         * s-stache.adb: Change Linux to GNU/Linux.
38874
38875         * adaint.c: Change Linux to GNU/Linux.
38876
38877         * cio.c: Change Linux to GNU/Linux.
38878
38879         * cstreams.c: Change Linux to GNU/Linux.
38880
38881         * init.c: Change Linux to GNU/Linux.
38882
38883         * gmem.c: Change Linux to GNU/Linux.
38884
38885         * tracebak.c: Change Linux to GNU/Linux.
38886
38887
38888 2001-10-02  Geert Bosch  <bosch@gnat.com>
38889
38890         * misc.c (insert_default_attributes): Add dummy version.